energy_analysis.canary_kgpv.pipeline#
Stream native climate pixels through KGPV without expanding entire COGs.
This is an exploratory mixed-period application: CanaryClim 1979-2013 and Global Solar Atlas 1994-2018. It deliberately uses the cellwise classifier, not map_kgpv’s interface for climatologies sharing one baseline. Neither the source periods nor the coarser solar information are relabelled to match.
- energy_analysis.canary_kgpv.pipeline.file_sha256(path)[source]#
- Parameters:
path (Path)
- Return type:
str
- energy_analysis.canary_kgpv.pipeline.climate_path(directory, variable, month)[source]#
- Parameters:
directory (Path)
variable (str)
month (int)
- Return type:
Path
- energy_analysis.canary_kgpv.pipeline.decode_climate(raw, source, variable)[source]#
Mask the encoded sentinel before applying the file’s scale and offset.
- Parameters:
raw (ndarray)
variable (str)
- Return type:
ndarray
- energy_analysis.canary_kgpv.pipeline.prepare_maps(raw_directory, output_directory, *, islands=('el_hierro', 'la_palma', 'la_gomera', 'tenerife', 'gran_canaria', 'fuerteventura', 'lanzarote'), tile_size=512)[source]#
Write two-band native GeoTIFFs, with bounded tile working memory.
Band 1: KGPV class 1..12 (0 unclassified). Band 2: January temperature’s native valid footprint (1 land/input coverage, 0 outside). Missing climate or solar inputs stay unclassified; no coastal extrapolation is performed. Radiation is nearest-cell sampled before classification, retaining its 9-arcsecond source support. All output climate pixels keep native centres.
- Parameters:
raw_directory (Path)
output_directory (Path)
islands (tuple[str, ...])
tile_size (int)
- Return type:
dict