task_geo.dataset_builders.nasa.nasa_connector module¶
Functions
|
Retrieve meteorologic data from NASA. |
|
Extract data for a single location. |
-
task_geo.dataset_builders.nasa.nasa_connector.
nasa_connector
(df_locations, start_date, end_date=None, parms=None)[source]¶ Retrieve meteorologic data from NASA.
Given a dataset with columns country, region, sub_region, lon, and lat, for each geographic coordinate (lon, lat) corresponding to a place (specified if country, region, or sub_region) extract the time series of the desired data at the location.
df_locations(pandas.DataFrame): Dataset with columns lon, and lat start_date(datetime): Start date for the time series end_date(datetime): End date for the time series (optional) parms(list of strings): Desired data, accepted are ‘temperature’,
‘humidity’, and ‘pressure’ (optional)
- pandas.DataFrame: Columns are country, region, sub_region (non-null),
lon, lat, date, and the desired data.
-
task_geo.dataset_builders.nasa.nasa_connector.
nasa_data_loc
(lat, lon, str_start_date, str_end_date, parms_str)[source]¶ Extract data for a single location.
- Parameters
lat (string) –
lon (string) –
str_start_date (string) –
str_end_date (string) –
parms_str (string) –
- Returns
df
- Return type
pandas.DataFrame