fixms.fix_ms_dir ================ .. py:module:: fixms.fix_ms_dir .. autoapi-nested-parse:: ASKAP utility - update the pointing centre of a beam in an MS. - Allows imaging by CASA or wsclean. .. !! processed by numpydoc !! Attributes ---------- .. autoapisummary:: fixms.fix_ms_dir.DEG2RAD fixms.fix_ms_dir.RAD2DEG fixms.fix_ms_dir.TQDM_OUT fixms.fix_ms_dir.__author__ Classes ------- .. autoapisummary:: fixms.fix_ms_dir.Skypos Functions --------- .. autoapisummary:: fixms.fix_ms_dir._rotate_v_x fixms.fix_ms_dir._rotate_v_z fixms.fix_ms_dir._rotatev_y fixms.fix_ms_dir.beam_from_ms fixms.fix_ms_dir.cli fixms.fix_ms_dir.decs fixms.fix_ms_dir.decs_rad fixms.fix_ms_dir.fix_ms_dir fixms.fix_ms_dir.ras fixms.fix_ms_dir.ras_rad fixms.fix_ms_dir.restore_ms_dir Module Contents --------------- .. py:class:: Skypos(ra, dec, precra=def_precra, precdec=def_precde) 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 .. !! processed by numpydoc !! .. py:method:: __str__() .. py:method:: get_decs() .. py:method:: get_ras() .. py:method:: rotate_x(a) return a skypos determined by rotating self about the X-axis by angle a. .. !! processed by numpydoc !! .. py:method:: rotate_y(a) return a skypos determined by rotating self about the X-axis by angle a. .. !! processed by numpydoc !! .. py:method:: rotate_z(a) return a skypos determined by rotating self about the X-axis by angle a. .. !! processed by numpydoc !! .. py:method:: shift(delta_lon, delta_lat) 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. :param float delta_lon: longitude (RA) offset in radians :param float delta_lat: latitude (DEC) offset in radians .. !! processed by numpydoc !! .. py:attribute:: _dvecx .. py:attribute:: _dvecy .. py:attribute:: _dvecz .. py:attribute:: _vec .. py:attribute:: decs :value: None .. py:attribute:: def_precde :value: 2 .. py:attribute:: def_precra :value: 3 .. py:attribute:: dn :value: 12 .. py:attribute:: precdec :value: 2 .. py:attribute:: precra :value: 3 .. py:attribute:: ras :value: None .. py:attribute:: rn :value: 12 .. py:function:: _rotate_v_x(vec, a) Return a skypos determined by rotating vec about the X-axis by angle a. .. !! processed by numpydoc !! .. py:function:: _rotate_v_z(vec, a) Return a skypos determined by rotating vec about the Z-axis by angle a. .. !! processed by numpydoc !! .. py:function:: _rotatev_y(vec, a) Return a skypos determined by rotating vec about the Y-axis by angle a. .. !! processed by numpydoc !! .. py:function:: beam_from_ms(ms: str) -> int Work out which beam is in this MS .. !! processed by numpydoc !! .. py:function:: cli() .. py:function:: decs(dec) .. py:function:: decs_rad(dec_string) Convert declination string to radians :param dec_string: declination string (dd:mm:ss.ss) :type dec_string: str :return: declination in radians :rtype: float .. !! processed by numpydoc !! .. py:function:: fix_ms_dir(ms) .. py:function:: ras(ra) .. py:function:: ras_rad(ra_string) 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 .. !! processed by numpydoc !! .. py:function:: restore_ms_dir(ms) Restore the direction to the ASKAPsoft standard. .. !! processed by numpydoc !! .. py:data:: DEG2RAD :value: 0.017453292519943295 .. py:data:: RAD2DEG :value: 57.29577951308232 .. py:data:: TQDM_OUT .. py:data:: __author__ :value: ['Emil Lenc', 'Alec Thomson']