The goal is to create a browse image at 250m resolution:
- the full image is width=172800 height=76800.
- to match the 32 bit computers and to fit the 2 giga bytes maximum file size.
The image is divided into 8 areas of width=21600 and height=76800 and HDFLook will run 8 times with a modification of
the lontitude min max extraction area.
The final image can be visualized by the Msphinx software as a single huge image.
Image area is Lontitude +-180 degrees latitude +-80 degrees.
Have a look on:
http://www-loa.univ-lille1.fr/MODIS/Model.html
Click on the image to enlarge
|
# WORLD 250m MOSAIC : SLICE BY SLICE (76800 lines of 21600 columns)
# input files:
# MOD02QKM.A2002280.0030.003.2002280112751.hdf
# MOD02HKM.A2002280.0030.003.2002280112751.hdf
# GSUB1.A2002280.0030.2003119025135331218.hdf or MOD021KM.A2002280.0030.003.2002280112751.hdf
verbose
clear_data
#SET THE INPUT/OUPUT DIRECTORIES
set_tmp_directory /tmp
set_output_directory /DATA2/MODIS/OCTOBER7/OUTPUTS
set_input_directory /DATA2/MODIS/OCTOBER7/TERRA/
set_input_directory /DATA2/MODIS/OCTOBER7/TERRA500
set_input_directory /DATA2/MODIS/OCTOBER7/TERRA250
#SET THE PROJECTION GEOMETRY
set_projection_to_geometry ProjectionTo="LINEAR" WidthTo=21600 HeightTo=76800\
LatitudeMinTo=-80.0 LatitudeMaxTo=80.0 \
LongitudeMinTo=0.0 LongitudeMaxTo=45.0
#SELECT THE IMAGE SETTING
set_image_background color=White
set_misc_options OnlyDay=Yes CloudsRGBEnhance=Yes
#SET THE INPUT IMAGES
set_input_hdf_file /DATA2/MODIS/OCTOBER7/TERRA250/MOD02QKM*
#CREATE THE OUTPUT IMAGE
set_image_RGB_composite VISIBLE
create_MODIS_RGB_Mosaic FileName="october_7_2002_250m" ClearFile=Yes RGBMode="LogStandard"