SRTM
https://opendap.cr.usgs.gov/opendap/hyrax/SRTMGL1_NUMNC.003/contents.html
- tiles_intersect(latlim, lonlim)
Creates a list of server-side filenames for tiles that intersect with latlim and lonlim for the selected product.
- Parameters
latlim (list) – Latitude limits of area of interest.
lonlim (list) – Longitude limits of area of interest.
- Returns
Server-side filenames for tiles.
- Return type
list
- default_vars(product_name, req_vars=['z'])
Given a product_name and a list of requested variables, returns a dictionary with metadata on which exact layers need to be requested from the server, how they should be renamed, and how their dimensions are defined.
- Parameters
product_name (str) – Name of the product.
req_vars (list) – List of variables to be collected.
- Returns
Metadata on which exact layers need to be requested from the server.
- Return type
dict
- default_post_processors(product_name, req_vars=['z'])
Given a product_name and a list of requested variables, returns a dictionary with a list of functions per variable that should be applied after having collected the data from a server.
- Parameters
product_name (str) – Name of the product.
req_vars (list) – List of variables to be collected.
- Returns
Functions per variable that should be applied to the variable.
- Return type
dict
- fn_func(product_name, tile)
Returns a client-side filename at which to store data.
- Parameters
product_name (str) – Name of the product to download.
tile (str) – Name of the server-side tile to download.
- Returns
Filename.
- Return type
str
- url_func(product_name, tile)
Returns a url at which to collect MERRA2 data.
- Parameters
product_name (None) – Not used.
tile (str) – Name of the server-side tile to download.
- Returns
The url.
- Return type
str
- download(folder, latlim, lonlim, product_name='30M', req_vars=['z'], variables=None, post_processors=None, **kwargs)
Download SRTM data and store it in a single netCDF file.
- Parameters
folder (str) – Path to folder in which to store results.
latlim (list) – Latitude limits of area of interest.
lonlim (list) – Longitude limits of area of interest.
timelim (list) – Period for which to prepare data.
product_name (str, optional) – Name of the product to download, by default “30M”.
req_vars (list, optional) – Which variables to download for the selected product, by default [“z”].
variables (dict, optional) – Metadata on which exact layers need to be requested from the server, by default None.
post_processors (dict, optional) – Functions per variable that should be applied to the variable, by default None.
- Returns
Downloaded data.
- Return type
xr.Dataset