fix.sunshine | R Documentation |
This function loads homogenization results of daily sunshine series and prunes any excess over maximum theoretical sunshine duration.
fix.sunshine(varcli, anyi, anyf)
varcli |
Short name of the homogenized climatic variable. |
anyi |
First year of the homogenized series. |
anyf |
Last year of the homogenized series. |
Any modified value is listed to the console and written to fix.sunshine.txt
The original *.rda
file is saved as *.rda.bak
and a new
*.rda
file is written with the fixed sunshine values.
homogen
## Set a temporal working directory:
wd <- tempdir()
wd0 <- setwd(wd)
## copy example daily sunshine homogenization results:
file.copy(exampleFiles('SS_1991-2000.rda'),'.')
## Now run the example:
fix.sunshine('SS',1991,2000)
## Return to user's working directory:
setwd(wd0)
## Input and output files can be found in the directory:
print(wd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.