revrt.models.cost_layers.TransmissionLayerCreationConfig#
- class TransmissionLayerCreationConfig(*, template_file: Annotated[Path, PathType(path_type=file)], routing_file: Path, input_layer_dir: Annotated[Path, PathType(path_type=dir)] = PosixPath('.'), masks_dir: Path = PosixPath('.'), output_tiff_dir: Path = PosixPath('.'), layers: list[LayerConfig] | None = None, dry_costs: DryCosts | None = None, merge_friction_and_barriers: MergeFrictionBarriers | None = None)[source]#
Bases:
BaseModelConfig for transmission layer creation
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
Template GeoTIFF/Zarr file for shape, profile, and transform
Layer file to store results in
Directory to look for GeoTIFFs in, in addition to '.'
Optional path for mask GeoTIFFs
Directory to store output tiff files in
Optional configuration for layers to be built
Optional dry cost layer
Optional config to merge friction barriers
- template_file: Annotated[Path, PathType(path_type=file)]#
Template GeoTIFF/Zarr file for shape, profile, and transform
- input_layer_dir: Annotated[Path, PathType(path_type=dir)]#
Directory to look for GeoTIFFs in, in addition to ‘.’
- layers: list[LayerConfig] | None#
Optional configuration for layers to be built
At least one of layers, dry_costs, or merge_friction_and_barriers must be defined.
- dry_costs: DryCosts | None#
Optional dry cost layer
At least one of layers, dry_costs, or merge_friction_and_barriers must be defined.
- merge_friction_and_barriers: MergeFrictionBarriers | None#
Optional config to merge friction barriers
At least one of layers, dry_costs, or merge_friction_and_barriers must be defined.