[Gdal-dev] Modis HDF help

Daniel Victoria daniel.victoria at gmail.com
Tue Sep 5 21:46:15 EDT 2006


Thanks Andrey,

I'm pleased to inform that whatever you did fixed the problem. Now I
can import MOD43B using gdal and it correctily recognizes the 22
bands.

once again, thanks
Daniel

On 9/5/06, Andrey Kiselev <dron at ak4719.spb.edu> wrote:
> On Tue, Sep 05, 2006 at 09:36:50AM -0300, Daniel Victoria wrote:
> > You can get one of the MOD43B images in the link bellow. It's an 18 Mb
> > file http://juruti.cena.usp.br/~daniel/modis/modis43b3.tar.gz
> >
> > It's comforting to know that I'm not the one messing up. The down side
> > is that I really wished I could do this with GDAL so then I could do a
> > batch import. Do you know of any other software that can do a batch
> > import with HDF4 data?
>
> Daniel,
>
> You can grab the latest GDAL snapshot from CVS and test it for support
> for your datasets. I am not sure that my approach will work in all
> possible situations, but it should work in your case. I do not know
> other tools suitable for batch processing, it is hard to automatically
> process HDF files, because they are designed to be human readable in the
> first place and not machine readable. MRT is higly specific tool, so it
> is probably the best choice for MODIS processing, though the GDAL driver
> tries to be the universal one.
>
> I think that MRT can be used in batch mode, you just need to cgenerate
> control file on the fly, something like
>
> for i in *.hdf ; do
>         echo INPUT_FILENAME = $i >prm.prm
>         echo OUTPUT_FILENAME = `basename $i .hdf`.tif >> prm.prm
> ...
> done
>
>
> Regards,
> Andrey
>
>
> --
> Andrey V. Kiselev
> ICQ# 26871517
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev
>



More information about the Gdal-dev mailing list