Data and boundary interfaces¶
Interfaces fill in what depends on the run: they write input grids and boundary spectra from data sources, and set the times of the computation and output from the run period.
rompy_swan.interface¶
SWAN Interface Module
This module provides interface classes for SWAN model components in the ROMPY framework.
DataInterface
pydantic-model
¶
DataInterface(**data: Any)
Bases: RompyBaseModel
SWAN forcing data interface.
Examples¶
Fields:
-
model_type(Literal['data_interface', 'DATA_INTERFACE']) -
bottom(Optional[SwanDataGrid]) -
input(list[SwanDataGrid])
Validators:
model_type
pydantic-field
¶
model_type: Literal["data_interface", "DATA_INTERFACE"] = (
"data_interface"
)
Model type discriminator
ensure_unique_var
pydantic-validator
¶
ensure_unique_var(
input: list[SwanDataGrid], info: ValidationInfo
) -> list[SwanDataGrid]
Ensure that each input var is unique.
check_for_typos
classmethod
¶
Suggest the closest field name for an unknown input key.
A field can be given by its name or, like in pydantic, by its alias.
BoundaryInterface
pydantic-model
¶
BoundaryInterface(**data: Any)
Bases: RompyBaseModel
SWAN forcing boundary interface.
Examples¶
Fields:
-
model_type(Literal['boundary_interface', 'BOUNDARY_INTERFACE']) -
kind(Union[Boundnest1, BoundspecSide, BoundspecSegmentXY])
model_type
pydantic-field
¶
model_type: Literal[
"boundary_interface", "BOUNDARY_INTERFACE"
] = "boundary_interface"
Model type discriminator
kind
pydantic-field
¶
kind: Union[Boundnest1, BoundspecSide, BoundspecSegmentXY]
Boundary data object
check_for_typos
classmethod
¶
Suggest the closest field name for an unknown input key.
A field can be given by its name or, like in pydantic, by its alias.
TimeInterface
pydantic-model
¶
TimeInterface(**data: Any)
Bases: RompyBaseModel
Base interface to pass time to group components.
This class is used to set consistent time parameters in a group component by
redefining existing times component attribute based on the period field.
Fields:
OutputInterface
pydantic-model
¶
OutputInterface(**data: Any)
Bases: TimeInterface
Output group component with consistent times.
Fields:
Validators:
model_type
pydantic-field
¶
model_type: Literal[
"outputinterface", "OUTPUTINTERFACE"
] = "outputinterface"
Model type discriminator
time_interface
pydantic-validator
¶
time_interface() -> OutputInterface
Set the time parameter for all WRITE components.
Note
- tbeg is set from the component's times if defined, otherwise from the runtime start
- delt is set from the component's times if defined, otherwise from the runtime interval
- tfmt is set from the component's times if defined, otherwise from TimeRange default
- dfmt is set from the component's times if defined, otherwise from TimeRange default
- suffix is set to the suffix of the component
A user-defined tbeg lets output start after a model spin-up period so the
spin-up is excluded from output files.
check_for_typos
classmethod
¶
Suggest the closest field name for an unknown input key.
A field can be given by its name or, like in pydantic, by its alias.
LockupInterface
pydantic-model
¶
LockupInterface(**data: Any)
Bases: TimeInterface
Lockup group component with consistent times.
Fields:
Validators:
model_type
pydantic-field
¶
model_type: Literal[
"lockupinterface", "LOCKUPINTERFACE"
] = "lockupinterface"
Model type discriminator
time_interface
pydantic-validator
¶
time_interface() -> LockupInterface
Set the time parameter for COMPUTE components.
check_for_typos
classmethod
¶
Suggest the closest field name for an unknown input key.
A field can be given by its name or, like in pydantic, by its alias.
rompy_swan.data¶
SWAN Data Module
This module provides data handling functionality for the SWAN model within the ROMPY framework.
SwanDataGrid
pydantic-model
¶
SwanDataGrid(**data: Any)
Bases: DataGrid
This class is used to write SWAN data from a dataset.
Fields:
-
model_type(Literal['grid']) -
id(str) -
source(Union[SOURCE_TYPES]) -
filter(Optional[Filter]) -
variables(Optional[list[str]]) -
coords(Optional[DatasetCoords]) -
crop_data(bool) -
buffer(float) -
time_buffer(list[int]) -
z1(Optional[str]) -
z2(Optional[str]) -
var(GridOptions) -
fac(float)
Validators:
z1
pydantic-field
¶
Name of the data variable in dataset representing either a scaler parameter or the u-componet of a vector field
z2
pydantic-field
¶
Name of the data variable in dataset representing the v-componet of a vector field
fac
pydantic-field
¶
fac: float = 1.0
SWAN multiplies all values that are read from file by fac. For instance if the values are given in unit decimeter, one should make fac=0.1 to obtain values in m. To change sign use a negative fac
source
pydantic-field
¶
source: Union[SOURCE_TYPES]
Source reader, must return an xarray gridded dataset in the open method
filter
pydantic-field
¶
Optional filter specification to apply to the dataset
variables
pydantic-field
¶
Subset of variables to extract from the dataset
coords
pydantic-field
¶
coords: Optional[DatasetCoords] = DatasetCoords()
Names of the coordinates in the dataset
crop_data
pydantic-field
¶
crop_data: bool = True
Update crop filters from Grid and Time objects if passed to get method
buffer
pydantic-field
¶
buffer: float = 0.0
Space to buffer the grid bounding box if crop_data is True
time_buffer
pydantic-field
¶
Number of source data timesteps to buffer the time range if crop_data is True
get
¶
get(
destdir: str | Path,
grid: Optional[SwanGrid] = None,
time: Optional[TimeRange] = None,
) -> Path
Write the data source to a new location.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
destdir
|
str | Path
|
The destination directory to write the netcdf data to. |
required |
grid
|
Optional[SwanGrid]
|
The grid to filter the data to, only used if |
None
|
time
|
Optional[TimeRange]
|
The times to filter the data to, only used if |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
cmd |
str
|
The command line string with the INPGRID/READINP commands ready to be written to the SWAN input file. |
Note
The data are assumed to not have been rotated. We cannot use the grid.rot attr as this is the rotation from the model grid object which is not necessarily the same as the rotation of the data.
check_for_typos
classmethod
¶
Suggest the closest field name for an unknown input key.
A field can be given by its name or, like in pydantic, by its alias.
plot
¶
plot(
param,
isel={},
model_grid=None,
cmap="turbo",
figsize=None,
fscale=10,
borders=True,
land=True,
coastline=True,
**kwargs,
)
Plot the grid.
Swan_accessor
¶
Bases: object
grid
¶
grid(
x: str = "lon",
y: str = "lat",
rot: float = 0.0,
exc: float = FILL_VALUE,
)
SWAN Grid object for this dataset.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x
|
str
|
Name of the x coordinate variable. |
'lon'
|
y
|
str
|
Name of the y coordinate variable. |
'lat'
|
rot
|
float
|
Rotation angle in degrees, required if the grid has been previously rotated. |
0.0
|
exc
|
float
|
Exception value for missing data. |
FILL_VALUE
|
Returns:
| Name | Type | Description |
|---|---|---|
grid |
SwanGrid
|
SwanGrid object representing this dataset. |
to_bottom_grid
¶
to_bottom_grid(
output_file,
fmt="%4.2f",
x="lon",
y="lat",
z="depth",
fac=1.0,
rot=0.0,
vmin=float("-inf"),
fill_value=FILL_VALUE,
)
Write SWAN inpgrid BOTTOM file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
output_file
|
Local file name for the ascii output file. |
required | |
fmt
|
String float formatter. |
'%4.2f'
|
|
x
|
Name of the x-axis in the dataset. |
'lon'
|
|
y
|
Name of the y-axis in the dataset. |
'lat'
|
|
z
|
Name of the bottom variable in the dataset. |
'depth'
|
|
rot
|
Rotation angle, required if the grid has been previously rotated. |
0.0
|
|
vmin
|
Minimum value below which depths are masked. |
float('-inf')
|
|
fill_value
|
Fill value. |
FILL_VALUE
|
|
fac
|
Multiplying factor in case data are not in m or should be reversed. |
1.0
|
Returns:
| Name | Type | Description |
|---|---|---|
inpgrid |
str
|
SWAN INPgrid command instruction. |
readinp |
str
|
SWAN READinp command instruction. |
TODO |
Merge this method with `to_inpgrid`.
|
|
to_inpgrid
¶
to_inpgrid(
output_file: str,
var: str = "WIND",
fmt: str = "%.2f",
x: str = "lon",
y: str = "lat",
z1: str = "u10",
z2: str | None = None,
fac: float = 1.0,
rot: float = 0.0,
time: str = "time",
)
This function writes to a SWAN inpgrid format file (i.e. WIND)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
output_file
|
str
|
Local file name for the ascii output file. |
required |
var
|
str
|
Type of swan input, used to define the INPGRID/READGRID strings. |
'WIND'
|
fmt
|
str
|
String float formatter. |
'%.2f'
|
x
|
str
|
Name of the x-axis in the dataset. |
'lon'
|
y
|
str
|
Name of the y-axis in the dataset. |
'lat'
|
z1
|
str
|
Name of the first variable in the dataset. |
'u10'
|
z2
|
str | None
|
Name of the second variable in the dataset. |
None
|
fac
|
float
|
Multiplying factor in case data are not in m or should be reversed. |
1.0
|
rot
|
float
|
Rotation angle, required if the grid has been previously rotated. |
0.0
|
time
|
str
|
Name of the time variable in the dataset |
'time'
|
Returns:
| Name | Type | Description |
|---|---|---|
inpgrid |
str
|
SWAN INPgrid command instruction. |
readinp |
str
|
SWAN READinp command instruction. |
to_tpar_boundary
¶
to_tpar_boundary(
dest_path,
boundary,
interval,
x_var="lon",
y_var="lat",
hs_var="sig_wav_ht",
per_var="pk_wav_per",
dir_var="pk_wav_dir",
dir_spread=20.0,
)
This function writes parametric boundary forcing to a set of TPAR files at a given distance based on gridded wave output. It returns the string to be included in the Swan INPUT file.
At present simple nearest neighbour point lookup is used.
Args: TBD
dset_to_swan
¶
dset_to_swan(
dset: Dataset,
output_file: str,
variables: list,
fmt: str = "%4.2f",
fill_value: float = FILL_VALUE,
time_dim="time",
)
Convert xarray Dataset into SWAN ASCII file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dset
|
Dataset
|
Dataset to write in SWAN ASCII format. |
required |
output_file
|
str
|
Local file name for the ascii output file. |
required |
variables
|
list
|
Variables to write to ascii. |
required |
fmt
|
str
|
String float formatter. |
'%4.2f'
|
fill_value
|
float
|
Fill value. |
FILL_VALUE
|
time_dim
|
Name of the time dimension if available in the dataset. |
'time'
|
rompy_swan.boundary¶
SWAN Boundary Module
This module provides boundary condition handling for the SWAN model within the ROMPY framework.
MISSING_SPECTRA_HINT
module-attribute
¶
MISSING_SPECTRA_HINT = "The boundary points are probably outside the spectra dataset or beyond the selection tolerance: check `sel_method_kwargs` and the extent of the source, or use sel_method='nearest'."
Boundnest1
pydantic-model
¶
Boundnest1(**data: Any)
Bases: BoundaryWaveStation
SWAN BOUNDNEST1 NEST data class.
Fields:
-
id(str) -
source(Union[SOURCE_TYPES]) -
filter(Optional[Filter]) -
variables(Optional[list[str]]) -
coords(Optional[DatasetCoords]) -
crop_data(bool) -
buffer(float) -
time_buffer(list[int]) -
spacing(Optional[Union[float, Literal['parent']]]) -
sel_method(Literal['idw', 'nearest']) -
sel_method_kwargs(dict) -
grid_type(Literal['boundary_wave_station']) -
model_type(Literal['boundnest1', 'BOUNDNEST1']) -
rectangle(Literal['closed', 'open'])
Validators:
model_type
pydantic-field
¶
model_type: Literal["boundnest1", "BOUNDNEST1"] = (
"boundnest1"
)
Model type discriminator
rectangle
pydantic-field
¶
rectangle: Literal['closed', 'open'] = 'closed'
Defines whether boundary is defined over an closed or open rectangle
source
pydantic-field
¶
source: Union[SOURCE_TYPES]
Dataset source reader, must return a wavespectra-enabled xarray dataset in the open method
filter
pydantic-field
¶
Optional filter specification to apply to the dataset
variables
pydantic-field
¶
Subset of variables to extract from the dataset
coords
pydantic-field
¶
coords: Optional[DatasetCoords] = DatasetCoords()
Names of the coordinates in the dataset
crop_data
pydantic-field
¶
crop_data: bool = True
Update crop filter from Time object if passed to get method
buffer
pydantic-field
¶
buffer: float = 2.0
Space to buffer the grid bounding box if crop_data is True
time_buffer
pydantic-field
¶
Number of source data timesteps to buffer the time range if crop_data is True
spacing
pydantic-field
¶
Spacing between points along the grid boundary to retrieve data for. If None (default), points are defined from the the actual grid object passed to the get method. If 'parent', the resolution of the parent dataset is used to define the spacing.
sel_method
pydantic-field
¶
sel_method: Literal['idw', 'nearest'] = 'idw'
Wavespectra method to use for selecting boundary points from the dataset
grid_type
pydantic-field
¶
grid_type: Literal["boundary_wave_station"] = (
"boundary_wave_station"
)
Model type discriminator
get
¶
Write the data source to a new location.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
destdir
|
str | Path
|
Destination directory for the SWAN ASCII file. |
required |
grid
|
RegularGrid
|
Grid instance to use for selecting the boundary points. |
required |
time
|
Optional[TimeRange]
|
The times to filter the data to, only used if |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
filename |
Path
|
The filename of the written boundary file. |
cmd |
str
|
Boundary command string to render in the SWAN INPUT file |
check_for_typos
classmethod
¶
Suggest the closest field name for an unknown input key.
A field can be given by its name or, like in pydantic, by its alias.
plot_boundary
¶
Plot the boundary points on a map.
BoundspecBase
pydantic-model
¶
BoundspecBase(**data: Any)
Bases: BoundaryWaveStation, ABC
Base class for SWAN BOUNDSPEC data classes.
Fields:
-
id(str) -
source(Union[SOURCE_TYPES]) -
filter(Optional[Filter]) -
variables(Optional[list[str]]) -
coords(Optional[DatasetCoords]) -
crop_data(bool) -
buffer(float) -
time_buffer(list[int]) -
spacing(Optional[Union[float, Literal['parent']]]) -
sel_method(Literal['idw', 'nearest']) -
sel_method_kwargs(dict) -
grid_type(Literal['boundary_wave_station']) -
model_type(Literal['boundspecbase', 'BOUNDSPECBASE']) -
shapespec(SHAPESPEC) -
variable(bool) -
file_type(Literal['tpar', 'spec2d'])
Validators:
-
spacing_gt_zero→spacing -
unique_not_supported→sel_method_kwargs -
variable_not_implemented→variable
model_type
pydantic-field
¶
model_type: Literal["boundspecbase", "BOUNDSPECBASE"] = (
"boundspecbase"
)
Model type discriminator
shapespec
pydantic-field
¶
Spectral shape specification
source
pydantic-field
¶
source: Union[SOURCE_TYPES]
Dataset source reader, must return a wavespectra-enabled xarray dataset in the open method
filter
pydantic-field
¶
Optional filter specification to apply to the dataset
variables
pydantic-field
¶
Subset of variables to extract from the dataset
coords
pydantic-field
¶
coords: Optional[DatasetCoords] = DatasetCoords()
Names of the coordinates in the dataset
crop_data
pydantic-field
¶
crop_data: bool = True
Update crop filter from Time object if passed to get method
buffer
pydantic-field
¶
buffer: float = 2.0
Space to buffer the grid bounding box if crop_data is True
time_buffer
pydantic-field
¶
Number of source data timesteps to buffer the time range if crop_data is True
spacing
pydantic-field
¶
Spacing between points along the grid boundary to retrieve data for. If None (default), points are defined from the the actual grid object passed to the get method. If 'parent', the resolution of the parent dataset is used to define the spacing.
sel_method
pydantic-field
¶
sel_method: Literal['idw', 'nearest'] = 'idw'
Wavespectra method to use for selecting boundary points from the dataset
grid_type
pydantic-field
¶
grid_type: Literal["boundary_wave_station"] = (
"boundary_wave_station"
)
Model type discriminator
check_for_typos
classmethod
¶
Suggest the closest field name for an unknown input key.
A field can be given by its name or, like in pydantic, by its alias.
get
¶
Write the selected boundary data to a netcdf file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
destdir
|
str | Path
|
Destination directory for the netcdf file. |
required |
grid
|
RegularGrid
|
Grid instance to use for selecting the boundary points. |
required |
time
|
Optional[TimeRange]
|
The times to filter the data to, only used if |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
outfile |
Path
|
Path to the netcdf file. |
plot_boundary
¶
Plot the boundary points on a map.
BoundspecSide
pydantic-model
¶
BoundspecSide(**data: Any)
Bases: BoundspecBase
SWAN BOUNDSPEC SIDE data class.
TODO: Handle side definition on a rotated grid. TODO: Should SIDE VARIABE be supported? TODO: Support option to choose between mid-point or averaging? TODO: Does PAR need to be supported? Guess not as nonstationary isn't supported
Note
The 'spec1d' file type is not supported yet.
Fields:
-
id(str) -
source(Union[SOURCE_TYPES]) -
filter(Optional[Filter]) -
variables(Optional[list[str]]) -
coords(Optional[DatasetCoords]) -
crop_data(bool) -
buffer(float) -
time_buffer(list[int]) -
spacing(Optional[Union[float, Literal['parent']]]) -
sel_method(Literal['idw', 'nearest']) -
sel_method_kwargs(dict) -
grid_type(Literal['boundary_wave_station']) -
shapespec(SHAPESPEC) -
variable(bool) -
file_type(Literal['tpar', 'spec2d']) -
model_type(Literal['boundspecside', 'BOUNDSPECSIDE']) -
location(SIDE)
Validators:
-
spacing_gt_zero→spacing -
unique_not_supported→sel_method_kwargs -
variable_not_implemented→variable
model_type
pydantic-field
¶
model_type: Literal["boundspecside", "BOUNDSPECSIDE"] = (
"boundspecside"
)
Model type discriminator
source
pydantic-field
¶
source: Union[SOURCE_TYPES]
Dataset source reader, must return a wavespectra-enabled xarray dataset in the open method
filter
pydantic-field
¶
Optional filter specification to apply to the dataset
variables
pydantic-field
¶
Subset of variables to extract from the dataset
coords
pydantic-field
¶
coords: Optional[DatasetCoords] = DatasetCoords()
Names of the coordinates in the dataset
crop_data
pydantic-field
¶
crop_data: bool = True
Update crop filter from Time object if passed to get method
buffer
pydantic-field
¶
buffer: float = 2.0
Space to buffer the grid bounding box if crop_data is True
time_buffer
pydantic-field
¶
Number of source data timesteps to buffer the time range if crop_data is True
spacing
pydantic-field
¶
Spacing between points along the grid boundary to retrieve data for. If None (default), points are defined from the the actual grid object passed to the get method. If 'parent', the resolution of the parent dataset is used to define the spacing.
sel_method
pydantic-field
¶
sel_method: Literal['idw', 'nearest'] = 'idw'
Wavespectra method to use for selecting boundary points from the dataset
grid_type
pydantic-field
¶
grid_type: Literal["boundary_wave_station"] = (
"boundary_wave_station"
)
Model type discriminator
shapespec
pydantic-field
¶
Spectral shape specification
get
¶
Write the data source to a new location.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
destdir
|
str | Path
|
Destination directory for the SWAN ASCII file. |
required |
grid
|
RegularGrid
|
Grid instance to use for selecting the boundary points. |
required |
time
|
Optional[TimeRange]
|
The times to filter the data to, only used if |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
filename |
Path
|
The filename of the written boundary file. |
cmd |
str
|
Boundary command string to render in the SWAN INPUT file |
check_for_typos
classmethod
¶
Suggest the closest field name for an unknown input key.
A field can be given by its name or, like in pydantic, by its alias.
plot_boundary
¶
Plot the boundary points on a map.
BoundspecSegmentXY
pydantic-model
¶
BoundspecSegmentXY(**data: Any)
Bases: BoundspecBase
SWAN BOUNDSPEC SEGMENT data class.
TODO: Handle side definition on a rotated grid. TODO: Should SIDE VARIABE be supported? TODO: Support option to choose between mid-point or averaging? TODO: Does PAR need to be supported? Guess not as nonstationary isn't supported TODO: If SIDES, ensure continuous
Note
Segments are defined from adjacent point locations so the order in which the points are defined is important. When using SIDES, please ensure SIDES are adjacent to each other and have correct directions (ccw or clockwise) accordint to the order in which each side is prescribed.
Note
The 'spec1d' file type is not supported yet.
Fields:
-
id(str) -
source(Union[SOURCE_TYPES]) -
filter(Optional[Filter]) -
variables(Optional[list[str]]) -
coords(Optional[DatasetCoords]) -
crop_data(bool) -
buffer(float) -
time_buffer(list[int]) -
spacing(Optional[Union[float, Literal['parent']]]) -
sel_method(Literal['idw', 'nearest']) -
sel_method_kwargs(dict) -
grid_type(Literal['boundary_wave_station']) -
shapespec(SHAPESPEC) -
variable(bool) -
file_type(Literal['tpar', 'spec2d']) -
model_type(Literal['boundspecsegmentxy', 'BOUNDSPECSEGMENTXY']) -
location(Union[SIDE, SIDES, XY])
Validators:
-
spacing_gt_zero→spacing -
unique_not_supported→sel_method_kwargs -
variable_not_implemented→variable
model_type
pydantic-field
¶
model_type: Literal[
"boundspecsegmentxy", "BOUNDSPECSEGMENTXY"
] = "boundspecsegmentxy"
Model type discriminator
location
pydantic-field
¶
The side of the grid to apply the boundary to
source
pydantic-field
¶
source: Union[SOURCE_TYPES]
Dataset source reader, must return a wavespectra-enabled xarray dataset in the open method
filter
pydantic-field
¶
Optional filter specification to apply to the dataset
variables
pydantic-field
¶
Subset of variables to extract from the dataset
coords
pydantic-field
¶
coords: Optional[DatasetCoords] = DatasetCoords()
Names of the coordinates in the dataset
crop_data
pydantic-field
¶
crop_data: bool = True
Update crop filter from Time object if passed to get method
buffer
pydantic-field
¶
buffer: float = 2.0
Space to buffer the grid bounding box if crop_data is True
time_buffer
pydantic-field
¶
Number of source data timesteps to buffer the time range if crop_data is True
spacing
pydantic-field
¶
Spacing between points along the grid boundary to retrieve data for. If None (default), points are defined from the the actual grid object passed to the get method. If 'parent', the resolution of the parent dataset is used to define the spacing.
sel_method
pydantic-field
¶
sel_method: Literal['idw', 'nearest'] = 'idw'
Wavespectra method to use for selecting boundary points from the dataset
grid_type
pydantic-field
¶
grid_type: Literal["boundary_wave_station"] = (
"boundary_wave_station"
)
Model type discriminator
shapespec
pydantic-field
¶
Spectral shape specification
get
¶
Write the data source to a new location.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
destdir
|
str | Path
|
Destination directory for the SWAN ASCII file. |
required |
grid
|
RegularGrid
|
Grid instance to use for selecting the boundary points. |
required |
time
|
Optional[TimeRange]
|
The times to filter the data to, only used if |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
filenames |
list
|
The filenames of the written boundary files. |
cmd |
str
|
Boundary command string to render in the SWAN INPUT file |
check_for_typos
classmethod
¶
Suggest the closest field name for an unknown input key.
A field can be given by its name or, like in pydantic, by its alias.
plot_boundary
¶
Plot the boundary points on a map.
check_spectra
¶
Raise an error if the boundary spectra have missing values.