SkillAgentSearch skills...

Dapbook

Examples of integrated Pydap (OPeNDAP server) with WMS into the IPython Notebook.

Install / Use

/learn @pfctdayelise/Dapbook
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

dapbook

Examples of integrated Pydap (OPeNDAP server) with WMS into the IPython Notebook. Check out the slides (also on Slideshare) for a more verbose explanation.

dapbook.py and template.html can be used together to easily embed map data from Pydap WMS servers into your IPython notebooks. They can read from a remote server or local.

Dependencies:

  • all (to run notebooks) - ipython, tornado, pyzmq
  • readingdatafrompydap.ipynb - pydap only
  • embeddingmap-simple.ipynb - can be run without any further dependencies (as in nbviewer above)
  • embeddingmap-dynamic.ipynb - requires pydap, pydap.handlers.netcdf, pydap.responses.wms

Pydap uses Genshi which is why my template is in Genshi. If you don't intend to run a local Pydap server and you don't want to install it, you could just install Genshi. Or your favourite templating library, and make a template for that.

The data in my examples is a sample grid available from the Bureau of Meteorology. See the Australian Digital Forecast Database for more information (and to freely download).

Inspired to make your own WMS-ish app and do the map tile generation yourself? Check out leafvis :)

Related Skills

View on GitHub
GitHub Stars10
CategoryDevelopment
Updated3y ago
Forks4

Languages

Python

Security Score

60/100

Audited on Dec 23, 2022

No findings