Module: WrfLibrary::Statistic::Hourly
- Defined in:
- lib/wrf_library/statistic/hourly.rb
Overview
module to generate hourly statistic values for wrf based measurands
Class Method Summary collapse
-
.calculate_hourly_means(measurand, handler) ⇒ Array
method to generate hourly mean values for the given measurand.
-
.calculate_hourly_rainsum(handler) ⇒ Array
method to sum up the rain data into hourly rain sums for that calculate the difference from the rain value at the start and end of the currently checked hour.
-
.calculate_hourly_winddirection_means(handler) ⇒ Array
method to generate hourly values for the prevalent wind direction.
-
.calculate_hourly_windspeed_means(handler) ⇒ Array
method to generate hourly mean values for the wind speed.
Class Method Details
.calculate_hourly_means(measurand, handler) ⇒ Array
method to generate hourly mean values for the given measurand
13 14 15 |
# File 'lib/wrf_library/statistic/hourly.rb', line 13 def self.calculate_hourly_means(measurand, handler) WrfLibrary::Statistic.calculate_timespan_means(measurand, handler, :hour) end |
.calculate_hourly_rainsum(handler) ⇒ Array
method to sum up the rain data into hourly rain sums for that calculate the difference from the rain value at the start and end of the currently checked hour
29 30 31 |
# File 'lib/wrf_library/statistic/hourly.rb', line 29 def self.calculate_hourly_rainsum(handler) WrfLibrary::Statistic.calculate_timespan_rainsum(handler, :hour) end |
.calculate_hourly_winddirection_means(handler) ⇒ Array
method to generate hourly values for the prevalent wind direction
36 37 38 |
# File 'lib/wrf_library/statistic/hourly.rb', line 36 def self.calculate_hourly_winddirection_means(handler) WrfLibrary::Statistic.calculate_timespan_winddirection_means(handler, :hour) end |
.calculate_hourly_windspeed_means(handler) ⇒ Array
method to generate hourly mean values for the wind speed
20 21 22 |
# File 'lib/wrf_library/statistic/hourly.rb', line 20 def self.calculate_hourly_windspeed_means(handler) WrfLibrary::Statistic.calculate_timespan_windspeed_means(handler, :hour) end |