hydromt.data_adapter.DatasetAdapter.to_stac_catalog#
- DatasetAdapter.to_stac_catalog(on_error: ErrorHandleMethod = ErrorHandleMethod.COERCE)[source]#
Convert a dataset into a STAC Catalog representation.
The collection will contain an asset for each of the associated files.
- Parameters:
(str (- on_error) – Options are: “raise” to raise an error on failure, “skip” to skip the dataset on failure, and “coerce” (default) to set default values on failure.
optional) (
The error handling strategy.
) – Options are: “raise” to raise an error on failure, “skip” to skip the dataset on failure, and “coerce” (default) to set default values on failure.
- Returns:
- Optional[StacCatalog] – if the dataset was skipped.
- Return type:
The STAC Catalog representation
ofthe dataset
, orNone