radec2v2v3_estimate

jwst.cube_build.coord.radec2v2v3_estimate(ra_ref, dec_ref, roll_ref, v2_ref, v3_ref, ra, dec)[source]

Convert ra,dec to v2, v3.

This routine is used for debugging purposes. It is not actually used in the cube_build step for routine IFU cube building. The conversion from RA,Dec to V2,V3 is handled more accurately by the transforms provided by assign_wcs.

Parameters:
ra_reffloat

RA of reference point given in degrees

dec_reffloat

Dec of reference point given in degrees

roll_reffloat

Roll angle given in degrees

v2_reffloat

V2 coordinate of reference point given in arcseconds

v3_reffloat

V3 coordinate of reference point given in arcseconds

rafloat

RA coordinate given in degrees

decfloat

Dec coordinate given in degrees

Returns:
v2float

V2 coordinate in arcseconds

v3float

V3 coordinate in arcseconds