eckit::geo gridType=reduced_gg

This commit is contained in:
Pedro Maciel 2024-10-12 15:04:41 +01:00
parent 6a7f3d2a05
commit ff478a7e3a
3 changed files with 4 additions and 10 deletions

View File

@ -63,10 +63,7 @@ meta numberOfValues number_of_values(values,bitsPerValue,numberOfDataPoints,bitm
#alias ls.valuesCount=numberOfValues;
if(missing(Ni)){
iterator gaussian_reduced(numberOfPoints,missingValue,values,
latitudeOfFirstGridPointInDegrees,longitudeOfFirstGridPointInDegrees,
latitudeOfLastGridPointInDegrees,longitudeOfLastGridPointInDegrees,
N,pl,Nj);
iterator gaussian_reduced(numberOfPoints,missingValue,values);
nearest reduced(values,radius,Nj,pl);
#meta sumPlArray sum(pl);

View File

@ -55,10 +55,7 @@ alias longitudeLastInDegrees = longitudeOfLastGridPointInDegrees;
alias DiInDegrees = iDirectionIncrementInDegrees;
if (missing(Ni) && PLPresent == 1) {
iterator gaussian_reduced(numberOfPoints,missingValue,values,
latitudeOfFirstGridPointInDegrees,longitudeOfFirstGridPointInDegrees,
latitudeOfLastGridPointInDegrees,longitudeOfLastGridPointInDegrees,
N,pl,Nj);
iterator gaussian_reduced(numberOfPoints,missingValue,values);
nearest reduced(values,radius,Nj,pl);
#meta sumPlArray sum(pl);

View File

@ -55,7 +55,7 @@ struct grib_iterator_gaussian_reduced {
int carg;
const char* missingValue;
// Members defined in gaussian_reduced
std::unique_ptr<eckit::geo::Grid> grid;
std::unique_ptr<const eckit::geo::Grid> grid;
eckit::geo::Grid::Iterator iter;
eckit::geo::Grid::Iterator end;
};
@ -138,4 +138,4 @@ static grib_iterator_class _grib_iterator_class_gaussian_reduced = {
};
grib_iterator_class* grib_iterator_class_gaussian_reduced = &_grib_iterator_class_gaussian_reduced;
auto* grib_iterator_class_gaussian_reduced = &_grib_iterator_class_gaussian_reduced;