WCSMapAll

class grizli.utils.WCSMapAll(input, output, origin=0)[source]

Bases: object

Sample class to demonstrate how to define a coordinate transformation

Methods Summary

backward(pixx, pixy) Transform pixx,pixy positions from the output frame back onto their original positions in the input frame.
checkWCS(obj, name)
forward(pixx, pixy) Transform the input pixx,pixy positions in the input frame to pixel positions in the output frame.
get_pix_ratio() Return the ratio of plate scales between the input and output WCS.
rd2xy(wcs, ra, dec) Transform input sky positions into pixel positions in the WCS provided.
xy2rd(wcs, pixx, pixy) Transform input pixel positions into sky positions in the WCS provided.

Methods Documentation

backward(pixx, pixy)[source]

Transform pixx,pixy positions from the output frame back onto their original positions in the input frame.

checkWCS(obj, name)[source]
forward(pixx, pixy)[source]

Transform the input pixx,pixy positions in the input frame to pixel positions in the output frame.

This method gets passed to the drizzle algorithm.

get_pix_ratio()[source]

Return the ratio of plate scales between the input and output WCS. This is used to properly distribute the flux in each pixel in ‘tdriz’.

rd2xy(wcs, ra, dec)[source]

Transform input sky positions into pixel positions in the WCS provided.

xy2rd(wcs, pixx, pixy)[source]

Transform input pixel positions into sky positions in the WCS provided.