energy_data_retrieval.hydro_catalogue.nz#

Parse dated New Zealand dispatch observations without inferring plant totals.

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

Retain original row locators and intervals, including sentinel dates.

Multiple connections and effective periods are observations, not independent plants or generating units. Never sum their ratings or infer present status.

Parameters:

data (bytes)

Return type:

list[dict[str, Any]]

energy_data_retrieval.hydro_catalogue.nz.enrich_reviewed(existing, item, *, reviewed_record_id, owner_source_id, now)[source]#

Attach one manually corroborated dispatch row; never sum or infer operation.

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

  • item (dict[str, Any])

  • reviewed_record_id (str)

  • owner_source_id (str)

  • now (str)

Return type:

dict[str, Any]