Skip to content
Snippets Groups Projects
Commit 5179c868 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

gribapiGetEnsembleInfo: don't check perturbationNumber (bug fix)

parent 414f1f4c
No related branches found
Tags cdi-2.4.2
3 merge requests!88M214003/develop,!87M214003/develop,!86M214003/develop
Pipeline #71234 failed
...@@ -4,6 +4,10 @@ ...@@ -4,6 +4,10 @@
* using EXSE library version 2.0.0 * using EXSE library version 2.0.0
* Version 2.4.2 released * Version 2.4.2 released
2024-06-21 Uwe Schulzweida
* gribapiGetEnsembleInfo: don't check perturbationNumber (bug fix)
2024-06-20 Uwe Schulzweida 2024-06-20 Uwe Schulzweida
* NetCDF4: switched off output chunk cache * NetCDF4: switched off output chunk cache
......
...@@ -38,7 +38,8 @@ cdf_def_var_filter(int ncid, int ncvarID, const char *filterSpec) ...@@ -38,7 +38,8 @@ cdf_def_var_filter(int ncid, int ncvarID, const char *filterSpec)
for (size_t i = 0; i < nfilters; i++) for (size_t i = 0; i < nfilters; i++)
{ {
unsigned int filterid = filters[i]->filterid; unsigned int filterid = filters[i]->filterid;
// printf("filter %zu id:%d nparams:%zu param1 %d\n", i + 1, filterid, filters[i]->nparams, filters[i]->params[0]); // printf("filter %zu id:%d nparams:%zu param1 %d %d\n", i + 1, filterid, filters[i]->nparams, filters[i]->params[0],
// filters[i]->params[1]);
status = nc_def_var_filter(ncid, ncvarID, filterid, filters[i]->nparams, filters[i]->params); status = nc_def_var_filter(ncid, ncvarID, filterid, filters[i]->nparams, filters[i]->params);
if (status != NC_NOERR) if (status != NC_NOERR)
{ {
......
...@@ -435,7 +435,7 @@ gribapiGetEnsembleInfo(grib_handle *gh, long *numberOfForecastsInEnsemble, long ...@@ -435,7 +435,7 @@ gribapiGetEnsembleInfo(grib_handle *gh, long *numberOfForecastsInEnsemble, long
if (grib_get_long(gh, "numberOfForecastsInEnsemble", numberOfForecastsInEnsemble) == 0) if (grib_get_long(gh, "numberOfForecastsInEnsemble", numberOfForecastsInEnsemble) == 0)
{ {
if (*numberOfForecastsInEnsemble > 0) status = 1; if (*numberOfForecastsInEnsemble > 0) status = 1;
GRIB_CHECK(grib_get_long(gh, "perturbationNumber", perturbationNumber), 0); grib_get_long(gh, "perturbationNumber", perturbationNumber);
grib_get_long(gh, "typeOfEnsembleForecast", typeOfEnsembleForecast); grib_get_long(gh, "typeOfEnsembleForecast", typeOfEnsembleForecast);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment