eccodes/definitions/grib2/section.7.def

38 lines
1.4 KiB
Modula-2
Raw Normal View History

2020-01-28 14:32:34 +00:00
# (C) Copyright 2005- ECMWF.
2013-03-25 12:04:10 +00:00
# SECTION 7, DATA SECTION
position offsetSection7;
section_length[4] section7Length ;
2013-03-25 12:04:10 +00:00
meta section7 section_pointer(offsetSection7,section7Length,7);
unsigned[1] numberOfSection = 7:read_only;
# Octets 6-nn : Data in a format described by Data Template 7.x, where x is the Data Representation
# Template number given in octets 10-11 of Section 5
position offsetBeforeData;
#if (changed(dataRepresentationTemplateNumber)) {
template dataValues "grib2/template.7.[dataRepresentationTemplateNumber:l].def";
#}
2021-02-06 13:07:35 +00:00
meta changeDecimalPrecision decimal_precision(bitsPerValue,decimalScaleFactor,changingPrecision,values) : edition_specific;
meta decimalPrecision decimal_precision(bitsPerValue,decimalScaleFactor,changingPrecision) : edition_specific;
2013-03-25 12:04:10 +00:00
alias setDecimalPrecision=changeDecimalPrecision;
2021-02-06 13:07:35 +00:00
meta setBitsPerValue bits_per_value(values,bitsPerValue) : edition_specific;
meta setPackingType packing_type(values, packingType) : edition_specific;
2013-03-25 12:04:10 +00:00
meta getNumberOfValues size(values) : edition_specific,dump ;
2021-02-06 13:07:35 +00:00
meta scaleValuesBy scale_values(values,missingValue) : edition_specific;
meta offsetValuesBy offset_values(values,missingValue) : edition_specific;
2013-03-25 12:04:10 +00:00
concept productType(unknown) {
2021-02-06 13:07:35 +00:00
"obstat" = {grib2LocalSectionPresent=1; centre=98; grib2LocalSectionNumber=500;productDefinitionTemplateNumber=2000;}
2013-03-25 12:04:10 +00:00
}
position offsetAfterData;
meta md5Section7 md5(offsetSection7,section7Length);
alias md5DataSection = md5Section7;