fixms.fix_ms_dir#

ASKAP utility - update the pointing centre of a beam in an MS.
  • Allows imaging by CASA or wsclean.

Attributes#

Classes#

Skypos

Defines a class that works with spherical geometry, specifically points

Functions#

_rotate_v_x(vec, a)

Return a skypos determined by rotating vec about the X-axis by

_rotate_v_z(vec, a)

Return a skypos determined by rotating vec about the Z-axis by

_rotatev_y(vec, a)

Return a skypos determined by rotating vec about the Y-axis by

beam_from_ms(→ int)

Work out which beam is in this MS

cli()

decs(dec)

decs_rad(dec_string)

Convert declination string to radians

fix_ms_dir(ms)

ras(ra)

ras_rad(ra_string)

Convert right ascension string to radians

restore_ms_dir(ms)

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

__str__()[source]#
get_decs()[source]#
get_ras()[source]#
rotate_x(a)[source]#

return a skypos determined by rotating self about the X-axis by angle a.

rotate_y(a)[source]#

return a skypos determined by rotating self about the X-axis by angle a.

rotate_z(a)[source]#

return a skypos determined by rotating self about the X-axis by angle a.

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

_dvecx[source]#
_dvecy[source]#
_dvecz[source]#
_vec[source]#
decs = None[source]#
def_precde = 2[source]#
def_precra = 3[source]#
dn = 12[source]#
precdec = 2[source]#
precra = 3[source]#
ras = None[source]#
rn = 12[source]#
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.beam_from_ms(ms: str) int[source]#

Work out which beam is in this MS

fixms.fix_ms_dir.cli()[source]#
fixms.fix_ms_dir.decs(dec)[source]#
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

fixms.fix_ms_dir.fix_ms_dir(ms)[source]#
fixms.fix_ms_dir.ras(ra)[source]#
fixms.fix_ms_dir.ras_rad(ra_string)[source]#

Convert right ascension string to radians :param ra_string: right ascension string (hh:mm:ss.ss) :type ra_string: str :return: right ascension in radians :rtype: float

fixms.fix_ms_dir.restore_ms_dir(ms)[source]#

Restore the direction to the ASKAPsoft standard.

fixms.fix_ms_dir.DEG2RAD = 0.017453292519943295[source]#
fixms.fix_ms_dir.RAD2DEG = 57.29577951308232[source]#
fixms.fix_ms_dir.TQDM_OUT[source]#
fixms.fix_ms_dir.__author__ = ['Emil Lenc', 'Alec Thomson'][source]#