API reference#
RESource currently exposes its established module API while class and module names
are standardized incrementally. New applications should import through the
RESource namespace.
Assessment orchestration#
from RESource.RESources import RESources_builder
builder = RESources_builder(
config_file_path="config/config_BC_baseline.yaml",
region_short_code="BC",
resource_type="wind",
weather_year=2024,
)
builder.build()
RESources_builder coordinates boundary preparation, grid construction, land
constraints, climate time series, capacity estimation, scoring, and clustering.
Main classes#
Area |
Import |
Responsibility |
|---|---|---|
Configuration |
|
Shared YAML configuration and region metadata |
Boundaries |
|
Administrative boundary acquisition and preparation |
Cells |
|
Spatial assessment grid generation |
Capacity |
|
Land-constrained capacity and cost processing |
Climate |
|
Weather and capacity-factor time series |
Economics |
|
LCOE scoring and site ranking |
Wind atlas |
|
Global Wind Atlas integration |
Land cover |
|
GAEZ raster processing |
Storage |
|
HDF5 persistence |
Technology |
|
Wind turbine metadata |
Units |
|
Unit metadata and conversion support |
Functional modules#
RESource.cluster: spatial clustering and representative-site aggregation.RESource.visuals: static and interactive result visualizations.RESource.utility: configuration, download, file, and geospatial helpers.RESource.analytics: sensitivity and multiyear analytical workflows.RESource.lcoe_calculator: technology-cost extraction and LCOE processing.
Command-line API#
- RESource.cli.build_parser() ArgumentParser[source]#
Create the RESource command-line argument parser.
- RESource.cli.main(start_dt: datetime | None = None) int[source]#
Run configured wind and solar assessments.
- Parameters:
start_dt -- Optional start timestamp used for runtime reporting.
- Raises:
SystemExit -- If arguments or configuration are invalid.
The executable entry point is resource = RESource.cli:entrypoint.
Compatibility#
The former RES namespace is deprecated but remains importable during the
migration period. New code and documentation must use RESource.