rubem.configuration.raster_grid_area.RasterGrid

class RasterGrid(size=None, /, **data)[source]

Bases: BaseModel

Properties of the raster grid.

Parameters:

size (float | None) – Cell size, in metres. Must be a finite positive number whose square is finite.

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

Attributes

area

Cell area, in square metres.

size

property area: float

Cell area, in square metres.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'frozen': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].