std2radec

jwst.cube_build.coord.std2radec(crval1, crval2, xi, eta)[source]

Compute ra,dec from the tangent plane rectangular coordinates.

Compute the ra,dec values of tangent plane rectangular coordinates using crval1, crval2 (the tangent point). This routine takes the rectangular plane and projects it onto the spherical plane using crval1, crval2 as the tangent plane.

Parameters:
crval1float

RA value of tangent point

crval2float

Dec value of tangent point

xifloat

Xi rectangular coordinate of tangent plane projected ra,dec

etafloat

Eta rectangular coordinate of tangent plane projected ra,dec

Returns:
rafloat

List (or single value) of RA computed values

decfloat

List (or single value) of Dec computed values