This commit is contained in:
Enrico Fucile 2016-02-09 16:19:28 +00:00
parent 038518750e
commit 3530a871ce
1 changed files with 2 additions and 0 deletions

View File

@ -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);