eccodes/definitions/mars/grib.moda.fc.def

18 lines
679 B
Modula-2
Raw Normal View History

2013-03-25 12:04:10 +00:00
# assert(local=1)
meta verificationDate g1verificationdate(dataDate, dataTime, endStep) : read_only;
meta monthlyVerificationDate g1monthlydate(verificationDate) : dump,no_copy;
alias mars.date = monthlyVerificationDate;
2013-03-25 12:04:10 +00:00
meta verificationYear evaluate(verificationDate/10000);
meta monthlyVerificationYear evaluate(monthlyVerificationDate/10000);
meta verificationMonth evaluate( (verificationDate/100)%100 );
meta monthlyVerificationMonth evaluate( (monthlyVerificationDate/100)%100 );
# class 3 is "er" which is 15 year re-analysis (ERA15)
# Only ERA15 has time and step
if(class != 3) {
unalias mars.time;
unalias mars.step;
2013-03-25 12:04:10 +00:00
}