[SciPy-User] MODIS data and true-color plotting
Sun Nov 13 15:42:20 CST 2011
On Sun, Nov 13, 2011 at 1:27 PM, Arnaldo Russo <email@example.com>wrote:
> Hi Gökhan,
> Try to use "pyhdf"
> wget -c http://ufpr.dl.sourceforge.net/project/pysclint/pyhdf/0.8.3/pyhdf
> tar zxvf pyhdf-0.8.3.tar.gz
> cd pyhdf-0.8.3/
> sudo apt-get install libhdf4-dev
> sudo apt-get install python2.6-dev
> cd pyhdf
> sudo apt-get install swig
> swig -python hdfext.i
> cd ..
> export INCLUDE_DIRS=/usr/include/hdf
> export LIBRARY_DIRS=/usr/lib
> export NOSZIP=1
> python setup.py install
I got pyhdf working. It has a little different way of accessing data
content comparing to PyNIO and netcdf4-python.
I43 from pyhdf.SD import *
I44 aa = SD('MOD021KM.A2006180.1920.005.2010179032452.hdf')
O45 (406, 271)
Installation of pyhdf was much simpler. Just depends on hdf4.
> May be you could use h4toh5 and use pytables.
Do this conversion have much advantage rather than pure command based
access to data?
> 2 - I'm trying to get ocean color variables through pyhdf package, but I'm
> still working on.
> If you have any advance, post here your feedback, please.
Which level of product are you working with? Once I figure out true-color
plotting, I am going to bring cloud effective radius data from MOD06 [
> *Arnaldo D'Amaral Pereira Granja Russo*
> Lab. de Estudos dos Oceanos e Clima
> Instituto de Oceanografia
> Universidade Federal do Rio Grande
> e-mail arnaldorusso [at] gmail [dot] com
> tel (53) 3233-6855
> 2011/11/13 Gökhan Sever <firstname.lastname@example.org>
>> Hello groups,
>> I have two questions about working with MODIS data.
>> 1-) Is there any light Pythonic HDF-EOS wrapper to handle HDF-EOS data
>> other than PyNIO [http://www.pyngl.ucar.edu/Nio.shtml] Although, I have
>> managed to install that package from its source, it took me many hours to
>> figure out all the installation quirks. Something simpler to build and
>> mainly for HDFEOS data??
>> 2-) Another similar question: Has anybody attempted to create true-color
>> MODIS images (like the ones shown at [
>> http://rapidfire.sci.gsfc.nasa.gov/realtime/]) in Python? So far, I have
>> seen one clear tutorial [
>> ftp://ftp.ssec.wisc.edu/pub/IMAPP/MODIS/TrueColor/] to create natural
>> color images, but uses ms2gt [http://nsidc.org/data/modis/ms2gt/], NDVI
>> and IDL. Except the reflectance correction via NDVI, ms2gt and IDL parts
>> seem to be implemented in Python.
>> Till now, I have some progress combining GOES imagery with aircraft data.
>> My next task is to combine MODIS data with aircraft and radar data. I would
>> be happy to get some guidance and code support if there is any previous
>> work been done using Python.
>> SciPy-User mailing list
> SciPy-User mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-User