Skip to content

Commit

Permalink
Only use fill value for u, v is it exists in the metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
hvdosser committed Jun 13, 2023
1 parent 949875f commit cd78a09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyglider/ncprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def extract_timeseries_profiles(inname, outdir, deploymentyaml):

dss['v'] = dss.water_velocity_northward.mean()
dss['v'].attrs = profile_meta['v']
else:
elif ('water_velocity_eastward' not in dss.keys()) and ('_FillValue' in profile_meta['u']):
dss['u'] = profile_meta['u']['_FillValue']
dss['u'].attrs = profile_meta['u']

Expand Down

0 comments on commit cd78a09

Please sign in to comment.