def __init__(self, x, y, alt, az): self.projection = Sky2Pix_AZP() self.affine = AffineTransformation2D() self.x = x self.y = y self.alt = alt self.az = az
def __init__(self, x, y, alt, az, ap_order=2, bp_order=2): """ Parameters ---------- x : array (float) x-positions on the chip y : array (float) y positions on the chip alt : array (float) Altitudes of the stars (degrees) az : array (float) Azimuths of the stars (degrees) """ self.projection = Sky2Pix_AZP() self.affine = AffineTransformation2D() self.sip = Sip self.x = x self.y = y self.alt = alt self.az = az self.ap_order = ap_order self.bp_order = bp_order self.ap_size = (self.ap_order + 1)**2 self.bp_size = (self.bp_order + 1)**2 self.ap_ind = np.arange(self.ap_size) self.bp_ind = np.arange(self.bp_size) + self.ap_ind.max() + 1 self.affine_ind = np.arange(6) + self.bp_ind.max() + 1 self.crpix = np.zeros(2) self.zs = np.zeros((3, 3))
def __init__(self, x, y, alt, az, leg_x_order=2, leg_y_order=2): self.projection = Sky2Pix_AZP() self.affine = AffineTransformation2D() self.x = x self.y = y self.alt = alt self.az = az self.x_leg = Legendre2D(leg_x_order, leg_y_order) self.y_leg = Legendre2D(leg_x_order, leg_y_order)
def __init__(self, x, y, alt, az, ap_order=2, bp_order=2): self.projection = Sky2Pix_AZP() self.affine = AffineTransformation2D() self.sip = Sip self.x = x self.y = y self.alt = alt self.az = az self.ap_order = ap_order self.bp_order = bp_order self.ap_size = (self.ap_order + 1)**2 self.bp_size = (self.bp_order + 1)**2 self.ap_ind = np.arange(self.ap_size) self.bp_ind = np.arange(self.bp_size) + self.ap_ind.max() + 1 self.affine_ind = np.arange(6) + self.bp_ind.max() + 1 self.crpix = np.zeros(2) self.zs = np.zeros((3, 3))
def __init__(self, x, y, alt, az): self.projection = Sky2Pix_ZEA() self.affine = AffineTransformation2D() self.x = x self.y = y self.projx, self.projy = self.projection(az, alt)