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
– loggersettings
– the settings dictionary. Default Falsera
– ra (decimal or sexegesimal)dec
– dec (decimal or sexegesimal)northArcsec
– number of arcsecs to move location to the northeastArcsec
– 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