hello Hamish<div><br></div><div>With some support from Ricardo I realized that there are also 2 other HDF5 files, one with latitude of each pixel and the other with longitude. So, now I have a latitude dataset, a longitude and values. How can I &quot;merge&quot; this and import to GRASS (georreferenced and bla bla)? (THat I wasn&#39;t expecting to have).</div>
<div><br></div><div>By the way, thanks about gdalwarp enlightment.</div><div><br></div><div>Pedro</div><div><br><div class="gmail_quote">On Thu, Feb 18, 2010 at 12:17 PM, Hamish <span dir="ltr">&lt;<a href="mailto:hamish_b@yahoo.com">hamish_b@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Pedro Roma wrote:<br>
&gt; By usinggdalinfo<br>
<div class="im">&gt; HDF5:&quot;/mnt/GIS/DATA/HDF5_DATA_MSG_FAPAR_Euro_200702220000&quot;://FAPAR<br>
&gt; I get:Driver:<br>
&gt; HDF5Image/HDF5 Dataset<br>
&gt; Files: none associatedSize is 1701,<br>
</div>&gt; 651Coordinate System<br>
<div><div></div><div class="h5">&gt; is:GEOGCS[&quot;WGS 84&quot;,<br>
&gt;  DATUM[&quot;WGS_1984&quot;,<br>
&gt;  SPHEROID[&quot;WGS 84&quot;,6378137,298.257223563,<br>
&gt;<br>
&gt;  AUTHORITY[&quot;EPSG&quot;,&quot;7030&quot;]],<br>
&gt;      TOWGS84[0,0,0,0,0,0,0],<br>
&gt;  AUTHORITY[&quot;EPSG&quot;,&quot;6326&quot;]],<br>
&gt;  PRIMEM[&quot;Greenwich&quot;,0,<br>
&gt;<br>
&gt;  AUTHORITY[&quot;EPSG&quot;,&quot;8901&quot;]],<br>
&gt;  UNIT[&quot;degree&quot;,0.0174532925199433,<br>
&gt;<br>
&gt;  AUTHORITY[&quot;EPSG&quot;,&quot;9108&quot;]],<br>
&gt;  AXIS[&quot;Lat&quot;,NORTH],<br>
&gt;     AXIS[&quot;Long&quot;,EAST],<br>
&gt;  AUTHORITY[&quot;EPSG&quot;,&quot;4326&quot;]]Corner<br>
&gt; Coordinates:Upper Left  (    0.0,<br>
&gt;  0.0)Lower Left  (    0.0,<br>
&gt;  651.0)Upper Right ( 1701.0,    0.0)<br>
&gt; Lower Right ( 1701.0,  651.0)Center<br>
&gt;  (  850.5,  325.5)Band 1 Block=1701x1<br>
&gt; Type=Int16,<br>
&gt; ColorInterp=Undefined  Metadata:<br>
&gt;  FAPAR:CLASS=Data<br>
&gt;  FAPAR:PRODUCT=product<br>
&gt;     FAPAR:PRODUCT_ID=0<br>
&gt;  FAPAR:N_COLS=1701<br>
&gt;  FAPAR:N_LINES=651<br>
&gt;  FAPAR:NB_BYTES=2<br>
&gt;  FAPAR:SCALING_FACTOR=10000<br>
&gt;  FAPAR:OFFSET=0<br>
&gt;  FAPAR:MISSING_VALUE=-10<br>
&gt;     FAPAR:UNITS=N/A<br>
&gt;  FAPAR:CAL_SLOPE=1<br>
&gt;  FAPAR:CAL_OFFSET=0<br>
&gt;<br>
&gt; If I do :gdalwarp<br>
&gt; HDF5:&quot;/mnt/GIS/LSASAF/HDF5_LSASAF_MSG_FAPAR_Euro_200702220000&quot;://FAPAR<br>
&gt;  /mnt/GIS/testing.tif<br>
&gt; I get:ERROR 1: Unable to compute a<br>
&gt; transformation between pixel/lineand<br>
&gt; georeferenced coordinates for<br>
&gt; HDF5:/mnt/GIS/LSASAF/HDF5_LSASAF_MSG_FAPAR_Euro_200702220000://FAPAR.<br>
<br>
*****<br>
&gt; There is no affine transformation and no GCPs.<br>
</div></div>*****<br>
<br>
the above tells you that it is in lat/lon WGS84, but the image itself<br>
is not georeferenced.<br>
<br>
are there possibly additional data bands named &quot;lat&quot; and &quot;long&quot; or so?<br>
do you know what the north/south/east/west &amp; resolution should be?<br>
<br>
<br>
maybe there is another HDF5 viewer (ISTR a java one from NASA?) which<br>
will export the info if it is a gdal or libhdf problem which is stopping<br>
you from seeing that information (if it is there at all)<br>
<div class="im"><br>
<br>
<br>
&gt; Is this helpful to solve this<br>
&gt; question?At MODIS Wiki (<a href="http://grass.osgeo.org/wiki/MODIS" target="_blank">http://grass.osgeo.org/wiki/MODIS</a>)<br>
&gt; Gdal Warp is not used. Instead, it&#39;s create a<br>
&gt; intermediate file (TIF) using gdal_translate and only then<br>
&gt; is r.in.gdal is used.<br>
<br>
</div>gdalwarp is used if there is no north/south/east/west info beyond the<br>
number of image pixels, but there are a series of GCPs listed.<br>
<font color="#888888"><br>
<br>
<br>
Hamish<br>
<br>
<br>
<br>
<br>
</font></blockquote></div><br></div>