eccodes/definitions/grib2/local.98.def

34 lines
1.5 KiB
Modula-2
Raw Normal View History

2013-03-25 12:04:10 +00:00
#local section ECMWF
template mars_labeling "grib2/mars_labeling.def";
transient productDefinitionTemplateNumberInternal=-1;
meta localDefinitionNumber local_definition(grib2LocalSectionNumber,
2013-07-23 17:06:45 +00:00
productDefinitionTemplateNumber,
productDefinitionTemplateNumberInternal,
type,
stream,
class,
eps,
stepType,
derivedForecast);
2013-03-25 12:04:10 +00:00
meta eps g2_eps(productDefinitionTemplateNumber,
2013-07-23 17:06:45 +00:00
type,
stream,
stepType,
derivedForecast);
2013-03-25 12:04:10 +00:00
template_nofail localSection "grib2/local.98.[grib2LocalSectionNumber:l].def";
2013-03-25 12:04:10 +00:00
position offsetAfterLocalSection;
transient addExtraLocalSection=0;
transient deleteExtraLocalSection=0;
#transient extraLocalSectionPresent=section2Length - offsetAfterLocalSection + offsetSection2 ;
meta extraLocalSectionPresent evaluate (section2Length - offsetAfterLocalSection + offsetSection2 > 0 );
if ( ( extraLocalSectionPresent || addExtraLocalSection ) && ! deleteExtraLocalSection) {
2013-07-23 17:06:45 +00:00
# extra local section present
codetable[2] extraLocalSectionNumber 'grib2/grib2LocalSectionNumber.[centreForLocal:l].table' = 300 : dump;
template localSection "grib2/local.98.[extraLocalSectionNumber:l].def";
2013-03-25 12:04:10 +00:00
}