Joerd, can be used to download, merge and generate tiles from digital elevation data. These tiles can then be used in a variety of ways; for map display in Walkabout, in Valhalla's Skadi for elevation influenced routing. In keeping with the Norse mythological theme used by Valhalla, the jotunn/goddess Jörð was chosen as she is the personification of the Earth.
Jörð is pronounced:
- j = y as in english 'yellow'
- ö = ö as in german 'Göttin'
- r = r as in spanish 'pero'
- ð = th as in english 'they'
Which is close to "y-earthe". Many thanks to @baldur for lending us his voice.
Joerd is a Python command line tool using setuptools. To install on a Debian or Ubuntu system, you need to install its dependencies:
sudo apt-get install python-gdal python-bs4 python-numpy gdal-bin python-setuptools python-shapely(NOTE: not sure if this works: I installed GDAL-2.0.1 manually here, but I don't think it really needs it.)
You can then install it (recommended in a virtualenv) by running:
python setup.py installJoerd installs as a command line library, and there are currently three commands:
serverstarts up Joerd as a server listening for jobs on a queue. It is intended for use as part of a cluster to parallelise very large job runs.enqueue-downloadsreads a config file and outputs a job to the queue for each source file needed by an output file in any configured region listed in theregionsof the configuration file. This is intended for filling the queue forserverto get work out of, but can also be used for local testing along with thefakequeue type.enqueue-rendersreads a config file and outputs a job to the queue for each output file in each region listed in theregionsof the configuration file. This is intended for filling the queue forserverto get work out of, but can also be used for local testing with thefakequeue type.
There is also a script/generate.py program to generate a configuration with lots of little jobs all split up.
To run a command, type something like this:
joerd <command> --config config.example.yamlWhere <command> is one of the commands above (currently only process). The config has five sections:
regionsis a map of named sections, each with abboxsection havingtop,left,bottomandrightcoordinates. These describe the bounding box of the region. Data from the sources will be downloaded to cover that region, and outputs within it will be generated.outputsis a list of output plugins. Currently available:skadicreates output in SRTMHGT format suitable for use in Skadi.terrariumcreates tiled output in GeoTIFF format.
sourcesis a list of source plugins. Currently available:etopo1downloads data from ETOPO1, a 1 arc-minute global bathymetry and topology dataset.gmteddownloads data from GMTED, a global topology dataset at 30 or 15 arc-seconds.srtmdownloads data from SRTM, an almost-global 3 arc-second topology dataset.
logginghas a single section,config, which gives the location of a Python logging config file.clustercontains the queue configuration.queueis used for all job communication, and can be eithersqsorfake:typeshould be eithersqsto use SQS for communicating jobs, orfaketo run jobs immediately (i.e: not queue them at all).queue_name(sqsonly) the name of the SQS queue to use.
storeis the store used to put output tiles after they have been rendered. The store should indicate atypeand some extra configuration as sub-keys:typeshould be eithers3to store files in Amazon S3, orfileto store them on the local file system.base_dir(fileonly) the filesystem path to use as a prefix for stored files.bucket_name(s3only) the name of the bucket to store into.upload_config(s3only) a dictionary of additional parameters to pass to the upload function.
source_storeis the store to download source files to when processing a download job, and retrieve them from when processing a render job. Note that all the source files needed by the render jobs must be present in the source store before the render jobs are run. Configuration is the same as forstore.
When using SRTM source HGT files, it's possible to run into this bug. The work-around given in the issue (export GDAL_SKIP=JPEG) appears to work.
Joerd uses the MIT License.
We welcome contributions to Joerd. If you would like to report an issue, or even better fix an existing one, please use the Joerd issue tracker on GitHub.
We highly encourage running and updating the tests to make sure no regressions have been made. This can be done by running:
python setup.py test