Download Analysis Cookbook - CASA

Transcript
APPENDIX F. APPENDIX: ANNOTATED EXAMPLE SCRIPTS
#
#
#
#
#
#
#
Flux
4.592
Med |Dev|
0.003239
IntQtlRng
0.007120
Median
0.0001329
Min
-0.01396
Max
1.060
Estimated dynamic range = 1.060 / 0.003927 = 270 (poor)
Note that the exact numbers you get will depend on how deep you
take the interactive clean and how you draw the box for the stats.
#=====================================================================
#
# Do some non-interactive image statistics
print ’--Imstat--’
default(’imstat’)
imagename = clnimage1
on_statistics1 = imstat()
# Now do stats in the lower right corner of the image
# remember clnimsize = [288,288]
box = ’216,1,287,72’
off_statistics1 = imstat()
# Pull the max and rms from the clean image
thistest_immax=on_statistics1[’max’][0]
print ’ Found : Max in image = ’,thistest_immax
thistest_imrms=off_statistics1[’rms’][0]
print ’ Found : rms in image = ’,thistest_imrms
print ’ Clean image Dynamic Range = ’,thistest_immax/thistest_imrms
print ’’
#
#--------------------------------------------------------------------#
# Self-cal using clean model
#
# Note: clean will have left FT of model in the MODEL_DATA column
# If you’ve done something in between, can use the ft task to
# do this manually.
#
print ’--SelfCal 1--’
default(’gaincal’)
vis = srcsplitms
print "Will self-cal using MODEL_DATA left in MS by clean"
# New gain table
caltable = selfcaltab1
print "Will write gain table "+selfcaltab1
# Don’t need a-priori cals
443