Skip to content
Prev 20706 / 29559 Next

reading .hdf files

David:

I don't see any information in that file re: pixel size -- the corner
coordinates appear to be pixel (not geography) coordinates, so they
won't help you.  If they did contain the right info, you could use
some basic text parsing to extract it from the output of gdalinfo().

So, you are left with a couple of choices:
1) Get the metadata on the file you are using from NOAA and see if
they can help you figure out the corner coordinates/pixel sizes OR;
2) (my suggestion) use a different data set.  Why are you using this
particular dataset?  If you want large-scale, well-calibrated NDVI,
the MODIS products are standardized and go back to 2000
(https://lpdaac.usgs.gov/products/modis_products_table/mod13q1).
Alternatively, if you want finer-scale NDVI (30m), you can get the
LANDSAT LEDAPS products (you want the surface reflectance product)
from Earth Explorer (http://landsat.usgs.gov/CDR_LSR.php)-- these go
back to at least 1985.  From these, you can just calculate the
per-image NDVI yourself (it is a simple calculation: (NIR - RED) /
(NIR + RED) ).

--j
On Fri, Mar 28, 2014 at 2:07 PM, David Bradley <dododave at gmail.com> wrote:

  
    
Message-ID: <CABG0rfuffra2UZZNUcRj3jPQUZFPupWzURksxv4f29SB-XpQWQ@mail.gmail.com>
In-Reply-To: <CAE6kkfNX_dhiHVkr+Twvsx4b2nqohWOm3_50eWe5FNHTQWN36w@mail.gmail.com>