Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1488
News FAQ
Search Home


next up previous contents index
Next: dish.galactic - Function Up: dish - Tool Previous: dish.find - Function


dish.flag - Function



Package dish
Module dish
Tool dish


Flag data based on various specifications.


Synopsis
flag(scan, ints, polarization, channel, flag)


Description
This function allows a simple non-GUI means of flagging data; the viewer and msplot allow GUI flagging of data. If no scan is specified, it will flag all scans in the data according to the other parameters (e.g., all channels within a range can be flagged in this way). If no integration is specified, it will flag all integrations. If no polarization is specified, it will flag all polarizations. If no channel is specified, it will flag all channels. If you wish to unflag data, use flag=F.



Arguments

scan   scan number(s) to flag
    Allowed: integer or vector of ints
    Default: F
ints   integration number
    Allowed: integer or vector of ints
    Default: F
polarization   polarization number(s) to flag
    Allowed: integer or vector of ints
    Default: F
channel   channel (range) to flag
    Allowed: integer or vector of ints
    Default: F
flag   flag (T) or unflag (F)
    Allowed: boolean
    Default: T


Returns
T (if successful)


Example
d.open('stjul13SP');
d.gms();
d.plotc(36)
d.flag(36,channel=100:120)      #flag all subscans, polarizations of scan 
                                #36 in the channel range of 100:120
d.plotc(36)                     #you should see the range masked
d.flag(36,flag=F);              #unset all flagging
d.plotc(36)                     #it's back!
d.flag(36,channel=500:550,polarization=1)
d.plotc(36)                     #you should see a gap just in the first 
                                #polarization
d.flag(36,flag=F);
d.flag(36,1)                    #flag just the first integration
d.plotc(36)                     #should look okay though it doesn't 
                                #include the first integration
d.plotc(36,1)                   #masked
d.plotc(36,2)                   #okay





next up previous contents index
Next: dish.galactic - Function Up: dish - Tool Previous: dish.find - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-08-01