task_geo.data_sources.noaa.references module

Functions

filter_active_stations_map_country()

Filter active stations using inventory data and returns a dictionary country -> stations

generate_daily_reports_column_info()

This function was used to generate the colnames and colspecs of DATASETS[‘daily_report’].

get_country_territory_codes_map(df_countries)

Generate the mapping of countries and all their territories codes.

get_territory_codes(name, countries)

Get all the codes for territories that belong to another country.

load_dataset(dataset_name)

Load a downloaded dataset as a pandas dataframe.

task_geo.data_sources.noaa.references.filter_active_stations_map_country()[source]

Filter active stations using inventory data and returns a dictionary country -> stations

task_geo.data_sources.noaa.references.generate_daily_reports_column_info()[source]

This function was used to generate the colnames and colspecs of DATASETS[‘daily_report’].

task_geo.data_sources.noaa.references.get_country_territory_codes_map(df_countries)[source]

Generate the mapping of countries and all their territories codes.

task_geo.data_sources.noaa.references.get_territory_codes(name, countries)[source]

Get all the codes for territories that belong to another country.

task_geo.data_sources.noaa.references.load_dataset(dataset_name)[source]

Load a downloaded dataset as a pandas dataframe.

Parameters

dataset_name (str) – Name of the dataset, supported values are ‘countries’, ‘stations’, ‘inventory’ and the value of a station ID.

Returns

pandas.DataFrame