Project

General

Profile

Download (889 Bytes) Statistics
| Branch: | Revision:
1
#
2
# informal concordance analysis of flow accumulation in the 60N boundary
3
# region of Canada
4
#
5
# Jim Regetz
6
# NCEAS
7
# Created on 17-Jun-2011
8

    
9
# data directory (local to xander)
10
datadir <- "~/media/temp/dem/new/flow"
11

    
12
# load flow direction rasters produced by terraflow (mfd)
13
# Canadian DEM
14
fl.can <- raster(file.path(datadir, "flowdir_small.tif"))
15
# uncorrected fused srtm/aster
16
fl.uncor <- raster(file.path(datadir, "flowdir_smc.tif"))
17
# gaussian blended srtm/aster
18
fl.bg <- raster(file.path(datadir, "flowdir_smbg.tif"))
19

    
20
# plot cross-latitude profile of mean direction
21
lats <- yFromRow(fl.uncor, 1:nrow(fl.uncor))
22
plot(lats, rowMeans(as.matrix(fl.uncor), na.rm=TRUE), type="l", lwd=2)
23
lines(lats, rowMeans(as.matrix(fl.bg), na.rm=TRUE), col="red")
24
lines(lats, rowMeans(as.matrix(fl.can), na.rm=TRUE), col="blue")
25
plot(lats, rowMeans(as.matrix(fl.bg==fl.can), na.rm=TRUE), col="red")
26

    
27

    
(5-5/6)