energy_data_retrieval.sources.bsrn.stations#
Official PANGAEA BSRN station inventory, separate from monthly DOI discovery.
The inventory lists station events and their metadata. Event start/end dates do not establish that observations exist for every month, variable or location.
- energy_data_retrieval.sources.bsrn.stations.normalize_stations(text, *, maximum_stations=1000)[source]#
Parse bounded official TSV, retaining native names, fields and event dates.
- Parameters:
text (str)
maximum_stations (int)
- Return type:
DataFrame
- class energy_data_retrieval.sources.bsrn.stations.BSRNStations(frame: 'pd.DataFrame', request: 'RequestRecord', source_text: 'str')[source]#
Bases:
object- Parameters:
frame (DataFrame)
request (RequestRecord)
source_text (str)
- frame: DataFrame#
- request: RequestRecord#
- source_text: str#
- energy_data_retrieval.sources.bsrn.stations.fetch_stations(http)[source]#
Fetch only the official inventory, without downloading monthly observations.
- Parameters:
http (HTTPClient)
- Return type:
- energy_data_retrieval.sources.bsrn.stations.save_stations(result, output)[source]#
Save a verifiable inventory and its exact native TSV for later offline discovery.
- Parameters:
result (BSRNStations)
output (Path)
- Return type: