View source: R/weighingGauge4.R
weighingGauge4 | R Documentation |
This function is a wrapper for Alan Barr's function PcpFiltPosTh
which removes jitter from precipitation data. The called function is iterative and may be slow to execute.
weighingGauge4(
obs,
precipCol = 1,
smallDropThreshold = 0.1,
serviceThreshold = -100,
serviceGapLength = 3,
quiet = TRUE,
logfile = ""
)
obs |
Required. A standard CRHMr obs file. |
precipCol |
Optional. The number of the column containing the weighing gauge cumulative percipitaion data, not including the |
smallDropThreshold |
Optional. Minimum interval precipitation (mm). Default is 0.1. |
serviceThreshold |
Optional. Threshold for removing change in storage due to servicing (mm). Note that this must be a NEGATIVE value. Default is -100. |
serviceGapLength |
Optional. Maximum gap length (in time intervals) to be filled by linear interpolation after removing servicing (i.e. gauge reset) data. The default value is 3, but you may have to adjust it for very high-frequency data. |
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 the adjusted precipitation values. Note that the name of the precipitation variable is modified: '_PcpFiltPosT'
is appended.
This function is potentially destructive, as it smooths the accumulated precipitation. You may need to set the filter length by trial-and error. You can check the effects using the function weighingGaugePlot
. This version does not explicitly incorporate the effects of evaporation.
Kevin Shook
PcpFiltPosTh
weighingGauge1
weighingGauge2
weighingGauge3
weighingGaugePlot
weighingGaugeInterval
## Not run:
test4 <- weighingGauge4(wg, smallDropThreshold = 0.05, serviceThreshold = -50)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.