-
Notifications
You must be signed in to change notification settings - Fork 3
/
cdl.Rnw
66 lines (45 loc) · 1.99 KB
/
cdl.Rnw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
\section{Cropland Data Layer (CDL)}
\label{sec:cdl}
\missingfigure{Table or chart showing CDL covereage for various years}
The CDL is only available for a small number of states in 2001. If
time allows it might be good to compare what is available with our
results as another independent evaluation against a higher-resolution
data set.
\subsection{Reclassification}
\label{sec:cdl-reclass}
% gdalbuildvrt -tr 0.0002777778 0.0002777778 -te -124.8333 24.5 -66.91667 49.33333 cdl_2001.vrt $(find . -name "*2001*")
\todo{Calculate CDL mask for 5-arcmin cells completely filled}
\todo(Calculate CDL aggregated in GRASS}
@
<<cdl,eval=FALSE>>=
cdl <- list( pri= raster( "/gpfs/pads/projects/see/data/raw/cdl/vrt/cdl_2001.vrt"))
cdlReclassMatrix <-
matrix( c(
83, 83, 0, # water
85, 85, 0,
63, 63, 1, # forest
# no shrub
62, 62, 3, # open
88, 88, 3,
87, 87, 4, # wetland
1, 61, 5, # crop
90, 90, 5,
82, 82, 6, # urban
84, 84, 6,
86, 86, 6),
# no mosaic
# no barren
ncol= 3, byrow= TRUE)
cdl <- mlctReclass( cdl, cdlReclassMatrix, overwrite= overwriteRasters, progress= "text")
cdl$Amin <- 1
cdl <- coverFractions( cdl, mosaic= FALSE, overwrite= TRUE, progress="text")
cdl <- aggregateFractions( cdl, overwrite=TRUE, progress="text")
cdl_il <- list( pri= raster( "cdl_il_2001.tif"))
cdl_il <- mlctReclass( cdl_il, cdlReclassMatrix, overwrite= overwriteRasters, progress= "text")
cdl_il$Amin <- 1
cdl_il <- coverFractions( cdl_il, mosaic= FALSE, overwrite= TRUE, progress="text")
cdl_il <- aggregateFractions( cdl_il, overwrite=TRUE, progress="text")
@ %def $$$
\missingfigure{CDL reclassification table}
\subsection{Aggregation}
\label{sec:cdl-aggr}