energy_analysis.chile_kgpv.pipeline#

Mainland Chile KGPV on the native 9-arcsecond Global Solar Atlas lattice.

Climate remains 30 arcseconds. Extending the output lattice southward does not extend solar coverage: missing climate or GHI yields class zero, including all land south of the Chile GSA archive’s 45 S edge. No solar source is spliced in.

energy_analysis.chile_kgpv.pipeline.file_sha256(path)[source]#
Parameters:

path (Path)

Return type:

str

energy_analysis.chile_kgpv.pipeline.mainland_boundary(path)[source]#

Largest connected Chile polygon by WGS84 geodesic area, with its holes.

This explicit contiguous-land policy excludes Tierra del Fuego, Chiloe, offshore archipelagos and Antarctic claims. No simplification is applied.

Parameters:

path (Path)

Return type:

CountrySelection

energy_analysis.chile_kgpv.pipeline.climate_path(raw, variable, month)[source]#
Parameters:
  • raw (Path)

  • variable (str)

  • month (int)

Return type:

Path

energy_analysis.chile_kgpv.pipeline.decode_climate(values, source, variable)[source]#

Decode masked native integer values; K to Celsius, kg/m²/month to mm.

Parameters:
  • values (ndarray)

  • variable (str)

Return type:

ndarray

energy_analysis.chile_kgpv.pipeline.prepare_map(raw, output, *, tile_size=512)[source]#

Classify bounded tiles, retaining the solar lattice and mainland mask.

Band 1 is class 1..12, zero unclassified. Band 2 is the polygon-centre mask (1 mainland, 0 outside). Band 3 is complete-input availability (0/1). Nearest source cells are used; there is no interpolation or coastal fill.

Parameters:
  • raw (Path)

  • output (Path)

  • tile_size (int)

Return type:

dict