godber / pds3label

A Python module for parsing PDS 3 labels.
MIT License
0 stars 0 forks source link

Support based integers #9

Closed godber closed 9 years ago

godber commented 9 years ago

We still need support for based integers:

https://github.com/godber/pds3label/blob/master/test/data/based_integer1.lbl

We should probably implement a class for this type, to store the raw string, the base it was saved in as well as a numerical representation. Unless there is some python type that already supports this.

PDS_VERSION_ID = PDS3
BASED_INT1     = 2#0000111111111111#
BASED_INT2     = 8#113#
BASED_INT3     = 10#75#
BASED_INT4     = 16#4B#
BASED_INT5     = 16#+4B#
BASED_INT6     = 16#-4B#
END