<br><br><div class="gmail_quote">2010/1/12 Frank Warmerdam <span dir="ltr">&lt;<a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
maven apache wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
2010/1/12 Frank Warmerdam &lt;<a href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a> &lt;mailto:<a href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a>&gt;&gt;<div><div></div><div class="h5">
<br>
<br>
    maven apache wrote:<br>
<br>
           It suggests that GDAL is not recognising the georeferencing<br>
        of the<br>
           data.  The actual pixel values will hopefully still be accessed<br>
           properly.<br>
<br>
           I would actually need to see the whole gdalinfo report on the<br>
        subdataset<br>
           to be certain that GDAL is not finding another form of<br>
        georeferencing,<br>
           like GCPs or geolocation arrays.  These will not be reflected<br>
        in the<br>
           corner coordinates report (unfortunately).<br>
<br>
        Thank you very much , I will paste the result.<br>
        The whole gdalinfo metadata can be found here:<br>
        <a href="http://dpaste.com/143948/" target="_blank">http://dpaste.com/143948/</a><br>
        And the info of  SUBDATASET_4_NAME  can be found here:<br>
        <a href="http://dpaste.com/143949/" target="_blank">http://dpaste.com/143949/</a><br>
<br>
<br>
    &quot;Maven&quot;,<br>
<br>
    It seems that GDAL does not recognise the metadata on this file that<br>
    contains the georeferencing.  However, you can fairly easily apply the<br>
    georeferencing as part of the translation something like this:<br>
<br>
    gdal_translate \<br>
     HDF5:&quot;d23.he5&quot;://HDFEOS/GRIDS/ColumnAmountO3/Data_Fields/ColumnAmountO3<br>
    \<br>
     -a_ullr -180 90 180 -90<br>
<br>
Oh thanks, it works!<br>
But I have two questions:<br>
1) how do you know the -a_ullr parameter?<br>
</div></div></blockquote>
<br>
Maven,<br>
<br>
I read through the metadata reported by gdalinfo:<br>
<br>
  ColumnAmountO3:GCTPProjectionCode=0<br>
  ColumnAmountO3:Projection=Geographic<br>
  ColumnAmountO3:GridOrigin=Center<br>
  ColumnAmountO3:GridSpacing=(0.25,0.25)<br>
  ColumnAmountO3:GridSpacingUnit=deg<br>
  ColumnAmountO3:GridSpan=(-180,180,-90,90)<br>
  ColumnAmountO3:GridSpanUnit=deg<br>
  ColumnAmountO3:NumberOfLongitudesInGrid=1440<br>
  ColumnAmountO3:NumberOfLatitudesInGrid=720<br>
  HDFEOS INFORMATION:HDFEOSVersion=HDFEOS_5.1.9<br>
<br>
This makes it pretty clear the image is a fullworld image<br>
in geographic coordinates.  If this is a common metadata<br>
format the driver could be updated to recognise it automatically.<br>
Unfortunately there seem to be a variety of ways of storing<br>
georeferencing for different HDF5 products.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2) Since some part of the tiff is blank, it is not scanned by the sensor. so I want fill them manually,so I wonder the gdal library can do it ? Also I want to add some new tags to the tif and I want to use java to implement it/<br>

</blockquote>
<br></div>
Are you wanting to interpolate these nodata areas from nearby valid<br>
data?  There are many ways of doing this, but gdal_nodatafill.py may<br>
prove helpful to you as a utility.  If you want to do it from Java<br>
you will need to call the FillNodata() function which should be<br>
available in the GDAL Java bindings.  More info on this function at:<br></blockquote><div>Thanks, this is just what I want. However I have visite the website of gdal and the docs, I can not find the gdal java library.<br>
Is it not opened? <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
  <a href="http://www.gdal.org/gdal__alg_8h.html#0a079afef61968f224b159d48423d1c6" target="_blank">http://www.gdal.org/gdal__alg_8h.html#0a079afef61968f224b159d48423d1c6</a><br>
  <a href="http://www.gdal.org/gdal_fillnodata.html" target="_blank">http://www.gdal.org/gdal_fillnodata.html</a><div><div></div><div class="h5"><br>
<br>
Best regards,<br>
-- <br>
---------------------------------------+--------------------------------------<br>
I set the clouds in motion - turn up   | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a><br>
light and sound - activate the windows | <a href="http://pobox.com/%7Ewarmerdam" target="_blank">http://pobox.com/~warmerdam</a><br>
and watch the world go round - Rush    | Geospatial Programmer for Rent<br>
<br>
</div></div></blockquote></div><br>