Changes between Version 19 and Version 20 of udg/ecoms/RPackage/examples/continentalSelection


Ignore:
Timestamp:
May 15, 2015 1:05:31 PM (7 years ago)
Author:
juaco
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • udg/ecoms/RPackage/examples/continentalSelection

    v19 v20  
    11= Regional-Continental domain selections
    22
    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):
     3In 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"`):
    44
    55{{{
    66#!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")
    817}}}
    918
    10 Returns the following on-screen messages:
     19Returning the following on-screen information during the data loading process:
     20
    1121
    1222{{{
    13 [2014-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 [2014-09-02 16:45:58] Defining geo-location parameters
    16 [2014-09-02 16:45:58] Defining initialization time parameters
    17 [2014-09-02 16:46:03] Retrieving data subset ...
    18 [2014-09-02 16:52:57] Done
     23[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
     26NOTE: 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
    1929}}}
    2030
     
    3343
    3444{{{
    35  num [1:2, 1:902, 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 ...
    3646 - attr(*, "dimensions")= chr [1:4] "member" "time" "lat" "lon"
    3747}}}
    3848
    39 Members can be plotted individually by setting `multimember = TRUE` in the `plotMeanField` function of the `downscaleR`package:
     49Members can be plotted individually by setting `multimember = TRUE` in the `plotMeanField` function of the `downscaleR` package:
    4050
    4151
     
    4555}}}
    4656
     57[[Image(image-20150515-125004.png)]]
    4758
    48 [[Image(image-20140902-170632.png)]]
    49