Revision cc5360b4
Added by Jim Regetz over 13 years ago
- ID cc5360b46fad3d7f23243d070abafc5edfc920b6
terrain/dem/boundary-assembly.sh | ||
---|---|---|
21 | 21 |
# |
22 | 22 |
# Jim Regetz |
23 | 23 |
# NCEAS |
24 |
# Created on 08-Jun-2011 |
|
25 | 24 |
|
26 | 25 |
# at the time of script creation, these paths were correct on vulcan |
27 | 26 |
export ASTDIR="/home/reeves/active_work/EandO/asterGdem" |
terrain/dem/boundary-correction.R | ||
---|---|---|
4 | 4 |
# |
5 | 5 |
# Jim Regetz |
6 | 6 |
# NCEAS |
7 |
# Created on 08-Jun-2011 |
|
8 | 7 |
|
9 | 8 |
library(raster) |
10 | 9 |
|
... | ... | |
29 | 28 |
aster.north.matrix <- as.matrix(aster.north) |
30 | 29 |
ydistN <- nrow(aster.north.matrix) + 1 - row(aster.north.matrix) |
31 | 30 |
|
32 |
# 1b. linear ramp north from SRTM edge
|
|
33 |
# -- Rick is doing this --
|
|
31 |
# 1a. linear ramp north from SRTM edge
|
|
32 |
# -- Rick has done this --
|
|
34 | 33 |
|
35 |
# 2b. exponential ramp north from SRTM edge |
|
36 |
# -- Rick is also doing this, but here it is... -- |
|
34 |
# 1b. exponential ramp north from SRTM edge |
|
37 | 35 |
r <- -0.045 |
38 | 36 |
w <- exp(ydistN*r) |
39 | 37 |
aster.north.smooth <- aster.north |
... | ... | |
111 | 109 |
as.matrix(delta.south)))) |
112 | 110 |
aster.south.smooth[aster.south.smooth<0] <- 0 |
113 | 111 |
writeRaster(aster.south.smooth, file="dem_150below_blendgau.tif") |
114 |
|
terrain/dem/boundary-fusion.sh | ||
---|---|---|
1 | 1 |
# GDAL commands to produced fused DEMs in the vicinity of the 60N Canada |
2 | 2 |
# boundary, using several "boundary-corrected" variants as well as the |
3 |
# original uncorrected DEMs. |
|
3 |
# original uncorrected DEMs. Note that the multiresolution spline is not |
|
4 |
# included here, because the associated fused layer is already produced |
|
5 |
# in its entirety during that process. |
|
4 | 6 |
# |
5 | 7 |
# Jim Regetz |
6 | 8 |
# NCEAS |
terrain/dem/enblend.R | ||
---|---|---|
11 | 11 |
# |
12 | 12 |
# Jim Regetz |
13 | 13 |
# NCEAS |
14 |
# Created on 29-Jun-2011 |
|
15 | 14 |
|
16 | 15 |
library(raster) |
17 | 16 |
|
terrain/flow/flow-boundary.sh | ||
---|---|---|
4 | 4 |
# |
5 | 5 |
# Jim Regetz |
6 | 6 |
# NCEAS |
7 |
# Created 15-Jun-2011 |
|
8 | 7 |
|
9 | 8 |
export DEMDIR=~/media/temp/terrain/dem |
10 | 9 |
export FLOWDIR=~/media/temp/terrain/flow |
Also available in: Unified diff
just minor tweaks to code comments