task_geo.dataset_builders.nasa package¶
Submodules¶
Module contents¶
Functions
|
Retrieve meteorologic data from NASA. |
-
task_geo.dataset_builders.nasa.
nasa
(df, start_date, end_date=None, parms=None, join=True)[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(pandas.DataFrame): Dataset with columns lon, and lat start_date(datetime): Start date for the time series end_date(datetime): End date fo rthe time series (optional) parms(list of strings):
Desired data, accepted are ‘temperature’, ‘humidity’, and ‘pressure’ (optional) Defaults to all.
- join(bool): Determine if the meteorologic data has to be joined to the
original dataset
- pandas.DataFrame:
Columns are lon, lat, date, and the desired data, plus the columns of the original dataframe if join=True.