Class macdonald_undercatch

Inheritance Relationships

Base Type

Class Documentation

class macdonald_undercatch : public filter_base

Undercatch correction for a Alter shielded Geonor and tipping bucket via Macdonald, et al. 2007

Requires:

  • Precipitation [ \( mm\) ]

  • Windspeed at gauge height [ \(m \cdot s^{-1} \) ]

Modifies:

  • Input precipitation

Configuration keys:

{
   "precip_var": "ppt",
   "wind_var": "u"
}
precip_var

Name of the precipitation variable in the met file.

wind_var

Name of the wind speed variable in the met file.

References:

  • Macdonald, J., & Pomeroy, J. (2007). Gauge Undercatch of Two Common Snowfall Gauges in a Prairie Environment. Proceedings of the 64th Eastern Snow Conference, St. John‘s, Canada., 119–126.

Type:

string

Type:

string

Public Functions

macdonald_undercatch(config_file cfg)
~macdonald_undercatch()
virtual void init()

Initializes the filter. Useful for obtaining configuration params and storing them locally

virtual void process(std::shared_ptr<station> &station)

Apply the filter for one timestep for the given station

Parameters:

station – Station to operate on