# HDFLook script: California Case, Terra MODIS 2005273.1920 # Band 7 # Startup verbose clear_data # Input file set_input_hdf_file "MOD021KM.A2005273.1920.005.2008063225157.hdf" select_SDS SDSname="EV_500_Aggr1km_RefSB" Index=5 set_SDS_enhance min=0.0 max=0.30 set_color_scale_name "palette_grey.txt" # Projection set_projection_to_geometry ProjectionTo=LINEAR PIXELSIZEXTO=500 PIXELSIZEYTO=500 set_image_background Color=Black # Labels add_text x=1 y=0 ForegroundColor="Black" BackgroundColor="White" \ Border=0 FontName="Verdana.ttf" SizeFactor=2 Rotation=0 \ Text=" Terra MODIS 2005273 19:20 UTC Band 7 Reflectance " #add_text x=1 y=19 ForegroundColor="Black" BackgroundColor="White" \ # Border=0 FontName="Verdana.ttf" SizeFactor=1.5 Rotation=0 \ # Text=" Band 7 Reflectance " #add_scale_to_image x=40 y=100 width=800 height=30 Rotation=90.0 \ # TickColor=White ForegroundColor="Black" BackgroundColor="White" \ # TextFormat="%.2f" FontName="Verdana.ttf" SizeFactor=1.2 \ # UpLeftSide=Yes NoTicks=No # Grids add_maps Coastlines=Yes Boundaries=Yes CoastlineColor="Yellow" BoundaryColor="Yellow" add_grids Color=White LatitudeMin=-90 LatitudeMax=90 LatitudeStep=2 \ LongitudeMin=-180 LongitudeMax=180 LongitudeStep=2 add_latitude_labels ForegroundColor="Black" BackgroundColor="Grey0" \ Border=0 FontName="Verdana.ttf" \ SizeFactor=1.5 Rotation=0. Format="%.0f" \ LatitudeMin=-90 LatitudeMax=90 LatitudeStep=2 add_longitude_labels ForegroundColor="Black" BackgroundColor="White" \ Border=0 FontName="Verdana.ttf" \ SizeFactor=1.5 Rotation=90. Format="%.0f" \ LongitudeMin=-180 LongitudeMax=180 LongitudeStep=2 # Granule output file create_MODIS_SDS_GEOTIFF_image FileName="MOD021KM.A2005273.1920.band07.tif" Scaling=Reflectance \ LatitudeMin=30.0 LatitudeMax=37.0 LongitudeMin=-128.5 LongitudeMax=-121.5