<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Etienne, <br>
    <br>
    1) Manage to attach the file (zipped) to the just opened ticket.<br>
    <br>
    2) Unfortunately it doesn't work. It says the usual <br>
    <br>
    C:\SVN\mironeWC&gt;gdalinfo
    "NETCDF:S1998031140424.L2_MLAC_OC.x.hdf:longitude"<br>
    ERROR 4: `NETCDF:S1998031140424.L2_MLAC_OC.x.hdf:longitude' does not
    exist in the file system,<br>
    <br>
    Note that I built GDAL with netcdf4 that on Windows is always linked
    against HDF.<br>
    <br>
    Joaquim<br>
    <br>
    <br>
    <br>
    <blockquote
cite="mid:CA+TxYvMdaAmyt1DY=yN-FqpH+MATi4q9w68o-R4F=Lc2MoiT8A@mail.gmail.com"
      type="cite">1) Not sure, but give it a try! If not, put it
      somewhere accessible on the web. &nbsp;You should&nbsp;definitively&nbsp;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&nbsp;"NETCDF:filename:subdataset", 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 moz-do-not-send="true"
                href="mailto:jluis@ualg.pt">jluis@ualg.pt</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
              0.8ex; border-left: 1px solid rgb(204, 204, 204);
              padding-left: 1ex;">
              <div text="#000000" bgcolor="#ffffff"> Hi,<br>
                <br>
                I'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 "HDF
                Explorer". <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.01060901.09030100@ualg.pt" alt=""><br>
                <br>
                Subdatasets:<br>
                &nbsp;
SUBDATASET_1_NAME=HDF4_SDS:SEAWIFS_L2:"S1998031140424.L2_MLAC_OC.x.hdf":11<br>
                &nbsp; SUBDATASET_1_DESC=[391x78] longitude (32-bit
                floating-point)<br>
                &nbsp;
SUBDATASET_2_NAME=HDF4_SDS:SEAWIFS_L2:"S1998031140424.L2_MLAC_OC.x.hdf":12<br>
                &nbsp; SUBDATASET_2_DESC=[391x78] latitude (32-bit
                floating-point)<br>
                &nbsp;
SUBDATASET_3_NAME=HDF4_SDS:SEAWIFS_L2:"S1998031140424.L2_MLAC_OC.x.hdf":13<br>
                &nbsp; SUBDATASET_3_DESC=[391x78] Rrs_412 (16-bit integer)<br>
                &nbsp;
SUBDATASET_4_NAME=HDF4_SDS:SEAWIFS_L2:"S1998031140424.L2_MLAC_OC.x.hdf":14<br>
                &nbsp; SUBDATASET_4_DESC=[391x78] Rrs_443 (16-bit integer)<br>
                &nbsp;
SUBDATASET_5_NAME=HDF4_SDS:SEAWIFS_L2:"S1998031140424.L2_MLAC_OC.x.hdf":15<br>
                &nbsp; SUBDATASET_5_DESC=[391x78] Rrs_490 (16-bit integer)<br>
                &nbsp;
SUBDATASET_6_NAME=HDF4_SDS:SEAWIFS_L2:"S1998031140424.L2_MLAC_OC.x.hdf":16<br>
                &nbsp; SUBDATASET_6_DESC=[391x78] Rrs_510 (16-bit integer)<br>
                &nbsp;
SUBDATASET_7_NAME=HDF4_SDS:SEAWIFS_L2:"S1998031140424.L2_MLAC_OC.x.hdf":17<br>
                &nbsp; SUBDATASET_7_DESC=[391x78] Rrs_555 (16-bit integer)<br>
                &nbsp;
SUBDATASET_8_NAME=HDF4_SDS:SEAWIFS_L2:"S1998031140424.L2_MLAC_OC.x.hdf":18<br>
                &nbsp; SUBDATASET_8_DESC=[391x78] Rrs_670 (16-bit integer)<br>
                &nbsp;
SUBDATASET_9_NAME=HDF4_SDS:SEAWIFS_L2:"S1998031140424.L2_MLAC_OC.x.hdf":19<br>
                &nbsp; SUBDATASET_9_DESC=[391x78] chlor_a (32-bit
                floating-point)<br>
                &nbsp;
SUBDATASET_10_NAME=HDF4_SDS:SEAWIFS_L2:"S1998031140424.L2_MLAC_OC.x.hdf":20<br>
                &nbsp; SUBDATASET_10_DESC=[391x78] Kd_490 (16-bit integer)<br>
                &nbsp;
SUBDATASET_11_NAME=HDF4_SDS:SEAWIFS_L2:"S1998031140424.L2_MLAC_OC.x.hdf":21<br>
                &nbsp; SUBDATASET_11_DESC=[391x78] pic (16-bit integer)<br>
                &nbsp;
SUBDATASET_12_NAME=HDF4_SDS:SEAWIFS_L2:"S1998031140424.L2_MLAC_OC.x.hdf":22<br>
                &nbsp; SUBDATASET_12_DESC=[391x78] poc (16-bit integer)<br>
                &nbsp;
SUBDATASET_13_NAME=HDF4_SDS:SEAWIFS_L2:"S1998031140424.L2_MLAC_OC.x.hdf":23<br>
                &nbsp; SUBDATASET_13_DESC=[391x78] cdom_index (16-bit
                integer)<br>
                &nbsp;
SUBDATASET_14_NAME=HDF4_SDS:SEAWIFS_L2:"S1998031140424.L2_MLAC_OC.x.hdf":24<br>
                &nbsp; SUBDATASET_14_DESC=[391x78] par (16-bit integer)<br>
                &nbsp;
SUBDATASET_15_NAME=HDF4_SDS:SEAWIFS_L2:"S1998031140424.L2_MLAC_OC.x.hdf":25<br>
                &nbsp; SUBDATASET_15_DESC=[391x78] l2_flags (32-bit integer)<br>
                &nbsp;
SUBDATASET_16_NAME=HDF4_SDS:SEAWIFS_L2:"S1998031140424.L2_MLAC_OC.x.hdf":34<br>
                &nbsp; SUBDATASET_16_DESC=[391x3] orb_vec (32-bit
                floating-point)<br>
                &nbsp;
SUBDATASET_17_NAME=HDF4_SDS:SEAWIFS_L2:"S1998031140424.L2_MLAC_OC.x.hdf":35<br>
                &nbsp; SUBDATASET_17_DESC=[391x3] sun_ref (32-bit
                floating-point)<br>
                &nbsp;
SUBDATASET_18_NAME=HDF4_SDS:SEAWIFS_L2:"S1998031140424.L2_MLAC_OC.x.hdf":36<br>
                &nbsp; SUBDATASET_18_DESC=[391x3] att_ang (32-bit
                floating-point)<br>
                &nbsp;
SUBDATASET_19_NAME=HDF4_SDS:SEAWIFS_L2:"S1998031140424.L2_MLAC_OC.x.hdf":37<br>
                &nbsp; SUBDATASET_19_DESC=[391x3x3] sen_mat (32-bit
                floating-point)<br>
                &nbsp;
SUBDATASET_20_NAME=HDF4_SDS:SEAWIFS_L2:"S1998031140424.L2_MLAC_OC.x.hdf":38<br>
                &nbsp; SUBDATASET_20_DESC=[391x6] scan_ell (32-bit
                floating-point)<br>
                &nbsp;
SUBDATASET_21_NAME=HDF4_SDS:SEAWIFS_L2:"S1998031140424.L2_MLAC_OC.x.hdf":39<br>
                &nbsp; SUBDATASET_21_DESC=[391x8] nflag (32-bit integer)<br>
                &nbsp;
SUBDATASET_22_NAME=HDF4_SDS:SEAWIFS_L2:"S1998031140424.L2_MLAC_OC.x.hdf":42<br>
                &nbsp; SUBDATASET_22_DESC=[20x2] tilt_ranges (16-bit integer)<br>
                Corner Coordinates:<br>
              </div>
              <br>
              _______________________________________________<br>
              gdal-dev mailing list<br>
              <a moz-do-not-send="true"
                href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
              <a moz-do-not-send="true"
                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>
    <br>
  </body>
</html>