Skip to content

Commit

Permalink
Except raw altimeter data from averaging
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcvey3 committed Dec 12, 2023
1 parent d84b48f commit 3e2c6cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dolfyn/tests/data/BenchFile01_avg.nc
Git LFS file not shown
4 changes: 4 additions & 0 deletions dolfyn/velocity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 3e2c6cd

Please sign in to comment.