roms_tools.datasets.lat_lon_datasets.get_glorys_bounds#
- roms_tools.datasets.lat_lon_datasets.get_glorys_bounds(grid: Grid, glorys_grid_path: Path | str | None = None) dict[str, float]#
Compute the latitude/longitude bounds of a GLORYS spatial subset that fully covers the given ROMS grid (with margin for regridding).
- Parameters:
grid (Grid) – The grid object.
glorys_grid_path (str, optional) – Path to the GLORYS global grid file. If None, defaults to “<repo_root>/data/grids/GLORYS_global_grid.nc”.
- Returns:
dict[str, float] – Dictionary containing the bounding box values:
“minimum_latitude” : float
“maximum_latitude” : float
“minimum_longitude” : float
“maximum_longitude” : float
Notes
The resolution is estimated as the mean of latitude and longitude spacing.