[gradsusr] SeaWIFS NDVI data

Matt Alonso matt.alonso at gmail.com
Fri Apr 2 08:21:04 EDT 2010


Hi Ramon,

I remember reading that GrADS could handle HDF files which is why I was so
surprised that I was having issues getting the data into GrADS; again I
think this is a user-error and not a problem w/GrADS itself.

When I try to open the file in grads (v2.0.7a) using sdfopen it says that
the file has no discernable x-coordinate.  I tried constructing a ctl file
for it as well but that too failed.

I can't find the exact link right now but I'm 99.9% sure that the file is in
HDF format.  I also attached the output of the GDAL (http://gdal.org/)
utility gdalinfo, the top line of which says that the driver it is using is
the "HDF4Image/HDF4 Dataset".  I did a test plot of the data using
gdal_translate to convert it into a png and the output matches what is on
NASA's site which leads me to believe that GDAL is correct in interpreting
this file as HDF(4).

My interpretation of all of this could be way off though as I am really just
grasping for straws here.

Thanks,
Matt

On Fri, Apr 2, 2010 at 12:18 AM, Ramon Solano <rsolanob at gmail.com> wrote:

> Hello Matt,
>
> GrADS has no problem working with HDF files, no matter if they are
> projected or not; what matters is if they are stored as a regular grid. You
> may have geolocation problems if the file is projected into something like a
> sinusoidal or some other not so common projection, but still you can have
> access to the actual data, do the processing and at the end to export the
> results to your favorite software (ENVI, Imagine, etc).
>
> Of course, the first thing you need to have is the internal structure of
> the data file (data type, dimensions, data layers, interleaving, etc). I ran
> a HDF diagnostic utility on the file you mentioned and it appears that the
> file does not contain any grid, are you sure it is a HDF file? Looks more
> like a plain binary file, but that's just my guessing (HDF files are self
> described).
>
> Regards,
> Ramon
>  ---
>
> On Mar 31, 2010, at 6:41 AM, Matt Alonso wrote:
>
> Hi All,
>
> Sorry to bother folks w/this but I was wondering if anyone has had any
> success working w/SeaWIFS data (
> http://oceandata.sci.gsfc.nasa.gov/SeaWiFS/Mapped/8Day/NDVI/2010/) in
> GrADS.  I've been struggling w/creating the appropriate CTL for the HDF
> data.  When I open the most recent 8day composite 4km file (
> http://oceandata.sci.gsfc.nasa.gov/cgi/getfile/S20100652010072.L3m_8D_LAND_NDVI_4km.bz2)
> I'm having problems trying to read the file into GrADS.
>
> Any info on this matter would be greatly appreciated.  Thanks in advance.
>
> Cheers,
> Matt
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100402/bb88459c/attachment-0003.html 


More information about the gradsusr mailing list