Functions | |
def | fixvis |
def | get_validcodes |
def | is_valid_refcode |
def | log_phasecenter |
def | get_oldref |
def | modify_fld_vis |
def | parse_phasecenter |
def task_fixvis.fixvis | ( | vis, | |
outputvis = '' , |
|||
field = '' , |
|||
refcode = '' , |
|||
reuse = True , |
|||
phasecenter = '' , |
|||
datacolumn = 'all' |
|||
) |
Input Parameters vis -- Name of the input visibility set outputvis -- Name of the output visibility set, default: same as vis field -- field selection string refcode -- Reference frame to convert to, default: the refcode of PHASE_DIR in the FIELD table example: 'B1950' reuse -- base recalculation on existing UVW coordinates? default=True ignored if parameter 'phasecenter' is set phasecenter -- if set to a valid direction: change the phase center for the given field to this value example: 'J2000 9h25m00s 05d12m00s' If given without the equinox, e.g. '0h01m00s 00d12m00s', the parameter is interpreted as a pair of offsets in RA and DEC to the present phasecenter. datacolumn -- when applying a phase center shift, modify visibilities only in this/these column(s) default: 'all' (DATA, CORRECTED, and MODEL) example: 'DATA,CORRECTED' (will not modify MODEL) Examples: fixvis('NGC3256.ms','NGC3256-fixed.ms') will recalculate the UVW coordinates for all fields based on the existing phase center information in the FIELD table. fixvis('0925+0512.ms','0925+0512-fixed.ms','0925+0512', '', 'J2000 9h25m00s 05d12m00s') will set the phase center for field '0925+0512' to the given direction and recalculate the UVW coordinates.
Definition at line 4 of file task_fixvis.py.
References taskinit.gentools(), get_oldref(), get_validcodes(), modify_fld_vis(), and taskinit.write_history().
def task_fixvis.get_oldref | ( | outputvis, | |
tbt | |||
) |
Returns the original reference code, string, ckwdict, and isvarref.
Definition at line 202 of file task_fixvis.py.
References modify_fld_vis().
Referenced by fixvis().
def task_fixvis.get_validcodes | ( | code = None | ) |
Returns a list of valid refcodes.
Definition at line 174 of file task_fixvis.py.
Referenced by fixvis(), is_valid_refcode(), and modify_fld_vis().
def task_fixvis.is_valid_refcode | ( | refcode | ) |
Is refcode usable?
Definition at line 189 of file task_fixvis.py.
References get_validcodes().
Referenced by modify_fld_vis().
def task_fixvis.log_phasecenter | ( | oldnew, | |
refstr, | |||
ra, | |||
dec | |||
) |
Post a phase center to the logger, along with whether it is old or new.
Definition at line 194 of file task_fixvis.py.
Referenced by modify_fld_vis().
def task_fixvis.modify_fld_vis | ( | fld, | |
outputvis, | |||
tbt, | |||
myim, | |||
commonoldrefstr, | |||
phasecenter, | |||
therefcode, | |||
reuse, | |||
numfields, | |||
ckwdict, | |||
theoldref, | |||
theoldrefstr, | |||
isvarref, | |||
flddict, | |||
datacol | |||
) |
Modify the UVW and visibilities of field fld.
Definition at line 229 of file task_fixvis.py.
References get_validcodes(), is_valid_refcode(), log_phasecenter(), and parse_phasecenter().
Referenced by fixvis(), and get_oldref().
def task_fixvis.parse_phasecenter | ( | phasecenter, | |
isvarref, | |||
ref, | |||
refstr, | |||
theolddir | |||
) |
Definition at line 406 of file task_fixvis.py.
Referenced by modify_fld_vis().