Project

General

Profile

Download (1.87 KB) Statistics
| Branch: | Revision:
1
#! /bin/sh
2
################################################################################
3
# script Name: mosaicNwHemiCgiarThreercSecBL.sh
4
# This script constructs the CIGAR SRTM image mosaic, at resolution of three 
5
# arcseconds, for the Northweetern Hemisphere. quadrant of the global mosaic
6
# 
7
# Author: Rick Reeves, NCEAS June 9, 2011
8
#
9
# NOTE: We are using SRTM version 4.1 data distributed by CGIAR (6001 x 6001 tiles)
10
# Determining the -ts (row, column # cells): 
11
# 1) Look at the first line of corresponding .vrt file: contains the spanning extent 
12
# (# rows, columns) of all image tiles in the virtual mosaic, as well as the pixel
13
# resolution in 'native units' for the spatial reference frame (in our case, 
14
# the geographic coordinate system and decimal degrees).
15
# Example for this file: 
16
#
17
# <GeoTransform> -1.8000041666668000e+02,  8.3333333333332894e-04,  0.0000000000000000e+00,
18
#  6.0000417247802311e+01,  0.0000000000000000e+00, -8.3333333333332894e-04</GeoTransform>
19
# The values 8.3333333333332894e-04 and -8.3333333333332894e-04 are the cell resolution
20
# in decimal cegrees: 3 arc-seconds, or approx 90 meters.
21
# <dataset rasterXSize="156001" rasterYSize="54001">: # cols and rows, respectively.
22
#
23
# The extent of the mosaic is fixed. To change the cell size, adjust the X and Y resolution.
24
# In the present case, we use the same paramater values, to retain 3 arcsecond resolution.
25
#<dataset rasterXSize="156001" rasterYSize="54001">
26
################################################################################
27
#
28
date
29
#rm /home/reeves/active_work/OutProducts/WestHemi/NorthWest/NorthWestHemiCgiar_3ArcSecBL.img
30
rm /home/reeves/EandO/Results/NorthWestHemiCgiar3ArcSec.img
31
gdalwarp -of HFA -ot Int16 -r bilinear -srcnodata -9999 -dstnodata -9999 \
32
/home/reeves/active_work/OutProducts/WestHemi/NorthWest/NorthWestHemiCgiarSrtm.vrt \
33
/home/reeves/EandO/Results/NorthWestHemiCgiar3ArcSec.img
34
date
(31-31/37)