Package spectractor :: Module midworker
[hide private]
[frames] | no frames]

Module midworker

source code

Spectractor submodule containing classes which interact with ESO MIDAS. Interaction with ESO MIDAS was made through pymidas module. With pyMidas we calculate heliocentric correction and with pyephem we calculate precession. Midworker class is the main part submodule.


Author: Dmitry Nasonov

Classes [hide private]
  HelVelCor
Calculate heliocentric RV correction for number of observation times.
  MidWorker
Class with simple wrappers for some ESO MIDAS routines
  Preparer
Class for image processing with MIDAS, against MIDAS sripting language =) We use MIDAS routines through pyMidas, but replace it with numpy and pyfits, if it is possible.
Functions [hide private]
 
precess(mjd, objcoords, verbose=False)
Precess coords using pyephem from J2000 to mjd.
source code
Variables [hide private]
  spacer = lambda* args:
  commer = lambda arg:
  convcoord = lambda cr, rest:
Function Details [hide private]

precess(mjd, objcoords, verbose=False)

source code 

Precess coords using pyephem from J2000 to mjd.

Parameters:
  • mjd - Modified julian date: JD - 2400000.5
  • objcoords - Object coordinates with its epoch as tuple
Returns:
ra, dec as tuples