compute_va_effects

romanisim.velocity_aberration.compute_va_effects(velocity_x, velocity_y, velocity_z, ra, dec)

Computes constant scale factor due to velocity aberration as well as corrected RA and DEC values.

Parameters:
velocity_x, velocity_y, velocity_z: float

The components of the velocity. These are celestial coordinates, with x toward the vernal equinox, y toward right ascension 90 degrees and declination 0, z toward the north celestial pole.

ra, dec: float

The right ascension and declination of the target (or some other point, such as the center of a detector) in the barycentric coordinate system. The equator and equinox should be the same as the coordinate system for the velocity. In degrees

Returns:
scale_factor: float

Multiply the nominal image scale (e.g. in degrees per pixel) by this value to obtain the image scale corrected for the “aberration of starlight” due to the velocity of JWST with respect to the Sun.

apparent_ra: float

Apparent star position in the moving telescope frame.

apparent_dec: float

Apparent star position in the moving telescope frame.