On Thu, Oct 11, 2012 at 4:40 AM, klo uo wrote:
> Not sure, but as in example posted, 'img' is HTTPmessage pointing to
> server, and I can't see how we can deduce georeference as 'wms' object is
> named arbitrary, it could have been named to anything:
>
What am I talking about? We can deduce from 'img.url' itself:
========================================
In [23]: import urlparse
In [24]: urlparse.parse_qs(img.url)
Out[24]:
{'COLORSCALERANGE': ['271.2,308'],
'CRS': ['EPSG:4326'],
'STYLES': ['boxfill/rainbow'],
'VERSION': ['1.3.0'],
'bbox': ['-118,22,-108,32'],
'bgcolor': ['0xFFFFFF'],
'exceptions': ['application/vnd.ogc.se_xml'],
'format': ['image/png'],
'height': ['250'],
'
http://motherlode.ucar.edu:8080/thredds/wms/fmrc/NCEP/NAM/CONUS_12km/NCEP-NAM-CONUS_12km-noaaport_best.ncd?layers':
['Temperature_height_above_ground'],
'request': ['GetMap'],
'srs': ['None'],
'transparent': ['TRUE'],
'version': ['1.1.1'],
'width': ['250']}
========================================
So we have all information about the the service in a nice dictionary,
reading it's url
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users