mirror of https://github.com/ecmwf/eccodes.git
S2S: Updated for mars stream and date
This commit is contained in:
parent
0be750a0ab
commit
03db509ea5
|
@ -48,31 +48,40 @@ concept marsType {
|
||||||
|
|
||||||
concept marsStream {
|
concept marsStream {
|
||||||
|
|
||||||
oper = {
|
oper = {
|
||||||
typeOfProcessedData = 0;
|
typeOfProcessedData = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
oper = {
|
oper = {
|
||||||
typeOfProcessedData = 2;
|
typeOfProcessedData = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
enfo = {
|
enfo = {
|
||||||
typeOfProcessedData = 3;
|
typeOfProcessedData = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
enfo = {
|
enfo = {
|
||||||
typeOfProcessedData = 4;
|
typeOfProcessedData = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
enfo = {
|
enfo = {
|
||||||
typeOfProcessedData = 8;
|
typeOfProcessedData = 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
"default" = {
|
|
||||||
dummyc = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
"default" = {
|
||||||
|
dummyc = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
alias mars.stream = marsStream;
|
alias mars.stream = marsStream;
|
||||||
alias mars.type = marsType;
|
alias mars.type = marsType;
|
||||||
|
|
||||||
|
if (isHindcast == 1) {
|
||||||
|
# S2S reforecasts
|
||||||
|
constant theHindcastMarsStream = "enfh";
|
||||||
|
alias mars.stream = theHindcastMarsStream;
|
||||||
|
alias mars.hdate = dataDate;
|
||||||
|
alias mars.date = dateOfModelVersion;
|
||||||
|
alias mars.time = timeOfModelVersion;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -71,8 +71,17 @@ concept marsStream {
|
||||||
"default" = {
|
"default" = {
|
||||||
dummyc = 0;
|
dummyc = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
alias mars.stream = marsStream;
|
alias mars.stream = marsStream;
|
||||||
alias mars.type = marsType;
|
alias mars.type = marsType;
|
||||||
|
|
||||||
|
if (isHindcast == 1) {
|
||||||
|
# S2S reforecasts
|
||||||
|
constant theHindcastMarsStream = "enfh";
|
||||||
|
alias mars.stream = theHindcastMarsStream;
|
||||||
|
alias mars.hdate = dataDate;
|
||||||
|
alias mars.date = dateOfModelVersion;
|
||||||
|
alias mars.time = timeOfModelVersion;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,16 @@
|
||||||
label "S2S reforecasts";
|
label "S2S reforecasts";
|
||||||
|
|
||||||
|
# The Model Version Date
|
||||||
|
# This is the date when the reforecast is produced with a particular version of the model
|
||||||
|
|
||||||
unsigned[2] YearOfModelVersion = 0: edition_specific;
|
unsigned[2] YearOfModelVersion = 0: edition_specific;
|
||||||
unsigned[1] MonthOfModelVersion = 0: edition_specific;
|
unsigned[1] MonthOfModelVersion = 0: edition_specific;
|
||||||
unsigned[1] DayOfModelVersion = 0: edition_specific;
|
unsigned[1] DayOfModelVersion = 0: edition_specific;
|
||||||
unsigned[1] HourOfModelVersion = 0: edition_specific;
|
unsigned[1] HourOfModelVersion = 0: edition_specific;
|
||||||
unsigned[1] MinuteOfModelVersion = 0: edition_specific;
|
unsigned[1] MinuteOfModelVersion = 0: edition_specific;
|
||||||
unsigned[1] SecondOfModelVersion = 0: edition_specific;
|
unsigned[1] SecondOfModelVersion = 0: edition_specific;
|
||||||
|
|
||||||
|
meta dateOfModelVersion g2date(YearOfModelVersion,MonthOfModelVersion,DayOfModelVersion) : dump;
|
||||||
|
meta timeOfModelVersion time(HourOfModelVersion, MinuteOfModelVersion, SecondOfModelVersion) : dump;
|
||||||
|
|
||||||
|
constant isHindcast = 1;
|
||||||
|
|
Loading…
Reference in New Issue