! Started logfile: 1200+045_S.log on Tue Mar 27 19:41:49 2007
observe 1200+045_S.edt
! Reading UV FITS file: 1200+045_S.edt
! AN table 1: 129 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.403913 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1200+045
! 
! 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  2.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1268 lines of history.
! 
! Reading 21884 visibilities.
![@gonzo7-0.4 1200+045_S]
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.4
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.400x0.400 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 693 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 693 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 693 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 693 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.549041Jy  sigma=0.006257
! Fit after  self-cal, rms=0.549023Jy  sigma=0.006257
! 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=2.797 mas, bmaj=11.57 mas, bpa=-16.29 degrees
! Estimated noise=696.477 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.37419 Jy
! Total flux subtracted in 50 components = 0.37419 Jy
! Clean residual min=-0.050841 max=0.125611 Jy/beam
! Clean residual mean=0.000735 rms=0.015968 Jy/beam
! Combined flux in latest and established models = 0.37419 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.37419 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.338209Jy  sigma=0.003927
! Fit after  self-cal, rms=0.338236Jy  sigma=0.003927
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.133173 Jy
! Total flux subtracted in 50 components = 0.133173 Jy
! Clean residual min=-0.038240 max=0.062938 Jy/beam
! Clean residual mean=0.000575 rms=0.011712 Jy/beam
! Combined flux in latest and established models = 0.507363 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 17 components and 0.507363 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.273467Jy  sigma=0.003098
! Fit after  self-cal, rms=0.273231Jy  sigma=0.003095
! 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=3.294 mas, bmaj=12.42 mas, bpa=-15.29 degrees
! Estimated noise=414.366 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.132095 Jy
! Component: 100  -  total flux cleaned = 0.210055 Jy
! Total flux subtracted in 100 components = 0.210055 Jy
! Clean residual min=-0.034219 max=0.074452 Jy/beam
! Clean residual mean=0.002558 rms=0.013586 Jy/beam
! Combined flux in latest and established models = 0.717418 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 56 model components to the UV plane model.
! The established model now contains 69 components and 0.717418 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.205646Jy  sigma=0.002278
! Fit after  self-cal, rms=0.205196Jy  sigma=0.002273
! 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 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.10     HN        1.03     KB        1.00*    
!   KP        0.76     LA        0.98     MK        0.99     NL        1.11     
!   NY        1.00*    OV        1.07     PT        0.94     SV        1.00*    
!   WF        0.97     WZ        1.00*    TC        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        0.97     HN        1.02     KB        1.00*    
!   KP        0.84     LA        0.86     MK        0.92     NL        1.05     
!   NY        1.00*    OV        0.98     PT        0.84     SV        1.00*    
!   WF        1.01     WZ        1.00*    TC        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.11     FD        1.02     HN        1.09     KB        1.00*    
!   KP        0.80     LA        0.72     MK        0.98     NL        1.10     
!   NY        1.00*    OV        1.06     PT        0.88     SV        1.00*    
!   WF        1.00     WZ        1.00*    TC        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.02     HN        1.11     KB        1.00*    
!   KP        0.83     LA        0.72     MK        1.03     NL        1.09     
!   NY        1.00*    OV        1.03     PT        0.87     SV        1.00*    
!   WF        1.03     WZ        1.00*    TC        1.00*    
! 
! 
! Fit before self-cal, rms=0.205196Jy  sigma=0.002273
! Fit after  self-cal, rms=0.160949Jy  sigma=0.001884
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.356 mas, bmaj=12.78 mas, bpa=-15.47 degrees
! Estimated noise=388.615 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 (14.4, -0.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0561236 Jy
! Component: 100  -  total flux cleaned = 0.0855316 Jy
! Total flux subtracted in 100 components = 0.0855316 Jy
! Clean residual min=-0.014447 max=0.042795 Jy/beam
! Clean residual mean=0.002078 rms=0.005470 Jy/beam
! Combined flux in latest and established models = 0.80295 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 34 model components to the UV plane model.
! The established model now contains 102 components and 0.80295 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.142801Jy  sigma=0.001615
! Fit after  self-cal, rms=0.142234Jy  sigma=0.001609
! Inverting map 
! Added new window around map position (62.8, -15.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0357847 Jy
! Component: 100  -  total flux cleaned = 0.0569538 Jy
! Total flux subtracted in 100 components = 0.0569538 Jy
! Clean residual min=-0.013235 max=0.022019 Jy/beam
! Clean residual mean=0.001690 rms=0.004016 Jy/beam
! Combined flux in latest and established models = 0.859904 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 120 components and 0.859903 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.132523Jy  sigma=0.001484
! Fit after  self-cal, rms=0.132050Jy  sigma=0.001478
! 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)
! Added new window around map position (5.6, -2.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0217854 Jy
! Component: 100  -  total flux cleaned = 0.0366675 Jy
! Total flux subtracted in 100 components = 0.0366675 Jy
! Clean residual min=-0.010655 max=0.016306 Jy/beam
! Clean residual mean=0.001404 rms=0.003331 Jy/beam
! Combined flux in latest and established models = 0.896571 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 26 model components to the UV plane model.
! The established model now contains 143 components and 0.896571 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.127731Jy  sigma=0.001430
! Fit after  self-cal, rms=0.113174Jy  sigma=0.001217
! Inverting map and beam 
! Estimated beam: bmin=3.379 mas, bmaj=12.67 mas, bpa=-15.31 degrees
! Estimated noise=383.494 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.0148958 Jy
! Component: 100  -  total flux cleaned = 0.0256372 Jy
! Total flux subtracted in 100 components = 0.0256372 Jy
! Clean residual min=-0.007573 max=0.009445 Jy/beam
! Clean residual mean=0.000822 rms=0.002138 Jy/beam
! Combined flux in latest and established models = 0.922208 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 24 model components to the UV plane model.
! The established model now contains 163 components and 0.922208 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.111007Jy  sigma=0.001186
! Fit after  self-cal, rms=0.110890Jy  sigma=0.001184
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1200+045_S
! Writing UV FITS file: 1200+045_S.uvf
! Writing 163 model components to file: 1200+045_S.mod
! wwins: Wrote 4 windows to 1200+045_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.379 x 12.67 at -15.31 degrees (North through East)
! Clean map  min=-0.0076758  max=0.49552 Jy/beam
! Writing clean map to FITS file: 1200+045_S.fits
! Writing difmap environment to: 1200+045_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1200+045_S]
device 1200+045_Suv.ps/vps,1,2
! Attempting to open device: '1200+045_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1200+045_Sim.ps/vps
! Attempting to open device: '1200+045_Sim.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=3.379 mas, bmaj=12.67 mas, bpa=-15.31 degrees
! Estimated noise=383.494 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.379 x 12.67 at -15.31 degrees (North through East)
! Clean map  min=-0.0076758  max=0.49552 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.4]
quit
! Quitting program
! Log file 1200+045_S.log closed on Tue Mar 27 19:42:09 2007