RAVE
rave_hexquant.py File Reference

Encodes/decodes ODIM quantities to/from hex for the purposes of creating simple file strings representing which quantities are in the contents. More...

Namespaces

namespace  Lib.rave_hexquant
 

Functions

 Lib.rave_hexquant.init ()
 Initializes QUANTITIES by reading content from XML file.
 
 Lib.rave_hexquant.qFromScan (scan)
 Initialize.
 
 Lib.rave_hexquant.qFromPvol (pvol)
 Digs out all the quantities in a PVOL.
 
 Lib.rave_hexquant.qFromFstr (fstr)
 Digs out the quantities from a given file string Assumes the hex string's location is fixed.
 
 Lib.rave_hexquant.q2hex (quants)
 Converts a list of quantities to a hex string.
 
 Lib.rave_hexquant.hex2q (h)
 Converts a hex string to a list of quantities.
 
 Lib.rave_hexquant.bitl2long (bitl)
 Bit list to long integer.
 
 Lib.rave_hexquant.long2bits (l)
 Long integer to bit string.
 
 Lib.rave_hexquant.hex2long (h)
 hex string to long integer
 

Variables

 Lib.rave_hexquant.QUANTFILE = os.path.join(RAVECONFIG, "odim_quantities.xml")
 
list Lib.rave_hexquant.QUANTITIES = []
 
int Lib.rave_hexquant.initialized = 0
 
 Lib.rave_hexquant.bitl = list(np.zeros((128,), np.uint8))
 
bool Lib.rave_hexquant.use_long_type = False
 

Detailed Description

Encodes/decodes ODIM quantities to/from hex for the purposes of creating simple file strings representing which quantities are in the contents.

Author
Daniel Michelson, SMHI
Date
2014-10-19