1) Not sure, but give it a try! If not, put it somewhere accessible on the web.  You should definitively create a ticket for this.<div><br></div><div>2)</div><div><div>netcdf supports HDF4 if it was configured for hdf4 support.</div>
<div><br></div><div>In that case, to force the netcdf driver you would have to use &quot;NETCDF:filename:subdataset&quot;, or else the HDF4 driver will open it pick it up.</div><div><br></div><div>Etienne</div><div><br><div class="gmail_quote">
On Sat, Oct 22, 2011 at 9:57 AM, Joaquim Luis <span dir="ltr">&lt;<a href="mailto:jluis@ualg.pt">jluis@ualg.pt</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<u></u>

  

    
  
  <div text="#000000" bgcolor="#ffffff">
    Hi,<br>
    <br>
    I&#39;m having troubles reading a SeaWifs L2 hdf file due to a bug in
    the hdf driver. The problem here is that not all Subdatasets are
    read. <br>
    Below is the list givem by gdalinfo, which lacks 2 subdatasets: the<br>
    cntl_pt_cols &amp; cntl_pt_rows<br>
    To prove I attach a little screencapture of &quot;HDF Explorer&quot;. <br>
    <br>
    Now I have two questions. <br>
    <br>
    1- The hdf file in question is relatively small (1.2 Mb). Can I
    attach it to a ticket? <br>
    <br>
    2- If I build GDAL with netCDF4, can I force the reading of this
    file with the netCDF driver? And if yes, how?<br>
    <br>
    Thanks<br>
    <br>
    Joaquim<br>
    <br>
    <br>
    <img src="cid:part1.01090706.08040809@ualg.pt" alt=""><br>
    <br>
    Subdatasets:<br>
     
SUBDATASET_1_NAME=HDF4_SDS:SEAWIFS_L2:&quot;S1998031140424.L2_MLAC_OC.x.hdf&quot;:11<br>
      SUBDATASET_1_DESC=[391x78] longitude (32-bit floating-point)<br>
     
SUBDATASET_2_NAME=HDF4_SDS:SEAWIFS_L2:&quot;S1998031140424.L2_MLAC_OC.x.hdf&quot;:12<br>
      SUBDATASET_2_DESC=[391x78] latitude (32-bit floating-point)<br>
     
SUBDATASET_3_NAME=HDF4_SDS:SEAWIFS_L2:&quot;S1998031140424.L2_MLAC_OC.x.hdf&quot;:13<br>
      SUBDATASET_3_DESC=[391x78] Rrs_412 (16-bit integer)<br>
     
SUBDATASET_4_NAME=HDF4_SDS:SEAWIFS_L2:&quot;S1998031140424.L2_MLAC_OC.x.hdf&quot;:14<br>
      SUBDATASET_4_DESC=[391x78] Rrs_443 (16-bit integer)<br>
     
SUBDATASET_5_NAME=HDF4_SDS:SEAWIFS_L2:&quot;S1998031140424.L2_MLAC_OC.x.hdf&quot;:15<br>
      SUBDATASET_5_DESC=[391x78] Rrs_490 (16-bit integer)<br>
     
SUBDATASET_6_NAME=HDF4_SDS:SEAWIFS_L2:&quot;S1998031140424.L2_MLAC_OC.x.hdf&quot;:16<br>
      SUBDATASET_6_DESC=[391x78] Rrs_510 (16-bit integer)<br>
     
SUBDATASET_7_NAME=HDF4_SDS:SEAWIFS_L2:&quot;S1998031140424.L2_MLAC_OC.x.hdf&quot;:17<br>
      SUBDATASET_7_DESC=[391x78] Rrs_555 (16-bit integer)<br>
     
SUBDATASET_8_NAME=HDF4_SDS:SEAWIFS_L2:&quot;S1998031140424.L2_MLAC_OC.x.hdf&quot;:18<br>
      SUBDATASET_8_DESC=[391x78] Rrs_670 (16-bit integer)<br>
     
