LANDSAT: Difference between revisions
Jump to navigation
Jump to search
(→Notes: non-hardcoded band name) |
m (→Modules) |
||
Line 13: | Line 13: | ||
* {{cmd|r.composite}} - flatten 3-bands of data into a single image (lossy) | * {{cmd|r.composite}} - flatten 3-bands of data into a single image (lossy) | ||
* {{AddonCmd|i.landsat.toar}} (addon) - convert to top of atmosphere radiance | * {{AddonCmd|i.landsat.toar}} (addon) - convert DN to top of atmosphere radiance | ||
* {{AddonCmd|i.landsat.acca}} (addon) - cloud identification | * {{AddonCmd|i.landsat.acca}} (addon) - cloud identification | ||
* {{AddonCmd|i.landsat.dehaze}} (addon) - haze removal | * {{AddonCmd|i.landsat.dehaze}} (addon) - haze removal |
Revision as of 03:34, 16 September 2010
LANDSAT Data Availability
- data download from USGS LANDSAT archive and GLCF
- USGS GloVis Java app: http://glovis.usgs.gov
- see also the Global datasets wiki page
Modules
- d.rgb - display 3-band data
- i.landsat.rgb - auto-enhance colors
- i.atcorr - correct top of atmosphere to surface reflectance
- i.oif - calculate the 3 bands showing the greatest difference (for use as R,G,B bands)
- r.composite - flatten 3-bands of data into a single image (lossy)
- i.landsat.toar (addon) - convert DN to top of atmosphere radiance
- i.landsat.acca (addon) - cloud identification
- i.landsat.dehaze (addon) - haze removal
LANDSAT Pre-Processing
Some notes from Yann Chemin:
- Open GRASS GIS, select create location from georeferenced file
- Use r.in.gdal to import into GRASS GIS.
- Most landsat scenes are delivered in "north-is-up" orientation, hence import is straightforward
- If you get "ERROR: Input map is rotated - cannot import.", the image must be first externally rotated, applying the rotation info stored in the metadata field of the raster image file. For example, the gdalwarp software can be used to transform the map to North-up (note, there are several gdalwarp parameters to select the resampling algorithm):
gdalwarp rotated.tif northup.tif
- In grass/add-ons look for any of these to correct from radiance to reflectance at top of atmosphere
- Use i.atcorr to correct top of atmosphere to surface reflectance
Notes
The i.landsat.toar and i.landsat.acca modules want the maps to be named such as "scenename.1, .2, .3", etc. for the different bands. GloVis names LANDSAT-7 like _B10, _B20, _B30, etc.
Here's a little trick with r.reclass to rename it without touching the data or wasting disk space:
BASE=L71074092_09220040924
for BAND in 10 20 30 40 50 61 70 80; do
BAND1st=`echo $BAND | sed -e 's/0$//'`
r.reclass in="${BASE}_B$BAND" out=$BASE.$BAND1st << EOF
* = *
EOF
done
Calculate top-of-atmosphere reflectance and band-6 temperature:
i.landsat.toar -7 band_pre=$BASE metfile=${BASE}_MTL.txt
Identify clouds in the image:
i.landsat.acca -2 -f band_prefix=$BASE.toar out=$BASE.acca
Mask out the clouds:
r.mapcalc "MASK = if( isnull($BASE.acca), 1, null() )"