Skip to content

Commit 8db694f

Browse files
committed
Update tidal_histogram_ICESat2_ATL11.py
1 parent 0a49649 commit 8db694f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tides/tidal_histogram_ICESat2_ATL11.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
use multiprocess h5py reader from io utilities module
3636
use updated ATL11 readers within icesat2_toolkit
3737
use pathlib to define and operate on paths
38-
use raster file to define valid grid cells in mask
38+
use raster file to define valid grid cells in mask
3939
include cell_area in output HDF5 file
4040
Written 03/2021
4141
"""
@@ -378,7 +378,7 @@ def tidal_histogram(tile_file,
378378
# histogram bin
379379
attributes['bins'] = {}
380380
attributes['bins']['long_name'] = 'Histogram bins'
381-
attributes['bins']['units'] = 'meters'
381+
attributes['bins']['units'] = '1'
382382
attributes['bins']['description'] = \
383383
'Center of each height difference histogram bin'
384384
fill_value['bins'] = None
@@ -390,10 +390,11 @@ def tidal_histogram(tile_file,
390390
attributes['cell_area']['units'] = 'm^2'
391391
attributes['cell_area']['coordinates'] = 'y x'
392392
attributes['cell_area']['grid_mapping'] = 'crs'
393-
fill_value['cell_area'] = 0
393+
fill_value['cell_area'] = 0
394394
# height difference histogram
395395
attributes['dh_hist'] = {}
396396
attributes['dh_hist']['long_name'] = 'Height difference histogram'
397+
attributes['dh_hist']['description'] = 'Histogram of height differences'
397398
attributes['dh_hist']['units'] = 'meters'
398399
attributes['dh_hist']['coordinates'] = 'y x'
399400
attributes['dh_hist']['grid_mapping'] = 'crs'
@@ -613,7 +614,7 @@ def main():
613614
loglevels = [logging.CRITICAL, logging.INFO, logging.DEBUG]
614615
logging.basicConfig(level=loglevels[args.verbose])
615616

616-
# run program
617+
# run program
617618
try:
618619
info(args)
619620
tidal_histogram(args.infile,

0 commit comments

Comments
 (0)