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