View source: R/sidfex.fcst.search.createIndex.R
sidfex.fcst.search.createIndex | R Documentation |
Loop through the downloaded SIDFEx forecasts and add some predefined key quantities and information to the (previously existing or not) index file "indexTable.rda". If the specified index file does not exist, a new one is created. The data will be stored in .rda-format.
sidfex.fcst.search.createIndex(indexTable.path = NULL, data.path = NULL, do.fromScratch = FALSE, do.checktime = TRUE, do.saveAddCSV = TRUE, do.print.less = TRUE, checkfileformat = TRUE, do.manipulate = TRUE, add.LatLon=TRUE, not.save.but.return.index=FALSE)
indexTable.path |
|
data.path |
|
do.fromScratch |
a boolen value, default |
do.checktime |
a boolen value, default |
do.saveAddCSV |
a boolean value, default |
do.print.less |
a logical value specifying whether or not to print a statement for every dataset while adding it to the index file (to keep console output down). Will be also passed on to |
checkfileformat |
a logical value specifying whether or not to check if the file format complies with the SIDFEx conventions, using |
do.manipulate |
a logical value specifying whether or not to manipulate the automatically derived ensemble information, using |
add.LatLon |
a logical value specifying whether or not to add latitude and longitude information (initial, first and last timesteps) to the index. Default is |
not.save.but.return.index |
a logical value specifying whether to return the index instead of saving as an R data file (and possibly also as CSV). Default is |
This function returns 1
if it ran successfully, except if not.save.but.return.index=FALSE
in which case the new index is returned.
The optionally produced CSV file is mainly generated for users not familiar with R. As it is only a copy of the .rda file and won't be altered or affected by changes in the .rda file in general, it is recommended to work with the .rda file whenever possible.
Simon Reifenberg, update by Helge Goessling
sidfex.fcst.search.extractFromTable
, sidfex.fcst.search.rda2csv
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.