Changes between Version 20 and Version 21 of udg/ecoms/RPackage/examples


Ignore:
Timestamp:
May 20, 2013 11:55:31 AM (8 years ago)
Author:
juaco
Comment:

--

Legend:

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

    v20 v21  
    433433As we can see, the variable T has vertical levels. In this case, the only level available is at 850 mb. The variable is daily, as we can see in the `TimeStep` element of the list, and the original units are Kelvin.
    434434
    435 There are several options for spatial selection using the 'loadData` function. For instance, if we want the whole domain of teh dataset ()
    436 
    437 
     435There are several options for spatial selection using the `loadData` function. For instance, if we want the whole domain of the dataset, there is no need for specifying the `lonLim` and `latLim` arguments. In the next example, we will load T850 for the whole Iberian Peninsula for the period 1990-1999.
     436
     437{{{
     438> t850 <- loadData(dataset="Iberia_NCEP_dataset.ncml", var="T", level=850, startDate = "1990-01-01", endDate = "1999-12-31")
     439> str(t850)
     440List of 5
     441 $ VarName     : chr "T"
     442 $ Level       : num 850
     443 $ Dates       : POSIXlt[1:3652], format: "1990-01-01" "1990-01-02" "1990-01-03" "1990-01-04" ...
     444 $ LatLonCoords: num [1:54, 1:2] 35 37.5 40 42.5 45 47.5 35 37.5 40 42.5 ...
     445  ..- attr(*, "dimnames")=List of 2
     446  .. ..$ : NULL
     447  .. ..$ : chr [1:2] "lat" "lon"
     448 $ Data        : num [1:3652, 1:54] 278 276 276 278 279 ...
     449
     450}}}
     451
     452
     453The matrix in the `Data` element of the returned list contains a matrix with 54 columns, one for each grid point of the dataset, and 3652 rows, corresponding to the daily time series.
    438454
    439455= Using standard variables via vocabulary and dictionary =