[SciPy-User] MODIS data and true-color plotting

Gökhan Sever gokhansever at gmail.com
Sun Nov 13 16:42:20 EST 2011


On Sun, Nov 13, 2011 at 1:27 PM, Arnaldo Russo <arnaldorusso at gmail.com>wrote:

> Hi Gökhan,
>
> Try to use "pyhdf"
>
> wget -c http://ufpr.dl.sourceforge.net/project/pysclint/pyhdf/0.8.3/pyhdf
> -0.8.3.tar.gz
> 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
>
>
Hi,

I got pyhdf working. It has a little different way of accessing data
content comparing to PyNIO and netcdf4-python.

Example:

I43 from pyhdf.SD import *

I44 aa = SD('MOD021KM.A2006180.1920.005.2010179032452.hdf')

I45 aa.select('Latitude')[:].shape
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 [
http://modis.gsfc.nasa.gov/data/dataprod/dataproducts.php?MOD_NUMBER=06]



>
> Regards,
> Arnaldo
>
> ----
> *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 <gokhansever at gmail.com>
>
>> 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.
>>
>> Thanks.
>>
>> _______________________________________________
>> SciPy-User mailing list
>> SciPy-User at scipy.org
>> http://mail.scipy.org/mailman/listinfo/scipy-user
>>
>>
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
>


-- 
Gökhan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20111113/708d6150/attachment.html>


More information about the SciPy-User mailing list