fix.sunshine {climatol}R Documentation

Check homogenized daily sunshine hours and prune any excess

Description

This function loads homogenization results of daily sunshine series and prunes any excess over maximum theoretical sunshine duration.

Usage

 fix.sunshine(varcli, anyi, anyf) 

Arguments

varcli

Short name of the homogenized climatic variable.

anyi

First year of the homogenized series.

anyf

Last year of the homogenized series.

Details

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.

See Also

homogen

Examples

## 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)

[Package climatol version 4.1.0 Index]