wiki:udg/ecoms/RPackage/examples/pointSelection

Version 4 (modified by juaco, 7 years ago) (diff)

--

Single point selection

The following call to loadECOMS will load a time series of surface (2m) instantaneous temperature (var = "tas", as defined in the [wiki vocabulary])at 12:00 for the coordinate -3.7E 40.4N, (lonLim = -3.7, latLim = 40.4) corresponding to the city of Madrid (Spain), corresponding to the summer (JJA, season = 6:8) of 2001 (years = 2001) as forecasted the previous March (leadMonth = 2) by the CFSv2 hindcast (dataset = "CFSv2_seasonal_16"). We will select the first 10 members (members = 1:10):

> ex.point <- loadECOMS(dataset = "CFSv2_seasonal_16", var = "tas", members = 1:10, lonLim = -3.7, latLim = 40.4, season = 6:8, years = 2001, leadMonth = 2, time = "12")
[2014-06-17 12:08:27] Defining homogeneization parameters for variable "tas"
[2014-06-17 12:08:27] Defining geo-location parameters
[2014-06-17 12:08:27] Defining initialization time parameters
[2014-06-17 12:08:31] Retrieving data subset ...
[2014-06-17 12:09:11] Done
> print(object.size(ex.point))
32088 bytes

The returned object contains all the necessary information for data representation (geo-location, time ...). In the next lines we plot the loaded time series for each member:

Attachments (1)

Download all attachments as: .zip