diff --git a/dolfyn/tests/data/BenchFile01_avg.nc b/dolfyn/tests/data/BenchFile01_avg.nc index 6f9dc223..bca0ffba 100644 --- a/dolfyn/tests/data/BenchFile01_avg.nc +++ b/dolfyn/tests/data/BenchFile01_avg.nc @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7ddb1f779abe560ba131c7984e909f00729ee936a971a9f58f9eb34f471b6544 -size 84577 +oid sha256:86c32e19441245f8db41b798315394673010dd877429fce2daed8a10a6eb5425 +size 89675 diff --git a/dolfyn/velocity.py b/dolfyn/velocity.py index a920325f..97faebc1 100644 --- a/dolfyn/velocity.py +++ b/dolfyn/velocity.py @@ -540,6 +540,8 @@ def do_avg(self, raw_ds, out_ds=None, names=None): for ky in names: # set up dimensions and coordinates for Dataset dims_list = raw_ds[ky].dims + if any([ar for ar in dims_list if 'altraw' in ar]): + continue coords_dict = {} for nm in dims_list: if 'time' in nm: @@ -610,6 +612,8 @@ def do_var(self, raw_ds, out_ds=None, names=None, suffix='_var'): for ky in names: # set up dimensions and coordinates for dataarray dims_list = raw_ds[ky].dims + if any([ar for ar in dims_list if 'altraw' in ar]): + continue coords_dict = {} for nm in dims_list: if 'time' in nm: