David,<br><br>I used gdal_translate to convert HDF4_EOS:EOS_SWATH:&quot;AIRS.2008.03.12.228.L2.CO2_Sup.v5.4.11.0.CO2.T09254115637.hdf&quot;:CO2:CO2ret into .img and TIFF format. I didn&#39;t get zeros nor did they lose the coordinate info. I did this with gdal version 1.8 and the latest trunk.<br>
<br>Check your input and output images with &quot;gdalinfo -stats&quot;.<br><br><div class="gmail_quote">On Thu, Jan 26, 2012 at 9:34 AM, David Ortiz <span dir="ltr">&lt;<a href="mailto:dvdov@yahoo.com">dvdov@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"><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div><div><div style="font-size:12pt;font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">
<div><div style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;margin-top:8px;margin-right:0px;margin-bottom:0px;margin-left:12px"><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:12pt">
Hi Everyone, greetings.</div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:12pt"><br></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:12pt">
I am working with AIRS images, specifically
 CO2 products (AIRX2STC,AIRX2SPC) and i am trying to convert a couple of subdataset from .hdf files to other format as GTiff or .img so that can be handled on some open source GIS but using gdal_translate there are problems, mainly a lack of georeference in processed images.</div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:12pt"><span style="font-size:12pt"><br></span></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:12pt">
<span style="font-size:12pt"> The file is AIRS.2008.03.12.228.L2.CO2_Sup.v5.4.11.0.CO2.T09254115637.hdf downloadable from</span></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:12pt">
<span style="font-size:12pt"> ttp://<a href="http://mirador.gsfc.nasa.gov/cgi-bin/mirador/homepageAlt.pl?keyword=AIRX2SPC" target="_blank">mirador.gsfc.nasa.gov/cgi-bin/mirador/homepageAlt.pl?keyword=AIRX2SPC</a></span>  <span style="color:rgb(69,69,69);font-size:12pt">for 2008-03-12 date.</span>A special feature of this kind of files is geolocations fields &quot;latitude&quot; and &quot;longitude&quot;  have some values =-9999 where respective pixel doesn&#39;t have information about co2 amounts.</div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:12pt"><br></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:12pt">* When I do gdalinfo I get <span style="font-size:12pt">:</span></div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:12pt"><span style="font-size:12pt"><br></span></div><div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">
<font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">gdalinfo /home/david/Descargas/pruebas/AIRS.2008.03.12.228.L2.CO2_Sup.v5.4.11.0.CO2.T09254115637.hdf</font></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">
<font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">Size is 512, 512</font></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">Coordinate System is `&#39;</font></div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">Metadata:</font></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">
<span style="font-size:12pt">                     ...</span><br></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">                      ...</font></div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">  GROUP                  = SPATIALDOMAINCONTAINER<br></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">
    GROUP                  = HORIZONTALSPATIALDOMAINCONTAINER<br></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">      GROUP                  = BOUNDINGRECTANGLE<br></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">
        OBJECT                 =
 EASTBOUNDINGCOORDINATE<br></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">          NUM_VAL              = 1</font></div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">          VALUE                = -133.537399291992</font></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">
<font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">        END_OBJECT             = EASTBOUNDINGCOORDINATE</font></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">
        OBJECT                 =
 WESTBOUNDINGCOORDINATE<br></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">          NUM_VAL              = 1</font></div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">         
 VALUE                = -157.941314697266</font></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">        END_OBJECT             = WESTBOUNDINGCOORDINATE</font></div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">        OBJECT                 = SOUTHBOUNDINGCOORDINATE<br></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">
<font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">          NUM_VAL              = 1</font></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">          VALUE      
          = 22.2317676544189</font></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">        END_OBJECT             = SOUTHBOUNDINGCOORDINATE</font></div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">   
     OBJECT                 = NORTHBOUNDINGCOORDINATE<br></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">          NUM_VAL              = 1</font></div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">          VALUE                = 45.889762878418</font></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">
<font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">        END_OBJECT             = NORTHBOUNDINGCOORDINATE</font></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">
<font face="&#39;times new roman&#39;, &#39;new york&#39;,
 times, serif"><br></font></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">      END_GROUP              = BOUNDINGRECTANGLE</font></div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times,
 serif">                     ...</font></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">                     ...</font></div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">  </font>HDFEOSVersion=HDFEOS_V2.12</div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">
<font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">  ProductGenerationHostInformation=<a href="http://alpha.jpl.nasa.gov" target="_blank">alpha.jpl.nasa.gov</a> Linux 2.6.9-78.0.22.ELsmp #1_SMP_Thu_Apr_30_19:17:40_EDT_2009 x86_64</font></div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">  VersionRetrieval=5.2.2.0</font></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">
<font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">Subdatasets:</font></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><font style="font-size:12pt" face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif"> </font><span style="font-size:12pt">                    ...</span><br>
</div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><span style="font-size:12pt"> SUBDATASET_8_NAME=HDF4_EOS:EOS_SWATH:&quot;/home/david/Descargas/pruebas/AIRS.2008.03.12.228.L2.CO2_Sup.v5.4.11.0.CO2.T09254115637.hdf&quot;:CO2:CO2ret</span><br>
</div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">  SUBDATASET_8_DESC=[22x15] CO2ret CO2 (32-bit floating-point)</font></div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">  </font><span style="font-size:12pt">                     ...</span></div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><span style="font-size:12pt">  SUBDATASET_11_DESC=[22x15x100] AvgKern CO2 (32-bit floating-point)</span></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">
<font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif"> SUBDATASET_12_NAME=HDF4_SDS:UNKNOWN:&quot;/home/david/Descargas/pruebas/AIRS.2008.03.12.228.L2.CO2_Sup.v5.4.11.0.CO2.T09254115637.hdf&quot;:0</font></div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><font style="font-size:12pt" face="&#39;times new
 roman&#39;, &#39;new york&#39;, times, serif"> </font><span style="font-size:12pt">                    ...</span><br></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><div>SUBDATASET_19_NAME=HDF4_SDS:UNKNOWN:&quot;/home/david/Descargas/pruebas/AIRS.2008.03.12.228.L2.CO2_Sup.v5.4.11.0.CO2.T09254115637.hdf&quot;:7</div>
</div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">  SUBDATASET_19_DESC=[22x15] CO2ret (32-bit floating-point)</font></div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif"> </font><font style="font-size:12pt" face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">                     ...</font><span style="font-size:12pt"> </span><span style="font-size:12pt"> </span><font style="font-size:12pt" face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif"> </font><span style="font-size:12pt">  SUBDATASET_23_NAME=HDF4_SDS:UNKNOWN:&quot;/home/david/Descargas/pruebas/AIRS.2008.03.12.228.L2.CO2_Sup.v5.4.11.0.CO2.T09254115637.hdf&quot;:11</span></div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">  SUBDATASET_23_DESC=[22x15] Latitude (32-bit floating-point)</font></div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">  SUBDATASET_24_NAME=HDF4_SDS:UNKNOWN:&quot;/home/david/Descargas/pruebas/AIRS.2008.03.12.228.L2.CO2_Sup.v5.4.11.0.CO2.T09254115637.hdf&quot;:12</font></div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">  SUBDATASET_24_DESC=[22x15] Longitude (32-bit floating-point)</font></div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><br></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">Corner Coordinates:</font></div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">Upper Left  (    0.0,    0.0)</font></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">
<font face="&#39;times new roman&#39;, &#39;new york&#39;,
 times, serif">Lower Left  (    0.0,  512.0)</font></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">Upper Right (  512.0,    0.0)</font></div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">Lower Right (  512.0,  512.0)</font></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">
<font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">Center      (  256.0,  256.0)</font></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif"><br>
</font></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif"><br></font></div><div><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">* I need &quot;CO2ret&quot; subdataset. Using gdalinfo:</font></div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif"><br></font></div><div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">
root@debian:/home/david# gdalinfo
 HDF4_EOS:EOS_SWATH:&quot;/home/david/Descargas/pruebas/AIRS.2008.03.12.228.L2.CO2_Sup.v5.4.11.0.CO2.T09254115637.hdf&quot;:CO2:CO2ret</div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">
Driver: HDF4Image/HDF4 Dataset</div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">Files: /home/david/Descargas/pruebas/AIRS.2008.03.12.228.L2.CO2_Sup.v5.4.11.0.CO2.T09254115637.hdf</div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">Size is 15, 22</div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">Coordinate System is `&#39;</div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">
GCP[  0]: Id=, Info=</div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">          (0.5,0.5) -&gt; (-9999,-9999,0)</div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">
<span style="font-size:12pt">GCP[
  3]: Id=, Info=</span><br></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">          (3.5,0.5) -&gt; (-145.229995727539,23.3500003814697,0)</div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">
GCP[  4]: Id=, Info=</div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">          (4.5,0.5) -&gt; (-9999,-9999,0)</div><div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">
<font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif"> </font><span style="font-family:times,serif">                    ...</span><br></div><div style="font-family:&#39;Times New Roman&#39;"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">                     ...</font><span style="font-family:times,serif">  </span></div>
<div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">GCP[329]: Id=, Info=</div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">          (14.5,21.5) -&gt; (-9999,-9999,0)</div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><font style="font-size:12pt" face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif"> </font><span style="font-size:12pt">                    ...</span><br>
</div><div><div style="font-family:&#39;Times New Roman&#39;"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">                     ...</font></div><div><font><div><span style="font-size:12pt">Geolocation:</span><br>
</div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"> 
 LINE_OFFSET=0</div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"> 
 LINE_STEP=1</div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">  PIXEL_OFFSET=0</div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">  PIXEL_STEP=1</div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">  X_BAND=1</div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">  X_DATASET=HDF4_EOS:EOS_SWATH_GEOL:&quot;/home/david/Descargas/pruebas/AIRS.2008.03.12.228.L2.CO2_Sup.v5.4.11.0.CO2.T09254115637.hdf&quot;:CO2:Longitude</div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">  Y_BAND=1</div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">  Y_DATASET=HDF4_EOS:EOS_SWATH_GEOL:&quot;/home/david/Descargas/pruebas/AIRS.2008.03.12.228.L2.CO2_Sup.v5.4.11.0.CO2.T09254115637.hdf&quot;:CO2:Latitude</div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">Corner Coordinates:</div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">Upper Left  (    0.0,    0.0)</div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">Lower Left  (    0.0,   22.0)</div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">Upper Right (   15.0,    0.0)</div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">Lower Right (   15.0,   22.0)</div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">Center      (    7.5,   11.0)</div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">Band 1 Block=15x22 Type=Float32, ColorInterp=Gray</div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">  NoData Value=-9999</div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><br></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif">* I tried create an .img file but the image doesn&#39;t spatial
 reference:</div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><br></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><div>rgdal_translate -of HFA HDF4_EOS:EOS_SWATH:&quot;/home/david/Descargas/pruebas/AIRS.2008.03.12.228.L2.CO2_Sup.v5.4.11.0.CO2.T09254115637.hdf&quot;:CO2:CO2ret  /home/david/Descargas/pruebas/CO2_sup_img_EOS.img</div>
<div><br></div><div>* with Geotiff format there is not georeference and all pixels have value =0 :</div><div><br></div><div>gdal_translate -of GTiff HDF4_EOS:EOS_SWATH:&quot;/home/david/Descargas/pruebas/AIRS.2008.03.12.228.L2.CO2_Sup.v5.4.11.0.CO2.T09254115637.hdf&quot;:CO2:CO2ret  /home/david/Descargas/pruebas/CO2_sup_Gtiff_EOS_traslate.tif</div>
<div>Input file size is 15, 22</div><div>0Warning 1: Lost metadata writing to GeoTIFF ... too large to fit in tag.</div><div>Warning 1: Lost metadata writing to GeoTIFF ... too large to fit
 in tag.</div><div>...10...20...30...40...50...60...70...80...90...100 -
 done.</div><div><br></div><div>* I tried with gdalwarp but the file doesn&#39;t have geographical reference and co2 info:</div><div><br></div><div> gdalwarp HDF4_EOS:EOS_SWATH:&quot;/home/david/Descargas/pruebas/AIRS.2008.03.12.228.L2.CO2_Sup.v5.4.11.0.CO2.T09254115637.hdf&quot;:CO2:CO2ret  /home/david/Descargas/pruebas/CO2_sup_Gtiff_EOS_warp.tif</div>
<div>Creating output file that is 141P x 144L.</div><div>Processing input file HDF4_EOS:EOS_SWATH:/home/david/Descargas/pruebas/AIRS.2008.03.12.228.L2.CO2_Sup.v5.4.11.0.CO2.T09254115637.hdf:CO2:CO2ret.</div><div>Using internal nodata values (eg. -9999) for image HDF4_EOS:EOS_SWATH:/home/david/Descargas/pruebas/AIRS.2008.03.12.228.L2.CO2_Sup.v5.4.11.0.CO2.T09254115637.hdf:CO2:CO2ret.</div>
<div>0...10...20...30...40...50...60...70...80...90...100 - done.</div><div><br></div><div><br></div><div>* SO, i did the same with subdataset name HDF4_SDS:UNKNOWN 
 :</div><div><br></div><div><div> gdalinfo HDF4_SDS:UNKNOWN:&quot;/home/david/Descargas/pruebas/AIRS.2008.03.12.228.L2.CO2_Sup.v5.4.11.0.CO2.T09254115637.hdf&quot;:7</div><div>Driver: HDF4Image/HDF4 Dataset</div><div>Files: /home/david/Descargas/pruebas/AIRS.2008.03.12.228.L2.CO2_Sup.v5.4.11.0.CO2.T09254115637.hdf</div>
<div>Size is 15, 22</div><div>Coordinate System is `&#39;</div><div><div><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif"> </font><span>                    ...</span><br></div><div><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">                     ...</font><span> </span></div>
</div><div>Geolocation:</div><div> 
 LINE_OFFSET=0</div><div>  LINE_STEP=1</div><div>  PIXEL_OFFSET=0</div><div>  PIXEL_STEP=1</div><div>  SRS=GEOGCS[&quot;WGS 84&quot;,DATUM[&quot;WGS_1984&quot;,SPHEROID[&quot;WGS 84&quot;,6378137,298.257223563,AUTHORITY[&quot;EPSG&quot;,&quot;7030&quot;]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY[&quot;EPSG&quot;,&quot;6326&quot;]],PRIMEM[&quot;Greenwich&quot;,0,AUTHORITY[&quot;EPSG&quot;,&quot;8901&quot;]],UNIT[&quot;degree&quot;,0.0174532925199433,AUTHORITY[&quot;EPSG&quot;,&quot;9108&quot;]],AUTHORITY[&quot;EPSG&quot;,&quot;4326&quot;]]</div>
<div>  X_BAND=1</div><div>  X_DATASET=HDF4_SDS:UNKNOWN:&quot;/home/david/Descargas/pruebas/AIRS.2008.03.12.228.L2.CO2_Sup.v5.4.11.0.CO2.T09254115637.hdf&quot;:12</div><div>  Y_BAND=1</div><div>  Y_DATASET=HDF4_SDS:UNKNOWN:&quot;/home/david/Descargas/pruebas/AIRS.2008.03.12.228.L2.CO2_Sup.v5.4.11.0.CO2.T09254115637.hdf&quot;:11</div>
<div>Corner Coordinates:</div><div>Upper Left  (    0.0,    0.0)</div><div>Lower Left  (  
  0.0,   22.0)</div><div>Upper Right (   15.0,    0.0)</div><div>Lower Right (   15.0,   22.0)</div><div>Center      (    7.5,   11.0)</div><div>Band 1 Block=15x22 Type=Float32, ColorInterp=Gray</div><div><br></div><div>
 gdal_translate -of HFA HDF4_SDS:UNKNOWN:&quot;/home/david/Descargas/pruebas/AIRS.2008.03.12.228.L2.CO2_Sup.v5.4.11.0.CO2.T09254115637.hdf&quot;:7 /home/david/Descargas/pruebas/CO2_sup_img_UNKNOWN_traslate.img</div><div><br>
</div><div> gdal_translate -of GTiff HDF4_SDS:UNKNOWN:&quot;/home/david/Descargas/pruebas/AIRS.2008.03.12.228.L2.CO2_Sup.v5.4.11.0.CO2.T09254115637.hdf&quot;:7 /home/david/Descargas/pruebas/CO2_sup_Gtiff_UNKNOWN_traslate.tif</div>
<div>Input file size is 15, 22</div><div>0Warning 1: Lost metadata writing to GeoTIFF ... too large to fit in tag.</div><div>Warning 1: Lost
 metadata writing to GeoTIFF
 ... too large to fit in tag.</div><div>...10...20...30...40...50...60...70...80...90...100 - done.</div><div><br></div><div>gdalwarp HDF4_SDS:UNKNOWN:&quot;/home/david/Descargas/pruebas/AIRS.2008.03.12.228.L2.CO2_Sup.v5.4.11.0.CO2.T09254115637.hdf&quot;:7 /home/david/Descargas/pruebas/CO2_sup_Gtiff_UNKNOWN_warp.tif</div>
<div>Creating output file that is 70P x 72L.</div><div>Processing input file HDF4_SDS:UNKNOWN:/home/david/Descargas/pruebas/AIRS.2008.03.12.228.L2.CO2_Sup.v5.4.11.0.CO2.T09254115637.hdf:7.</div><div>ERROR 1: Too many points (441 out of 441) failed to transform,</div>
<div>unable to compute output bounds.</div><div>0...10...20...30...40...50...60...70...80...90...100 - done</div><div><br></div><div><br></div><div>* but none of images have geographical reference. When i use HEGTool with AIRS radiances (AIRIBRAD products), for example, the Geotiff have WGS84 coordinates.The problem is HEG doesn&#39;t support
 CO2
 products.</div><div><br></div><div>1. How can i generate  images with spatial reference?</div><div>2. Should i replace -9999 values from latitude and longitude fields with other value? How can i do this?</div><div><br></div>
<div>The gdal version is 1.9 built from source with hdf4 support:</div><div><div>./configure --with-hdf4=/home/david/Descargas/gdal_grass_R/hdf-4.2.6-linux --without-grass --without-libgrass </div><div>make</div><div>make install</div>
<div><br></div><div><br></div><div><br></div><div><br></div></div><div>I really appreciate your help and advice</div><div><br></div><div>Best Regards</div><div><br></div><div><br></div><div>David A. Ortiz V.</div><div>UD - ICG</div>
<div>Bogota
 D.C. </div><div><br></div></div><div><br></div></div></font></div></div></div></div></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:12pt"><br></div></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:12pt">
<br></div></div><br></div></div></div></div></div></div><br>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">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><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br>
<br>+91-9494447584<br>17.2416N 80.1426E<br>