! Started logfile: 1520+319_X.log on Tue Aug  7 10:18:27 2007
observe 1520+319_X.edt
! Reading UV FITS file: 1520+319_X.edt
! AN table 1: 47 integrations on 105 of 105 possible baselines.
! AN table 2: 15 integrations on 105 of 105 possible baselines.
! AN table 3: 65 integrations on 105 of 105 possible baselines.
! AN table 4: 7 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.0929638 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1520+319
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1066 lines of history.
! 
! Reading 5232 visibilities.
![@gonzo7-0.1 1520+319_X]
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.1
integer clean_niter
clean_niter = 50
float clean_gain
clean_gain = 0.03
float dynam
dynam = 7.0
float win_mult
win_mult = 1.8
float solint
solint = 3.6/6.0
logical doflt
doflt = true
logical doamp
float new_peak
float flux_cutoff
mapsize field_size,field_cell
! Map grid = 1024x1024 pixels with 0.100x0.100 milli-arcsec cellsize.
select
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 631 telescope corrections were flagged in sub-array 1.
!  A total of 105 telescope corrections were flagged in sub-array 2.
!  A total of 744 telescope corrections were flagged in sub-array 3.
!  A total of 93 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 634 telescope corrections were flagged in sub-array 1.
!  A total of 102 telescope corrections were flagged in sub-array 2.
!  A total of 755 telescope corrections were flagged in sub-array 3.
!  A total of 93 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 631 telescope corrections were flagged in sub-array 1.
!  A total of 102 telescope corrections were flagged in sub-array 2.
!  A total of 763 telescope corrections were flagged in sub-array 3.
!  A total of 93 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 646 telescope corrections were flagged in sub-array 1.
!  A total of 102 telescope corrections were flagged in sub-array 2.
!  A total of 758 telescope corrections were flagged in sub-array 3.
!  A total of 96 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.654391Jy  sigma=0.008780
! Fit after  self-cal, rms=0.640055Jy  sigma=0.008779
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvweight 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.6151 mas, bmaj=1.043 mas, bpa=-0.5516 degrees
! Estimated noise=1163.57 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.275649 Jy
! Total flux subtracted in 50 components = 0.275649 Jy
! Clean residual min=-0.013986 max=0.076881 Jy/beam
! Clean residual mean=-0.000176 rms=0.004626 Jy/beam
! Combined flux in latest and established models = 0.275649 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 0.275649 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.140754Jy  sigma=0.001884
! Fit after  self-cal, rms=0.140754Jy  sigma=0.001884
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0692346 Jy
! Total flux subtracted in 50 components = 0.0692346 Jy
! Clean residual min=-0.008716 max=0.026748 Jy/beam
! Clean residual mean=-0.000104 rms=0.002472 Jy/beam
! Combined flux in latest and established models = 0.344883 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.344883 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.105549Jy  sigma=0.001318
! Fit after  self-cal, rms=0.105464Jy  sigma=0.001318
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0268566 Jy
! Total flux subtracted in 50 components = 0.0268566 Jy
! Clean residual min=-0.007515 max=0.011485 Jy/beam
! Clean residual mean=-0.000076 rms=0.001939 Jy/beam
! Combined flux in latest and established models = 0.37174 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 16 components and 0.37174 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.098272Jy  sigma=0.001191
! Fit after  self-cal, rms=0.098216Jy  sigma=0.001190
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Uniform Weighting CLEAN ***"
! *** Finished Uniform Weighting CLEAN *** 
print "****************************************"
! **************************************** 
uvweight 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
win_mult = win_mult * 1.6
clean_niter = clean_niter * 2
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.7613 mas, bmaj=1.242 mas, bpa=-5.108 degrees
! Estimated noise=756.594 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0206824 Jy
! Component: 100  -  total flux cleaned = 0.0305871 Jy
! Total flux subtracted in 100 components = 0.0305871 Jy
! Clean residual min=-0.004824 max=0.011190 Jy/beam
! Clean residual mean=0.000014 rms=0.001538 Jy/beam
! Combined flux in latest and established models = 0.402327 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 35 components and 0.402327 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.094646Jy  sigma=0.001125
! Fit after  self-cal, rms=0.094624Jy  sigma=0.001125
! Inverting map 
! Added new window around map position (1, 1.7).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0102709 Jy
! Component: 100  -  total flux cleaned = 0.0155783 Jy
! Total flux subtracted in 100 components = 0.0155783 Jy
! Clean residual min=-0.004672 max=0.006394 Jy/beam
! Clean residual mean=-0.000040 rms=0.001240 Jy/beam
! Combined flux in latest and established models = 0.417906 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 55 components and 0.417906 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.093561Jy  sigma=0.001109
! Fit after  self-cal, rms=0.093458Jy  sigma=0.001107
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.07     FD        1.00     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        0.96     
!   MK        1.00*    NL        1.05     NY        1.00*    OV        1.00*    
!   PT        1.03     SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.01     HH        1.00*    HN        1.00     
!   KB        1.01     KK        0.93     KP        0.99     LA        1.00     
!   MK        1.00     NL        1.01     NY        1.00*    OV        0.95     
!   PT        0.94     SC        0.98     WZ        1.00*    
! 
!  A total of 57 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.98     HH        1.08     HN        1.00*    
!   KB        1.15     KK        0.94     KP        0.99     LA        1.04     
!   MK        1.01     NL        1.05     NY        0.91     OV        0.99     
!   PT        0.99     SC        1.00     WZ        0.93     
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    HH        0.00*    HN        0.00*    
!   KB        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.02     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        0.99     
!   MK        1.00*    NL        0.99     NY        1.00*    OV        1.00*    
!   PT        1.01     SC        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.02     HH        1.00*    HN        1.02     
!   KB        1.01     KK        0.95     KP        0.98     LA        0.97     
!   MK        1.07     NL        1.04     NY        1.00*    OV        0.92     
!   PT        0.97     SC        1.00     WZ        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        0.99     HH        0.99     HN        1.00*    
!   KB        1.10     KK        0.95     KP        0.97     LA        1.02     
!   MK        1.00     NL        1.04     NY        1.03     OV        0.97     
!   PT        1.00     SC        0.97     WZ        0.84     
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    HH        0.00*    HN        0.00*    
!   KB        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.11     FD        1.00     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        0.97     
!   MK        1.00*    NL        1.06     NY        1.00*    OV        1.00*    
!   PT        0.96     SC        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.02     HH        1.00*    HN        1.00     
!   KB        1.00     KK        0.92     KP        1.00     LA        0.96     
!   MK        1.04     NL        1.03     NY        1.00*    OV        0.96     
!   PT        0.98     SC        1.04     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.02     HH        1.10     HN        1.00*    
!   KB        0.95     KK        0.92     KP        0.99     LA        1.02     
!   MK        1.03     NL        1.06     NY        1.11     OV        0.99     
!   PT        1.01     SC        0.98     WZ        0.80     
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    HH        0.00*    HN        0.00*    
!   KB        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.99     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        0.95     
!   MK        1.00*    NL        1.04     NY        1.00*    OV        1.00*    
!   PT        1.10     SC        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.03     HH        1.00*    HN        1.04     
!   KB        1.05     KK        0.97     KP        0.97     LA        0.98     
!   MK        1.03     NL        1.05     NY        1.00*    OV        0.97     
!   PT        0.97     SC        1.03     WZ        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.02     HH        1.18     HN        1.00*    
!   KB        0.91     KK        0.95     KP        0.99     LA        1.01     
!   MK        1.03     NL        1.06     NY        0.99     OV        0.98     
!   PT        0.99     SC        0.94     WZ        0.85     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    HH        0.00*    HN        0.00*    
!   KB        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
! 
! Fit before self-cal, rms=0.093458Jy  sigma=0.001107
! Fit after  self-cal, rms=0.089771Jy  sigma=0.001083
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.7524 mas, bmaj=1.295 mas, bpa=-4.492 degrees
! Estimated noise=763.953 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00256512 Jy
! Component: 100  -  total flux cleaned = 0.00316807 Jy
! Total flux subtracted in 100 components = 0.00316807 Jy
! Clean residual min=-0.003674 max=0.003576 Jy/beam
! Clean residual mean=-0.000028 rms=0.000864 Jy/beam
! Combined flux in latest and established models = 0.421074 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 65 components and 0.421074 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.089682Jy  sigma=0.001082
! Fit after  self-cal, rms=0.089703Jy  sigma=0.001082
! Inverting map 
dynam = dynam - 1.0
doamp = true
solint = solint * (6.0/3.6)
flux_cutoff = imstat(rms) * dynam
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000413151 Jy
! Component: 100  -  total flux cleaned = 0.000513178 Jy
! Total flux subtracted in 100 components = 0.000513178 Jy
! Clean residual min=-0.003692 max=0.003475 Jy/beam
! Clean residual mean=-0.000030 rms=0.000859 Jy/beam
! Combined flux in latest and established models = 0.421587 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 69 components and 0.421587 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.089668Jy  sigma=0.001082
! Fit after  self-cal, rms=0.089028Jy  sigma=0.001070
! Inverting map and beam 
! Estimated beam: bmin=0.7516 mas, bmaj=1.293 mas, bpa=-4.558 degrees
! Estimated noise=765.446 mJy/beam.
doamp = false
solint = solint / (6.0/3.6)
flux_cutoff = imstat(rms) * dynam
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00188213 Jy
! Component: 100  -  total flux cleaned = 0.00256886 Jy
! Total flux subtracted in 100 components = 0.00256886 Jy
! Clean residual min=-0.003335 max=0.003155 Jy/beam
! Clean residual mean=-0.000023 rms=0.000818 Jy/beam
! Combined flux in latest and established models = 0.424156 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 72 components and 0.424156 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.088980Jy  sigma=0.001069
! Fit after  self-cal, rms=0.088987Jy  sigma=0.001069
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1520+319_X
! Writing UV FITS file: 1520+319_X.uvf
! Writing 72 model components to file: 1520+319_X.mod
! wwins: Wrote 2 windows to 1520+319_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7516 x 1.293 at -4.558 degrees (North through East)
! Clean map  min=-0.0032578  max=0.35831 Jy/beam
! Writing clean map to FITS file: 1520+319_X.fits
! Writing difmap environment to: 1520+319_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1520+319_X]
device 1520+319_Xuv.ps/vps,1,2
! Attempting to open device: '1520+319_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1520+319_Xim.ps/vps
! Attempting to open device: '1520+319_Xim.ps/vps'
uvweight 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
loglevs -1,2048,2
! The new contour levels are:
!  -1 1 2 4 8 16 32 64 128 256 512 1024 2048
cmul = imstat(rms)*3
! Inverting map and beam 
! Estimated beam: bmin=0.7516 mas, bmaj=1.293 mas, bpa=-4.558 degrees
! Estimated noise=765.446 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7516 x 1.293 at -4.558 degrees (North through East)
! Clean map  min=-0.0032578  max=0.35831 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.1]
quit
! Quitting program
! Log file 1520+319_X.log closed on Tue Aug  7 10:18:47 2007