SUBDATASET_9_NAME=HDF4_SDS:SEAWIFS_L2:&quot;S1998031140424.L2_MLAC_OC.x.hdf&quot;:19<br>
      SUBDATASET_9_DESC=[391x78] chlor_a (32-bit floating-point)<br>
     
SUBDATASET_10_NAME=HDF4_SDS:SEAWIFS_L2:&quot;S1998031140424.L2_MLAC_OC.x.hdf&quot;:20<br>
      SUBDATASET_10_DESC=[391x78] Kd_490 (16-bit integer)<br>
     
SUBDATASET_11_NAME=HDF4_SDS:SEAWIFS_L2:&quot;S1998031140424.L2_MLAC_OC.x.hdf&quot;:21<br>
      SUBDATASET_11_DESC=[391x78] pic (16-bit integer)<br>
     
SUBDATASET_12_NAME=HDF4_SDS:SEAWIFS_L2:&quot;S1998031140424.L2_MLAC_OC.x.hdf&quot;:22<br>
      SUBDATASET_12_DESC=[391x78] poc (16-bit integer)<br>
     
SUBDATASET_13_NAME=HDF4_SDS:SEAWIFS_L2:&quot;S1998031140424.L2_MLAC_OC.x.hdf&quot;:23<br>
      SUBDATASET_13_DESC=[391x78] cdom_index (16-bit integer)<br>
     
SUBDATASET_14_NAME=HDF4_SDS:SEAWIFS_L2:&quot;S1998031140424.L2_MLAC_OC.x.hdf&quot;:24<br>
      SUBDATASET_14_DESC=[391x78] par (16-bit integer)<br>
     
SUBDATASET_15_NAME=HDF4_SDS:SEAWIFS_L2:&quot;S1998031140424.L2_MLAC_OC.x.hdf&quot;:25<br>
      SUBDATASET_15_DESC=[391x78] l2_flags (32-bit integer)<br>
     
SUBDATASET_16_NAME=HDF4_SDS:SEAWIFS_L2:&quot;S1998031140424.L2_MLAC_OC.x.hdf&quot;:34<br>
      SUBDATASET_16_DESC=[391x3] orb_vec (32-bit floating-point)<br>
     
SUBDATASET_17_NAME=HDF4_SDS:SEAWIFS_L2:&quot;S1998031140424.L2_MLAC_OC.x.hdf&quot;:35<br>
      SUBDATASET_17_DESC=[391x3] sun_ref (32-bit floating-point)<br>
     
SUBDATASET_18_NAME=HDF4_SDS:SEAWIFS_L2:&quot;S1998031140424.L2_MLAC_OC.x.hdf&quot;:36<br>
      SUBDATASET_18_DESC=[391x3] att_ang (32-bit floating-point)<br>
     
SUBDATASET_19_NAME=HDF4_SDS:SEAWIFS_L2:&quot;S1998031140424.L2_MLAC_OC.x.hdf&quot;:37<br>
      SUBDATASET_19_DESC=[391x3x3] sen_mat (32-bit floating-point)<br>
     
SUBDATASET_20_NAME=HDF4_SDS:SEAWIFS_L2:&quot;S1998031140424.L2_MLAC_OC.x.hdf&quot;:38<br>
      SUBDATASET_20_DESC=[391x6] scan_ell (32-bit floating-point)<br>
     
SUBDATASET_21_NAME=HDF4_SDS:SEAWIFS_L2:&quot;S1998031140424.L2_MLAC_OC.x.hdf&quot;:39<br>
      SUBDATASET_21_DESC=[391x8] nflag (32-bit integer)<br>
     
SUBDATASET_22_NAME=HDF4_SDS:SEAWIFS_L2:&quot;S1998031140424.L2_MLAC_OC.x.hdf&quot;:42<br>
      SUBDATASET_22_DESC=[20x2] tilt_ranges (16-bit integer)<br>
    Corner Coordinates:<br>
  </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></div></div>