Gridpp 0.5.0
A post-processing library for gridded weather forecasts
Public Member Functions | List of all members
gridpp::BarnesStructure Class Reference

#include <gridpp.h>

Inheritance diagram for gridpp::BarnesStructure:
gridpp::StructureFunction

Public Member Functions

 BarnesStructure (float h, float v=0, float w=0, float hmax=MV)
 Exponential structure function. More...
 
StructureFunctionclone () const
 
float corr (const Point &p1, const Point &p2) const
 Correlation between two points. More...
 
- Public Member Functions inherited from gridpp::StructureFunction
virtual float corr_background (const Point &p1, const Point &p2) const
 
float localization_distance () const
 Maximum distance for which an observation can have an impact (localization) More...
 
 StructureFunction (float localization_distance)
 

Additional Inherited Members

- Protected Member Functions inherited from gridpp::StructureFunction
float barnes_rho (float dist, float length) const
 Barnes correlation function. More...
 
float cressman_rho (float dist, float length) const
 Cressman correlation function. More...
 
- Protected Attributes inherited from gridpp::StructureFunction
float mLocalizationDistance
 

Detailed Description

Simple structure function based on distance, elevation, and land area fraction.

Constructor & Destructor Documentation

◆ BarnesStructure()

gridpp::BarnesStructure::BarnesStructure ( float  h,
float  v = 0,
float  w = 0,
float  hmax = MV 
)

Exponential structure function.

Barnes.

Parameters
hHorizontal decorrelation length >=0 [m]
vVertical decorrelation length >=0 [m]. If 0, disable decorrelation.
wLand/sea decorrelation length >=0 [1]. If 0, disable decorrelation.
hmaxTruncate horizontal correlation beyond this length [m]. If undefined, 3.64 * h.

Member Function Documentation

◆ clone()

gridpp::StructureFunction * gridpp::BarnesStructure::clone ( ) const
virtual

◆ corr()

float gridpp::BarnesStructure::corr ( const Point p1,
const Point p2 
) const
virtual

Correlation between two points.

Implements gridpp::StructureFunction.


The documentation for this class was generated from the following files: