translate (class)

class translate(log, ra, dec, northArcsec, eastArcsec, settings=False)[source]

Bases: object

Translate a set of coordinates north and east by distances given in arcsecs

Key Arguments

  • log – logger

  • settings – the settings dictionary. Default False

  • ra – ra (decimal or sexegesimal)

  • dec – dec (decimal or sexegesimal)

  • northArcsec – number of arcsecs to move location to the north

  • eastArcsec – number of arcsecs to move location to the east

Todo

  • replace shift_coordinates class in all other code

Usage

To shift a set of coordinates north and east by given distances:

# TRANSLATE COORDINATES ACROSS SKY
from astrocalc.coords import translate
ra, dec = translate(
    log=log,
    settings=settings,
    ra="14.546438",
    dec="-45.34232334",
    northArcsec=4560,
    eastArcsec=+967800
).get()

Methods

get()

translate the coordinates

get()[source]

translate the coordinates

Return

  • ra – the right-ascension of the translated coordinate

  • dec – the declination of the translated coordinate