[gdal-dev] subdatasets not read in a HDF file - CONT

2012-02-01 Thread Joaquim Luis
-subdatasets-not-read-in-a-HDF-file-tt3743143.html#a3743148 However, it turns out that the 1D datasets are not read purpose. Lines 1013, 1014 of hdf4dataset.cpphave if ( iRank == 1 )// Skip 1D datsets continue; which, if I comment them, allows

Re: [gdal-dev] subdatasets not read in a HDF file

2011-10-24 Thread Joaquim Luis
On 24-10-2011 15:21, Etienne Tourigny wrote: Joaquim, I tried reading your dataset with the updated netcdf driver in linux, but it reads the same (22) subdatasets (see below). But at least it opens, with the following call: gdalinfo NETCDF:S1998031140424.L2_MLAC_OC.x.hdf Etienne, I rebuilt wi

Re: [gdal-dev] subdatasets not read in a HDF file

2011-10-24 Thread Etienne Tourigny
Joaquim, I tried reading your dataset with the updated netcdf driver in linux, but it reads the same (22) subdatasets (see below). But at least it opens, with the following call: gdalinfo NETCDF:S1998031140424.L2_MLAC_OC.x.hdf In fact, your email prompted me to try it out and add support for HDF

Re: [gdal-dev] subdatasets not read in a HDF file

2011-10-24 Thread Joaquim Luis
On 24-10-2011 14:04, Jose Gomez-Dans wrote: Hi Joaquim, On 24 October 2011 13:56, Joaquim Luis > wrote: Anton, I don't remember the details because I programmed that some time ago, but from what I recall that's the most accurate way of interpolating the d

Re: [gdal-dev] subdatasets not read in a HDF file

2011-10-24 Thread Jose Gomez-Dans
Hi Joaquim, On 24 October 2011 13:56, Joaquim Luis wrote: > Anton, > > I don't remember the details because I programmed that some time ago, but > from what I recall that's the most accurate way of interpolating the data > into a regular grid. The whole procedure is implemented in Mirone were th

Re: [gdal-dev] subdatasets not read in a HDF file

2011-10-24 Thread Joaquim Luis
Anton, I don't remember the details because I programmed that some time ago, but from what I recall that's the most accurate way of interpolating the data into a regular grid. The whole procedure is implemented in Mirone were the x,y,z triplets (computed after the cnt_pt_col|row) are reinter

Re: [gdal-dev] subdatasets not read in a HDF file

2011-10-24 Thread Anton Korosov
Hi Joaquim! I'm curious why do you want to read cnt_pt_col and cnt_pt_row from a SeaWiFS file? These dataset (1D vectors, actually) only contains indexes of rows and columns for which latitude, longitude grids are given. And you can read lat/lon from GCPs. Or do you also feel that only ~100

Re: [gdal-dev] subdatasets not read in a HDF file

2011-10-23 Thread Joaquim Luis
Etienne, 1) Manage to attach the file (zipped) to the just opened ticket. 2) Unfortunately it doesn't work. It says the usual C:\SVN\mironeWC>gdalinfo "NETCDF:S1998031140424.L2_MLAC_OC.x.hdf:longitude" ERROR 4: `NETCDF:S1998031140424.L2_MLAC_OC.x.hdf

Re: [gdal-dev] subdatasets not read in a HDF file

2011-10-22 Thread Etienne Tourigny
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. 2) netcdf supports HDF4 if it was configured for hdf4 support. In that case, to force the netcdf driver you would have to use "NETCDF:filename:subdataset", or else th

[gdal-dev] subdatasets not read in a HDF file

2011-10-22 Thread Joaquim Luis
Hi, 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. Below is the list givem by gdalinfo, which lacks 2 subdatasets: the cntl_pt_cols & cntl_pt_rows To prove I attach a