Skip to content

Commit

Permalink
Update pyglider/ncprocess.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jody Klymak <jklymak@gmail.com>
  • Loading branch information
hvdosser and jklymak authored Jun 16, 2023
1 parent 8252a25 commit 311e2d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyglider/ncprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ def extract_timeseries_profiles(inname, outdir, deploymentyaml):

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

dss['v'] = profile_meta['v']['_FillValue']
Expand Down

0 comments on commit 311e2d1

Please sign in to comment.