Skip to content

Commit c9cc9d7

Browse files
Small fix for underway ST instrument (#257)
* add small buffer to spacetime region, may help avoid some issues * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 097a2a6 commit c9cc9d7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/virtualship/instruments/ship_underwater_st.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,18 @@ class Underwater_STInstrument(Instrument):
5858
def __init__(self, expedition, from_data):
5959
"""Initialize Underwater_STInstrument."""
6060
variables = {"S": "so", "T": "thetao"}
61+
spacetime_buffer_size = {
62+
"latlon": 0.25, # [degrees]
63+
"time": 0.0, # [days]
64+
}
6165

6266
super().__init__(
6367
expedition,
6468
variables,
6569
add_bathymetry=False,
6670
allow_time_extrapolation=True,
6771
verbose_progress=False,
68-
spacetime_buffer_size=None,
72+
spacetime_buffer_size=spacetime_buffer_size,
6973
limit_spec=None,
7074
from_data=from_data,
7175
)

0 commit comments

Comments
 (0)