Skip to content

Commit

Permalink
switched RTOFS from OpenDAP to local files
Browse files Browse the repository at this point in the history
  • Loading branch information
giumas committed Oct 27, 2024
1 parent fb35218 commit b9070f2
Show file tree
Hide file tree
Showing 5 changed files with 227 additions and 322 deletions.
4 changes: 2 additions & 2 deletions examples/soundspeed/atlas/ex_atlases_auto_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class ModelOptions(IntEnum):


# Choose Model
switch = ModelOptions.WCOFS # Choose a ModelOptions Value to test
switch = ModelOptions.RTOFS # Choose a ModelOptions Value to test

app = QtWidgets.QApplication([]) # PySide stuff (start)
mw = QtWidgets.QMainWindow()
Expand All @@ -58,7 +58,7 @@ class ModelOptions(IntEnum):
# Choose test location
tests = [

# (-19.1, 74.16, dt.utcnow()), # Indian Ocean
# (-19.1, 74.17, dt.utcnow()), # Indian Ocean
# (72.852028, -67.315431, dt.utcnow()) # Baffin Bay
# (18.2648113, 16.1761115, dt.utcnow()), # in land -> middle of Africa
# (39.725989, -104.967745, dt.utcnow()) # in land -> Denver, CO
Expand Down
2 changes: 1 addition & 1 deletion examples/soundspeed/profile/ex_oc_p_d.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
calc_d = Oc.p2d_gsw(p=trusted_gsw_p, lat=trusted_gsw_lat, dyn_height=None)
logger.info("GSW: Depth: %.3f <> %.3f" % (calc_d, trusted_gsw_d))

calc_p = Oc.d2p_backup(d=calc_d, lat=trusted_fof_lat)
calc_p = Oc.d2p_backup(d=trusted_fof_d, lat=trusted_fof_lat)
logger.info("Backup: Pressure: %.3f <> %.3f" % (calc_p, trusted_fof_p))

calc_p = Oc.d2p_gsw(d=trusted_gsw_d, lat=trusted_gsw_lat, dyn_height=None)
Expand Down
2 changes: 1 addition & 1 deletion hyo2/ssm2/lib/atlas/regofsonline.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def query(self, lat: Optional[float], lon: Optional[float], dtstamp: Union[dt, N
try:
lat_idx, lon_idx = self.grid_coords(lat, lon, dtstamp=dtstamp, server_mode=server_mode)
if lat_idx is None:
logger.info("location outside of %s coverage" % self.name)
logger.info("troubles with data source or location outside of %s coverage" % self.name)
return None

except TypeError as e:
Expand Down
Loading

0 comments on commit b9070f2

Please sign in to comment.