Public Member Functions | |
def | __init__ |
def | __call__ |
Private Attributes | |
__bases__ | |
__doc__ | |
Static Private Attributes | |
string | __name__ |
Definition at line 18 of file peel_pg.py.
def peel_pg.peel_pg_.__init__ | ( | self | ) |
Definition at line 21 of file peel_pg.py.
def peel_pg.peel_pg_.__call__ | ( | self, | |
vis = None , |
|||
dirs = None , |
|||
remove = None , |
|||
calmode = None , |
|||
async = None |
|||
) |
Do direction dependent selfcal(s) and optionally remove annoying sources. Unfortunately at some level gains are direction-dependent, typically because of either deviations between the true antenna voltage patterns and the models being used, and/or fluctuations in one layer or another of the Earth's atmosphere. Bright sources located in the edges of the primary beam therefore corrupt images of the central portions of the primary beam in two ways. The most obvious way is by throwing a corrupted version of the PSF across the image. Since it is corrupted, it cannot be deconvolved away without first correcting the gains. The second problem is that a bright source can dominate the solutions of "classical" selfcalibration, essentially forcing it to solve the gains for the direction of the bright source instead of the pointing center. Solving for and removing the effects of direction-dependent gains is known in various forms as "peeling", "modcal", or most prosaically, direction-dependent selfcalibration. This task attempts direction-dependent selfcalibration in the requested list of directions, and optionally removes the associated sources. The usual risks of selfcalibration (imperfect model and possibly insufficient constraints) are particularly severe for peeling. Approach it with trepidation and stop as soon as possible. Peeling can ameliorate the effects of heterogeneous arrays, but it is better to use the right antenna voltage patterns a priori. Do not peel unless necessary. Still here? All right...read carefully... Your desire to peel probably stems from the center of your "science field" being spoiled by the distorted PSFs of bright sources near the edge of the primary beam. The fact that their PSFs are interfering with your field of interest means that your science sources are interfering with the sources to be peeled! Thus before doing any peeling you should remove a model of your science field from the visibilities. However, the model should not include any artifacts from the sources to be peeled. The easiest way to produce such a model is to clean down to the threshhold of the brightest artifacts. peel does not (yet) do this for you! You are also of course responsible for returning the model of your science field to the visibilities once you have finished peeling. Obviously, if your science sources are fainter than the artifacts, removing them and replacing them is not necessary. If more than one source must be peeled there is a chance (calculated using Murphy's Law) that they are interfering with each other. peel does not yet simultaneously solve for the gains in more than direction, so interfering sources must be approached by peeling the brightest source down to the level of the brightest artifacts in its vicinity, and next peeling whatever is currently causing the worst artifacts, continuing as necessary. If the interactions are especially strong, the cycle will have to be iterated, refining the model(s) along the way. The convergence is often safer and faster if the first iteration of the cycle only solves for the phases, and leaves phase + amplitude selfcalibration to the final iteration. Any given run of peel is nearly guaranteed to reduce the artifacts from the source being peeled, so it can be tempting to continue peeling until the artifacts drop below the noise. Resist that temptation! The number of fitted parameters accumulates with each peel, so repeated peels force the image toward the originally assumed model. Even if the total number of fitted parameters remains much smaller than the number of visibilities, the interactions between peeled sources and the central field take their toll on the science field. peel sees residual PSF sidelobes from the science region as artifacts that must be minimized. Whether removing some flux from the science source(s) is a risk or a certainty, the number of peels should be kept down. Overpeeling becomes easier to spot with experience, but the symptoms are strongly telescope-dependent. Example: # Start with a phase-only peel, and keep the source so it can be phase + # amplitude peeled if necessary. peel(vis='my.ms', calmode="p", remove=False) # Examine the result with viewer. # OK, do a phase + amplitude removal. peel(vis='my.ms', calmode="pa")
Definition at line 26 of file peel_pg.py.
References vla_uvfits_line_sf.verify.
peel_pg.peel_pg_.__bases__ [private] |
Definition at line 22 of file peel_pg.py.
peel_pg.peel_pg_.__doc__ [private] |
Definition at line 23 of file peel_pg.py.
string peel_pg.peel_pg_.__name__ [static, private] |
Definition at line 19 of file peel_pg.py.