Skip to content

Commit 7b2f4cb

Browse files
committed
unify geospatial vertical extrema across L0 and L1
1 parent c10822d commit 7b2f4cb

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

pycurrents_ADCP_processing/ADCP_processing_L0_L1.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1581,14 +1581,14 @@ def nc_create_L0_L1(in_file, file_meta, dest_dir, level=1, time_file=None, verbo
15811581
out.attrs['geospatial_lon_max'] = meta_dict['longitude']
15821582
out.attrs['geospatial_lon_units'] = "degrees_east"
15831583

1584-
# sensor_depth was removed as a variable attribute
1585-
if level == 1:
1586-
depth = sensor_dep
1587-
else:
1588-
depth = meta_dict['instrument_depth']
1584+
# # sensor_depth was removed as a variable attribute
1585+
# if level == 1:
1586+
# depth = sensor_dep
1587+
# else:
1588+
# depth = meta_dict['instrument_depth']
15891589

15901590
out.attrs['geospatial_vertical_min'], out.attrs['geospatial_vertical_max'] = utils.geospatial_vertical_extrema(
1591-
out.attrs['orientation'], sensor_depth=depth, distance=out.distance.data
1591+
out.attrs['orientation'], sensor_depth=meta_dict['instrument_depth'], distance=out.distance.data
15921592
)
15931593

15941594
if verbose:

0 commit comments

Comments
 (0)