energy_data_retrieval.hydro_catalogue.iha#

Historical IHA India evidence; explicit reviewed crosswalks, never fuzzy merges.

energy_data_retrieval.hydro_catalogue.iha.parse_inventory(data)[source]#

Read Windows-1252 CSV with original row locators and distinct asset classes.

Parameters:

data (bytes)

Return type:

list[dict[str, Any]]

energy_data_retrieval.hydro_catalogue.iha.enrich(existing, item, *, source_id, reviewed_record_id, now)[source]#

Apply an explicitly reviewed name/capacity/station-location crosswalk.

Keep source status, capacity, ownership and hydraulic ratings as historical raw evidence. Do not infer current operation, reservoir energy or plant scope.

Parameters:
  • existing (dict[str, Any])

  • item (dict[str, Any])

  • source_id (str)

  • reviewed_record_id (str)

  • now (str)

Return type:

dict[str, Any]