Skip to content

Commit

Permalink
Enable drop_vars for wave output
Browse files Browse the repository at this point in the history
  • Loading branch information
dnowacki-usgs committed Apr 17, 2024
1 parent f9f53c3 commit dd8b066
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
7 changes: 3 additions & 4 deletions stglib/aqd/wvsnc2waves.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import numpy as np
import xarray as xr
from tqdm import tqdm

from ..core import utils, waves
from ..core import qaqc, utils, waves
from ..vec import nc2waves
from . import aqdutils


def nc_to_waves(nc_filename):
Expand Down Expand Up @@ -71,6 +68,8 @@ def nc_to_waves(nc_filename):
if k in ds:
ds = ds.drop(k)

ds = qaqc.drop_vars(ds)

ds = utils.trim_max_wp(ds)

ds = utils.trim_min_wh(ds)
Expand Down
4 changes: 3 additions & 1 deletion stglib/rsk/nc2waves.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import numpy as np
import xarray as xr

from ..core import utils, waves
from ..core import qaqc, utils, waves


def nc_to_waves(nc_filename):
Expand Down Expand Up @@ -29,6 +29,8 @@ def nc_to_waves(nc_filename):
if k in ds:
ds = ds.drop_vars(k)

ds = qaqc.drop_vars(ds)

ds = utils.trim_max_wp(ds)

ds = utils.trim_min_wh(ds)
Expand Down
4 changes: 3 additions & 1 deletion stglib/vec/nc2waves.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import numpy as np
import xarray as xr

from ..core import utils, waves
from ..core import qaqc, utils, waves


def nc_to_waves(nc_filename):
Expand Down Expand Up @@ -59,6 +59,8 @@ def nc_to_waves(nc_filename):
if k in ds:
ds = ds.drop(k)

ds = qaqc.drop_vars(ds)

ds = utils.trim_max_wp(ds)

ds = utils.trim_min_wh(ds)
Expand Down

0 comments on commit dd8b066

Please sign in to comment.