cannot assign value 15 to descriptor 020011

Bug #1625331 reported by vanh souvanlasy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libECBUFR
Fix Committed
Low
vanh souvanlasy

Bug Description

The bufr encoder reject the value of 15 as "out of range" for the descriptor 20011.
Even if 20011 is 4 bits width. The WMO 306 vI2 Code Flag document clearly specify code 15 as valid and signify "Cloud cover is indiscernible for reasons other than fog or other meteorological
phenomena, or observation is not made"

Revision history for this message
cpb (chris-beauregard) wrote :

Does

  bufr_value_get_int32( bv, bufr_missing_int() );

show the same issue? Because if not, it seems more like a problem of the code generator trying to blindly follow the documentation instead of realizing that "15" is just a fancy way to say "missing".

It might be necessary for the encoder to realize that all-ones is the same as bufr_missing_int() and bypass the range check.

Changed in libecbufr:
assignee: nobody → vanh souvanlasy (vanh-souvanlasy)
status: New → In Progress
importance: Undecided → Low
Revision history for this message
vanh souvanlasy (vanh-souvanlasy) wrote :

Fix committed in revision 330 of the trunk

Changed in libecbufr:
status: In Progress → Fix Committed
Changed in libecbufr:
milestone: none → 0.8.7
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.