xy.to.radec: Pixel to RA/Dec

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

xy.to.radecR Documentation

Pixel to RA/Dec

Description

Convert pixel locations to RA and Dec by using a calibrating pixel and known pixel widths, in the TAN Gnomonic coordinate system.

Usage

xy.to.radec(x, y, ra0 = 0, dec0 = 0,
x0 = 0, y0 = 0, xscale = 1, yscale = 1)

Arguments

x

numeric (n) vector; x-coordinates of pixels

y

numeric (n) vector; y-coordinates of pixels

ra0

numeric; RA of the calibrating pixel (deg)

dec0

numeric; Dec of the calibrating pixel (deg)

x0

numeric; x-coordinate of the calibrating pixel

y0

numeric; y-coordinate of the calibrating pixel

xscale

numeric; width of pixels in RA (deg)

yscale

numeric; height of pixels in Dec (deg)

Value

numeric (n,2) array; RA and Dec vectors (column bound) of the input x,y coordinates

Author(s)

Angus H Wright ICRAR angus.wright@icrar.org

See Also

measure.fluxes


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