Skip to content

Commit

Permalink
minor edit in surface height processing
Browse files Browse the repository at this point in the history
  • Loading branch information
BaptisteVandecrux committed Sep 11, 2024
1 parent 55d3083 commit 0624183
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pypromice/process/L2toL3.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ def process_surface_height(ds, data_adjustments_dir, station_config={}):

ds['z_surf_combined'] = np.maximum(ds['z_surf_combined'], ds['z_ice_surf'])
ds['snow_height'] = np.maximum(0, ds['z_surf_combined'] - ds['z_ice_surf'])
ds['z_ice_surf'] = ds['z_ice_surf'].where(ds.snow_height.notnull())
elif ds.attrs['site_type'] in ['accumulation', 'bedrock']:
# Handle accumulation and bedrock site types
ds['z_ice_surf'] = ('time', ds['z_surf_1'].data * np.nan)
Expand Down

0 comments on commit 0624183

Please sign in to comment.