Changes between Version 19 and Version 20 of udg/ecoms/RPackage/examples/continentalSelection
- Timestamp:
- May 15, 2015 1:05:31 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
udg/ecoms/RPackage/examples/continentalSelection
v19 v20 1 1 = Regional-Continental domain selections 2 2 3 In this example we will load data for Europe for the variable surface (2m) minimum temperature (`var = tasmin`), for the first two members (`members = 1:2`) of the CFSv2 hindcast (dataset = `CFSv2_seasonal_16`), considering the wintertime (DJF, `season = c(12,1,2)`) for the 10-year period 2001-2010 (`years = 2001:2010`), according to the forecast of previous September (`leadMonth = 3`). The original variable is stored as 6-hourly data for this particular dataset. We will retrieve the daily mean values, by setting the argument `time = "DD"`, that internally computes the daily minimum from the 6-hourly instantaneous values (see the NOTE below when executing the command):3 In this example we will load data for Europe for the variable surface (2m) minimum temperature (`var = tasmin`), for the first two members (`members = 1:2`) of the CFSv2 hindcast (dataset = `CFSv2_seasonal_16`), considering the wintertime (DJF, `season = c(12,1,2)`) for the 10-year period 1991-2000 (`years = 1991:2000`), according to the forecast issued in September (`leadMonth = 3`). The [http://meteo.unican.es/trac/wiki/udg/ecoms/dataserver/listofvariables original variable] is 6-hourly . We will retrieve the daily minimum values, by setting the argument `time = "DD"` and the daily aggregation function to minimum (`aggr.d = "min"`): 4 4 5 5 {{{ 6 6 #!text/R 7 ex2 <- loadECOMS(dataset = "CFSv2_seasonal_16", var = "tasmin", members = 1:2, lonLim = c(-15,35), latLim = c(32, 75), season = c(12,1,2), years = 2001:2010, leadMonth = 3, time = "DD") 7 > ex2 <- loadECOMS(dataset = "CFSv2_seasonal", 8 var = "tasmin", 9 members = 1:2, 10 lonLim = c(-15,35), 11 latLim = c(32, 75), 12 season = c(12,1,2), 13 years = 1991:2000, 14 leadMonth = 3, 15 time = "DD", 16 aggr.d = "min") 8 17 }}} 9 18 10 Returns the following on-screen messages: 19 Returning the following on-screen information during the data loading process: 20 11 21 12 22 {{{ 13 [201 4-09-02 16:45:58] Defining homogeneization parameters for variable "tasmin"14 NOTE: daily minimum will be calculated from the 6-h model output 15 [201 4-09-02 16:45:58] Defining geo-locationparameters16 [2014-09-02 16:45:58] Defining initialization time parameters 17 [201 4-09-02 16:46:03] Retrieving data subset ...18 [201 4-09-02 16:52:57] Done23 [2015-05-15 12:39:51] Defining homogeneization parameters for variable "tasmin" 24 [2015-05-15 12:39:51] Defining geo-location parameters 25 [2015-05-15 12:39:51] Defining initialization time parameters 26 NOTE: Daily aggregation will be computed from 6-hourly data 27 [2015-05-15 12:39:55] Retrieving data subset ... 28 [2015-05-15 12:46:28] Done 19 29 }}} 20 30 … … 33 43 34 44 {{{ 35 num [1:2, 1:90 2, 1:47, 1:54] 17.4 17.2 16.4 18.7 17.4...45 num [1:2, 1:903, 1:47, 1:54] 21.6 16.1 21.1 17.4 21.5 ... 36 46 - attr(*, "dimensions")= chr [1:4] "member" "time" "lat" "lon" 37 47 }}} 38 48 39 Members can be plotted individually by setting `multimember = TRUE` in the `plotMeanField` function of the `downscaleR` package:49 Members can be plotted individually by setting `multimember = TRUE` in the `plotMeanField` function of the `downscaleR` package: 40 50 41 51 … … 45 55 }}} 46 56 57 [[Image(image-20150515-125004.png)]] 47 58 48 [[Image(image-20140902-170632.png)]]49