TwiceAsNice
2019-02-18
|
Functions | |
def | SEPos2Radec (SEnum, xS, yS, ParAng, brg, offAng) |
Variables | |
float | imScl = 0.634 |
float | deg2rad = 3.141592654/180.0 |
float | rad2deg = 1.0/deg2rad |
float | pAng = ParAng*deg2rad |
float | bAng = brg*deg2rad |
float | oAng = offAng*deg2rad |
xStp = abs(xS) | |
yStp = abs(yS) | |
float | Xo = -47.490 |
Assign Xo, Yo, and stage axis angles based on star enlarger number. More... | |
float | Yo = -126.47 |
float | xth = 0.70550*deg2rad |
tuple | yth = (-89.176+180.0)*deg2rad |
float | Sx = xStp / 29500.0 |
Calculate Xfu,Yfu - the XY position in the UNROTATED frame. More... | |
float | Sy = yStp / 29500.0 |
float | Xfumm = Xo + Sx*np.cos(xth) + Sy*np.cos(yth) |
float | Yfumm = Yo + Sx*np.sin(xth) + Sy*np.sin(yth) |
float | Xfu = Xfumm / imScl |
float | Yfu = Yfumm / imScl |
float | Ang = bAng + pAng + oAng |
Now rotate into the focal plane frame. More... | |
float | Xf = Xfu*np.cos(Ang) - Yfu*np.sin(Ang) |
float | Yf = Xfu*np.sin(Ang) + Yfu*np.cos(Ang) |
float | xstep = -1360560.0 |
float | ystep = 854953.0 |
float | prang = 0.0 |
float | brg = 0.0 |
float | offAng = 0.0 |
def SEPos2Radec.SEPos2Radec | ( | SEnum, | |
xS, | |||
yS, | |||
ParAng, | |||
brg, | |||
offAng | |||
) |
float SEPos2Radec.brg = 0.0 |
float SEPos2Radec.deg2rad = 3.141592654/180.0 |
float SEPos2Radec.imScl = 0.634 |
float SEPos2Radec.offAng = 0.0 |
float SEPos2Radec.pAng = ParAng*deg2rad |
float SEPos2Radec.prang = 0.0 |
float SEPos2Radec.rad2deg = 1.0/deg2rad |
float SEPos2Radec.Sx = xStp / 29500.0 |
Calculate Xfu,Yfu - the XY position in the UNROTATED frame.
float SEPos2Radec.Sy = yStp / 29500.0 |
float SEPos2Radec.Xo = -47.490 |
Assign Xo, Yo, and stage axis angles based on star enlarger number.
NOTE! Xo Yo are in mm here. They are converted to arcsec below
NOTE: Some angles (xth,yth) have 180 degrees offset, because the slope was fit without regard to the 0,0 step position.
float SEPos2Radec.xstep = -1360560.0 |
SEPos2Radec.xStp = abs(xS) |
float SEPos2Radec.xth = 0.70550*deg2rad |
float SEPos2Radec.Yo = -126.47 |
float SEPos2Radec.ystep = 854953.0 |
SEPos2Radec.yStp = abs(yS) |
tuple SEPos2Radec.yth = (-89.176+180.0)*deg2rad |