Downloaded a sample file from <a href="http://envisat.esa.int/services/sample_products/aatsr/L2/">http://envisat.esa.int/services/sample_products/aatsr/L2/</a>. Seems to work fine in Python.<br><br>$ python<br>>>> from osgeo import gdal<br>
>>> image = gdal.Open('ATS_MET_2PNETB20020729_070738_000058362008_00092_02150_0873.N1')<br>>>> image.GetMetadata()<br>{'MPH_STATE_VECTOR_TIME': '29-JUL-2002 08:14:40.282674', <snip>}<br>
>>> metadata = image.GetMetadata()<br>>>> metadata['SPH_FIRST_MID_LAT']<br>'+0058766642'<br>>>> image.GetMetadataItem('SPH_FIRST_MID_LAT')<br>'+0058766642'<br><br>
Can you run gdalinfo on your file and post the output?<br><br>Thanks,<br><br>Roger<br>--<br><br><br><div class="gmail_quote">On Tue, Apr 27, 2010 at 9:48 AM, Roger André <span dir="ltr"><<a href="mailto:randre@gmail.com">randre@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Can you make a small portion of your data available to us? If GDAL can read the data file, then it should be able to read this information as well.<br>
<br>Roger<br><font color="#888888">--</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Fri, Apr 2, 2010 at 5:44 PM, menglong yan <span dir="ltr"><<a href="mailto:yanmenglong@gmail.com" target="_blank">yanmenglong@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi, I want to read envisat with gdal, and I can read the data<br>
successfully. However I can not get the header information such as<br>
"FIRST_MID_LAT"(this item could be<br>
found with NEST(Next ESA SAR toolbox)) with<br>
GDALDataset::GetMetadataItem("FIRST_MID_LAT"). I have read the souce<br>
code in /frmts/envisat/, and I am sure it is<br>
right to call this function. I turn to Anybody who once did this job<br>
for some advice. Thank you!<br>
Kind regards.<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div><br>
</div></div></blockquote></div><br>