rencal.models.plant_model
rencal.models.plant_model defines the validated plant dataset model for location, technology, and capacity metadata.
Constructor
Section titled “Constructor”PlantDatasetModel
Section titled “PlantDatasetModel”class PlantDatasetModel(PandasDatasetModel): PlantDatasetModelDataset model for CfD plant/facility metadata.
Required Columns plant_id, latitude, longitude, technology, capacity
Returns PlantDatasetModel
Methods
Section titled “Methods”PlantDatasetModel.validate_data
Section titled “PlantDatasetModel.validate_data”validate_data(data: pd.DataFrame) -> pd.DataFrameValidates required schema columns and dtypes.
Returns pd.DataFrame
PlantDatasetModel.get_geographic_bounds
Section titled “PlantDatasetModel.get_geographic_bounds”get_geographic_bounds() -> dict[str, float]Returns geographic min/max latitude and longitude.
Returns dict[str, float]
PlantDatasetModel.filter_by_technology
Section titled “PlantDatasetModel.filter_by_technology”filter_by_technology(technologies: list[str]) -> PlantDatasetModelFilters plants by technology labels.
Returns PlantDatasetModel
Raises
ValueError: If no plants match selected technologies.
PlantDatasetModel.get_wind_plants
Section titled “PlantDatasetModel.get_wind_plants”get_wind_plants() -> PlantDatasetModelConvenience filter returning wind plants only.
Returns PlantDatasetModel
PlantDatasetModel.to_pandas
Section titled “PlantDatasetModel.to_pandas”to_pandas() -> pd.DataFrameReturns DataFrame copy.
Returns pd.DataFrame
PlantDatasetModel.to_xarray
Section titled “PlantDatasetModel.to_xarray”to_xarray() -> xr.DatasetConverts DataFrame to xarray dataset.
Returns xr.Dataset

