mirror of https://github.com/ecmwf/eccodes.git
GRIB2 product template selection: probability forecasts
This commit is contained in:
parent
6f5265b7fe
commit
9872c7e3d1
|
@ -406,6 +406,14 @@ static int grib_concept_apply(grib_accessor* a, const char* name)
|
|||
grib_set_values(h, &values[i], 1);
|
||||
}
|
||||
}
|
||||
else if (STR_EQUAL(values[i].name, "probabilityType")) {
|
||||
grib_context_log(h->context, GRIB_LOG_DEBUG, "%s: Switch to probability forecasts", __func__);
|
||||
// TODO(masn): Add a new key e.g. is_probability_forecast
|
||||
if (grib_set_long(h, "productDefinitionTemplateNumber", 5) == GRIB_SUCCESS) {
|
||||
resubmit = true;
|
||||
grib_set_values(h, &values[i], 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue