e2o_getvar - retrieve variables

e2o_getval gets variables from the server for a specific region (specified in the ini file) and optionally resamples those to a specified Digital Elevation Model (DEM). e2o_getvar outputs daily values in the original units. The script does not do any physical downscaling other than simple interpolation. Use the e2o_calculateEvaporation script for more elaborate downscaling options.

Usage:

e2o_getvar.py -I the_ini_file

ini file configuration

The .ini file below shows the available options

An example ini file be found here.

An example config that downloads 1 yr of Precipitation and Temperature data can be found in the examples/getvar directory.

Implementation

Get a variable from the forcing data from the e2o server for a specific region and time range

usage:

e2o_getvar.py -I inifile [-l loglevel][-h]

-I inifile - ini file with settings which data to get -l loglevel (must be one of DEBUG, WARNING, ERROR)

e2o_dstools.e2o_getvar.save_as_mapsstack(lat, lon, data, times, directory, prefix='E2O', oformat='PCRaster')

Save a data matrix (multiple times) as a stack of (pcraster) maps.

Parameters:
  • lat
  • lon
  • data
  • times
  • directory
  • prefix
  • oformat
Returns:

e2o_dstools.e2o_getvar.usage(*args)

Print usage information

  • *args: command line arguments given