View source: R/weighingGauge5.R
weighingGauge5 | R Documentation |
This function removes gauge resets (large negative changes usually due to servicing) and uses a simple method (cumulative maxima) to remove jitter. It is a good idea to use weighingGauge1
to infill missing values before calling this function and weighingGaugePlot
to look at your data before and after calling this function.
weighingGauge5(
obs,
precipCol = 1,
resetThreshold = 50,
quiet = TRUE,
logfile = ""
)
obs |
Required. A standard CRHMr obs file. |
precipCol |
Optional. The number of the column containing the weighing gauge cumulative precipitation data, not including the |
resetThreshold |
Optional. The minimum (absolute value) of negative values considered to be gauge resets. Default is 50 mm. |
quiet |
Optional. Suppresses display of messages, except for errors. If you are calling this function in an R script, you will usually leave |
logfile |
Optional. Name of the file to be used for logging the action. Normally not used. |
If unsuccessful, returns FALSE
. If sucessful, returns a modified version of the obs
dataframe containing only the datetime and the modified cumulative precipitation values.
This version does not explicitly incorporate the effects of evaporation.
Kevin Shook, based on an algorithm developed by Thai Nguyen of Alberta Environment.
weighingGauge1
weighingGaugePlot
weighingGaugeInterval
## Not run:
wg1 <- weighingGauge1(wg, maxGapLength=500)
wg5 <- weighingGauge5(wg1, resetThreshold=70)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.