reVeal.config.config.BaseGridConfig#
- class BaseGridConfig(*, grid: Annotated[Path, PathType(path_type=file)], grid_ext: str | None = None, grid_flavor: str | None = None, grid_crs: str | None = None)[source]#
Bases:
BaseModelStrictBase Configuration object for gridded commands.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
Methods
Dynamically set the crs property.
Dynamically set the grid_ext property.
Dynamically set the dset_flavor.
Attributes
model_computed_fieldsConfiguration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
Get extra fields set during validation.
model_fieldsReturns the set of fields that have been explicitly set on this model instance.
gridgrid_extgrid_flavorgrid_crs- set_grid_flavor()[source]#
Dynamically set the dset_flavor.
- Raises:
TypeError – A TypeError will be raised if the input dset is not either a geoparquet or compatible with reading with ogr.
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].