[daip] question about flagging in AIPS

Eric Greisen egreisen at nrao.edu
Tue Jul 17 14:41:47 EDT 2007


Wendy Lane Peters writes:
 > Hi Eric,
 > 
 > I have some data which has some odd (probably correlator) errors in
 > it.  These appear as either very high/zero amplitude and zero phase
 > visibilities.  Visually, they are very very easy to spot with
 > uvprt.
 > 
 > I'm trying to figure out how to automatically flag them because there
 > are literally thousands of files.  I don't want to just clip off high
 > amp data because we want to look for events which could be high amp
 > (like the flaring sun for example, or a transient) but shouldn't be
 > zero phase (well except a transient right overhead, but we'll take our
 > chances).  So ideally I'd like to say something along the logic of
 > 
 > if (amp=0 or amp>70) AND (|phase|<3) then flag.
 > 
 > is there any way I can do this in aips short of writing a new task (or,
 > more likely, modifying clipm)? 
 > 
 > I'm willing to take the run time hit if I have to test each point in a
 > runfile but I can't quite figure out how to get the amp/phase values
 > into the runfile to begin with.
 > 

I am on vacation at present - I did add phase clipping but not  with
all this logic to CLIPM.  Your own version would be the plane - there
are only a few lines of code that are relevant.

Eric




More information about the Daip mailing list