<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><br>Hi Gianluca: you can get time extents of a layer from the timepositions attribute (i.e. wms['MYDAL2_D_AER_OD'].timepositions), which gives a list of time positions for the layer.  You can then pass a specified timeposition to the GetMap request (i.e. wms.getmap(time=..., )).<br><br>Let us know if this works for you.<br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">Date: Tue, 1 Jan 2013 22:52:25 +0100<br>From: agr.gianluca.massei@gmail.com<br>To: owslib-users@lists.osgeo.org<br>Subject: [OWSLib-users] (no subject)<br><br><div dir="ltr"><div><div><div><div><br clear="all"></div>I'm using owslib for study purposes and i'm finding this tool very useful.<br>I've a question:<br>in my exercises, I've  handled the WMS service inside the follow piece of code:<br>
</div></div>from owslib.wms import WebMapService<br>wms = WebMapService('<a href="http://neowms.sci.gsfc.nasa.gov/wms/wms?layers=MYDAL2_D_AER_OD" target="_blank">http://neowms.sci.gsfc.nasa.gov/wms/wms?layers=MYDAL2_D_AER_OD</a>', version='1.1.1')<br>
print wms['MYDAL2_D_AER_OD'].styles<br>print [<a href="http://op.name" target="_blank">op.name</a> for op in wms.operations]<br>img = wms.getmap(   layers=['MYDAL2_D_AER_OD'],<br>                     styles=['rgb'],<br>
                     srs='EPSG:4326',<br>                     bbox=(5, 34, 20, 48),<br>                     size=(1200, 1200),<br>                     format='image/jpeg',<br>                     transparent=False<br>
                     )<br>out = open('jpl_mosaic_visb.jpg', 'wb')<br>out.write(img.read())<br>out.close()<br><br></div>I need to know the acquisition date of MYDAL2_D_AER_OD from the xml file. Can I do that with OWSLib<br>
<br>Thanks in advance<br><div><br></div><div>Gianluca<br></div><div><div><br></div></div></div>
<br>_______________________________________________
OWSLib-users mailing list
OWSLib-users@lists.osgeo.org
http://lists.osgeo.org/cgi-bin/mailman/listinfo/owslib-users</div>                                          </div></body>
</html>