fixms.fix_ms_dir#
- ASKAP utility - update the pointing centre of a beam in an MS.
Allows imaging by CASA or wsclean.
Attributes#
Classes#
Defines a class that works with spherical geometry, specifically points |
Functions#
|
Return a skypos determined by rotating vec about the X-axis by |
|
Return a skypos determined by rotating vec about the Z-axis by |
|
Return a skypos determined by rotating vec about the Y-axis by |
|
Work out which beam is in this MS |
|
|
|
|
|
Convert declination string to radians |
|
|
|
|
|
Convert right ascension string to radians |
|
Restore the direction to the ASKAPsoft standard. |
Module Contents#
- class fixms.fix_ms_dir.Skypos(ra, dec, precra=def_precra, precdec=def_precde)[source]#
Defines a class that works with spherical geometry, specifically points in a unit sphere, such as the sky.
This is general spherical geometry, with little to tie it to astronomy. The exceptions are the naming of longitude and latitude as RA,Dec
- shift(delta_lon, delta_lat)[source]#
Shift this direction (Skypos) in longitude and latitude. The longitude shift will be in radian units perpendicular to the direction to pole, along a great circle.
- Parameters:
delta_lon (float) – longitude (RA) offset in radians
delta_lat (float) – latitude (DEC) offset in radians
- fixms.fix_ms_dir._rotate_v_x(vec, a)[source]#
Return a skypos determined by rotating vec about the X-axis by angle a.
- fixms.fix_ms_dir._rotate_v_z(vec, a)[source]#
Return a skypos determined by rotating vec about the Z-axis by angle a.
- fixms.fix_ms_dir._rotatev_y(vec, a)[source]#
Return a skypos determined by rotating vec about the Y-axis by angle a.
- fixms.fix_ms_dir.decs_rad(dec_string)[source]#
Convert declination string to radians :param dec_string: declination string (dd:mm:ss.ss) :type dec_string: str :return: declination in radians :rtype: float