[daip] questions about rflag and flag tables

Amy Mioduszewski amiodusz at nrao.edu
Fri Jul 20 13:34:43 EDT 2012


Hi Susan,

Eris is away on a brief vacation (back on Monday), lets see if I can answer your 
questions.  Here is how FLAGVER and OUTFGVER are supposed to work:
1-flagver=xx and outfgver=0 will mean that xx is applied to the data and copied 
to table yy and new flags are appended to yy.
2-flagver=xx and outfgver=yy then the new flags are appended to yy but nothing 
is copied from xx.  This should do what you want because all the flags from xx 
have already been copied to yy in #1.  (The question is why do it this way since 
xx has already been copied to yy, my only thought is that you don't want an 
infinite number of FG tables?  What I would do just because it is simpler is the 
first time I ran RFLAG I would set flagver=xx and after than just set flagver=0 
and outfgver=0, this would just keep copying flavger to outfgver and appending 
more flags every time RFLAG is run.)

Anyway, you should not have to create a new flag table to get the new flags. 
However I am looking at the documentation for OUTFGVER rather than what is 
actually done in RFLAG.

To prove that it is not appending the new flags, do a PRTAB on the FG table and 
see if you are missing the flags for the second source.  I assume RFLAG has some 
sort of RFLAG reason (i.e., the REASON in the FG table will start with "RFLAG") 
so you should be able to tell where the flags in the FG table come from.

Amy

Susan Neff wrote:
> Hi Eric,
> 
> I have a question about RFLAG and flag tables.
> 
> What I am doing is as follows:
> The first time I run RFLAG, I give it
> flagver = xx, outfgver = 0,
> so it will create a new flag table by
> copying flagver xx and then adding to it.
> I run rflag on a subset of sources,
> creating new flag table yy.
> Then I try running rflag again on
> different sources, using flagver = xx
> and outfgver = yy.
> 
> What happens to the flags created in the
> run on the second source??
> 
> I'm asking because it seems that the flags
> produced for the second source are not making
> it into the flag table.  The output plots
> I get by running with doplot = -12 look
> like it got the flags, and the noise
> and scut returned adverbs look like
> they got the flags.  However, if I try to
> run another round of rflag, on the second
> source, using flagtable yy,  I get
> the same starting noise and scut values
> as I had in the first run on the second
> source... not lower values as I would expect.
> (A second run on the first source behaves
> as I expect - i.e. the second run returns
> much lower values for noise(i) and scut(i).
> 
> I'm wondering if the flags for the
> second sources are not
> actually making it into the output
> flag table ( if it is specified, as opposed
> to being set to zero and therefore
> creating a new table).  I had
> thought they would be added into
> the flag table created with the first source, but
> now I'm wondering if I have misinterpreted
> what is happening.
> 
> Do I always need to create a new flag
> table to capture the the newly created
> flags?  And if I create a new flag table,
> using only some of the sources, does
> it carry along the flags for all sources?
> 
> Thanks for any insight you can provide,
> -s-
> 
> _______________________________________________
> Daip mailing list
> Daip at listmgr.cv.nrao.edu
> http://listmgr.cv.nrao.edu/mailman/listinfo/daip
> 




More information about the Daip mailing list