Skip to content

Commit f2d3a25

Browse files
committed
add small buffer to spacetime region, may help avoid some issues
1 parent 982f91c commit f2d3a25

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/virtualship/instruments/ship_underwater_st.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
from typing import ClassVar
33

44
import numpy as np
5-
from parcels import ParticleSet, ScipyParticle, Variable
65

6+
from parcels import ParticleSet, ScipyParticle, Variable
77
from virtualship.instruments.base import Instrument
88
from virtualship.instruments.types import InstrumentType
99
from virtualship.utils import add_dummy_UV, register_instrument
@@ -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)