diff --git a/docs/0.7.0/bilinear_8cpp.html b/docs/0.7.0/bilinear_8cpp.html index 73ec88d4..733f56bd 100644 --- a/docs/0.7.0/bilinear_8cpp.html +++ b/docs/0.7.0/bilinear_8cpp.html @@ -5,7 +5,7 @@ -
grid | Grid of decorrelation field |
h | Horizontal decorrelation length field >=0, same size as grid [m] |
v | Vertical decorrelation length field >=0 [m]. Set all to 0 to disable decorrelation. |
w | Land/sea decorrelation length field >=0 [1]. Set all to 0 to disable decorrelation. |
min_rho | Truncate horizontal correlation when rho less than this value [m]. |
h | 2D vector of horizontal decorrelation lengths >=0, same size as grid [m] |
v | 2D vector of Vertical decorrelation lengths >=0 [m]. Set all to 0 to disable decorrelation. |
w | 2D vector of land/sea decorrelation lengths >=0 [1]. Set all to 0 to disable decorrelation. |
min_rho | Truncate horizontal correlation when rho is less than this value [m]. |
Correlation between two points.
+p1 | First point |
p2 | Other point |
Implements gridpp::StructureFunction.
@@ -348,7 +357,7 @@Box-Cox transformation.
+Initialize Box-Cox transform.
+threshold | Box-Cox parameter |
Correlation between two points.
+p1 | First point |
p2 | Other point |
Implements gridpp::StructureFunction.
@@ -240,7 +249,7 @@Correlation between two points.
+p1 | First point |
p2 | Other point |
Implements gridpp::StructureFunction.
@@ -266,6 +275,16 @@Correlation between a background point and an observation points.
+p1 | Background point |
p2 | Observation point |
Reimplemented from gridpp::StructureFunction.
@@ -308,7 +327,7 @@Gamma transformation.
+Transforms values to cdf from a gamma distribution and subsequantly extracts the cdf from a standard normal distribution.
+Transforms values to cdf from a gamma distribution and subsequantly extracts the cdf from a standard normal distribution.
+Initialize Gamma transform.
+shape | Shape parameter |
scale | Scale parameter |
tolerance | Computation tolerance |
Identity transform, i.e.
+where forward and backward functinos to not modify values
+Helper class for Grid and Points.
+
+
|
+ +static | +
Log transformation: output = log(input)
+Exponential structure function.
+Different structure functions for horizontal, vertical, and land/sea.
h | Horizontal decorrelation length >=0 [m] |
v | Vertical decorrelation length >=0 [m]. If 0, disable decorrelation. |
w | Land/sea decorrelation length >=0 [1]. If 0, disable decorrelation. |
hmax | Truncate horizontal correlation beyond this length [m]. If undefined, 3.64 * h. |
structure_h | Horizontal structure function |
structure_v | Vertical structure function |
structure_w | Land/sea structure function |
Correlation between two points.
+p1 | First point |
p2 | Other point |
Implements gridpp::StructureFunction.
@@ -278,7 +286,7 @@lat | Latitude coordinate |
lon | Longitude coordinate |
lat | Latitude (or y) coordinate |
lon | Longitude (or x) coordinate |
elev | Elevation |
laf | Land area fraction (between 0 and 1) |
type | Coordinate type for lat and lon |
- Gridpp 0.7.0.dev4
+ Gridpp 0.7.0.dev6
A post-processing library for gridded weather forecasts
|
@@ -102,7 +102,7 @@
lats | vector of latitudes [degrees] |
lons | vector of longitudes [degrees] |
elevs | vector of elevations [m] |
lafs | vector of land area fractions [1] |
lats | 1D vector of latitudes [degrees] |
lons | 1D vector of longitudes [degrees] |
elevs | 1D vector of elevations [m] |
lafs | 1D vector of land area fractions [1] |
type | Coordinate type |
Get points that are inside the envelope of a grid.
+grid | Grid |
Get point indices that are inside the envelope of a grid.
+grid | Grid |
Subset the points.
+indices | 1D vector of point indices |
Correlation between two points.
+p1 | First point |
p2 | Other point |
Implemented in gridpp::CrossValidation, gridpp::CressmanStructure, gridpp::BarnesStructure, and gridpp::MultipleStructure.
@@ -299,6 +309,16 @@Correlation between a background point and an observation points.
+p1 | Background point |
p2 | Observation point |
Reimplemented in gridpp::CrossValidation.
@@ -345,6 +365,7 @@virtual float | backward (float value) const |
vec | backward (const vec &input) const |
Backward transform a 1D vector. More... | |
vec2 | backward (const vec2 &input) const |
Backward transform a 2D vector. More... | |
vec3 | backward (const vec3 &input) const |
Backward transform a 3D vector. More... | |
virtual float | forward (float value) const |
vec | forward (const vec &input) const |
Forward transform a 1D vector. More... | |
vec2 | forward (const vec2 &input) const |
Forward transform a 2D vector. More... | |
vec3 | forward (const vec3 &input) const |
Forward transform a 3D vector. More... | |
Backward transform a 1D vector.
+input | 1D vector of transformed values |
Backward transform a 2D vector.
+input | 2D vector of transformed values |
Backward transform a 3D vector.
+input | 3D vector of transformed values |
Forward transform a 1D vector.
+input | 1D vector |
Forward transform a 2D vector.
+input | 2D vector |
Forward transform a 3D vector.
+input | 3D vector |
@@ -155,20 +159,28 @@
| 1D float vector More... | | | 2D float vector More... | | | 3D float vector More... | | | 1D integer vector More... | | | 2D integer vector More... | | | 3D integer vector More... | | | 1D double vector More... | | | 2D double vector More... | | |
@@ -249,29 +261,30 @@
Functions that merge observations with a background field vec2 | gridpp::optimal_interpolation (const Grid &bgrid, const vec2 &background, const Points &points, const vec &pobs, const vec &pratios, const vec &pbackground, const StructureFunction &structure, int max_points, bool allow_extrapolation=true) | | Optimal interpolation for a deterministic gridded field. More... | | vec | gridpp::optimal_interpolation (const Points &bpoints, const vec &background, const Points &points, const vec &pobs, const vec &pratios, const vec &pbackground, const StructureFunction &structure, int max_points, bool allow_extrapolation=true) | | Optimal interpolation for a deterministic vector of points. More... | | vec2 | gridpp::optimal_interpolation_full (const Grid &bgrid, const vec2 &background, const vec2 &bvariance, const Points &points, const vec &obs, const vec &obs_variance, const vec &background_at_points, const vec &bvariance_at_points, const StructureFunction &structure, int max_points, vec2 &analysis_variance, bool allow_extrapolation=true) | | Optimal interpolation for a deterministic gridded field including analysis variance. More... | | vec | gridpp::optimal_interpolation_full (const Points &bpoints, const vec &background, const vec &bvariance, const Points &points, const vec &obs, const vec &obs_variance, const vec &background_at_points, const vec &bvariance_at_points, const StructureFunction &structure, int max_points, vec &analysis_sigmas, bool allow_extrapolation=true) | | Optimal interpolation for a deterministic vector of points including analysis variance. More... | | vec3 | gridpp::optimal_interpolation_ensi (const Grid &bgrid, const vec3 &background, const Points &points, const vec &pobs, const vec &psigmas, const vec2 &pbackground, const StructureFunction &structure, int max_points, bool allow_extrapolation=true) | | Optimal interpolation using a structure function based on an ensemble See Lussana et al 2019 (DOI: 10.1002/qj.3646) More... | | vec2 | gridpp::optimal_interpolation_ensi (const Points &bpoints, const vec2 &background, const Points &points, const vec &pobs, const vec &psigmas, const vec2 &pbackground, const StructureFunction &structure, int max_points, bool allow_extrapolation=true) | | vec2 | gridpp::local_distribution_correction (const Grid &bgrid, const vec2 &background, const Points &points, const vec &pobs, const vec &pbackground, const StructureFunction &structure, float min_quantile, float max_quantile, int min_points=0) | | Correction of a gridded field ensuring the distribution of values nearby match that of observations. More... | | vec2 | gridpp::local_distribution_correction (const Grid &bgrid, const vec2 &background, const Points &points, const vec2 &pobs, const vec2 &pbackground, const StructureFunction &structure, float min_quantile, float max_quantile, int min_points=0) | | Version with multiple number of timesteps. More... | | vec2 | gridpp::optimal_interpolation (const Grid &bgrid, const vec2 &background, const Points &obs_points, const vec &obs, const vec &variance_ratios, const vec &background_at_points, const StructureFunction &structure, int max_points, bool allow_extrapolation=true) | | Optimal interpolation for a deterministic gridded field. More... | | vec | gridpp::optimal_interpolation (const Points &bpoints, const vec &background, const Points &obs_points, const vec &obs, const vec &variance_ratios, const vec &background_at_points, const StructureFunction &structure, int max_points, bool allow_extrapolation=true) | | Optimal interpolation for a deterministic vector of points. More... | | vec2 | gridpp::optimal_interpolation_full (const Grid &bgrid, const vec2 &background, const vec2 &bvariance, const Points &obs_points, const vec &obs, const vec &obs_variance, const vec &background_at_points, const vec &bvariance_at_points, const StructureFunction &structure, int max_points, vec2 &analysis_variance, bool allow_extrapolation=true) | | Optimal interpolation for a deterministic gridded field including analysis variance. More... | | vec | gridpp::optimal_interpolation_full (const Points &bpoints, const vec &background, const vec &bvariance, const Points &obs_points, const vec &obs, const vec &obs_variance, const vec &background_at_points, const vec &bvariance_at_points, const StructureFunction &structure, int max_points, vec &analysis_variance, bool allow_extrapolation=true) | | Optimal interpolation for a deterministic vector of points including analysis variance. More... | | vec3 | gridpp::optimal_interpolation_ensi (const Grid &bgrid, const vec3 &background, const Points &obs_points, const vec &obs, const vec &obs_standard_deviations, const vec2 &background_at_points, const StructureFunction &structure, int max_points, bool allow_extrapolation=true) | | Optimal interpolation for an ensemble gridded field See Lussana et al 2019 (DOI: 10.1002/qj.3646) More... | | vec2 | gridpp::optimal_interpolation_ensi (const Points &bpoints, const vec2 &background, const Points &obs_points, const vec &obs, const vec &obs_standard_deviations, const vec2 &background_at_points, const StructureFunction &structure, int max_points, bool allow_extrapolation=true) | | Optimal interpolation for an ensemble point field See Lussana et al 2019 (DOI: 10.1002/qj.3646) More... | | vec2 | gridpp::local_distribution_correction (const Grid &bgrid, const vec2 &background, const Points &obs_points, const vec &obs, const vec &background_at_points, const StructureFunction &structure, float min_quantile, float max_quantile, int min_points=0) | | Correction of a gridded field ensuring the distribution of values nearby match that of observations. More... | | vec2 | gridpp::local_distribution_correction (const Grid &bgrid, const vec2 &background, const Points &obs_points, const vec2 &obs, const vec2 &background_at_points, const StructureFunction &structure, float min_quantile, float max_quantile, int min_points=0) | | Correction of a gridded field ensuring the distribution of values nearby match that of observations. More... | | | vec2 | gridpp::fill (const Grid &igrid, const vec2 &input, const Points &points, const vec &radii, float value, bool outside) | Fill in values inside or outside a set of circles (useful for masking) More... | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
vec | gridpp::gamma_inv (const vec &levels, const vec &shape, const vec &scale) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Extract quantiles from a gamma distribution. More... | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Spatial neighbourhood filters | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
@@ -301,7 +315,7 @@ | Computes a quantile in a sliding square neighbourhood. More... | | vec2 | gridpp::neighbourhood_quantile (const vec3 &input, float quantile, int halfwidth) | | Computes a quantile in a sliding square neighbourhood for an ensemble of fields. More... | | Computes a quantile in a sliding square neighbourhood across ensemble members. More... | | vec2 | gridpp::neighbourhood_quantile_fast (const vec2 &input, float quantile, int halfwidth, const vec &thresholds) | | Fast and approximate neighbourhood quantile. More... | | Fast and approximate neighbourhood quantile for ensemble of fields. More... | | vec2 | gridpp::neighbourhood_quantile_fast (const vec2 &input, const vec2 &quantile, int halfwidth, const vec &thresholds) | | Fast and approximate neighbourhood quantile, with spatially varying quantile. More... | | Fast and approximate neighbourhood quantile, with spatially varying quantile levels. More... | | vec2 | gridpp::neighbourhood_quantile_fast (const vec3 &input, const vec2 &quantile, int halfwidth, const vec &thresholds) | | Fast and approximate neighbourhood quantile for ensemble of fields, with spatially varying quantile. More... | | Spatial neighbourhood filter without any shortcuts. More... | | vec2 | gridpp::neighbourhood_brute_force (const vec3 &input, int halfwidth, Statistic statistic) | | Spatial neighbourhood filter without any shortcuts. More... | | Spatial ensemble neighbourhood filter without any shortcuts. More... | | vec | gridpp::get_neighbourhood_thresholds (const vec2 &input, int num_thresholds) | | Calculate appropriate approximation thresholds for neighbourhood quantile. More... | | Calculate appropriate approximation thresholds for fast neighbourhood quantile. More... | | vec | gridpp::get_neighbourhood_thresholds (const vec3 &input, int num_thresholds) | | Calculate appropriate approximation thresholds for neighbourhood quantile based on an * ensemble. More... | | Calculate appropriate approximation thresholds for neighbourhood quantile based on an ensemble. More... | | vec2 | gridpp::calc_gradient (const vec2 &base, const vec2 &values, GradientType gradient_type, int halfwidth, int min_num=2, float min_range=gridpp::MV, float default_gradient=0) | | Computes gradients based on values in neighbourhood. More... | | vec2 | gridpp::neighbourhood_search (const vec2 &array, const vec2 &search_array, int halfwidth, float search_target_min, float search_target_max, float search_delta, const ivec2 &apply_array=ivec2()) | | Find suitable value in neighbourhood that match a search criteria. More... | | vec2 | gridpp::neighbourhood_ens (const vec3 &input, int halfwidth, Statistic statistic) | | Deprecated: Compute neighbourhood statistic on ensemble field. More... | | | Apply arbitrary calibration curve to 2D forecasts with spatially varying QQ map. More... | | vec | gridpp::monotonize_curve (vec curve_ref, vec curve_fcst, vec &output_fcst) | | Ensure calibration curve is monotonic, by removing points. More... | | Ensure calibration curve is monotonic, by removing points on the curve. More... | | float | gridpp::get_optimal_threshold (const vec &ref, const vec &fcst, float threshold, Metric metric) | | float | gridpp::get_optimal_threshold (const vec &curve_ref, const vec &curve_fcst, float threshold, Metric metric) | | Compute the optimal threshold to remap an input threshold to. More... | | float | gridpp::calc_score (float a, float b, float c, float d, Metric metric) | | Compute the score for a 2x2 contingency table. More... | | float | gridpp::calc_score (const vec &ref, const vec &fcst, float threshold, Metric metric) | | Compute the score for a 2x2 contingency table by thresholding. More... | | float | gridpp::calc_score (const vec &ref, const vec &fcst, float threshold, float fthreshold, Metric metric) | | Compute the score for a 2x2 contingency table by thresholding and allowing a different threshold for the forecast. More... | | Downscaling methods Functions that interpolate data from one grid to another vec2 | gridpp::downscaling (const Grid &igrid, const Grid &ogrid, const vec2 &ivalues, Downscaler downscaler) | | Generic downscaler for simple methods that don't use information other than the grids. More... | | Downscale a gridded field. More... | | vec3 | gridpp::downscaling (const Grid &igrid, const Grid &ogrid, const vec3 &ivalues, Downscaler downscaler) | | Downscale a gridded ensemble field. More... | | vec | gridpp::downscaling (const Grid &igrid, const Points &opoints, const vec2 &ivalues, Downscaler downscaler) | | Downscale a gridded field to points. More... | | vec2 | gridpp::downscaling (const Grid &igrid, const Points &opoints, const vec3 &ivalues, Downscaler downscaler) | | Downscale a gridded ensemble field to points. More... | | vec2 | gridpp::nearest (const Grid &igrid, const Grid &ogrid, const vec2 &ivalues) | | Nearest neighbour dowscaling grid to grid. More... | | Nearest neighbour dowscaling grid to grid for a deterministic field. More... | | vec3 | gridpp::nearest (const Grid &igrid, const Grid &ogrid, const vec3 &ivalues) | | Nearest neighbour dowscaling grid to grid for an ensemble field. More... | | vec | gridpp::nearest (const Grid &igrid, const Points &opoints, const vec2 &ivalues) | | Nearest neighbour dowscaling grid to point. More... | | Nearest neighbour dowscaling grid to point for a deterministic field. More... | | vec2 | gridpp::nearest (const Grid &igrid, const Points &opoints, const vec3 &ivalues) | | Nearest neighbour dowscaling grid to point for an ensemble field. More... | | vec | gridpp::nearest (const Points &ipoints, const Points &opoints, const vec &ivalues) | | Nearest neighbour dowscaling point to point. More... | | Nearest neighbour dowscaling point to point for a deterministic field. More... | | vec2 | gridpp::nearest (const Points &ipoints, const Points &opoints, const vec2 &ivalues) | | Nearest neighbour dowscaling point to point for an ensemble field. More... | | vec2 | gridpp::nearest (const Points &ipoints, const Grid &ogrid, const vec &ivalues) | | Nearest neighbour dowscaling point to grid. More... | | Nearest neighbour dowscaling point to grid for a deterministic field. More... | | vec3 | gridpp::nearest (const Points &ipoints, const Grid &ogrid, const vec2 &ivalues) | | Nearest neighbour dowscaling point to grid for an ensemble field. More... | | vec2 | gridpp::downscale_probability (const Grid &igrid, const Grid &ogrid, const vec3 &ivalues, const vec2 &threshold, const ComparisonOperator &comparison_operator) | | Nearest neighbour downscaling grid to grid and probability in one. More... | | vec2 | gridpp::mask_threshold_downscale_consensus (const Grid &igrid, const Grid &ogrid, const vec3 &ivalues_true, const vec3 &ivalues_false, const vec3 &theshold_values, const vec2 &threshold, const ComparisonOperator &comparison_operator, const Statistic &statistic) | | Nearest neighbour downscaling grid to grid and threshold and consensus in one. More... | | Masked ensemble downscaling and consensus. More... | | vec2 | gridpp::mask_threshold_downscale_quantile (const Grid &igrid, const Grid &ogrid, const vec3 &ivalues_true, const vec3 &ivalues_false, const vec3 &theshold_values, const vec2 &threshold, const ComparisonOperator &comparison_operator, const float quantile) | | Nearest neighbour downscaling grid to grid and threshold and quantile in one. More... | | vec2 | gridpp::mask_threshold_downscale_quantile (const Grid &igrid, const Grid &ogrid, const vec3 &ivalues_true, const vec3 &ivalues_false, const vec3 &theshold_values, const vec2 &threshold, const ComparisonOperator &comparison_operator, const float quantile_level) | | Masked ensemble downscaling and quantile extraction. More... | | vec2 | gridpp::bilinear (const Grid &igrid, const Grid &ogrid, const vec2 &ivalues) | | Bilinear downscaling grid to grid. More... | | Bilinear downscaling grid to grid for a deterministic field. More... | | vec3 | gridpp::bilinear (const Grid &igrid, const Grid &ogrid, const vec3 &ivalues) | | Bilinear dowscaling grid to grid for an ensemble field. More... | | vec | gridpp::bilinear (const Grid &igrid, const Points &opoints, const vec2 &ivalues) | | Bilinear downscaling grid to points. More... | | Bilinear dowscaling grid to point for a deterministic field. More... | | vec2 | gridpp::bilinear (const Grid &igrid, const Points &opoints, const vec3 &ivalues) | | Bilinear dowscaling grid to point for an ensemble field. More... | | vec2 | gridpp::simple_gradient (const Grid &igrid, const Grid &ogrid, const vec2 &ivalues, float elev_gradient, Downscaler downscaler=Nearest) | | Elevation correction dowscaling grid to grid for a deterministic field. More... | | vec3 | gridpp::simple_gradient (const Grid &igrid, const Grid &ogrid, const vec3 &ivalues, float elev_gradient, Downscaler downscaler=Nearest) | | Elevation correction dowscaling grid to grid for an ensemble field. More... | | vec | gridpp::simple_gradient (const Grid &igrid, const Points &opoints, const vec2 &ivalues, float elev_gradient, Downscaler downscaler=Nearest) | | Elevation correction dowscaling grid to point for a deterministic field. More... | | vec2 | gridpp::simple_gradient (const Grid &igrid, const Points &opoints, const vec3 &ivalues, float elev_gradient, Downscaler downscaler=Nearest) | | Elevation correction dowscaling grid to point for an ensemble field. More... | | vec2 | gridpp::full_gradient (const Grid &igrid, const Grid &ogrid, const vec2 &ivalues, const vec2 &elev_gradient, const vec2 &laf_gradient=vec2(), Downscaler downscaler=Nearest) | | Compute Downscale. More... | | vec3 | gridpp::full_gradient (const Grid &igrid, const Grid &ogrid, const vec3 &ivalues, const vec3 &elev_gradient, const vec3 &laf_gradient, Downscaler downscaler=Nearest) | | Spatially varying gradient dowscaling grid to grid for an ensemble field. More... | | vec | gridpp::full_gradient (const Grid &igrid, const Points &opoints, const vec2 &ivalues, const vec2 &elev_gradient, const vec2 &laf_gradient, Downscaler downscaler=Nearest) | | Spatially varying gradient dowscaling grid to point for a deterministic field. More... | | vec2 | gridpp::full_gradient (const Grid &igrid, const Points &opoints, const vec3 &ivalues, const vec3 &elev_gradient, const vec3 &laf_gradient, Downscaler downscaler=Nearest) | | Spatially varying gradient dowscaling grid to point for an ensemble field. More... | | vec3 | gridpp::full_gradient_debug (const Grid &igrid, const Grid &ogrid, const vec2 &ivalues, const vec2 &elev_gradient, const vec2 &laf_gradient=vec2(), Downscaler downscaler=Nearest) | | vec2 | gridpp::smart (const Grid &igrid, const Grid &ogrid, const vec2 &ivalues, int num, const StructureFunction &structure) | | Smart neighbour downscaling grid to grid. More... | | Smart neighbour downscaling grid to grid for a deterministic field. More... | | Grid calculations @@ -603,87 +643,100 @@ | Set the verbosity of debug messages. More... | | int | gridpp::get_debug_level () | | Get the currently set level of debug messages. More... | | Get the currently set level of debug messagess. More... | | Statistic | gridpp::get_statistic (std::string name) | | Convert name of a statistic enum. More... | | Convert name of a statistic enums. More... | | std::string | gridpp::version () | | The gridpp version. More... | | double | gridpp::clock () | | The current time. More... | | void | gridpp::debug (std::string string) | | Writes a debug message to standard out. More... | | void | gridpp::warning (std::string string) | | Writes a warning message to standard out. More... | | void | gridpp::error (std::string string) | | Writes an error message to standard out. More... | | void | gridpp::future_deprecation_warning (std::string function, std::string other="") | | Writes an deprecation warning to standard out. More... | | bool | gridpp::is_valid (float value) | | Checks if a value is valid. More... | | float | gridpp::calc_statistic (const vec &array, Statistic statistic) | | Compute a statistic on a 1D vector. More... | | float | gridpp::calc_quantile (const vec &array, float quantile) | | float | gridpp::calc_quantile (const vec &array, float quantile_level) | | Compute a quantile from a 1D vector. More... | | vec | gridpp::calc_statistic (const vec2 &array, Statistic statistic) | | Compute a statistic on a 2D vector. More... | | vec | gridpp::calc_quantile (const vec2 &array, float quantile=MV) | | Compute a quantile from a 2D vector. More... | | vec2 | gridpp::calc_quantile (const vec3 &array, const vec2 &quantile) | | Compute quantile with 2D varying quantile. More... | | vec2 | gridpp::calc_quantile (const vec3 &array, const vec2 &quantile_levels) | | Compute quantile with 2D varying quantile level. More... | | int | gridpp::num_missing_values (const vec2 &iArray) | | Count the number of missing values in a vector. More... | | int | gridpp::get_lower_index (float iX, const vec &iValues) | | Find the index in a vector that is equal or just below a value. More... | | Find the index in a vector that is equal to or just below a value. More... | | int | gridpp::get_upper_index (float iX, const vec &iValues) | | Find the index in a vector that is equal or just above a value. More... | | Find the index in a vector that is equal to or just above a value. More... | | float | gridpp::interpolate (float x, const vec &iX, const vec &iY) | | Piecewise linear interpolation If x is outside the range of iX, then the min/max value of iY is used. More... | | vec | gridpp::interpolate (const vec &x, const vec &iX, const vec &iY) | | Piecewise linear interpolation Same as above, but for a vector of points to interpolate for. More... | | Piecewise linear interpolation, vectorised version. More... | | ivec2 | gridpp::init_ivec2 (int Y, int X, int value) | | Initialize a vector of size Y, X, with a given value. More... | | Initialize a 2D integer vector of size Y, X, with a given value. More... | | vec2 | gridpp::init_vec2 (int Y, int X, float value=MV) | | Initialize a 2D float vector of size Y, X, with a given value. More... | | ivec3 | gridpp::init_ivec3 (int Y, int X, int E, int value) | | Initialize a vector of size Y, X, E, with a given value. More... | | Initialize a 3D integer vector of size Y, X, E, with a given value. More... | | vec3 | gridpp::init_vec3 (int Y, int X, int E, float value=MV) | | Initialize a 3D float vector of size Y, X, E, with a given value. More... | | vec | gridpp::calc_even_quantiles (const vec &values, int num) | | Get reasonably spaced quantiles from a vector of values, ignoring duplicate values but including the first number after duplicated values. More... | | Get reasonably spaced quantile levels from a vector of values, ignoring duplicate values but including the first number after duplicated values. More... | | vec2 | gridpp::calc_gradient (const vec2 &base, const vec2 &values, GradientType gradient_type, int halfwidth, int min_num=2, float min_range=gridpp::MV, float default_gradient=0) | | Computes gradients based on values in neighbourhood. More... | | vec2 | gridpp::neighbourhood_search (const vec2 &array, const vec2 &search_array, int halfwidth, float search_target_min, float search_target_max, float search_delta, const ivec2 &apply_array=ivec2()) | | Find suitable value in neighbourhood based on a search criteria. More... | | vec2 | gridpp::window (const vec2 &array, int length, gridpp::Statistic statistic, bool before=false, bool keep_missing=false, bool missing_edges=true) | | Compute window statistics. More... | | Compute window statistics across time, independently for each case. More... | | bool | gridpp::compatible_size (const Grid &grid, const vec2 &v) | | Check if the grid is the same size as the 2D vector. More... | | bool | gridpp::compatible_size (const Grid &grid, const vec3 &v) | | Check if the grid is compatible with 3D vector. More... | | bool | gridpp::compatible_size (const Points &points, const vec &v) | | Check if the points are compatible with a 1D vector. More... | | bool | gridpp::compatible_size (const Points &points, const vec2 &v) | | Check if the points are compatible with a 2D vector. More... | | bool | gridpp::compatible_size (const vec2 &a, const vec2 &b) | | Check if two 2D vectors are compatible. More... | | bool | gridpp::compatible_size (const vec2 &a, const vec3 &b) | | Check if a 2D and 3D vectors are compatible. More... | | bool | gridpp::compatible_size (const vec3 &a, const vec3 &b) | | Check if two 3D vectors are compatible. More... | | bool | gridpp::point_in_rectangle (const Point &A, const Point &B, const Point &C, const Point &D, const Point &m) | | Checks if a point is located inside a rectangle formed by 4 points. More... |
#define GRIDPP_VERSION "0.7.0.dev4" |
+ #define GRIDPP_VERSION "0.7.0.dev6" |
@@ -769,7 +822,7 @@
-Generated on Sat Jul 1 2023 23:11:38 for Gridpp 0.7.0.dev4 by
+Generated on Thu Jan 11 2024 09:36:52 for Gridpp 0.7.0.dev6 by
1.8.13
diff --git a/docs/0.7.0/gridpp_8h_source.html b/docs/0.7.0/gridpp_8h_source.html
index 252229b6..0aa4c780 100644
--- a/docs/0.7.0/gridpp_8h_source.html
+++ b/docs/0.7.0/gridpp_8h_source.html
@@ -5,7 +5,7 @@
- |
- Gridpp 0.7.0.dev4
+ Gridpp 0.7.0.dev6
A post-processing library for gridded weather forecasts
|
@@ -76,199 +76,199 @@
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- Gridpp 0.7.0.dev4
+ Gridpp 0.7.0.dev6
A post-processing library for gridded weather forecasts
|
@@ -80,7 +80,7 @@
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- Gridpp 0.7.0.dev4
+ Gridpp 0.7.0.dev6
A post-processing library for gridded weather forecasts
|
@@ -69,7 +69,7 @@
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- Gridpp 0.7.0.dev4
+ Gridpp 0.7.0.dev6
A post-processing library for gridded weather forecasts
|
@@ -81,7 +81,7 @@
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- Gridpp 0.7.0.dev4
+ Gridpp 0.7.0.dev6
A post-processing library for gridded weather forecasts
|
@@ -86,7 +86,7 @@
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- Gridpp 0.7.0.dev4
+ Gridpp 0.7.0.dev6
A post-processing library for gridded weather forecasts
|
@@ -82,7 +82,7 @@
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- Gridpp 0.7.0.dev4
+ Gridpp 0.7.0.dev6
A post-processing library for gridded weather forecasts
|
@@ -83,7 +83,7 @@
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- Gridpp 0.7.0.dev4
+ Gridpp 0.7.0.dev6
A post-processing library for gridded weather forecasts
|
@@ -82,20 +82,28 @@
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
typedef std::vector< float > | vec | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1D float vector More... | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
typedef std::vector< vec > | vec2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
2D float vector More... | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
typedef std::vector< vec2 > | vec3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3D float vector More... | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
typedef std::vector< int > | ivec | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1D integer vector More... | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
typedef std::vector< ivec > | ivec2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
2D integer vector More... | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
typedef std::vector< ivec2 > | ivec3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3D integer vector More... | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
typedef std::vector< double > | dvec | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1D double vector More... | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
typedef std::vector< dvec > | dvec2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
2D double vector More... | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
@@ -104,29 +112,30 @@
Functions that merge observations with a background field vec2 | optimal_interpolation (const Grid &bgrid, const vec2 &background, const Points &points, const vec &pobs, const vec &pratios, const vec &pbackground, const StructureFunction &structure, int max_points, bool allow_extrapolation=true) | | Optimal interpolation for a deterministic gridded field. More... | | vec | optimal_interpolation (const Points &bpoints, const vec &background, const Points &points, const vec &pobs, const vec &pratios, const vec &pbackground, const StructureFunction &structure, int max_points, bool allow_extrapolation=true) | | Optimal interpolation for a deterministic vector of points. More... | | vec2 | optimal_interpolation_full (const Grid &bgrid, const vec2 &background, const vec2 &bvariance, const Points &points, const vec &obs, const vec &obs_variance, const vec &background_at_points, const vec &bvariance_at_points, const StructureFunction &structure, int max_points, vec2 &analysis_variance, bool allow_extrapolation=true) | | Optimal interpolation for a deterministic gridded field including analysis variance. More... | | vec | optimal_interpolation_full (const Points &bpoints, const vec &background, const vec &bvariance, const Points &points, const vec &obs, const vec &obs_variance, const vec &background_at_points, const vec &bvariance_at_points, const StructureFunction &structure, int max_points, vec &analysis_sigmas, bool allow_extrapolation=true) | | Optimal interpolation for a deterministic vector of points including analysis variance. More... | | vec3 | optimal_interpolation_ensi (const Grid &bgrid, const vec3 &background, const Points &points, const vec &pobs, const vec &psigmas, const vec2 &pbackground, const StructureFunction &structure, int max_points, bool allow_extrapolation=true) | | Optimal interpolation using a structure function based on an ensemble See Lussana et al 2019 (DOI: 10.1002/qj.3646) More... | | vec2 | optimal_interpolation_ensi (const Points &bpoints, const vec2 &background, const Points &points, const vec &pobs, const vec &psigmas, const vec2 &pbackground, const StructureFunction &structure, int max_points, bool allow_extrapolation=true) | | vec2 | local_distribution_correction (const Grid &bgrid, const vec2 &background, const Points &points, const vec &pobs, const vec &pbackground, const StructureFunction &structure, float min_quantile, float max_quantile, int min_points=0) | | Correction of a gridded field ensuring the distribution of values nearby match that of observations. More... | | vec2 | local_distribution_correction (const Grid &bgrid, const vec2 &background, const Points &points, const vec2 &pobs, const vec2 &pbackground, const StructureFunction &structure, float min_quantile, float max_quantile, int min_points=0) | | Version with multiple number of timesteps. More... | | vec2 | optimal_interpolation (const Grid &bgrid, const vec2 &background, const Points &obs_points, const vec &obs, const vec &variance_ratios, const vec &background_at_points, const StructureFunction &structure, int max_points, bool allow_extrapolation=true) | | Optimal interpolation for a deterministic gridded field. More... | | vec | optimal_interpolation (const Points &bpoints, const vec &background, const Points &obs_points, const vec &obs, const vec &variance_ratios, const vec &background_at_points, const StructureFunction &structure, int max_points, bool allow_extrapolation=true) | | Optimal interpolation for a deterministic vector of points. More... | | vec2 | optimal_interpolation_full (const Grid &bgrid, const vec2 &background, const vec2 &bvariance, const Points &obs_points, const vec &obs, const vec &obs_variance, const vec &background_at_points, const vec &bvariance_at_points, const StructureFunction &structure, int max_points, vec2 &analysis_variance, bool allow_extrapolation=true) | | Optimal interpolation for a deterministic gridded field including analysis variance. More... | | vec | optimal_interpolation_full (const Points &bpoints, const vec &background, const vec &bvariance, const Points &obs_points, const vec &obs, const vec &obs_variance, const vec &background_at_points, const vec &bvariance_at_points, const StructureFunction &structure, int max_points, vec &analysis_variance, bool allow_extrapolation=true) | | Optimal interpolation for a deterministic vector of points including analysis variance. More... | | vec3 | optimal_interpolation_ensi (const Grid &bgrid, const vec3 &background, const Points &obs_points, const vec &obs, const vec &obs_standard_deviations, const vec2 &background_at_points, const StructureFunction &structure, int max_points, bool allow_extrapolation=true) | | Optimal interpolation for an ensemble gridded field See Lussana et al 2019 (DOI: 10.1002/qj.3646) More... | | vec2 | optimal_interpolation_ensi (const Points &bpoints, const vec2 &background, const Points &obs_points, const vec &obs, const vec &obs_standard_deviations, const vec2 &background_at_points, const StructureFunction &structure, int max_points, bool allow_extrapolation=true) | | Optimal interpolation for an ensemble point field See Lussana et al 2019 (DOI: 10.1002/qj.3646) More... | | vec2 | local_distribution_correction (const Grid &bgrid, const vec2 &background, const Points &obs_points, const vec &obs, const vec &background_at_points, const StructureFunction &structure, float min_quantile, float max_quantile, int min_points=0) | | Correction of a gridded field ensuring the distribution of values nearby match that of observations. More... | | vec2 | local_distribution_correction (const Grid &bgrid, const vec2 &background, const Points &obs_points, const vec2 &obs, const vec2 &background_at_points, const StructureFunction &structure, float min_quantile, float max_quantile, int min_points=0) | | Correction of a gridded field ensuring the distribution of values nearby match that of observations. More... | | | vec2 | fill (const Grid &igrid, const vec2 &input, const Points &points, const vec &radii, float value, bool outside) | Fill in values inside or outside a set of circles (useful for masking) More... | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
vec | gamma_inv (const vec &levels, const vec &shape, const vec &scale) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Extract quantiles from a gamma distribution. More... | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Spatial neighbourhood filters | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
@@ -156,7 +166,7 @@ | Computes a quantile in a sliding square neighbourhood. More... | | vec2 | neighbourhood_quantile (const vec3 &input, float quantile, int halfwidth) | | Computes a quantile in a sliding square neighbourhood for an ensemble of fields. More... | | Computes a quantile in a sliding square neighbourhood across ensemble members. More... | | vec2 | neighbourhood_quantile_fast (const vec2 &input, float quantile, int halfwidth, const vec &thresholds) | | Fast and approximate neighbourhood quantile. More... | | Fast and approximate neighbourhood quantile for ensemble of fields. More... | | vec2 | neighbourhood_quantile_fast (const vec2 &input, const vec2 &quantile, int halfwidth, const vec &thresholds) | | Fast and approximate neighbourhood quantile, with spatially varying quantile. More... | | Fast and approximate neighbourhood quantile, with spatially varying quantile levels. More... | | vec2 | neighbourhood_quantile_fast (const vec3 &input, const vec2 &quantile, int halfwidth, const vec &thresholds) | | Fast and approximate neighbourhood quantile for ensemble of fields, with spatially varying quantile. More... | | Spatial neighbourhood filter without any shortcuts. More... | | vec2 | neighbourhood_brute_force (const vec3 &input, int halfwidth, Statistic statistic) | | Spatial neighbourhood filter without any shortcuts. More... | | Spatial ensemble neighbourhood filter without any shortcuts. More... | | vec | get_neighbourhood_thresholds (const vec2 &input, int num_thresholds) | | Calculate appropriate approximation thresholds for neighbourhood quantile. More... | | Calculate appropriate approximation thresholds for fast neighbourhood quantile. More... | | vec | get_neighbourhood_thresholds (const vec3 &input, int num_thresholds) | | Calculate appropriate approximation thresholds for neighbourhood quantile based on an * ensemble. More... | | Calculate appropriate approximation thresholds for neighbourhood quantile based on an ensemble. More... | | vec2 | calc_gradient (const vec2 &base, const vec2 &values, GradientType gradient_type, int halfwidth, int min_num=2, float min_range=gridpp::MV, float default_gradient=0) | | Computes gradients based on values in neighbourhood. More... | | vec2 | neighbourhood_search (const vec2 &array, const vec2 &search_array, int halfwidth, float search_target_min, float search_target_max, float search_delta, const ivec2 &apply_array=ivec2()) | | Find suitable value in neighbourhood that match a search criteria. More... | | vec2 | neighbourhood_ens (const vec3 &input, int halfwidth, Statistic statistic) | | Deprecated: Compute neighbourhood statistic on ensemble field. More... | | | Apply arbitrary calibration curve to 2D forecasts with spatially varying QQ map. More... | | vec | monotonize_curve (vec curve_ref, vec curve_fcst, vec &output_fcst) | | Ensure calibration curve is monotonic, by removing points. More... | | Ensure calibration curve is monotonic, by removing points on the curve. More... | | float | get_optimal_threshold (const vec &ref, const vec &fcst, float threshold, Metric metric) | | float | get_optimal_threshold (const vec &curve_ref, const vec &curve_fcst, float threshold, Metric metric) | | Compute the optimal threshold to remap an input threshold to. More... | | float | calc_score (float a, float b, float c, float d, Metric metric) | | Compute the score for a 2x2 contingency table. More... | | float | calc_score (const vec &ref, const vec &fcst, float threshold, Metric metric) | | Compute the score for a 2x2 contingency table by thresholding. More... | | float | calc_score (const vec &ref, const vec &fcst, float threshold, float fthreshold, Metric metric) | | Compute the score for a 2x2 contingency table by thresholding and allowing a different threshold for the forecast. More... | | Downscaling methods Functions that interpolate data from one grid to another vec2 | downscaling (const Grid &igrid, const Grid &ogrid, const vec2 &ivalues, Downscaler downscaler) | | Generic downscaler for simple methods that don't use information other than the grids. More... | | Downscale a gridded field. More... | | vec3 | downscaling (const Grid &igrid, const Grid &ogrid, const vec3 &ivalues, Downscaler downscaler) | | Downscale a gridded ensemble field. More... | | vec | downscaling (const Grid &igrid, const Points &opoints, const vec2 &ivalues, Downscaler downscaler) | | Downscale a gridded field to points. More... | | vec2 | downscaling (const Grid &igrid, const Points &opoints, const vec3 &ivalues, Downscaler downscaler) | | Downscale a gridded ensemble field to points. More... | | vec2 | nearest (const Grid &igrid, const Grid &ogrid, const vec2 &ivalues) | | Nearest neighbour dowscaling grid to grid. More... | | Nearest neighbour dowscaling grid to grid for a deterministic field. More... | | vec3 | nearest (const Grid &igrid, const Grid &ogrid, const vec3 &ivalues) | | Nearest neighbour dowscaling grid to grid for an ensemble field. More... | | vec | nearest (const Grid &igrid, const Points &opoints, const vec2 &ivalues) | | Nearest neighbour dowscaling grid to point. More... | | Nearest neighbour dowscaling grid to point for a deterministic field. More... | | vec2 | nearest (const Grid &igrid, const Points &opoints, const vec3 &ivalues) | | Nearest neighbour dowscaling grid to point for an ensemble field. More... | | vec | nearest (const Points &ipoints, const Points &opoints, const vec &ivalues) | | Nearest neighbour dowscaling point to point. More... | | Nearest neighbour dowscaling point to point for a deterministic field. More... | | vec2 | nearest (const Points &ipoints, const Points &opoints, const vec2 &ivalues) | | Nearest neighbour dowscaling point to point for an ensemble field. More... | | vec2 | nearest (const Points &ipoints, const Grid &ogrid, const vec &ivalues) | | Nearest neighbour dowscaling point to grid. More... | | Nearest neighbour dowscaling point to grid for a deterministic field. More... | | vec3 | nearest (const Points &ipoints, const Grid &ogrid, const vec2 &ivalues) | | Nearest neighbour dowscaling point to grid for an ensemble field. More... | | vec2 | downscale_probability (const Grid &igrid, const Grid &ogrid, const vec3 &ivalues, const vec2 &threshold, const ComparisonOperator &comparison_operator) | | Nearest neighbour downscaling grid to grid and probability in one. More... | | vec2 | mask_threshold_downscale_consensus (const Grid &igrid, const Grid &ogrid, const vec3 &ivalues_true, const vec3 &ivalues_false, const vec3 &theshold_values, const vec2 &threshold, const ComparisonOperator &comparison_operator, const Statistic &statistic) | | Nearest neighbour downscaling grid to grid and threshold and consensus in one. More... | | Masked ensemble downscaling and consensus. More... | | vec2 | mask_threshold_downscale_quantile (const Grid &igrid, const Grid &ogrid, const vec3 &ivalues_true, const vec3 &ivalues_false, const vec3 &theshold_values, const vec2 &threshold, const ComparisonOperator &comparison_operator, const float quantile) | | Nearest neighbour downscaling grid to grid and threshold and quantile in one. More... | | vec2 | mask_threshold_downscale_quantile (const Grid &igrid, const Grid &ogrid, const vec3 &ivalues_true, const vec3 &ivalues_false, const vec3 &theshold_values, const vec2 &threshold, const ComparisonOperator &comparison_operator, const float quantile_level) | | Masked ensemble downscaling and quantile extraction. More... | | vec2 | bilinear (const Grid &igrid, const Grid &ogrid, const vec2 &ivalues) | | Bilinear downscaling grid to grid. More... | | Bilinear downscaling grid to grid for a deterministic field. More... | | vec3 | bilinear (const Grid &igrid, const Grid &ogrid, const vec3 &ivalues) | | Bilinear dowscaling grid to grid for an ensemble field. More... | | vec | bilinear (const Grid &igrid, const Points &opoints, const vec2 &ivalues) | | Bilinear downscaling grid to points. More... | | Bilinear dowscaling grid to point for a deterministic field. More... | | vec2 | bilinear (const Grid &igrid, const Points &opoints, const vec3 &ivalues) | | Bilinear dowscaling grid to point for an ensemble field. More... | | vec2 | simple_gradient (const Grid &igrid, const Grid &ogrid, const vec2 &ivalues, float elev_gradient, Downscaler downscaler=Nearest) | | Elevation correction dowscaling grid to grid for a deterministic field. More... | | vec3 | simple_gradient (const Grid &igrid, const Grid &ogrid, const vec3 &ivalues, float elev_gradient, Downscaler downscaler=Nearest) | | Elevation correction dowscaling grid to grid for an ensemble field. More... | | vec | simple_gradient (const Grid &igrid, const Points &opoints, const vec2 &ivalues, float elev_gradient, Downscaler downscaler=Nearest) | | Elevation correction dowscaling grid to point for a deterministic field. More... | | vec2 | simple_gradient (const Grid &igrid, const Points &opoints, const vec3 &ivalues, float elev_gradient, Downscaler downscaler=Nearest) | | Elevation correction dowscaling grid to point for an ensemble field. More... | | vec2 | full_gradient (const Grid &igrid, const Grid &ogrid, const vec2 &ivalues, const vec2 &elev_gradient, const vec2 &laf_gradient=vec2(), Downscaler downscaler=Nearest) | | Compute Downscale. More... | | vec3 | full_gradient (const Grid &igrid, const Grid &ogrid, const vec3 &ivalues, const vec3 &elev_gradient, const vec3 &laf_gradient, Downscaler downscaler=Nearest) | | Spatially varying gradient dowscaling grid to grid for an ensemble field. More... | | vec | full_gradient (const Grid &igrid, const Points &opoints, const vec2 &ivalues, const vec2 &elev_gradient, const vec2 &laf_gradient, Downscaler downscaler=Nearest) | | Spatially varying gradient dowscaling grid to point for a deterministic field. More... | | vec2 | full_gradient (const Grid &igrid, const Points &opoints, const vec3 &ivalues, const vec3 &elev_gradient, const vec3 &laf_gradient, Downscaler downscaler=Nearest) | | Spatially varying gradient dowscaling grid to point for an ensemble field. More... | | vec3 | full_gradient_debug (const Grid &igrid, const Grid &ogrid, const vec2 &ivalues, const vec2 &elev_gradient, const vec2 &laf_gradient=vec2(), Downscaler downscaler=Nearest) | | vec2 | smart (const Grid &igrid, const Grid &ogrid, const vec2 &ivalues, int num, const StructureFunction &structure) | | Smart neighbour downscaling grid to grid. More... | | Smart neighbour downscaling grid to grid for a deterministic field. More... | | Grid calculations @@ -525,6 +561,7 @@ | Simple structure function based on distance, elevation, and land area fraction. More... | | class | BoxCox | | Box-Cox transformation. More... | | class | CressmanStructure | | Simple structure function based on distance, elevation, and land area fraction. More... | class | CrossValidation | | class | Gamma | | Gamma transformation. More... | | class | Grid | | Represents a 2D grid of locations and their metadata. More... | | class | Identity | | Identity transform, i.e. More... | | class | KDTree | | Helper class for Grid and Points. More... | | Helper class for Grid and Points representing a tree of points. More... | | class | Log | | Log transformation: output = log(input) More... | | class | MultipleStructure | | | Set the verbosity of debug messages. More... | | int | get_debug_level () | | Get the currently set level of debug messages. More... | | Get the currently set level of debug messagess. More... | | Statistic | get_statistic (std::string name) | | Convert name of a statistic enum. More... | | Convert name of a statistic enums. More... | | std::string | version () | | The gridpp version. More... | | double | clock () | | The current time. More... | | void | debug (std::string string) | | Writes a debug message to standard out. More... | | void | warning (std::string string) | | Writes a warning message to standard out. More... | | void | error (std::string string) | | Writes an error message to standard out. More... | | void | future_deprecation_warning (std::string function, std::string other="") | | Writes an deprecation warning to standard out. More... | | bool | is_valid (float value) | | Checks if a value is valid. More... | | float | calc_statistic (const vec &array, Statistic statistic) | | Compute a statistic on a 1D vector. More... | | float | calc_quantile (const vec &array, float quantile) | | float | calc_quantile (const vec &array, float quantile_level) | | Compute a quantile from a 1D vector. More... | | vec | calc_statistic (const vec2 &array, Statistic statistic) | | Compute a statistic on a 2D vector. More... | | vec | calc_quantile (const vec2 &array, float quantile=MV) | | Compute a quantile from a 2D vector. More... | | vec2 | calc_quantile (const vec3 &array, const vec2 &quantile) | | Compute quantile with 2D varying quantile. More... | | vec2 | calc_quantile (const vec3 &array, const vec2 &quantile_levels) | | Compute quantile with 2D varying quantile level. More... | | int | num_missing_values (const vec2 &iArray) | | Count the number of missing values in a vector. More... | | int | get_lower_index (float iX, const vec &iValues) | | Find the index in a vector that is equal or just below a value. More... | | Find the index in a vector that is equal to or just below a value. More... | | int | get_upper_index (float iX, const vec &iValues) | | Find the index in a vector that is equal or just above a value. More... | | Find the index in a vector that is equal to or just above a value. More... | | float | interpolate (float x, const vec &iX, const vec &iY) | | Piecewise linear interpolation If x is outside the range of iX, then the min/max value of iY is used. More... | | vec | interpolate (const vec &x, const vec &iX, const vec &iY) | | Piecewise linear interpolation Same as above, but for a vector of points to interpolate for. More... | | Piecewise linear interpolation, vectorised version. More... | | ivec2 | init_ivec2 (int Y, int X, int value) | | Initialize a vector of size Y, X, with a given value. More... | | Initialize a 2D integer vector of size Y, X, with a given value. More... | | vec2 | init_vec2 (int Y, int X, float value=MV) | | Initialize a 2D float vector of size Y, X, with a given value. More... | | ivec3 | init_ivec3 (int Y, int X, int E, int value) | | Initialize a vector of size Y, X, E, with a given value. More... | | Initialize a 3D integer vector of size Y, X, E, with a given value. More... | | vec3 | init_vec3 (int Y, int X, int E, float value=MV) | | Initialize a 3D float vector of size Y, X, E, with a given value. More... | | vec | calc_even_quantiles (const vec &values, int num) | | Get reasonably spaced quantiles from a vector of values, ignoring duplicate values but including the first number after duplicated values. More... | | Get reasonably spaced quantile levels from a vector of values, ignoring duplicate values but including the first number after duplicated values. More... | | vec2 | calc_gradient (const vec2 &base, const vec2 &values, GradientType gradient_type, int halfwidth, int min_num=2, float min_range=gridpp::MV, float default_gradient=0) | | Computes gradients based on values in neighbourhood. More... | | vec2 | neighbourhood_search (const vec2 &array, const vec2 &search_array, int halfwidth, float search_target_min, float search_target_max, float search_delta, const ivec2 &apply_array=ivec2()) | | Find suitable value in neighbourhood based on a search criteria. More... | | vec2 | window (const vec2 &array, int length, gridpp::Statistic statistic, bool before=false, bool keep_missing=false, bool missing_edges=true) | | Compute window statistics. More... | | Compute window statistics across time, independently for each case. More... | | bool | compatible_size (const Grid &grid, const vec2 &v) | | Check if the grid is the same size as the 2D vector. More... | | bool | compatible_size (const Grid &grid, const vec3 &v) | | Check if the grid is compatible with 3D vector. More... | | bool | compatible_size (const Points &points, const vec &v) | | Check if the points are compatible with a 1D vector. More... | | bool | compatible_size (const Points &points, const vec2 &v) | | Check if the points are compatible with a 2D vector. More... | | bool | compatible_size (const vec2 &a, const vec2 &b) | | Check if two 2D vectors are compatible. More... | | bool | compatible_size (const vec2 &a, const vec3 &b) | | Check if a 2D and 3D vectors are compatible. More... | | bool | compatible_size (const vec3 &a, const vec3 &b) | | Check if two 3D vectors are compatible. More... | | bool | point_in_rectangle (const Point &A, const Point &B, const Point &C, const Point &D, const Point &m) | | Checks if a point is located inside a rectangle formed by 4 points. More... |
+ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Enumerator | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Nearest | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Bilinear | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Enumerator | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Nearest | Nearest neighour downscaler. + | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Bilinear | Bilinear downscaler. + |
fcst | input forecast |
curve_ref | Reference quantiles |
curve_fcst | Forecast quantiles |
fcst | 1D vector of forecast values to correct |
curve_ref | 1D vector of reference curve values |
curve_fcst | 1D vector of forecast curve values |
policy_below | Extrapolation policy below curve |
policy_above | Extrapolation policy above curve |
fcst | 1D vector of forecast values |
curve_ref | Reference quantiles |
curve_fcst | Forecast quantiles |
fcst | 1D vector of forecast values to correct |
curve_ref | 1D vector of reference curve values |
curve_fcst | 1D vector of forecast curve values |
policy_below | Extrapolation policy below curve |
policy_above | Extrapolation policy above curve |
fcst | 2D grid of forecast values |
curve_ref | Reference quantiles |
curve_fcst | Forecast quantiles |
fcst | 2D vector of forecast values to correct |
curve_ref | 1D vector of reference curve values |
curve_fcst | 1D vector of forecast curve values |
policy_below | Extrapolation policy below curve |
policy_above | Extrapolation policy above curve |
fcst | 2D grid of forecast values |
curve_ref | Reference quantiles (Y, X, Q) |
curve_fcst | Forecast quantiles (Y, X, Q) |
fcst | 2D vector of forecast values to correct |
curve_ref | 3D vector of reference curve values (Y, X, Curve) |
curve_fcst | 3D vector of Forecast curve values (Y, X, Curve) |
policy_below | Extrapolation policy below curve |
policy_above | Extrapolation policy above curve |
Bilinear downscaling grid to grid.
+Bilinear downscaling grid to grid for a deterministic field.
igrid | Input grid |
ogrid | Output grid to downscale to |
ivalues | 2D vector of values on the input grid |
igrid | Grid of input (Yi, Xi) |
ogrid | Grid of downscaled output (Yo, Xo) |
ivalues | 2D vector of input values (Yi, Xi) |
Bilinear dowscaling grid to grid for an ensemble field.
+igrid | Grid of input (Yi, Xi) |
ogrid | Grid of downscaled output (Yo, Xo) |
ivalues | 3D vector of input values (E, Yi, Xi) |
Bilinear downscaling grid to points.
+Bilinear dowscaling grid to point for a deterministic field.
igrid | Input grid |
ogrid | Output points to downscale to |
ivalues | 2D vector of values on the input grid |
igrid | Grid of input (Yi, Xi) |
opoints | Points of downscaled output |
ivalues | 2D vector of input values grid (Yi, Xi) |
Bilinear dowscaling grid to point for an ensemble field.
+igrid | Grid of input (Yi, Xi) |
opoints | Points of downscaled output |
ivalues | 3D vector of input values (E, Yi, Xi) |
Get reasonably spaced quantiles from a vector of values, ignoring duplicate values but including the first number after duplicated values.
+Get reasonably spaced quantile levels from a vector of values, ignoring duplicate values but including the first number after duplicated values.
Include the lowest and highest values.
values | vector of values (unsorted, and no invalid values) |
values | 1D vector of values (unsorted, and no invalid values) |
num | number of thresholds to get |
grid | Grid |
base | Dependent variable. Missing values are not used. |
values | Independent variable. Missing values are not used. |
radius | Neighbourhood radius in number of gridpoints |
base | 2D vector of dependent values, missing values are ignored (Y, X) |
values | 2D vector of independent values, missing values are ignored (Y, X) |
gradient_type | What gradient type to compute |
halfwidth | Neighbourhood half width in number of gridpoints |
min_nim | Minimum number of points required to compute gradient |
min_range | Minimum range of base to compute gradient |
default_gradient | Use this gradient if minimum number is not met |
default_gradient | Use this gradient if minimum number of points not available |
Compute a quantile from a 1D vector.
+array | 1D vector of values |
quantile_level | Quantile level to compute |
Compute a quantile from a 2D vector.
+array | 2D vector of values (Y, X) |
quantile_level | Quantile level to compute |
Compute quantile with 2D varying quantile.
+Compute quantile with 2D varying quantile level.
array | Input array with dimensions (T, Y, X) |
quantile | Quantile array with dimensions (Y, X) |
array | 3D input vector (T, Y, X) |
quantile | 2D vector of Quantile levels (Y, X) |
Compute the score for a 2x2 contingency table.
+a | Fraction of hits |
b | Fraction of false alarms |
c | Fraction of misses |
d | Fraction of correct rejections |
metric | Metric to conpute score for |
Compute the score for a 2x2 contingency table by thresholding.
+ref | 1D vector of reference values |
fcst | 1D vector forecast values |
threshold | Threshold to compute score for |
metric | Metric to conpute score for |
Compute the score for a 2x2 contingency table by thresholding and allowing a different threshold for the forecast.
+ref | 1D vector of reference values |
fcst | 1D vector forecast values |
threshold | Threshold for the reference values |
fthreshold | Threshold for the forecast values |
metric | Metric to conpute score for |
Compute a statistic on a 1D vector.
+array | 1D vector of values |
statistic | Statistic to compute |
Compute a statistic on a 2D vector.
+array | 2D vector of values (Y, X) |
statistic | Statistic to compute |
The current time.
+Check if the grid is the same size as the 2D vector.
-If True, they are compatible, if false they are incompatible
+grid | Grid (Y, X) |
v | 2D vector (Y, X) |
Check if the grid is compatible with 3D vector.
+grid | Grid (Y, X) |
v | 3D vector (T, Y, X) |
Check if the points are compatible with a 1D vector.
+grid | Points |
v | 1D vector |
Check if the points are compatible with a 2D vector.
+grid | Points (P) |
v | 2D vector (T, P) |
Check if two 2D vectors are compatible.
+a | 2D vector (Y, X) |
b | 2D vector (Y, X) |
Check if a 2D and 3D vectors are compatible.
+a | 2D vector (Y, X) |
b | 3D vector (Y, X, E) |
Check if two 3D vectors are compatible.
+a | 3D vector (Y, X, E) |
b | 3D vector (Y, X, E) |
grid | Grid |
points | Points |
grid | Input grid |
points | Output points |
radius | Radius [m] |
grid | Grid |
points | Points |
points | Input points |
grid | Output grid |
radius | Radius [m] |
ipoints | Input points |
opoints | Output points |
ipoints | Input points (Pi) |
opoints | Output points (Po) |
radius | Radius [m] |
Writes a debug message to standard out.
+string | Write this string |
temperature | Temperatures [K] |
relative_humidity | Relative humidities [1] |
temperature | 1D vector of temperature [K] |
relative_humidity | 1D vector of relative humidity [1] |
grid | Grid |
ogrid | Output grid |
grid | Grid (Yi, Xi) |
ogrid | Output grid /Yo, Xo) |
num | Number of points |
ipoints | Input points |
opoints | Output points |
ipoints | Input points (Pi) |
opoints | Output points (Po) |
num | Number of points |
grid | Grid |
background | Deterministic values with dimensions Y, X |
points | Points representing observations |
observations | Vector of observations |
grid | Grid of background |
background | 2D vector of background values with (Y, X) |
points | Points of observations |
observations | 1D vector of observations |
radii | Radius of circle where observations are inserted for each point [m] |
max_elev_diff | Only insert where elevation difference between grid and point is less than this value |
grid | Grid |
background | Deterministic values with dimensions Y, X |
points | Points representing observations |
observations | Vector of observations |
grid | Grid of background |
background | 2D vector of background values (Y, X) |
points | Points of observations |
observations | 1D vector of observations |
halfwidths | Half width of square (in number of grid points) where observations are inserted for each point |
max_elev_diff | Only insert where elevation difference between grid and point is less than this value |
max_elev_diff | Only insert where elevation difference between grid and point is less than this value [m] |
igrid | Input grid |
ogrid | Output grid to downscale to |
ivalues | 3D vector of values on the input grid (Y, X, E) |
threshold | 2D vector of threshold values |
comparison_operator | lower than, lower or equal than, greater than, great or equal than |
igrid | Grid of input (Yi, Xi) |
ogrid | Grid of downscaled output (Yo, Xo) |
ivalues | 3D vector of input values (Yi, Xi, E) |
threshold | 2D vector of threshold values (Yo, Xo) |
comparison_operator | Comparison operator to create probability |
Generic downscaler for simple methods that don't use information other than the grids.
+Downscale a gridded field.
igrid | Input grid |
ogrid | Output grid to downscale to |
ivalues | 2D vector of values on the input grid |
igrid | Grid of input (Yi, Xi) |
ogrid | Grid of downscaled output (Yo, Xo) |
ivalues | 2D vector of values on the input grid (Yi, Xi) |
downscaler | Downscaling method |
Downscale a gridded ensemble field.
+igrid | Grid of input (Yi, Xi) |
ogrid | Grid of downscaled output (Yo, Xo) |
ivalues | 3D vector of values on the input grid (E, Yi, Xi) |
downscaler | Downscaling method |
Downscale a gridded field to points.
+igrid | Grid of input (Yi, Xi) |
opoints | Points of downscaled output |
ivalues | 2D vector of values on the input grid (Yi, Xi) |
downscaler | Downscaling method |
Downscale a gridded ensemble field to points.
+igrid | Grid of input (Yi, Xi) |
opoints | Points of downscaled output |
ivalues | 3D vector of values on the input grid (E, Yi, Xi) |
downscaler | Downscaling method |
Writes an error message to standard out.
+string | Write this string |
input | Deterministic values with dimensions Y, X |
radii | Circle radii for each point |
value | Fill in this value |
outside | if True, fill outside circles, if False, fill inside circles |
igrid | Grid of input |
input | 2D vector of values (Y, X) |
points | Points to fill in |
radii | 1D vector of circle radii for each point [m] |
value | Value to fill in |
outside | If True, fill outside circles, if False, fill inside circles |
values | 2D array of values |
values | 2D vector of values |
Spatially varying gradient dowscaling grid to grid for an ensemble field.
+igrid | Grid of input (Yi, Xi) |
ogrid | Grid of downscaled output (Yo, Xo) |
ivalues | 3D vector of input values (E, Yi, Xi) |
elev_gradient | 3D vector of elevation gradients (Yi, Xi, E) [input unit/m] |
laf_gradient | 3D vector of land-area-fraction gradients (Yi, Xi, E) [input unit/1] |
downscaler | Downscaling method |
Spatially varying gradient dowscaling grid to point for a deterministic field.
+igrid | Grid of input (Yi, Xi) |
opoints | Points of downscaled output |
ivalues | 2D vector of input values grid (Yi, Xi) |
elev_gradient | 2D vector of elevation gradients (Yi, Xi) [input unit/m] |
laf_gradient | 2D vector of land-area-fraction gradients (Yi, Xi) [input unit/1] |
downscaler | Downscaling method |
Spatially varying gradient dowscaling grid to point for an ensemble field.
+igrid | Grid of input (Yi, Xi) |
opoints | Points of downscaled output |
ivalues | 3D vector of input values (E, Yi, Xi) |
elev_gradient | 3D vector of elevation gradients (E, Yi, Xi) [input unit/m] |
laf_gradient | 3D vector of land-area-fraction gradients (E, Yi, Xi) [input unit/1] |
downscaler | Downscaling method |
Writes an deprecation warning to standard out.
+string | Name of the deprecated function |
other | Additional message to write |
Extract quantiles from a gamma distribution.
shape | Shape parameter of gamma distribution |
scale | Scale parameter of gamma distribution |
levels | Quantile levels to retrieve |
levels | 1D vector of quantile levels to retrieve |
shape | 1D vector of shape parameter of gamma distribution |
scale | 1D vector of scale parameter of gamma distribution |
Get the currently set level of debug messages.
+Get the currently set level of debug messagess.
+Find the index in a vector that is equal or just below a value.
+Find the index in a vector that is equal to or just below a value.
iX | Lookup value |
iValues | Lookup vector. Must be sorted. |
iValues | 1D vector of lookup values. Must be sorted. |
Calculate appropriate approximation thresholds for neighbourhood quantile.
+Calculate appropriate approximation thresholds for fast neighbourhood quantile.
input | 2D (Y, X) array of values |
input | 2D vector of values (Y, X) |
num_thresholds | Number of thresholds |
Calculate appropriate approximation thresholds for neighbourhood quantile based on an * ensemble.
+Calculate appropriate approximation thresholds for neighbourhood quantile based on an ensemble.
input | 3D (Y, X, T) array of values |
input | 3D vector of values (Y, X, T) |
num_thresholds | Number of thresholds |
Get the number of OpenMP threads currently set.
+Compute the optimal threshold to remap an input threshold to.
+curve_ref | 1D vector of reference curve values |
curve_fcst | 1D vector of reference curve values |
threshold | Input threshold |
metric | Metric to optimize |
Convert name of a statistic enum.
+Convert name of a statistic enums.
+name | Name of a statistic |
Find the index in a vector that is equal or just above a value.
+Find the index in a vector that is equal to or just above a value.
iX | Lookup value |
iValues | Lookup vector. Must be sorted. |
iValues | 1D vector of lookup values. Must be sorted. |
Aggregate points onto a grid.
-Writes MV where there are not enough observations.
Writes gridpp::MV where there are not enough points.
grid | Grid to aggregate to |
points | Points with values |
values | Values at points |
radius | Circle radius for aggregate points [m] |
grid | Output grid to aggregate to |
points | Input points |
values | 1D vector of input values |
radius | Circle radius for aggregating points [m] |
min_num | Minimum number of points in radius to create a value |
statistic | Statistic to compute on points within radius |
Aggregate points onto a points.
-Writes MV where there are not enough observations.
Writes gridpp::MV where there are not enough points.
opoints | Points to aggregate to |
ipoints | Points with values |
values | Values at points |
opoints | Output points to aggregate to |
ipoints | Input points |
values | 1D vector of input Values |
radius | Circle radius for aggregate points [m] |
min_num | Minimum number of points in radius to create a value |
statistic | Statistic to compute on points within radius |
Assign each point to nearest neighbour in grid and aggregate values.
-Writes MV where there are not enough observations.
Writes gridpp::MV where there are not enough observations.
grid | Grid to aggregate to |
points | Points with values |
values | Values at points |
grid | Output grid to aggregate to |
points | Input points |
values | Input values |
min_num | Minimum number of points in a gridpoint to create a value |
statistic | Statistic to compute on points within gridpoint |
Assign each ipoint to nearest neighbour in opoints and aggregate values.
-Writes MV where there are not enough observations.
Writes gridpp::MV where there are not enough observations.
opoints | Points to aggregate to |
ipoints | Points with values |
values | Values at points |
opoints | Output points to aggregate to |
ipoints | Input points |
values | Input values |
min_num | Minimum number of points in a gridpoint to create a value |
statistic | Statistic to compute on points within gridpoint |
Initialize a vector of size Y, X, with a given value.
+Initialize a 2D integer vector of size Y, X, with a given value.
+Y | Size of first dimension |
X | Size of second dimension value Initialize with this value |
Initialize a vector of size Y, X, E, with a given value.
+Initialize a 3D integer vector of size Y, X, E, with a given value.
+Y | Size of first dimension |
X | Size of second dimension |
E | Size of third dimension value Initialize with this value |
Initialize a 2D float vector of size Y, X, with a given value.
+Y | Size of first dimension |
X | Size of second dimension value Initialize with this value |
Initialize a 3D float vector of size Y, X, E, with a given value.
+Y | Size of first dimension |
X | Size of second dimension |
E | Size of third dimension value Initialize with this value |
x | Interpolation to this point |
iX | Vector of x-axis values. Vector must be sorted. |
iY | Vector of y-axis values corresponding to iX. |
iX | 1D vector of x-axis values. Vector must be sorted. |
iY | 1D vector of y-axis values corresponding to iX. |
Piecewise linear interpolation Same as above, but for a vector of points to interpolate for.
+Piecewise linear interpolation, vectorised version.
x | Interpolation to these points |
iX | Vector of x-axis values. Vector must be sorted. |
iY | Vector of y-axis values corresponding to iX. |
x | 1D vector of values to interpolate to |
iX | 1D vector of x-axis values. Vector must be sorted. |
iY | 1D vector of y-axis values corresponding to iX. |
Checks if a value is valid.
+value | Value to check |
bgrid | grid corresponding to input |
background | 2D field of background values (Y, X) |
points | observation points |
pobs | vector of observations |
pbackground | vector of background values at points |
structure | structure function specifying correlation between points |
min_quantile | truncate quantile map below this quantile |
max_quantile | truncate quantile map above this quantile |
max_points | maximum number of points used within localization radius (not used at moment) |
bgrid | Grid of background field |
background | 2D vector of background values (Y, X) |
obs_points | Points of observations |
obs | 1D vector of observations |
background_at_points | 1D vector of background values at observation points |
structure | Structure function |
min_quantile | Truncate quantile map below this quantile level |
max_quantile | Truncate quantile map above this quantile level |
max_points | Maximum number of points used within localization radius (not used at moment) |
Version with multiple number of timesteps.
-Pool all observations across time in when computing the calibration curve.
Correction of a gridded field ensuring the distribution of values nearby match that of observations.
+This is an experimental method. Version with multiple number of timesteps. Pool all observations across time in when computing the calibration curve.
bgrid | grid corresponding to input |
background | 2D field of background values (Y, X) |
points | observation points |
pobs | 2D vector of observations with dimensions (T, N) |
pbackground | vector of background values at points with dimensions (T, N) |
structure | structure function specifying correlation between points |
min_quantile | truncate quantile map below this quantile |
max_quantile | truncate quantile map above this quantile |
max_points | maximum number of points used within localization radius (not used at moment) |
bgrid | Grid of background |
background | 2D vector of background values (Y, X) |
obs_points | Points of observations |
obs | 2D vector of observations (Time, Points) |
background_at_points | 2D vector of background values at observation points (Time, Points) |
structure | structure function |
min_quantile | Truncate quantile map below this quantile |
max_quantile | Truncate quantile map above this quantile |
max_points | Maximum number of points used within localization radius (not used at moment) |
Nearest neighbour downscaling grid to grid and threshold and consensus in one.
-Masked ensemble downscaling and consensus.
+This method computes a high-resolution consensus from a low-resolution ensemble, without downscaling all members. See the wiki for more details.
igrid | Input grid |
ogrid | Output grid to downscale to |
ivalues_true | 3D vector of values on the input grid (Y, X, E) |
ivalues_false | 3D vector of values on the input grid (Y, X, E) |
threshold_values | 3D vector of values (Y, X, E), which defines the mask array for ivalues after applying the theshold |
threshold | 2D vector of threshold values |
comparison_operator | lower than, lower or equal than, greater than, great or equal than |
statistic | statistic to compute over the ensemble dimension |
igrid | Grid of input (Yi, Xi) |
ogrid | Grid of downscaled output (Yo, Xo) |
ivalues_true | 3D vector of input values to use when condition is true (Yi, Xi, E) |
ivalues_false | 3D vector of input values to use when condition is false (Yi, Xi, E) |
threshold_values | 3D vector of values (Yi, Xi, E) defining the mask for ivalues after applying the theshold |
threshold | 2D vector of thresholds on output grid that is upscaled to input grid (Yo, Xo) |
comparison_operator | Comparison operator to create probability |
statistic | statistic to compute over the ensemble dimension after downscaling |
Nearest neighbour downscaling grid to grid and threshold and quantile in one.
-Masked ensemble downscaling and quantile extraction.
+This method extractes a quantile for a high-resolution grid from a low-resolution ensemble, without downscaling all members. See the wiki for more details.
igrid | Input grid |
ogrid | Output grid to downscale to |
ivalues_true | 3D vector of values on the input grid (Y, X, E) |
ivalues_false | 3D vector of values on the input grid (Y, X, E) |
threshold_values | 3D vector of values (Y, X, E), which defines the mask array for ivalues after applying the theshold |
threshold | 2D vector of threshold values |
comparison_operator | lower than, lower or equal than, greater than, great or equal than |
quantile | quantile (value between 0-1) to compute |
igrid | Grid of input (Yi, Xi) |
ogrid | Grid of downscaled output (Yo, Xo) |
ivalues_true | 3D vector of input values to use when condition is true (Yi, Xi, E) |
ivalues_false | 3D vector of input values to use when condition is false (Yi, Xi, E) |
threshold_values | 3D vector of values (Yi, Xi, E) defining the mask for ivalues after applying the theshold |
threshold | 2D vector of thresholds on output grid that is upscaled to input grid (Yo, Xo) |
comparison_operator | Comparison operator to create probability |
quantile_level | Quantile level (between 0 and 1) to extract |
ref | Reference values (observations) |
fcst | Forecast values |
thresholds | Thresholds for computing optimal values for |
ref | 1D vector of reference values (observations) |
fcst | 1d vector of forecast values |
thresholds | 1D vector of thresholds for computing optimal values for |
metric | A Metric to optimize for |
output_fcst | 1D vector of output forecast quantiles |
Ensure calibration curve is monotonic, by removing points.
+Ensure calibration curve is monotonic, by removing points on the curve.
curve_ref | Reference quantiles |
curve_fcst | Forecast quantiles |
output_fcst | New forecast quantiles |
curve_ref | 1D vector of reference curve values |
curve_fcst | 1D vector of forecast curve values |
output_fcst | 1D vector of output forecast curve values |
Nearest neighbour dowscaling grid to grid.
+Nearest neighbour dowscaling grid to grid for a deterministic field.
igrid | Input grid |
ogrid | Output grid to downscale to |
ivalues | 2D vector of values on the input grid |
igrid | Grid of input (Yi, Xi) |
ogrid | Grid of downscaled output (Yo, Xo) |
ivalues | 2D vector of input values (Yi, Xi) |
Nearest neighbour dowscaling grid to grid for an ensemble field.
+igrid | Grid of input (Yi, Xi) |
ogrid | Grid of downscaled output (Yo, Xo) |
ivalues | 3D vector of input values (E, Yi, Xi) |
Nearest neighbour dowscaling grid to point.
+Nearest neighbour dowscaling grid to point for a deterministic field.
igrid | Input grid |
ogrid | Output points to downscale to |
ivalues | 2D vector of values on the input grid |
igrid | Grid of input (Yi, Xi) |
opoints | Points of downscaled output |
ivalues | 2D vector of input values grid (Yi, Xi) |
Nearest neighbour dowscaling grid to point for an ensemble field.
+igrid | Grid of input (Yi, Xi) |
opoints | Points of downscaled output |
ivalues | 3D vector of input values (E, Yi, Xi) |
Nearest neighbour dowscaling point to point.
+Nearest neighbour dowscaling point to point for a deterministic field.
ipoints | Input points |
opoints | Output points to downscale to |
ivalues | 2D vector of values on the input grid |
ipoints | Points of input |
opoints | Points of downscaled output |
ivalues | 1D vector of input values |
Nearest neighbour dowscaling point to point for an ensemble field.
+ipoints | Points of input (Pi) |
opoints | Points of downscaled output Po) |
ivalues | 2D vector of input values (E, Pi) |
Nearest neighbour dowscaling point to grid.
+Nearest neighbour dowscaling point to grid for a deterministic field.
ipoints | Input points |
ogrid | Output points to downscale to |
ivalues | 2D vector of values on the input grid |
ipoints | Points of input |
ogrid | Grid of downscaled output |
ivalues | 1D vector of values for the input points |
Nearest neighbour dowscaling point to grid for an ensemble field.
+ipoints | Points of input |
ogrid | Grid of downscaled output |
ivalues | 2D vector input values (E, Points) |
input | 2D grid of values |
input | 2D vector of input values (Y, X) |
halfwidth | Filter halfwidth in number of gridpoints |
statistic | Statistic to compute |
Spatial neighbourhood filter for an ensemble of fields.
-Computes static across neighbourhood and all members
input | 3D grid of values with dimensions (Y, X, E) |
input | 3D vector of input values (Y, X, E) |
halfwidth | Filter halfwidth in number of gridpoints |
statistic | Statistic to compute |
input | 2D grid of values |
input | 2D vector of values (Y, X) |
halfwidth | Filter halfwidth in number of gridpoints |
operation | one of min, mean, median, max |
statistic | Statistic to compute |
Spatial neighbourhood filter without any shortcuts.
+Spatial ensemble neighbourhood filter without any shortcuts.
This is quite slow and is only useful for testing.
input | 3D grid of values with dimensions (Y, X, E) |
input | 3D vector of values (Y, X, E) |
halfwidth | Filter halfwidth in number of gridpoints |
operation | one of min, mean, median, max |
statistic | Statistic to compute |
input | 2D grid of values |
input | 2D vector of values |
quantile | Quantile to compute (between 0 and 1) |
halfwidth | Filter halfwidth in number of gridpoints |
Computes a quantile in a sliding square neighbourhood for an ensemble of fields.
+Computes a quantile in a sliding square neighbourhood across ensemble members.
input | 3D grid of values with dimensions (Y, X, E) |
input | 3D vector of values (Y, X, E) |
quantile | Quantile to compute (between 0 and 1) |
halfwidth | Filter halfwidth in number of gridpoints |
input | 2D grid of values |
input | 2D vector of values (Y, X) |
quantile | Quantile to compute (between 0 and 1) |
halfwidth | Filter halfwidth in number of gridpoints |
thresholds | Vector of thresholds to use to approximate value |
thresholds | 1D vector of thresholds to use to approximate value |
input | 3D grid of values with dimensions (Y, X, E) |
input | 3D vector of values (Y, X, E) |
quantile | Quantile to compute (between 0 and 1) |
halfwidth | Filter halfwidth in number of gridpoints |
thresholds | Vector of thresholds to use to approximate value |
thresholds | 1D vector of thresholds to use to approximate value |
Fast and approximate neighbourhood quantile, with spatially varying quantile.
+Fast and approximate neighbourhood quantile, with spatially varying quantile levels.
input | 2D grid of values |
quantile | 2D grid quantiles to compute (between 0 and 1) |
input | 2D vector of values (Y, X) |
quantile | 2D vector quantile levels to compute (between 0 and 1) (Y, X) |
halfwidth | Filter halfwidth in number of gridpoints |
thresholds | Vector of thresholds to use to approximate value |
thresholds | 1D vector of thresholds to use to approximate value |
input | 3D grid of values with dimensions (Y, X, E) |
quantile | 2D grid quantiles to compute (between 0 and 1) |
input | 3D vector of values with dimensions (Y, X, E) |
quantile | 2D vector of quantile levels to compute (between 0 and 1) (Y, X) |
halfwidth | Filter halfwidth in number of gridpoints |
thresholds | Vector of thresholds to use to approximate value |
thresholds | 1D vector of thresholds to use to approximate value |
Compute a score for a metric of all points within a radius.
+This is an experimental method.
@@ -5520,19 +6013,20 @@Find suitable value in neighbourhood based on a search criteria.
-If search value is within a criteria range, then the most suitable point is used. This is the nearest value of any point within the search_target range; or if no point fulfills this, the point with the highest search value.
Find suitable value in neighbourhood that match a search criteria.
+If values are found within the range, then the average of the values are used. If not, the closest point to the range is used, provided this is within search_delta of the criteria range. if no point fulfills this, the original value is not modified.
base | base values (e.g elevation) |
values | values to compute gradients for (e.g. temperatures) |
gradient_type | what gradient type to compute |
halfwidth | neighbourhood halfwidth to compute gradient for |
min_num | minimum number of valid points needed to compute gradient |
min_range | minimum range of base values to compute gradient (for LinearRegression, this is the standard deviation of values |
default_gradient | The gradient to use when a gradient cannot be computed |
input | 2D vector of input values, e.g. temperatures (Y, X) |
search_array | 2D vector to search in, e.g. land area fraction (Y, X) |
halfwidth | Neighbourhood halfwidth to search in |
search_target_min | Lower bound of criteria, e.g. a land area fraction value |
search_target_Max | Upper bound of criteria, e.g. a land area fraction value |
search_delta | Max distance outside target range where the most suitable point is still used |
apply_array | 2D integer vector of 1 (correct this grid point) or 0 (don't correct) |
Count the number of missing values in a vector.
+array | 2D vector |
Optimal interpolation using a structure function based on an ensemble See Lussana et al 2019 (DOI: 10.1002/qj.3646)
+Optimal interpolation for an ensemble gridded field See Lussana et al 2019 (DOI: 10.1002/qj.3646)
input | 3D field of background values (Y, X, E) |
bgrid | grid corresponding to input |
pobs | vector of observations |
pci | vector of ci values |
points | observation points |
bgrid | Grid of background field |
background | 3D vector of background values (Y, X, E) |
obs_points | observation points |
obs | 1D vector of observations |
obs_standard_deviations | 1D vector of observation standard deviations |
background_at_points | 2D vector of background at observation points (L, E) |
structure | Structure function |
max_points | Maximum number of observations to use inside localization zone; Use 0 to disable |
allow_extrapolation | Allow OI to extrapolate increments outside increments at observations |
Optimal interpolation for an ensemble point field See Lussana et al 2019 (DOI: 10.1002/qj.3646)
+bpoints | Points of background field |
background | 2D vector of background values (L, E) |
obs_points | Observation points |
obs | 1D vector of observations |
obs_standard_deviations | 1D vector of observation standard deviations |
background_at_points | 2D vector of background at observation points (L, E) |
structure | Structure function |
max_points | Maximum number of observations to use inside localization zone; Use 0 to disable |
allow_extrapolation | Allow OI to extrapolate increments outside increments at observations |
bgrid | Grid of background field |
background | 2D field of background values |
bvariance | Variance of background field |
points | Points of observations |
obs | Vector of observations |
obs_variance | Variance of observations |
background_at_points | Background interpolated to observation points |
bvariance_at_points | Variance of background interpolated to observation points |
background | 2D vector of background values |
bvariance | 2D vector of background variances |
obs_points | Points of observations |
obs | 1D vector of observations |
obs_variance | 1D vector of observation variances |
background_at_points | 1D vector of background at observation points |
bvariance_at_points | 1D vector of background variance at observation points |
structure | Structure function |
max_points | Maximum number of observations to use inside localization zone; Use 0 to disable |
analysis_variance | 2D output vector of analysis variance |
allow_extrapolation | Allow OI to extrapolate increments outside increments at observations |
bpoints | Points of background field |
background | 1D field of background values |
bvariance | Variance of background field |
points | Points of observations |
obs | Vector of observations |
obs_variance | Variance of observations |
background_at_points | Background interpolated to observation points |
bvariance_at_points | Variance of background interpolated to observation points |
background | 1D vector of background values |
bvariance | 1D vector of background variance |
obs_points | Points of observations |
obs | 1D vector of observations |
obs_variance | 1D vector of observation variances |
background_at_points | 1D vector of background at observation points |
bvariance_at_points | 1D vector of background variance at observation points |
structure | Structure function |
max_points | Maximum number of observations to use inside localization zone; Use 0 to disable |
analysis_variance | 1D output vector of analysis variance |
allow_extrapolation | Allow OI to extrapolate increments outside increments at observations |
Checks if a point is located inside a rectangle formed by 4 points.
-The 4 points must be provided in an order that draws out a rectangle (either clockwise or counter-clockwise)
The 4 points must be provided in an order that draws out a rectangle (either clockwise or counter-clockwise).