Skip to main content

Introduction

birdhousebuilder.recipe.adagucserver is a Buildout recipe to install and configure Adagucserver with Anaconda. Adagucserver is an implementation of a Web Map Service (WMS). Adagucserver will be deployed as a Supervisor service and is available on a Nginx web server.

This recipe is used by the Birdhouse project.

Usage

The recipe requires that Anaconda is already installed. It assumes that the default Anaconda location is in your home directory ~/anaconda. Otherwise you need to set the ANACONDA_HOME environment variable or the Buildout option anaconda-home.

It installs the adagucserver package from a conda channel in a conda environment named birdhouse. The location of the birdhouse environment is .conda/envs/birdhouse. It deploys a Supervisor configuration for Adagucserver in ~/.conda/envs/birdhouse/etc/supervisor/conf.d/adagucserver.conf. Supervisor can be started with ~/.conda/envs/birdhouse/etc/init.d/supervisor start.

The recipe will install the nginx package from a conda channel and deploys a Nginx site configuration for Adagucserver. The configuration will be deployed in ~/.conda/envs/birdhouse/etc/nginx/conf.d/adagucserver.conf. Nginx can be started with ~/.conda/envs/birdhouse/etc/init.d/nginx start.

By default Adagucserver will be available on http://localhost:9002?service=WMS&version=1.3.0&request=GetCapabilities.

The recipe depends on:

  • birdhousebuilder.recipe.conda

  • birdhousebuilder.recipe.supervisor

  • birdhousebuilder.recipe.nginx

Supported options

The recipe supports the following options:

anaconda-home

Buildout option with the root folder of the Anaconda installation. Default: $HOME/anaconda. The default location can also be set with the environment variable ANACONDA_HOME. Example:

export ANACONDA_HOME=/opt/anaconda

Search priority is:

  1. anaconda-home in buildout.cfg

  2. $ANACONDA_HOME

  3. $HOME/anaconda

title

Title of the Web Map Service. Default: Birdhouse ADAGUC WMS

abstract

Description of the Web Map Service. Default: ADAGUC Web Map Service used in Birdhouse

port

Port used by the Adaguc WMS service. Default: 9002

data_dir

Path to the data directory with NetCDF files. Default: ~/.conda/envs/birdhouse/var/lib/pywps/outputs

enablecache

Enabled caching of WMS requests. Default: false

Example usage

The following example buildout.cfg installs Adagucserver with Anaconda:

[buildout]
parts = adaguc

anaconda-home = /home/myself/anaconda

[adaguc]
recipe = birdhousebuilder.recipe.adagucserver
port = 9002

After installing with Buildout start the Adagucserver WMS service with:

$ cd /home/myself/.conda/envs/birdhouse
$ etc/init.d/supervisord start  # start|stop|restart
$ etc/init.d/nginx start        # start|stop|restart
$ bin/supervisorctl status      # check that adagucserver is running
$ less var/log/adaguc.log  # check log file

Open your browser with the following URL:

http://localhost:9002?service=WMS&version=1.3.0&request=GetCapabilities

Run a GetCapabilites with an OpenDAP source:

http://localhost:9002/?service=WMS&version=1.3.0&request=GetCapabilities&source=http://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/ncep.reanalysis2.dailyavgs/surface/mslp.1979.nc

Authors

Carsten Ehbrecht ehbrecht at dkrz.de

Change History

0.3.4 (2015-12-07)

  • using latest supervisor recipe.

0.3.3 (2015-11-12)

  • fixed output parsing in wsgi wrapper.

0.3.2 (2015-11-12)

  • updated to adagucserver 1.9.6.

  • renamed template autowms.xml to adaguc.autoresource.xml.

  • disabled cascaded base wms layers in template.

0.3.1 (2015-10-21)

  • added more options: title, abstract, enablecache

  • fixed handling of xml output of adagucserver in wsgi appliation

  • cleaned up configs

  • updated readme

0.3.0 (2015-10-20)

  • updated to adagucserver 1.9.3 with sqlite

0.2.1 (2015-03-31)

  • Fixed update mode.

0.2.0 (2015-03-31)

0.1.0 (2015-03-30)

Initial Release.

Metadata

Release files for birdhousebuilder.recipe.adagucserver 0.3.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for birdhousebuilder.recipe.adagucserver 0.3.4
File Size Uploaded
birdhousebuilder.recipe.adagucserver-0.3.4.tar.gz 10.8 kB Details

Release files / birdhousebuilder.recipe.adagucserver-0.3.4.tar.gz

Download URL birdhousebuilder.recipe.adagucserver-0.3.4.tar.gz
Size 10.8 kB
Tags Source
SHA-256 checksum
How to use checksums
96ec3ba0297dc507a6526a260293129577c6de9e59eafa0071bd6358181e6dca
BLAKE2b-256 checksum
How to use checksums
f84e3e6ed9f6c0acad84e6dce256c91925c0f2a2d5df02304eaa4d1eabf5e44b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.4 This release

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page