ism3d.uvhelper.ms

Functions

checkchflag

check flag consistancy across channels it’s able to handle ms with multiple spw/pol.

flagbywt

doesn’t really work yet (see statwt.py) performe the following procedures: 1. save current flagging 2. use statwt to recalculate weight 3. flag weightoutlier.

flagchan

flagged the channel if the data from contributing rows are partially flagged this is <unchflag> in the CASA 5 xutils

flagrow

flagged the entire row if it’s partially flagged use this with cautions and you’re removing potentially large amount of rows

getcommonfreqs

edge_list: for each vis, we exclude some edge channels for evluation as they might be flagged in pipeline chanbin: the channel width will be chanbin*max(chanwidth among vis_list) output freqgrid will be covered by all vis_list fgrid: freqeuncy grid df: frequency resolution

getfreqs

get the frequency sampling grid of one SPW in a MS, in a specified frame edge is for original grid

read_ms

Note:

rmColumns

remove columns from MS (only handle one column currently) By default, the function will check the available column names without removing any column.

rmPointing

Empty the POINTING table

write_ms

attach new visibility data/model values into an MS