energy_data_retrieval.pv_catalogue.tenerife#
Stage the ITER Tenerife inventory and installation-level monthly energy.
- class energy_data_retrieval.pv_catalogue.tenerife.TenerifeInstallation(source_row, installation_id, name, nominal_kw, latitude, longitude)[source]#
Bases:
objectOne positively identified PV installation with nominal kW of unspecified basis.
- Parameters:
source_row (int)
installation_id (int)
name (str)
nominal_kw (float)
latitude (float)
longitude (float)
- source_row: int#
- installation_id: int#
- name: str#
- nominal_kw: float#
- latitude: float#
- longitude: float#
- class energy_data_retrieval.pv_catalogue.tenerife.TenerifeEnergyMonth(period_start, period_end, exported_as_reported, imported_as_reported)[source]#
Bases:
objectNative monthly import and export values pending unit and identity review.
- Parameters:
period_start (date)
period_end (date)
exported_as_reported (int | float)
imported_as_reported (int | float)
- period_start: date#
- period_end: date#
- exported_as_reported: int | float#
- imported_as_reported: int | float#
- energy_data_retrieval.pv_catalogue.tenerife.read_tenerife_inventory(content, *, sha256)[source]#
Read a checksummed CSV and stage only rows explicitly classified as PV.
Native IDs must be unique across the complete source, including wind rows. Coordinates are publisher installation points. No AC/DC or status inference and no canonical matching are performed here.
- Parameters:
content (bytes)
sha256 (str)
- Return type:
tuple[int, list[TenerifeInstallation]]
- energy_data_retrieval.pv_catalogue.tenerife.read_tenerife_monthly_energy(content, *, sha256, expected_installation_id)[source]#
Read one named installation’s monthly series without normalizing units.
Match the caller’s reviewed native ID, reject duplicate or unordered periods and verify that each row covers a complete calendar month. Gaps stay visible.
- Parameters:
content (bytes)
sha256 (str)
expected_installation_id (int)
- Return type:
list[TenerifeEnergyMonth]