run_model.when_changed(change_run_option) # now load optional modules for the ME maker from Meow import MeqMaker meqmaker = MeqMaker.MeqMaker(solvable=do_solve and run_option == 'calibrate') # specify available sky models # these will show up in the menu automatically from Siamese.OMS import fitsimage_sky from Lions import gridded_sky import Meow.LSM lsm = Meow.LSM.MeowLSM(include_options=False) meqmaker.add_sky_models([lsm, fitsimage_sky, gridded_sky]) from Lions import ZJones meqmaker.add_sky_jones('Z', 'iono', [ZJones.ZJones()]) from Calico.OMS import solvable_sky_jones meqmaker.add_sky_jones('GD', 'directional receiver gains/phases', [ solvable_sky_jones.DiagAmplPhase("GD"), solvable_sky_jones.FullRealImag("GD") ]) from Calico.OMS import solvable_jones meqmaker.add_uv_jones( 'G', 'receiver gains/phases', [solvable_jones.DiagAmplPhase("G"), solvable_jones.FullRealImag("G")]) meqmaker.add_uv_jones('B', 'bandpass', [solvable_jones.DiagAmplPhase("B")])
meqmaker.add_sky_models(models) # now add optional Jones terms # these will show up in the menu automatically # Ncorr - correct for N from Siamese.OMS import oms_n_inverse meqmaker.add_sky_jones('Ncorr', 'n-term correction', oms_n_inverse) # Z - ionosphere from Lions import ZJones from Siamese.OMS import oms_ionosphere, oms_ionosphere2 meqmaker.add_sky_jones('Z', 'ionosphere', [oms_ionosphere, oms_ionosphere2, ZJones.ZJones()]) # P - Parallactic angle or dipole projection from Siamese.OMS.rotation import Rotation from Siamese.OMS import oms_dipole_projection meqmaker.add_sky_jones( 'L', 'parallactic angle or dipole rotation', [Rotation('L', feed_angle=False), oms_dipole_projection]) # E - beam from Siamese.OMS import analytic_beams from Siamese.OMS import fits_beams0 from Siamese.OMS import pybeams_fits from Siamese.OMS import paf_beams ##OMS: retiting this one: from Siamese.OMS import wsrt_beams from Siamese.OMS import vla_beams
print 'Is the location of Tigger defined in your PYTHONPATH environment variable?' pass; meqmaker.add_sky_models(models); # now add optional Jones terms # these will show up in the menu automatically # Ncorr - correct for N from Siamese.OMS import oms_n_inverse meqmaker.add_sky_jones('Ncorr','n-term correction',oms_n_inverse); # Z - ionosphere from Lions import ZJones from Siamese.OMS import oms_ionosphere,oms_ionosphere2 meqmaker.add_sky_jones('Z','ionosphere',[oms_ionosphere,oms_ionosphere2,ZJones.ZJones()]); # P - Parallactic angle or dipole projection from Siamese.OMS.rotation import Rotation from Siamese.OMS import oms_dipole_projection meqmaker.add_sky_jones('L','parallactic angle or dipole rotation',[Rotation('L',feed_angle=False),oms_dipole_projection]); # E - beam from Siamese.OMS import analytic_beams from Siamese.OMS import fits_beams0 from Siamese.OMS import pybeams_fits from Siamese.OMS.emss_beams import emss_polar_beams from Siamese.OMS import paf_beams ##OMS: retiting this one: from Siamese.OMS import wsrt_beams from Siamese.OMS import vla_beams