Skip to content

Commit

Permalink
updates to visualize script
Browse files Browse the repository at this point in the history
  • Loading branch information
Jancauskas committed Dec 5, 2024
1 parent 59bd425 commit 3792fd1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/methane_super_emitters/show.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@

@click.command()
@click.option('-i', '--input-file', help='Input NPZ file')
def main(input_file):
@click.option('--vmin', help='Minimum value for methane concentration')
@click.option('--vmax', help='Maximum value for methane concentration')
@click.option('--histogram', help='Show histogram', is_flag=True)
def main(input_file, vmin, vmax, histogram):
data = np.load(input_file)
import pdb; pdb.set_trace()
plt.imshow(data['methane'])
if histogram:
plt.hist(data['methane'], bins=50)
plt.show()
plt.imshow(data['methane'], vmin=int(vmin), vmax=int(vmax))
plt.show()

if __name__ == '__main__':
Expand Down

0 comments on commit 3792fd1

Please sign in to comment.