mirror of https://github.com/ecmwf/eccodes.git
ECC-1485: Definitions: Split the statistics from missing-values templates
This commit is contained in:
parent
90fbcd6abd
commit
fd037b179a
|
@ -0,0 +1,5 @@
|
|||
# (C) Copyright 2005- ECMWF.
|
||||
|
||||
#meta numberOfMissing vector(computeStatistics,3) : dump;
|
||||
meta numberOfMissing count_missing(bitmap,unusedBitsInBitmap,numberOfDataPoints) : dump;
|
||||
alias numberOfMissingValues=numberOfMissing;
|
|
@ -8,15 +8,11 @@ meta computeStatistics statistics(missingValue,values);
|
|||
meta maximum vector(computeStatistics,0) : dump;
|
||||
meta minimum vector(computeStatistics,1) : dump;
|
||||
meta average vector(computeStatistics,2) : dump;
|
||||
#meta numberOfMissing vector(computeStatistics,3) : dump;
|
||||
meta numberOfMissing count_missing(bitmap,unusedBitsInBitmap,numberOfDataPoints) : dump;
|
||||
meta standardDeviation vector(computeStatistics,4) : dump;
|
||||
meta skewness vector(computeStatistics,5) : dump;
|
||||
meta kurtosis vector(computeStatistics,6) : dump;
|
||||
meta isConstant vector(computeStatistics,7) : dump;
|
||||
|
||||
alias numberOfMissingValues=numberOfMissing;
|
||||
|
||||
alias statistics.avg = average;
|
||||
alias statistics.max = maximum;
|
||||
alias statistics.min = minimum;
|
||||
|
|
|
@ -43,3 +43,4 @@ if( bitmapPresent || !GDSPresent ) {
|
|||
meta numberOfCodedValues number_of_values_data_raw_packing(values,precision);
|
||||
|
||||
template statistics "common/statistics_grid.def";
|
||||
template missing_values "common/missing_values_grid.def";
|
||||
|
|
|
@ -174,3 +174,4 @@ if(bitmapPresent) {
|
|||
meta packingError simple_packing_error(bitsPerValue,binaryScaleFactor,decimalScaleFactor,referenceValue,ibm) : no_copy;
|
||||
|
||||
template statistics "common/statistics_grid.def";
|
||||
template missing_values "common/missing_values_grid.def";
|
||||
|
|
|
@ -148,3 +148,4 @@ transient numberOfCodedValues = numberOfSecondOrderPackedValues;
|
|||
meta packingError simple_packing_error(bitsPerValue,binaryScaleFactor,decimalScaleFactor,referenceValue,ibm) : no_copy;
|
||||
|
||||
template statistics "common/statistics_grid.def";
|
||||
template missing_values "common/missing_values_grid.def";
|
||||
|
|
|
@ -147,3 +147,4 @@ transient numberOfCodedValues = numberOfSecondOrderPackedValues;
|
|||
meta packingError simple_packing_error(bitsPerValue,binaryScaleFactor,decimalScaleFactor,referenceValue,ibm) : no_copy;
|
||||
|
||||
template statistics "common/statistics_grid.def";
|
||||
template missing_values "common/missing_values_grid.def";
|
||||
|
|
|
@ -94,3 +94,4 @@ transient numberOfCodedValues = numberOfSecondOrderPackedValues;
|
|||
meta packingError simple_packing_error(bitsPerValue,binaryScaleFactor,decimalScaleFactor,referenceValue,ibm) : no_copy;
|
||||
|
||||
template statistics "common/statistics_grid.def";
|
||||
template missing_values "common/missing_values_grid.def";
|
||||
|
|
|
@ -68,3 +68,4 @@ meta numberOfCodedValues number_of_coded_values(bitsPerValue,offsetBeforeData,of
|
|||
meta packingError simple_packing_error(bitsPerValue,binaryScaleFactor,decimalScaleFactor,referenceValue,ibm) : no_copy;
|
||||
meta unpackedError simple_packing_error(zero,binaryScaleFactor,decimalScaleFactor,referenceValue,ieee) : no_copy;
|
||||
template statistics "common/statistics_grid.def";
|
||||
template missing_values "common/missing_values_grid.def";
|
||||
|
|
|
@ -177,3 +177,4 @@ meta packingError simple_packing_error(bitsPerValue,binaryScaleFactor,decimalSca
|
|||
meta numberOfCodedValues number_of_coded_values(bitsPerValue,offsetBeforeData,offsetAfterData,halfByte,numberOfValues) : dump;
|
||||
|
||||
template statistics "common/statistics_grid.def";
|
||||
template missing_values "common/missing_values_grid.def";
|
||||
|
|
|
@ -32,3 +32,4 @@ meta unpackedError simple_packing_error(zero,binaryScaleFactor,decimalScaleFacto
|
|||
alias data.packedValues=codedValues;
|
||||
|
||||
template statistics "common/statistics_grid.def";
|
||||
template missing_values "common/missing_values_grid.def";
|
||||
|
|
|
@ -33,3 +33,4 @@ meta unpackedError simple_packing_error(zero,binaryScaleFactor,decimalScaleFacto
|
|||
alias data.packedValues = codedValues;
|
||||
|
||||
template statistics "common/statistics_grid.def";
|
||||
template missing_values "common/missing_values_grid.def";
|
||||
|
|
|
@ -45,9 +45,5 @@ meta values data_apply_bitmap(codedValues,
|
|||
alias data.packedValues = codedValues;
|
||||
|
||||
template statistics "common/statistics_grid.def";
|
||||
if(missingValueManagementUsed) {
|
||||
#remove numberOfMissing;
|
||||
#remove numberOfMissingValues;
|
||||
meta numberOfMissing count_missing(bitmap,unusedBitsInBitmap,numberOfDataPoints,missingValueManagementUsed) : dump;
|
||||
alias numberOfMissingValues=numberOfMissing;
|
||||
}
|
||||
meta numberOfMissing count_missing(bitmap,unusedBitsInBitmap,numberOfDataPoints,missingValueManagementUsed) : dump;
|
||||
alias numberOfMissingValues=numberOfMissing;
|
||||
|
|
|
@ -42,9 +42,6 @@ meta values data_apply_bitmap(codedValues,
|
|||
alias data.packedValues=codedValues;
|
||||
|
||||
template statistics "common/statistics_grid.def";
|
||||
if(missingValueManagementUsed) {
|
||||
#remove numberOfMissingValues;
|
||||
#remove numberOfMissing;
|
||||
meta numberOfMissing count_missing(bitmap,unusedBitsInBitmap,numberOfDataPoints,missingValueManagementUsed) : dump;
|
||||
alias numberOfMissingValues=numberOfMissing;
|
||||
}
|
||||
|
||||
meta numberOfMissing count_missing(bitmap,unusedBitsInBitmap,numberOfDataPoints,missingValueManagementUsed) : dump;
|
||||
alias numberOfMissingValues=numberOfMissing;
|
||||
|
|
|
@ -20,3 +20,4 @@ meta values data_apply_bitmap(codedValues,
|
|||
alias data.packedValues = codedValues;
|
||||
|
||||
template statistics "common/statistics_grid.def";
|
||||
template missing_values "common/missing_values_grid.def";
|
||||
|
|
|
@ -49,3 +49,4 @@ meta values data_apply_bitmap(codedValues,
|
|||
alias data.packedValues = codedValues;
|
||||
|
||||
template statistics "common/statistics_grid.def";
|
||||
template missing_values "common/missing_values_grid.def";
|
||||
|
|
|
@ -30,3 +30,4 @@ meta values data_apply_bitmap(codedValues,
|
|||
alias data.packedValues = codedValues;
|
||||
|
||||
template statistics "common/statistics_grid.def";
|
||||
template missing_values "common/missing_values_grid.def";
|
||||
|
|
|
@ -33,3 +33,4 @@ meta unpackedError simple_packing_error(zero,binaryScaleFactor,decimalScaleFacto
|
|||
alias data.packedValues = codedValues;
|
||||
|
||||
template statistics "common/statistics_grid.def";
|
||||
template missing_values "common/missing_values_grid.def";
|
||||
|
|
|
@ -99,3 +99,4 @@ if(bitmapPresent) {
|
|||
meta packingError simple_packing_error(bitsPerValue,binaryScaleFactor,decimalScaleFactor,referenceValue,ieee) : no_copy;
|
||||
|
||||
template statistics "common/statistics_grid.def";
|
||||
template missing_values "common/missing_values_grid.def";
|
||||
|
|
|
@ -146,3 +146,4 @@ if(bitmapPresent) {
|
|||
meta packingError simple_packing_error(bitsPerValue,binaryScaleFactor,decimalScaleFactor,referenceValue,ieee) : no_copy;
|
||||
|
||||
template statistics "common/statistics_grid.def";
|
||||
template missing_values "common/missing_values_grid.def";
|
||||
|
|
|
@ -30,3 +30,4 @@ meta values data_apply_bitmap(codedValues,
|
|||
alias data.packedValues = codedValues;
|
||||
|
||||
template statistics "common/statistics_grid.def";
|
||||
template missing_values "common/missing_values_grid.def";
|
||||
|
|
|
@ -30,3 +30,4 @@ meta values data_apply_bitmap(codedValues,
|
|||
alias data.packedValues = codedValues;
|
||||
|
||||
template statistics "common/statistics_grid.def";
|
||||
template missing_values "common/missing_values_grid.def";
|
||||
|
|
|
@ -54,3 +54,4 @@ meta values data_apply_bitmap(codedValues,
|
|||
alias data.packedValues = codedValues;
|
||||
|
||||
template statistics "common/statistics_grid.def";
|
||||
template missing_values "common/missing_values_grid.def";
|
||||
|
|
Loading…
Reference in New Issue