ecpi.common.instru.array_convention Module¶
Created on 1 avr. 2019
@author: Colley CNRS/IN2P3/APC
ECLAIRs general program pipeline convention (egp) of 2D array:¶
egp used cartesian coordinates where : * first coordinate is the position on horizontal axis, same as y axis in ECLLos frame defined by CNES * second coordinate is the position on vertical axis, same as z axis in ECLLos frame defined by CNES * so shield ECLAIRs is at the bottom and origin of epg is always in left corner * the value is associated to “pixel” that has the lower left corner at (y,z)
example : a_epg[1,2] = 1
z axis (same direction that z_ECCLos)
- 3 + +-+
- 2 + +-+
- 1 +
- 0 +-+-+-+—-> y axis (same direction that y_ECCLos)
- 0 1 2 3
SHIELD ECLAIRs
ijDet convention of 2D array:¶
ijdet used cartesian coordinates where : * first coordinate is the row number along direction like z axis in ECLLos frame defined by CNES * second coordinate is the column number along direction like inverse of y axis in ECLLos frame defined by CNES * so shield ECLAIRs is at the bottom and origin of ijDet is always in right corner
Functions¶
ijdet_to_yzegp(idet, jdet[, idx_max]) |
convert couple index in ijdet convention to yzegp convention |
ijdet_to_yzegp_array(a_ijdet) |
convert array 2D in ijdet convention to yzegp convention |
ijdet_to_yzegp_array_slow(a_ijdet) |
convert array 2D in ijdet convention to yzegp convention |
yzegp_to_ijdet(y_gp, z_gp[, idx_max]) |
convert couple index in yzegp convention to ijdet convention |
yzegp_to_ijdet_array(a_gpidx) |
convert array 2D in yzegp convention to ijdet convention |