From bbb7d15e1150e0bcf2193289152725b7f673e221 Mon Sep 17 00:00:00 2001 From: Enrico Fucile Date: Tue, 10 Mar 2015 14:57:34 +0000 Subject: [PATCH] replaced position with index in the attribute name of BUFR elements --- src/grib_accessor_class_bufr_data_array.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/grib_accessor_class_bufr_data_array.c b/src/grib_accessor_class_bufr_data_array.c index 16fb5b83d..3a45482ff 100644 --- a/src/grib_accessor_class_bufr_data_array.c +++ b/src/grib_accessor_class_bufr_data_array.c @@ -715,7 +715,7 @@ static grib_accessor* create_accessor_from_descriptor(grib_accessor* a,grib_sect accessor_bufr_data_element_set_subsetNumber(elementAccessor,subset); self->expanded->v[idx]->a=elementAccessor; - attribute=create_attribute("position",section,GRIB_TYPE_LONG,0,0,count); + attribute=create_attribute("index",section,GRIB_TYPE_LONG,0,0,count); grib_accessor_add_attribute(elementAccessor,attribute); sprintf(code,"%06ld",self->expanded->v[idx]->code); @@ -748,13 +748,13 @@ static grib_accessor* create_accessor_from_descriptor(grib_accessor* a,grib_sect accessor_bufr_data_element_set_numberOfSubsets(elementAccessor,self->numberOfSubsets); accessor_bufr_data_element_set_subsetNumber(elementAccessor,subset); - attribute=create_attribute("position",section,GRIB_TYPE_LONG,0,0,count); + attribute=create_attribute("index",section,GRIB_TYPE_LONG,0,0,count); grib_accessor_add_attribute(elementAccessor,attribute); } else { elementAccessor = grib_accessor_factory(section, &operatorCreator, 0, NULL); accessor_variable_set_type(elementAccessor,GRIB_TYPE_LONG); - attribute=create_attribute("position",section,GRIB_TYPE_LONG,0,0,count); + attribute=create_attribute("index",section,GRIB_TYPE_LONG,0,0,count); grib_accessor_add_attribute(elementAccessor,attribute); sprintf(code,"%06ld",self->expanded->v[idx]->code);