import dapbook
a = dapbook.PydapWMS()
print a
a.html
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})
b = dapbook.PydapWMS(server='http://127.0.0.1:8001/IDT71003_TAS_MinT_SFC.nc.wms',
layers=[('MinT_SFC', 'Min temp day0', 0),
('MinT_SFC', 'Min temp day2', 2),
], centerlat=-42, centerlon=147, initialzoom=6,
mapwidth=550, mapheight=400)
print b
b.html
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})