La secuencia de pasos del pipeline heuristíco están enlistados en el script 'casa_pipescript.py' que esta localizazon en el directorio del pipeline -YYYYMMDDTHHMMSSS/html (donde YYYYMMDDTHHMMSSS es la fecha de ejecución). Un 'casa_pipescript.py' típico tiene la siguiente estructura (donde mySDM tambien es un marcador para el nombre SDM-BDF de los datos sin procesar y tendrán el nombre del que se procesó):
__rethrow_casa_exceptions = True
context = h_init()
context.set_state('ProjectSummary', 'observatory', 'Karl G. Jansky Very Large Array')
context.set_state('ProjectSummary', 'telescope', 'EVLA')
try:
hifv_importdata(ocorr_mode='co', nocopy=False, vis=['mySDM'], \
createmms='automatic', asis='Receiver CalAtmosphere', \
overwrite=False)
hifv_hanning(pipelinemode="automatic")
hifv_flagdata(intents='*POINTING*,*FOCUS*,*ATMOSPHERE*,*SIDEBAND_RATIO*, \
*UNKNOWN*, *SYSTEM_CONFIGURATION*, *UNSPECIFIED#UNSPECIFIED*', \
flagbackup=False, scan=True, baseband=True, clip=True, autocorr=True, \
hm_tbuff='1.5int', template=True, online=True, tbuff=0.0, \
fracspw=0.05, hhadow=True, quack=True, edgespw=True)
hifv_vlasetjy(fluxdensity=-1, scalebychan=True, reffreq='1GHz', spix=0)
hifv_priorcals(tecmaps=False)
hifv_testBPdcals(weakbp=False)
hifv_flagbaddef(pipelinemode="automatic")
hifv_checkflag(pipelinemode="automatic")
hifv_semiFinalBPdcals(weakbp=False)
hifv_checkflag(checkflagmode='semi')
hifv_semiFinalBPdcals(weakbp=False)
hifv_solint(pipelinemode="automatic")
hifv_fluxboot(pipelinemode="automatic")
hifv_finalcals(weakbp=False)
hifv_applycals(flagdetailedsum=True, flagbackup=True, calwt=[True], \
flagsum=True, gainmap=False)
hifv_targetflag(intents='*CALIBRATE*,*TARGET*')
hifv_statwt(pipelinemode="automatic")
hifv_plotsummary(pipelinemode="automatic")
hif_makeimlist(nchan=-1, calmaxpix=300, intent='PHASE,BANDPASS')
hif_makeimages(tlimit=2.0, hm_negativethreshold=-999.0, \
subcontms=False, hm_masking='none', masklimit=4, \
maxncleans=1, hm_growiterations=-999, cleancontranges=False, \
noise='1.0Jy', hm_minbeamfrac=-999.0, target_list={}, robust=-999.0, \
parallel='automatic', weighting='briggs', hm_noisethreshold=-999.0, \
hm_lownoisethreshold=-999.0, npixels=0, hm_sidelobethreshold=-999.0)
finally:
h_save()
(Notar que las ejecuciones en el NRAO pueden mostrar pequeñas diferencias, es decir, un paso final extra hifv_exportdata empaqueta los productos que serán guardados en el archivo del NRAO).
Lo anterior es de hecho un archivo de un usuario estándar para las versiones actuales de CASA y pipeline (descargar para que lo edites y ejecutes tu mismo) que se pueden usar para procesos generales de pipeline después de insertar el nombre correcto del archivo mySDM en hifv_importdata.
La ejecución del pipeline puede ser modificada adaptando este script para comentar pasos individuales o para proporcionar diferentes parámetros (ver CASA help para los parámetros de cada tarea). El script entonces puede volverse a ejecutar via:
# En CASA
execfile('casa_pipescript.py')
Se usará este método más tarde para un ejemplo donde se modificará el script para spectral line processing.
Modificaciones generales al script incluyen la configuración '__rethrow_casa_exceptions = False' para borrar los mensajes de error de CASA en blog y 'h_init(weblog=False)' para procesos más rápidos sin blogs o gráficas.
The pipeline sequence of the pipeline heuristic steps are listed in the 'casa_pipescript.py' script that is located in the pipeline-YYYYMMDDTHHMMSSS/html (where YYYYMMDDTHHMMSSS is the timestamp of the execution) directory. A typical 'casa_pipescript.py' has the following structure (where mySDM is again a placeholder for the name of the SDM-BDF raw data file and will have the name of the one that was processed):
(Note that executions at NRAO may show small differences, e.g., an additional final hifv_exportdata step that packages the products to be stored in the NRAO archive.)
The above is, in fact, a standard user 'casa_pipescript.py' file for the current CASA and pipeline version (download to edit and run yourself) that can be used for general pipeline processing after inserting the correct mySDM filename in hifv_importdata.
The pipeline run can be modified by adapting this script to comment out individual steps, or by providing different parameters (see the CASA help for the parameters of each task). The script can then be (re-)executed via:
We will use this method later for an example where we modify the script for spectral line processing.
General modifications to the script include setting '__rethrow_casa_exceptions = False' to suppress CASA error messages in the weblog and 'h_init(weblog=False)' for faster processing without any weblog or plotting.