From 3530a871ce8162ceb13e6b317b3a33e4e0d6553f Mon Sep 17 00:00:00 2001 From: Enrico Fucile Date: Tue, 9 Feb 2016 16:19:28 +0000 Subject: [PATCH] ECC-207 --- src/grib_accessor_class_bufr_data_array.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/grib_accessor_class_bufr_data_array.c b/src/grib_accessor_class_bufr_data_array.c index e549e95cf..60a916e96 100644 --- a/src/grib_accessor_class_bufr_data_array.c +++ b/src/grib_accessor_class_bufr_data_array.c @@ -1206,6 +1206,8 @@ static grib_accessor* create_accessor_from_descriptor(grib_accessor* a,grib_acce creator.name=grib_context_strdup(a->context,self->expanded->v[idx]->shortName); elementAccessor = grib_accessor_factory(section, &creator, 0, NULL); if (self->canBeMissing[idx]) elementAccessor->flags |= GRIB_ACCESSOR_FLAG_CAN_BE_MISSING; + if (self->expanded->v[idx]->code == 31000 || self->expanded->v[idx]->code == 31001 || self->expanded->v[idx]->code == 31002) + elementAccessor->flags |= GRIB_ACCESSOR_FLAG_READ_ONLY; accessor_bufr_data_element_set_index(elementAccessor,ide); accessor_bufr_data_element_set_descriptors(elementAccessor,self->expanded); accessor_bufr_data_element_set_elementsDescriptorsIndex(elementAccessor,self->elementsDescriptorsIndex);