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

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

--

### Legend:

Unmodified
 v20 As 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. There are several options for spatial selection using the 'loadData function. For instance, if we want the whole domain of teh dataset () There 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. {{{ > t850 <- loadData(dataset="Iberia_NCEP_dataset.ncml", var="T", level=850, startDate = "1990-01-01", endDate = "1999-12-31") > str(t850) List of 5 $VarName : chr "T"$ Level       : num 850 $Dates : POSIXlt[1:3652], format: "1990-01-01" "1990-01-02" "1990-01-03" "1990-01-04" ...$ LatLonCoords: num [1:54, 1:2] 35 37.5 40 42.5 45 47.5 35 37.5 40 42.5 ... ..- attr(*, "dimnames")=List of 2 .. ..$: NULL .. ..$ : chr [1:2] "lat" "lon" \$ Data        : num [1:3652, 1:54] 278 276 276 278 279 ... }}} The 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. = Using standard variables via vocabulary and dictionary =