Skip to content

Commit

Permalink
Merge pull request #152 from hvdosser/uv_fillvalue
Browse files Browse the repository at this point in the history
Added a FillValue for u, v to allow profile submission to IOOS
  • Loading branch information
jklymak authored Jun 16, 2023
2 parents c4e8a77 + fae4226 commit bc16ef4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pyglider/ncprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ 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 ('_FillValue' in profile_meta['u']):
dss['u'] = profile_meta['u']['_FillValue']
dss['u'].attrs = profile_meta['u']

dss['v'] = profile_meta['v']['_FillValue']
dss['v'].attrs = profile_meta['v']

dss['profile_id'] = np.array(p*1.0)
dss['profile_id'].attrs = profile_meta['profile_id']
Expand Down

0 comments on commit bc16ef4

Please sign in to comment.