xy.to.ad: Pixel to RA/Dec via Header Astrometry

View source: R/xy.to.ad.R

xy.to.adR Documentation

Pixel to RA/Dec via Header Astrometry

Description

Converts Pixel locations x,y into RA and Dec positions by reading the necessary astrometry parameters from an astrometry structure, using the TAN Gnomonic coordinate system. The astrometry structure can be generated by using the read.astrometry procedure.

Usage

xy.to.ad(x, y, astr.struc, diagnostic = FALSE)

Arguments

x

numeric (n) vector; x-coordinates (pixel number)

y

numeric (n) vector; y-coordinates (pixel number)

astr.struc

list; Astrometry from FITS header relevant to these pixel locations

diagnostic

logical; if TRUE, write diagnostic output to ‘message’

Value

numeric (n,2) vector; The RA and Dec vectors (column bound) of each of the pixel locations provided

Author(s)

Angus H Wright ICRAR angus.wright@icrar.org

See Also

measure.fluxes, read.astrometry


AngusWright/LAMBDAR documentation built on May 12, 2022, 1:49 a.m.