diff --git a/pyglider/ncprocess.py b/pyglider/ncprocess.py index c78e0d0..79b8c92 100644 --- a/pyglider/ncprocess.py +++ b/pyglider/ncprocess.py @@ -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']