Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

and calling execfile again.

NOTE: the The order in which you enumerate the steps in the mysteps variable does not matter. The steps will always be executed in the order given in the script.
           If you don't set mysteps, running the script will execute all steps from 0 to the last.

NOTE 2: Important: some steps will not only produce plots and caltables but also apply flagging! If you need to modify these steps and re-run them, you need to revert the flagging first!
     For this purpose, the calibration script includes calls to the flagmanager task to save the state of flags before they are modified.
     You can revert to the previous flagging state by running the flagmanager task in mode "restore" and providing the  corresponding versionname which you can find in the calibration script.


The CSG is somewhat computing intensive. The execution time depends on the size of the input dataset and can take several 10 minutes.

...

to obtain the following help (status version 2.3, 2023/02/01):

Code Block
Help on function generateReducScript in module almaqa2csg:

...



generateReducScript(msNames='', step='calib', corrAntPos=True, timeBinForFinalData=0.0, refant='', bpassCalId='', chanWid=1, angScale=0, run=False, lowSNR=False, projectCode='', schedblockName='', schedblockUid='', queue='',

...

 state='', upToTimeForState=2, useLocalAlmaHelper=

...

True, tsysChanTol=1, sdQSOflux=1, runPhaseClosure=False, skipSyscalChecks=False, lazy=False, lbc=False, 

...

remcloud=False, bdfflags=True

...

, tsysPerField=False, splitMyScienceSpw=True, bpassCalTableName='', reindexMyScienceSpw=False, useCalibratorService=True, calibratorServiceURL=None, allowHybrid=False, combineB2BLFspws=False

...

, includeRenorm=True)

    The ALMA QA2 calibration script generator

...


    
    msNames: a string or a list of strings of UIDs (either ASDM or MS) to process 

...


             NOTE: rigorous regression testing is presently only done on single UIDs, not lists

...


              default=''

...


    step:    calib, fluxcal, wvr, calsurvey, SDeff, SDcalibLine, SDcalibCont, SDscience, SDampcal

...


              default='calib'

...


    corrAntPos: if True, then run correctMyAntennaPositions

...


              default=True

...


    timeBinForFinalData: a value in seconds (string, int, or float), passed to split

...


              default=0.

...


    refant:  the reference antenna to use (instead of automatic selection), must be a string

...


              default='', i.e. determine automatically

...


    bpassCalId: use the specified source for bandpass (rather than determine from the intents)

...


              default='', i.e. determine from the intents

...


    chanWid: integer, used by runCleanOnSource and searchForLines

...


              default=1

...


    angScale: deprecated

...


    
    run:     deprecated

...


    
    lowSNR:  Boolean passed to doBandpassCalibration to use whole spw for pre-bandpass phase-up

...


              default=False

...


    projectCode, schedblockName, queue, state, upToTimeForState: deprecated

...


    
    useLocalAlmaHelper: if True, run tsysspwmap inside generator, rather than in the resulting script

...


              default=

...

True
    tsysChanTol: integer argument passed to tsysspwmap

...


              default=1

...


    sdQSOflux: flux density to use for quasar in single dish case (step='SDeff')

...


              default=1

...


    runPhaseClosure: deprecated

...


    
    skipSyscalChecks: if True, then don't check for negative Tsys problems

...


              default=False

...


    lazy: value of the 'lazy' parameter in importasdm. If True, reference the ASDM instead

...


            of copying the visibilities into the DATA column of the MS. Saves disk space.

...


     

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 default=False
    

...

lbc:    if True, 

...

 in bandpass calibration, use solint='inf,8MHz' instead of 'inf,20ch'

...


              default=False

...


    remcloud: if True, 

...

run the recipe remove_cloud prior to running wvrgcal

...


              default=False

...


    bdfflags: passed to importasdm to invoke the application of BDF flags

...


              default=True

...


    bpassCalTableName: to use instead of default name

...


              default='', i.e. use the bp table created for bpassCalId with the standard naming

...


    phaseDiff: deprecated (BWSW and B2B modes are recognized automatically)
    
    tsysPerField: passed to the perField parameter of tsysspwmap
          default=False
    splitMyScienceSpw: In the final split-out, only include the SPWs corresponding to intent OBSERVE_TARGET
             

...

 

...

and 

...

BANDPASS.
              default=

...

True
    reindexMyScienceSpw: perform reindexing in the 

...

split 

...

out 

...

after the 

...

apriori calibration.
             

...

 default=False

...


   

...

 

...

useCalibratorService: 

...

if 

...

True, 

...

then, 

...

in the 

...

call to aU.getALMAFluxForMS in the setjy step, use
          

...

 

...

 

...

 

...

 aU.calibratorService(), otherwise use aU.getALMAFlux()
              default=

...

True
    calibratorServiceURL: the URL to pass to aU.calibratorService() if useCalibratorService==True
              default

...

: 

...

None - use the

...

 default of calibratorServiceURL in aU.getALMAFluxForMS()
    allowHybrid: if False, only 

...

the antennas of the

...

 dominant (most often occuring) antenna diameter are split out.
          

...

 

...

    If 

...

True

...

, 

...

all 

...

antennas 

...

are 

...

split out

...

. 
              default=False

...


    combineB2BLFspws: if True, 

...

and 

...

if the dataset 

...

uses band-to

...

-band phase transfer, then combine the LF SPWs
               

...

in gaincal and use appropriate 

...

spwmaps.
              default=False
    includeRenorm: if True, a step is added in the calibration script to perform renormalization
              default=True



Feedback, bug reports, feature requests

...