Some CDM fields in ODparameter section are set to 0 (zero) if absent.
Fields in question are:
- OBS_AVAILABLE
- OBS_USED
- TRACKS_AVAILABLE
- TRACKS_USED
By CCSDS standards these fields are not obligatory so the CdmWriter should not write them when absent.
@luc suggested:
In several places in CCSDS, we used simply integer -1 to represent an uninitialized value, and we chck for sign in the writer.
Off-topic: The javadoc of getResidualsAccepted
and setResidualsAccepted
states that it returns/sets a percentage between 0 to 100, but actually the percentage was normalised during parsing to be between 0 and 1.
Edited by David Gondelach