GeneralBrokenLines V03-00-00
gblpy
|
Millepede-II (binary) record. More...
Public Member Functions | |
def | __init__ (self, doublePrec=False) |
Create MP-II binary record. More... | |
def | addData (self, dataList) |
Add data block to (end of) record. More... | |
def | getData (self) |
Get data block from current position in record. More... | |
def | printRecord (self) |
Print record. More... | |
def | writeRecord (self, aFile) |
Write record to file. More... | |
def | readRecord (self, aFile) |
Read record from file. More... | |
def | moreData (self) |
Locate next data block. More... | |
def | specialDataTag (self) |
Get special data tag from block. More... | |
Private Attributes | |
__doublePrecision | |
flag for storage in as double values More... | |
__position | |
position in record, usually start of next data block; int More... | |
__numData | |
number of data blocks in record; int More... | |
__recLen | |
record length; int More... | |
__iMeas | |
position of value in current data block; int More... | |
__iErr | |
position of error in current data block; int More... | |
__inder | |
array with markers (0) and labels; array(int32) More... | |
__glder | |
array with values, errors and derivatives; (float32 or float64) More... | |
Millepede-II (binary) record.
Containing information for local (track) and global fit.
The data blocks are collected in two arrays, a real array (containing float or double values) and integer array, of same length. A positive record length indicate float and a negative one double values. The content of the record is:
real array integer array 0 0.0 error count (this record) 1 RMEAS, measured value 0 __iMeas -+ 2 local derivative index of local derivative | 3 local derivative index of local derivative | 4 ... | block SIGMA, error (>0) 0 __iErr | global derivative label of global derivative | global derivative label of global derivative | ... -+ RMEAS, measured value 0 __position local derivative index of local derivative local derivative index of local derivative ... SIGMA, error 0 global derivative label of global derivative global derivative label of global derivative ... global derivative label of global derivative __recLen
Special data block (other/debug information). Contains no local derivatives and (error) SIGMA is negative (-Number of SPecial data words).
real array integer array 0.0 0 __iMeas -+ -float(NSP) 0 __iErr | special data special data | special block (2+NSP words) special data special data | ... -+
def gblpy.mille.MilleRecord.__init__ | ( | self, | |
doublePrec = False |
|||
) |
def gblpy.mille.MilleRecord.addData | ( | self, | |
dataList | |||
) |
Add data block to (end of) record.
dataList | list with measurement, error, labels and derivatives; list |
Definition at line 102 of file mille.py.
References gblpy.mille.MilleRecord.__glder, gblpy.mille.MilleRecord.__inder, and gblpy.mille.MilleRecord.__numData.
def gblpy.mille.MilleRecord.getData | ( | self | ) |
Get data block from current position in record.
Definition at line 122 of file mille.py.
References gblpy.mille.MilleRecord.__glder, gblpy.mille.MilleRecord.__iErr, gblpy.mille.MilleRecord.__iMeas, gblpy.mille.MilleRecord.__inder, and gblpy.mille.MilleRecord.__position.
def gblpy.mille.MilleRecord.moreData | ( | self | ) |
Locate next data block.
Definition at line 171 of file mille.py.
References gblpy.mille.MilleRecord.__glder, gblpy.mille.MilleRecord.__iErr, gblpy.mille.MilleRecord.__iMeas, gblpy.mille.MilleRecord.__inder, gblpy.mille.MilleRecord.__numData, gblpy.mille.MilleRecord.__position, and gblpy.mille.MilleRecord.__recLen.
def gblpy.mille.MilleRecord.printRecord | ( | self | ) |
Print record.
Definition at line 138 of file mille.py.
References gblpy.mille.MilleRecord.__glder, and gblpy.mille.MilleRecord.__inder.
def gblpy.mille.MilleRecord.readRecord | ( | self, | |
aFile | |||
) |
Read record from file.
aFile | (binary) file |
Definition at line 158 of file mille.py.
References gblpy.mille.MilleRecord.__glder, gblpy.mille.MilleRecord.__inder, and gblpy.mille.MilleRecord.__recLen.
def gblpy.mille.MilleRecord.specialDataTag | ( | self | ) |
Get special data tag from block.
Definition at line 196 of file mille.py.
References gblpy.mille.MilleRecord.__glder, gblpy.mille.MilleRecord.__iErr, and gblpy.mille.MilleRecord.__iMeas.
def gblpy.mille.MilleRecord.writeRecord | ( | self, | |
aFile | |||
) |
Write record to file.
aFile | (binary) file |
Definition at line 147 of file mille.py.
References gblpy.mille.MilleRecord.__doublePrecision, gblpy.mille.MilleRecord.__glder, and gblpy.mille.MilleRecord.__inder.
|
private |
flag for storage in as double values
Definition at line 82 of file mille.py.
Referenced by gblpy.mille.MilleRecord.writeRecord().
|
private |
array with values, errors and derivatives; (float32 or float64)
Definition at line 96 of file mille.py.
Referenced by gblpy.mille.MilleRecord.addData(), gblpy.mille.MilleRecord.getData(), gblpy.mille.MilleRecord.moreData(), gblpy.mille.MilleRecord.printRecord(), gblpy.mille.MilleRecord.readRecord(), gblpy.mille.MilleRecord.specialDataTag(), and gblpy.mille.MilleRecord.writeRecord().
|
private |
position of error in current data block; int
Definition at line 92 of file mille.py.
Referenced by gblpy.mille.MilleRecord.getData(), gblpy.mille.MilleRecord.moreData(), and gblpy.mille.MilleRecord.specialDataTag().
|
private |
position of value in current data block; int
Definition at line 90 of file mille.py.
Referenced by gblpy.mille.MilleRecord.getData(), gblpy.mille.MilleRecord.moreData(), and gblpy.mille.MilleRecord.specialDataTag().
|
private |
array with markers (0) and labels; array(int32)
Definition at line 94 of file mille.py.
Referenced by gblpy.mille.MilleRecord.addData(), gblpy.mille.MilleRecord.getData(), gblpy.mille.MilleRecord.moreData(), gblpy.mille.MilleRecord.printRecord(), gblpy.mille.MilleRecord.readRecord(), and gblpy.mille.MilleRecord.writeRecord().
|
private |
number of data blocks in record; int
Definition at line 86 of file mille.py.
Referenced by gblpy.mille.MilleRecord.addData(), and gblpy.mille.MilleRecord.moreData().
|
private |
position in record, usually start of next data block; int
Definition at line 84 of file mille.py.
Referenced by gblpy.mille.MilleRecord.getData(), and gblpy.mille.MilleRecord.moreData().
|
private |
record length; int
Definition at line 88 of file mille.py.
Referenced by gblpy.mille.MilleRecord.moreData(), and gblpy.mille.MilleRecord.readRecord().