ECC-315: Add MARS namespace to BUFR

This commit is contained in:
Shahram Najm 2018-05-10 15:45:12 +01:00
commit 36156eb01e
2 changed files with 15 additions and 0 deletions

View File

@ -11,6 +11,13 @@ meta localMinute bits(keyData,27,6) : dump,long_type,no_copy;
meta localSecond bits(keyData,33,6) : dump,long_type,no_copy;
meta spare bits(keyData,39,1) : no_copy; # 40 bits = 5 bytes
alias mars.localYear=localYear;
alias mars.localMonth=localMonth;
alias mars.localDay=localDay;
alias mars.localHour=localHour;
alias mars.localMinute=localMinute;
alias mars.localSecond=localSecond;
meta localDateTime julian_date(localYear,localMonth,localDay,localHour,localMinute,localSecond) : no_copy;
# isSatellite and other stuff moved to section 3
@ -73,6 +80,9 @@ if (oldSubtype < 255 ) {
alias ls.rdbType=rdbType;
alias ls.rdbSubtype=rdbSubtype;
alias mars.rdbType=rdbType;
alias mars.rdbSubtype=rdbSubtype;
#Data assimilation loop for purpose of Continous DA
unsigned[1] daLoop;

View File

@ -65,14 +65,19 @@ if (section2Present && bufrHeaderCentre==98 && section2Length==52) {
oldSubtype==31) {
meta ls.localNumberOfObservations bits(keySat,0,16) : dump,long_type,no_copy;
meta ls.satelliteID bits(keySat,16,16) : dump,long_type,no_copy;
alias mars.satelliteID=satelliteID;
} else {
meta ls.localNumberOfObservations bits(keySat,0,8) : dump,long_type,no_copy;
meta ls.satelliteID bits(keySat,8,16) : dump,long_type,no_copy;
alias mars.satelliteID=satelliteID;
}
} else {
meta ls.localLatitude bits(keyData,72,25,-9000000,100000) : dump,no_copy;
meta ls.localLongitude bits(keyData,40,26,-18000000,100000) : dump,no_copy;
alias ls.ident=keyMore : dump,string_type,no_copy;
alias mars.localLatitude=localLatitude;
alias mars.localLongitude=localLongitude;
}
}