datasets package
Submodules
datasets.amsre module
Class definition for the AMSR-E Soil Mositure data type.
-
class
datasets.amsre.
Amsre
(uncert=None)[source]
Bases: datasets.soilmoist.Soilmoist
-
datasets.amsre.
dates
(dbname)[source]
-
datasets.amsre.
download
(dbname, dts, bbox)[source]
Downloads AMSR-E soil moisture data for a set of dates dts
and imports them into the PostGIS database outpath. Optionally
uses a bounding box to limit the region with [minlon, minlat, maxlon, maxlat].
datasets.chirps module
- RHEAS module for retrieving rainfall data from the Climate Hazard Group
- InfraRed Precipitation with Station (CHIRPS) data archive.
-
datasets.chirps.
dates
(dbname)[source]
-
datasets.chirps.
download
(dbname, dts, bbox=None)[source]
-
datasets.chirps.
fetch
(*args, **kwargs)[source]
Downloads CHIRPS rainfall data from the data server.
datasets.cmorph module
- RHEAS module for retrieving the CMORPH rainfall data (daily mean morphed) stored
- at the IRI Data Library.
-
datasets.cmorph.
dates
(dbname)[source]
-
datasets.cmorph.
download
(dbname, dts, bbox=None)[source]
-
datasets.cmorph.
fetch
(*args, **kwargs)[source]
Downloads CMORPH rainfall data from the IRI data server,
and imports them into the database db. Optionally uses a bounding box to
limit the region with [minlon, minlat, maxlon, maxlat].
datasets.decorators module
Definition for RHEAS Datasets decorators.
-
datasets.decorators.
ftp
(fetch)[source]
Decorator for downloading files from FTP sites.
-
datasets.decorators.
geotiff
(fetch)[source]
Decorator for reading data from raster files.
-
datasets.decorators.
http
(fetch)[source]
Decorator for downloading files from HTTP sites.
-
datasets.decorators.
netcdf
(fetch)[source]
Decorator for fetching NetCDF files (local or from Opendap servers).
-
datasets.decorators.
path
(fetch)[source]
Decorator for getting files from local path.
-
datasets.decorators.
resetDatetime
(dt)[source]
Set time to 00:00 to align with daily data.
datasets.gpm module
RHEAS module for retrieving the GPM daily precipitation data product (IMERG).
-
datasets.gpm.
dates
(dbname)[source]
-
datasets.gpm.
download
(dbname, dts, bbox)[source]
Downloads the PRISM data products for a set of
dates dt and imports them into the PostGIS database dbname.
datasets.grace module
- RHEAS module for retrieving water storage anomaly data from the
- GRACE satellite mission.
-
class
datasets.grace.
Grace
[source]
-
datasets.grace.
dates
(dbname)[source]
-
datasets.grace.
download
(dbname, dts, bbox=None)[source]
-
datasets.grace.
fetch
(*args, **kwargs)[source]
Downloads GRACE water storage anomaly data from the data server.
-
datasets.grace.
fetchScalingGrid
(*args, **kwargs)[source]
Downloads GRACE scaling factor grid, in order to multiply the retrieved
land data. See http://grace.jpl.nasa.gov/data/get-data/monthly-mass-grids-land for details.
datasets.iri module
RHEAS module for retrieving meteorological forecasts/hindcasts
from the IRI FD Seasonal Forecast Tercile Probabilities.
-
datasets.iri.
dates
(dbname)[source]
-
datasets.iri.
download
(dbname, dts, bbox=None)[source]
Downloads IRI forecast tercile probability data from the IRI data server,
and imports them into the database dbname. Optionally uses a bounding box to
limit the region with [minlon, minlat, maxlon, maxlat].
-
datasets.iri.
generate
(options, models)[source]
Generate meteorological forecast forcings by resampling fine-scale climatology.
-
datasets.iri.
ingest
(dbname, filename, dt, lt, cname, stname)[source]
Imports Geotif filename into database dbname.
datasets.mcd15 module
RHEAS module for retrieving MODIS Leaf Area Index data (MCD15 product).
-
datasets.mcd15.
dates
(dbname)[source]
-
datasets.mcd15.
download
(dbname, dts, bbox)[source]
Downloads the combined MODIS LAI data product MCD15 for
a specific date dt and imports them into the PostGIS database dbname.
datasets.merra module
RHEAS module for retrieving maximum, minimum temperature
and wind speed from the MERRA Reanalysis.
-
datasets.merra.
dates
(dbname)[source]
-
datasets.merra.
download
(dbname, dts, bbox=None)[source]
Downloads MERRA Reanalysis data from the NASA data server,
and imports them into the database dbname. Optionally uses a bounding box to
limit the region with [minlon, minlat, maxlon, maxlat].
datasets.mod10 module
Class definition for the MODIS snow cover fraction data type.
-
class
datasets.mod10.
Mod10
[source]
Bases: object
-
datasets.mod10.
dates
(dbname)[source]
-
datasets.mod10.
download
(dbname, dts, bbox)[source]
Downloads the Terra MODIS snow cover fraction data product MOD10 for
a specific date dt and imports them into the PostGIS database dbname.
datasets.mod16 module
RHEAS module for retrieving MODIS evapotranspiration data (MOD16 product).
-
class
datasets.mod16.
Mod16
[source]
-
datasets.mod16.
dates
(dbname)[source]
-
datasets.mod16.
download
(dbname, dts, bbox)[source]
Downloads the MODIS evapotranspiration data product MOD16 for
a set of dates dt and imports them into the PostGIS database dbname.
datasets.modis module
Module definition for MODIS tiles.
-
datasets.modis.
findTiles
(bbox)[source]
Returns the tile IDs that need to be downloaded for
a given region bounded by bbox.
datasets.modscag module
Class definition for the MODSCAG snow cover fraction data type.
-
class
datasets.modscag.
Modscag
(uncert=None)[source]
Bases: datasets.snowcover.Snowcover
-
datasets.modscag.
dates
(dbname)[source]
-
datasets.modscag.
download
(dbname, dts, bbox)[source]
Downloads the MODSCAG snow cover fraction data product for a specific
date dt and imports it into the PostGIS database dbname.
datasets.ncep module
RHEAS module for retrieving maximum and minimum
temperature from the NCEP Reanalysis stored at the IRI Data Library.
-
datasets.ncep.
dates
(dbname)[source]
-
datasets.ncep.
download
(dbname, dts, bbox=None)[source]
Downloads NCEP Reanalysis data from the IRI data server,
and imports them into the database db. Optionally uses a bounding box to
limit the region with [minlon, minlat, maxlon, maxlat].
datasets.prism module
RHEAS module for retrieving PRISM meteorological data.
-
datasets.prism.
dates
(dbname)[source]
-
datasets.prism.
download
(dbname, dts, bbox)[source]
Downloads the PRISM data products for a set of
dates dt and imports them into the PostGIS database dbname.
datasets.rfe2 module
- RHEAS module for retrieving the RFEv2 rainfall data stored
- at the IRI Data Library.
-
datasets.rfe2.
dates
(dbname)[source]
-
datasets.rfe2.
download
(dbname, dts, bbox=None)[source]
-
datasets.rfe2.
fetch
(*args, **kwargs)[source]
Downloads RFE2 rainfall data from the data server.
datasets.smap module
Class definition for the SMAP Soil Mositure data type.
-
class
datasets.smap.
Smap
(uncert=None)[source]
Bases: datasets.soilmoist.Soilmoist
-
datasets.smap.
dates
(dbname)[source]
-
datasets.smap.
download
(dbname, dts, bbox=None)[source]
Downloads SMAP soil mositure data for a set of dates dt
and imports them into the PostGIS database dbname. Optionally
uses a bounding box to limit the region with [minlon, minlat, maxlon, maxlat].
datasets.smos module
Class definition for the SMOS Soil Mositure data type.
-
class
datasets.smos.
Smos
(uncert=None)[source]
Bases: datasets.soilmoist.Soilmoist
-
datasets.smos.
dates
(dbname)[source]
-
datasets.smos.
download
(dbname, dt, bbox=None)[source]
Downloads SMOS soil mositure data for a set of dates dt
and imports them into the PostGIS database dbname. Optionally
uses a bounding box to limit the region with [minlon, minlat, maxlon, maxlat].
datasets.soilmoist module
Definition for abstract soil moisture class.
-
class
datasets.soilmoist.
Soilmoist
(uncert=None)[source]
Bases: object
-
E
(nens)[source]
Generate observation error vector.
-
get
(dt, models)[source]
Retrieve observations from database for date dt.
-
hx
(models, dt)[source]
Retrieve observed variable from database and resample to observation resolution.
-
x
(dt, models)[source]
Retrieve state variable from database.
datasets.trmm module
- RHEAS module for retrieving the TRMM rainfall data (3B42v7) stored
- at the IRI Data Library.
-
datasets.trmm.
dates
(dbname)[source]
-
datasets.trmm.
download
(dbname, dts, bbox=None)[source]
-
datasets.trmm.
fetch
(*args, **kwargs)[source]
Downloads TRMM 3B42v7 rainfall data from the IRI data server,
and imports them into the database dbname. Optionally uses a bounding box to
limit the region with [minlon, minlat, maxlon, maxlat].
Module contents
Definition for RHEAS Datasets package.
-
datasets.
dates
(dbname, tablename)[source]
Check what dates need to be imported for a specific dataset.
-
datasets.
download
(dbname, dts, bbox, conf, name)[source]
Download a generic dataset based on user-provided information.
-
datasets.
ingest
(dbname, table, data, lat, lon, res, t, resample=True, overwrite=True)[source]
Import data into RHEAS database.
-
datasets.
readDatasetList
(filename)[source]
Read list of datasets to be fetched and imported into
the RHEAS database.
-
datasets.
spatialSubset
(lat, lon, res, bbox)[source]
Subsets arrays of latitude/longitude based on bounding box bbox.
-
datasets.
uncompress
(filename, outpath)[source]
Uncompress archived files.