TwiceAsNice  2019-02-18
Functions | Variables
SEPos2Radec Namespace Reference

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
 

Function Documentation

◆ SEPos2Radec()

def SEPos2Radec.SEPos2Radec (   SEnum,
  xS,
  yS,
  ParAng,
  brg,
  offAng 
)

Variable Documentation

◆ Ang

float SEPos2Radec.Ang = bAng + pAng + oAng

Now rotate into the focal plane frame.

◆ bAng

float SEPos2Radec.bAng = brg*deg2rad

◆ brg

float SEPos2Radec.brg = 0.0

◆ deg2rad

float SEPos2Radec.deg2rad = 3.141592654/180.0

◆ imScl

float SEPos2Radec.imScl = 0.634

◆ oAng

float SEPos2Radec.oAng = offAng*deg2rad

◆ offAng

float SEPos2Radec.offAng = 0.0

◆ pAng

float SEPos2Radec.pAng = ParAng*deg2rad

◆ prang

float SEPos2Radec.prang = 0.0

◆ rad2deg

float SEPos2Radec.rad2deg = 1.0/deg2rad

◆ Sx

float SEPos2Radec.Sx = xStp / 29500.0

Calculate Xfu,Yfu - the XY position in the UNROTATED frame.

◆ Sy

float SEPos2Radec.Sy = yStp / 29500.0

◆ Xf

float SEPos2Radec.Xf = Xfu*np.cos(Ang) - Yfu*np.sin(Ang)

◆ Xfu

float SEPos2Radec.Xfu = Xfumm / imScl

◆ Xfumm

float SEPos2Radec.Xfumm = Xo + Sx*np.cos(xth) + Sy*np.cos(yth)

◆ Xo

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.

◆ xstep

float SEPos2Radec.xstep = -1360560.0

◆ xStp

SEPos2Radec.xStp = abs(xS)

◆ xth

float SEPos2Radec.xth = 0.70550*deg2rad

◆ Yf

float SEPos2Radec.Yf = Xfu*np.sin(Ang) + Yfu*np.cos(Ang)

◆ Yfu

float SEPos2Radec.Yfu = Yfumm / imScl

◆ Yfumm

float SEPos2Radec.Yfumm = Yo + Sx*np.sin(xth) + Sy*np.sin(yth)

◆ Yo

float SEPos2Radec.Yo = -126.47

◆ ystep

float SEPos2Radec.ystep = 854953.0

◆ yStp

SEPos2Radec.yStp = abs(yS)

◆ yth

tuple SEPos2Radec.yth = (-89.176+180.0)*deg2rad