#include <omgclimatedataprocessor.h>
Collaboration diagram for OmgClimateDataProcessor:
*Methods that take ArrayLengths as parameters should be passed as the number of elements, *not the vector size. e.g. an vector of 12 months is int[11] but should be passed as 12. *
Definition at line 32 of file omgclimatedataprocessor.h.
Public Member Functions | |
OmgClimateDataProcessor (float mNoData=-9999.0) | |
~OmgClimateDataProcessor () | |
float | meanOverLowestQ (QVector< float > theClimateVector) |
float | meanOverHighestQ (QVector< float > theClimateVector) |
int | firstMonthOfHighestQ (QVector< float > theClimateVector) |
int | firstMonthOfLowestQ (QVector< float > theClimateVector) |
float | meanOverQuarter (QVector< float > theClimateVector, int theStartMonth) |
float | lowestValue (QVector< float > theClimateVector) |
float | highestValue (QVector< float > theClimateVector) |
float | greatestTotalRange (QVector< float > theClimateVector1, QVector< float > theClimateVector2) |
float | greatestMonthlyRange (QVector< float > theClimateVector, QVector< float > theClimateVector2) |
float | stddevOverYear (QVector< float > theClimateVector) |
bool | threshold (QVector< float > &theClimateVector, float theThreshold) |
float | threshold (float theFloat, float theThreshold) |
float | sum (QVector< float > theClimateVector) |
float | mean (QVector< float > theClimateVector) |
float | valueGivenMonth (QVector< float > theClimateVector, int theMonth) |
int | monthWithHighestValue (QVector< float > theClimateVector) |
int | monthWithLowestValue (QVector< float > theClimateVector) |
int | numberOfMonthsAboveZero (QVector< float > theClimateVector) |
float | meanValueOverFrostFreeMonths (QVector< float > theFrostVector, QVector< float > theClimateVector) |
Private Attributes | |
float | mNoData |
|
Default constructor Definition at line 27 of file omgclimatedataprocessor.cpp. References mNoData. |
|
Destructor Definition at line 32 of file omgclimatedataprocessor.cpp. |
|
This method returns the month that starts the quarter with the highest average values. Definition at line 321 of file omgclimatedataprocessor.cpp. References mNoData, and QUARTER. Referenced by OmgClimateDataProcessorController::run(). |
|
This method returns the month that starts the quarter with the lowest average values. For example, if 12 months were : 1 2 3 4 5 6 7 8 9 10 11 12 ----------------------------------------------- 21 18 19 15 12 5 6 8 12 15 16 20 Then the return from this method would be 6 because 5,6 and 8 combined form the lowest quarter. Definition at line 220 of file omgclimatedataprocessor.cpp. References mNoData, and QUARTER. Referenced by OmgClimateDataProcessorController::run(). |
|
Given two arrays (e.g. min temp and max temp) range will determine the smallest and largest values that occur and return the difference. The value of the max-min difference for a given month that is the greatest is returned.
Definition at line 654 of file omgclimatedataprocessor.cpp. |
|
Given two arrays (e.g. min temp and max temp) range will determine the smallest and largest values that occur and return the difference. The function is indescriminate as to whether the values are in the same month or not.
Definition at line 592 of file omgclimatedataprocessor.cpp. References mNoData. Referenced by OmgClimateDataProcessorController::run(). |
|
Given an vector, this function will return the value of the largest element in the vector. Definition at line 533 of file omgclimatedataprocessor.cpp. References mNoData. Referenced by OmgClimateDataProcessorController::run(). |
|
Given an vector, this method will return the value of the smallest element in the vector. Definition at line 481 of file omgclimatedataprocessor.cpp. References mNoData. Referenced by OmgClimateDataProcessorController::run(). |
|
This function will return the sum of theClimateVector divided by the number of elements in theClimateVector. Definition at line 751 of file omgclimatedataprocessor.cpp. References mNoData. Referenced by OmgClimateDataProcessorController::run(). |
|
This method calculates the mean value over the quarter with the highest values (i.e. the three consecutive months with the maximum combined total). Definition at line 126 of file omgclimatedataprocessor.cpp. References mNoData, and QUARTER. Referenced by OmgClimateDataProcessorController::run(). |
|
This method calculates the mean value over the quarter with the lowest values (i.e. the three consecutive months with the minimum combined total). Definition at line 35 of file omgclimatedataprocessor.cpp. References mNoData, and QUARTER. Referenced by OmgClimateDataProcessorController::run(). |
|
This method will return the mean over three months in theClimateVector, starting at theStartMonth. Definition at line 415 of file omgclimatedataprocessor.cpp. References mNoData, and QUARTER. Referenced by OmgClimateDataProcessorController::run(). |
|
This value will return the mean value of months in theClimateVector where the corresponding months in theFrostArray have no frost free days. Definition at line 934 of file omgclimatedataprocessor.cpp. References mNoData. Referenced by OmgClimateDataProcessorController::run(). |
|
This function will return an integer between 1 and 12 corresponding to the month with the highest value. Definition at line 877 of file omgclimatedataprocessor.cpp. References mNoData. Referenced by OmgClimateDataProcessorController::run(). |
|
This function will return an integer between 1 and 12 corresponding to the month with the lowest value. Definition at line 843 of file omgclimatedataprocessor.cpp. References mNoData. Referenced by OmgClimateDataProcessorController::run(). |
|
This function will return an integer in the range 0-12 representing the number of months in theClimateVector where the value for that month is above zero. Typically used to calculate how many months in the year there are where the average temp is above freezing. Definition at line 989 of file omgclimatedataprocessor.cpp. References FREEZING_POINT, and mNoData. Referenced by OmgClimateDataProcessorController::run(). |
|
This function will return the standard deviation of the climate vector. Definition at line 790 of file omgclimatedataprocessor.cpp. References mNoData. Referenced by OmgClimateDataProcessorController::run(). |
|
Determine the sum of a vector of values
Definition at line 725 of file omgclimatedataprocessor.cpp. References mNoData. |
|
Overloaded version of the above function. If the input value is greater or equal to threshold will be true. Values below threshold will be assigned false.
Definition at line 698 of file omgclimatedataprocessor.cpp. References mNoData. |
|
A new vector the same length as original will be returned when each element of the input vector that is greater or equal to threshold will be true. Values below threshold will be assigned false.
Definition at line 665 of file omgclimatedataprocessor.cpp. References mNoData. Referenced by OmgRasterThreshold::accept(). |
|
This function will return the value of the element in theClimateVector that corresponds to theMonth. Definition at line 911 of file omgclimatedataprocessor.cpp. References mNoData. Referenced by OmgClimateDataProcessorController::run(). |
|