Project

General

Profile

« Previous | Next » 

Revision f9dbcec6

Added by Rick Reeves over 13 years ago

  • ID f9dbcec6c7d67e54742764fb2486afce0b283684

ReadMe file describes how to use shell scripts (also checked in) to create example Srtm/Aster DEM image mosaic of Western Canada region spanning 60 deg N Latitude boundary

View differences:

terrain/shellscripts/ReadmeCreateBoundaryMosaic.txt
1
May 5, 2011 / Rick Reeves
2
ReadMe file: Shell scripts to create the mosaic (3 arcsecond resolution) 
3
of CGIAR/SRTM and ASTER GDEM imagery spanning the 60 Degree North Latitude 
4
boundary within western Canada
5

  
6
Three shell scripts used:
7

  
8
1) "mosaicCgiarSrtmBdySRTM.sh" : creates mosaic from CGIAR/SRTM 5 degree tiles
9
    (3 arcsecond resolution) converted to .tif format from original ArcMap ASCII
10
    format.
11

  
12
2) "mosaicCgiarSrtmMBdyAster.sh" : creates mosaic from ASTER GDEM 1 degree tiles
13
   (1 arcsecond resolution) converted to .tif format from original ArcMap ASCII
14
   format. Note: incoming image tiles are resampled to 3 arcsecond resolution
15
   to create outgoing image mosaic,
16

  
17
3) "mosaicSrtmAsterPartsBdy.sh" : creates mosaic from the outputs from scripts
18
    1) and 2) (3 arcsecond resolution): 
19
                                            mergeCgiarAsterBdySRTM_BL.tif 
20
                                            mergeCgiarAsterBdyASTER_BL.tif
21

  
22
To create the ASTER / CGIAR boundary mosaic: 
23

  
24
1) make current directory '/data/project/organisms/rcr/AsterCgiarMerge/'
25
2) run the script "mosaicCgiarSrtmBdySRTM.sh"
26
3) run the script "mosaicSrtmMBdyAster.sh"
27
4) run the script "mosaicSrtmAsterPartsBdy.sh"
28

  
29
Note: These initial scripts do NOT specify a new image extent for any of the mosaic components.
30
      (gdalwarp parameter '-te xmin ymin xmax ymax' used to specify the extent)
31
      So for these initial *test* runs, the output image extent is derived from the input files.
32
 
33
      In 'production' runs, the extent of output mosaic tile compoents will be specified using -te;
34
      we may also set other 'gdalwarp' parameters to properly establish other output image parameters.
35
      
terrain/shellscripts/mosaicCgiarSrtmBdySRTM.sh
3 3
# using CGIAR/SRTM tiles adjacent to 60 Degrees North Latitude.
4 4
# Author: Rick Reeves, NCEAS April 26, 2011
5 5
date
6
rm /data/project/organisms/rcr/AsterCgiarMerge/mergeCgiarAsterBdySRTM_BL.tif
6
rm /data/project/organisms/rcr/AsterCgiarMerge/mergeCgiarAsterBdySRTM_BLX.tif
7 7
gdalwarp -of GTiff -ot Int16 -tr .0008333 .0008333 -r bilinear -srcnodata -9999 -dstnodata -9999 \
8 8
/data/project/organisms/CgiarSrtmAll/5_5x5_ascii/srtm_07_01.tif \
9 9
/data/project/organisms/CgiarSrtmAll/5_5x5_ascii/srtm_08_01.tif \
......
15 15
/data/project/organisms/CgiarSrtmAll/5_5x5_ascii/srtm_14_01.tif \
16 16
/data/project/organisms/CgiarSrtmAll/5_5x5_ascii/srtm_15_01.tif \
17 17
/data/project/organisms/CgiarSrtmAll/5_5x5_ascii/srtm_16_01.tif \
18
/data/project/organisms/rcr/AsterCgiarMerge/mergeCgiarAsterBdySRTM_BL.tif
18
/data/project/organisms/rcr/AsterCgiarMerge/mergeCgiarAsterBdySRTM_BLX.tif
19 19
date

Also available in: Unified diff