# Changes between Version 32 and Version 33 of EcomsUdg/RPackage/Functions

Ignore:
Timestamp:
May 28, 2013 4:40:51 PM (8 years ago)
Comment:

--

### Legend:

Unmodified
 v32 === ''__Description__'' Loads hindcast/forecast data from the SPECS-EUPORIAS THREDDS Data Server. Loads seasonal hindcast/forecast data from the SPECS-EUPORIAS THREDDS Data Server. * lonLim: Vector of length = 2, with minimum and maximum longitude coordinates, in decimal degrees, of the bounding box selected. * latLim: Vector of length = 2, with minimum and maximum latitude coordinates, in decimal degrees, of the bounding box selected. * season: A vector of integers specifying the desired season (in months, January=1 ...). Options include one to several months. If NULL (the default), the function will return a whole year forecast from January to December. For instance, period = c(12,1,2) will retrieve the forecast for the standard boreal winter (DJF), period = 6:8 for summer (JJA) and so on. * years: Optional vector of years to select. Default to all available years. Note that in the case of a year-crossing season for a particular year period (e.g. winter DJF, season = c(12,1,2) and years = 1981:2000), by convention the first season returned will be DJF 1980/81, if available (otherwise a warning message is given). * season: A vector of integers specifying the desired season (in months, January=1 ...). Options include one to several months. If NULL (the default), the function will return all possible months given the leadMonth. For instance, period = c(12,1,2) will retrieve the forecast for the standard boreal winter (DJF), period = 6:8 for summer (JJA) and so on. See details. * years: Optional vector of years to select. Default to all available years. Note that in the case of a year-crossing season for a particular year period (e.g. winter DJF, season = c(12,1,2) and years = 1981:2000), by convention the first season returned will be DJF 1980/81, if available (otherwise a warning message is given). See details. * leadMonth: Lead month forecast time corresponding to the first month of the specified season. Note that leadMonth = 1 for season = 1 (January) corresponds to the December initialization forecasts. The effect of the lead time in the forecast for a particular season can be analyzed by just changing this parameter. === ''__Details__'' The function has been implemented to access seasonal slices (as determined by the season argument. Seasons can be defined in several ways: A single month (e.g. season = 1 for January), a standard season (e.g. season=c(1,2,3) for JFM, or season=c(12,1,2) for DJF), or any period of consecutive months (e.g. season=c(1,2,3,4,5,6), for the first half of the year). Seasons are returned for a given year period (defined by the years argument, e.g. years = 1981:2000) with a homogeneous forecast lead time (as given by the leadMonth argument; e.g. leadMonth = 1 for one-month lead time) with respect to the first month of the selected season. For example, season=c(1,2,3) for years = 1995:2000 and leadMonth = 1 will return the following series: JFM 1995 (from the December 1994 runtime forecast), ..., JFM 2000 (from the December 1999 runtime forecast). Note that it is also possible to work with year-crossing seasons, such as DJF. In this case,  season=c(12,1,2) for years = 1995:2000 and  leadMonth = 1 will return the following series: DJF 1994/1995 (from the November 1994 runtime forecast), ..., DJF 1999/2000 (from the November 1999 runtime forecast). {{{#!comment === ''__Note__'' A worked example describing a multi-model selection of a dataset is presented in the tutorial, which can be downloaded [https://www.meteo.unican.es/trac/meteo/attachment/wiki/SpecsEuporias/DataPortal_Tutorial.pdf here], === ''__Examples__'' An example of this function is provided in the [wiki:SpecsEuporias/RPackage/Examples Examples section] === ''__Examples__'' An example of this function is provided in the [wiki:SpecsEuporias/RPackage/Examples Examples section]