{ "metadata": { "name": "Embedding our map into the notebook" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "code", "collapsed": false, "input": "import dapbook", "language": "python", "metadata": {}, "outputs": [], "prompt_number": 2 }, { "cell_type": "code", "collapsed": false, "input": "a = dapbook.PydapWMS()\nprint a\na.html", "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": "PydapWMS({'layers': [('SST', 'Sea Surface Temperature', 0)], 'template': 'template2.html', 'mapheight': 300, 'centerlon': 0, 'wmsserverurl': 'http://test.pydap.org/coads.nc.wms', 'initialzoom': 2, 'centerlat': 0, 'mapwidth': 400})\n" }, { "html": "", "output_type": "pyout", "prompt_number": 7, "text": "" } ], "prompt_number": 7 }, { "cell_type": "code", "collapsed": false, "input": "b = dapbook.PydapWMS(server='http://127.0.0.1:8001/IDT71003_TAS_MinT_SFC.nc.wms',\n layers=[('MinT_SFC', 'Min temp day0', 0),\n ('MinT_SFC', 'Min temp day2', 2),\n ], centerlat=-42, centerlon=147, initialzoom=6,\n mapwidth=550, mapheight=400)\nprint b\nb.html", "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": "PydapWMS({'layers': [('MinT_SFC', 'Min temp day0', 0), ('MinT_SFC', 'Min temp day2', 2)], 'template': 'template2.html', 'mapheight': 400, 'centerlon': 147, 'wmsserverurl': 'http://127.0.0.1:8001/IDT71003_TAS_MinT_SFC.nc.wms', 'initialzoom': 6, 'centerlat': -42, 'mapwidth': 550})\n" }, { "html": "", "output_type": "pyout", "prompt_number": 8, "text": "" } ], "prompt_number": 8 } ], "metadata": {} } ] }