! Started logfile: 0300+470_S.log on Mon Oct 30 08:18:07 2006
observe 0300+470_S.edt
! Reading UV FITS file: 0300+470_S.edt
! AN table 1: 55 integrations on 136 of 136 possible baselines.
! AN table 2: 25 integrations on 136 of 136 possible baselines.
! AN table 3: 38 integrations on 136 of 136 possible baselines.
! AN table 4: 22 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.0963761 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0300+470
! Warning: Unknown AN-table MNTSTA value (4).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (4).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (4).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (4).
!          Will assume that it is ground-based.
! 
! 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 1577 lines of history.
! 
! Reading 7340 visibilities.
![@gonzo7-0.4 0300+470_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 713 telescope corrections were flagged in sub-array 1.
!  A total of 364 telescope corrections were flagged in sub-array 2.
!  A total of 519 telescope corrections were flagged in sub-array 3.
!  A total of 222 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 713 telescope corrections were flagged in sub-array 1.
!  A total of 364 telescope corrections were flagged in sub-array 2.
!  A total of 519 telescope corrections were flagged in sub-array 3.
!  A total of 222 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 713 telescope corrections were flagged in sub-array 1.
!  A total of 364 telescope corrections were flagged in sub-array 2.
!  A total of 519 telescope corrections were flagged in sub-array 3.
!  A total of 222 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 719 telescope corrections were flagged in sub-array 1.
!  A total of 364 telescope corrections were flagged in sub-array 2.
!  A total of 519 telescope corrections were flagged in sub-array 3.
!  A total of 222 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.512579Jy  sigma=0.004992
! Fit after  self-cal, rms=0.495751Jy  sigma=0.004918
! 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.037 mas, bmaj=3.12 mas, bpa=-27.75 degrees
! Estimated noise=1270.66 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.409643 Jy
! Total flux subtracted in 50 components = 0.409643 Jy
! Clean residual min=-0.023772 max=0.114565 Jy/beam
! Clean residual mean=-0.000187 rms=0.008005 Jy/beam
! Combined flux in latest and established models = 0.409643 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 2 model components to the UV plane model.
! The established model now contains 2 components and 0.409643 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.287115Jy  sigma=0.002970
! Fit after  self-cal, rms=0.287105Jy  sigma=0.002970
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.110615 Jy
! Total flux subtracted in 50 components = 0.110615 Jy
! Clean residual min=-0.019821 max=0.051961 Jy/beam
! Clean residual mean=-0.000155 rms=0.006050 Jy/beam
! Combined flux in latest and established models = 0.520258 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 21 model components to the UV plane model.
! The established model now contains 21 components and 0.520258 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.240606Jy  sigma=0.002381
! Fit after  self-cal, rms=0.240516Jy  sigma=0.002381
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0635243 Jy
! Total flux subtracted in 50 components = 0.0635243 Jy
! Clean residual min=-0.019871 max=0.033671 Jy/beam
! Clean residual mean=-0.000138 rms=0.005289 Jy/beam
! Combined flux in latest and established models = 0.583782 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 33 components and 0.583782 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222860Jy  sigma=0.002139
! Fit after  self-cal, rms=0.222720Jy  sigma=0.002138
! 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=2.435 mas, bmaj=3.827 mas, bpa=-26.98 degrees
! Estimated noise=844.867 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.0677406 Jy
! Component: 100  -  total flux cleaned = 0.106134 Jy
! Total flux subtracted in 100 components = 0.106134 Jy
! Clean residual min=-0.023283 max=0.032371 Jy/beam
! Clean residual mean=-0.000945 rms=0.006494 Jy/beam
! Combined flux in latest and established models = 0.689916 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 33 model components to the UV plane model.
! The established model now contains 54 components and 0.689916 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206227Jy  sigma=0.001895
! Fit after  self-cal, rms=0.205996Jy  sigma=0.001893
! 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 69 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.51     FD        0.97     HN        1.77     HO        1.00*    
!   KP        1.00*    LA        1.04     MK        1.00*    NL        0.99     
!   NY        1.26     OV        1.03     PT        1.00     MC        0.95     
!   SC        1.02     SV        0.90     TC        1.00*    WF        1.05     
!   WZ        0.92     
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    HN        0.87     HO        1.00*    
!   KP        1.00*    LA        1.00*    MK        1.00*    NL        1.00*    
!   NY        0.90     OV        1.00*    PT        1.00*    MC        0.89     
!   SC        1.00*    SV        0.88     TC        1.00*    WF        0.97     
!   WZ        0.93     
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.00*    HN        1.74     HO        1.00*    
!   KP        1.00*    LA        1.00*    MK        1.00*    NL        0.78     
!   NY        1.04     OV        1.00*    PT        1.00*    MC        1.07     
!   SC        0.91     SV        1.00     TC        1.00*    WF        0.99     
!   WZ        0.77     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.89     FD        0.70     HN        1.26     HO        1.00*    
!   KP        1.00*    LA        0.91     MK        1.19     NL        1.05     
!   NY        1.01     OV        0.83     PT        0.90     MC        1.00*    
!   SC        1.07     SV        0.97     TC        1.00*    WF        1.00*    
!   WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 69 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.94     HN        1.68     HO        1.00*    
!   KP        1.00*    LA        1.01     MK        1.00*    NL        1.00     
!   NY        1.27     OV        1.06     PT        1.05     MC        0.97     
!   SC        1.00     SV        0.94     TC        1.00*    WF        1.04     
!   WZ        0.91     
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    HN        0.99     HO        1.00*    
!   KP        1.00*    LA        1.00*    MK        1.00*    NL        1.00*    
!   NY        0.92     OV        1.00*    PT        1.00*    MC        0.91     
!   SC        1.00*    SV        0.93     TC        1.00*    WF        0.98     
!   WZ        0.92     
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.00*    HN        2.24     HO        1.00*    
!   KP        1.00*    LA        1.00*    MK        1.00*    NL        0.76     
!   NY        1.01     OV        1.00*    PT        1.00*    MC        1.06     
!   SC        0.88     SV        0.99     TC        1.00*    WF        1.01     
!   WZ        0.80     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.90     FD        0.74     HN        1.34     HO        1.00*    
!   KP        1.00*    LA        0.92     MK        0.93     NL        1.07     
!   NY        1.05     OV        0.86     PT        0.96     MC        1.00*    
!   SC        1.04     SV        1.01     TC        1.00*    WF        1.00*    
!   WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 69 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.08     FD        0.99     HN        1.46     HO        1.00*    
!   KP        1.00*    LA        0.95     MK        1.00*    NL        1.02     
!   NY        1.14     OV        1.06     PT        1.05     MC        1.21     
!   SC        0.98     SV        0.87     TC        1.00*    WF        1.02     
!   WZ        0.98     
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    HN        1.03     HO        1.00*    
!   KP        1.00*    LA        1.00*    MK        1.00*    NL        1.00*    
!   NY        1.00     OV        1.00*    PT        1.00*    MC        0.91     
!   SC        1.00*    SV        0.87     TC        1.00*    WF        1.03     
!   WZ        0.96     
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.00*    HN        1.72     HO        1.00*    
!   KP        1.00*    LA        1.00*    MK        1.00*    NL        0.79     
!   NY        1.00     OV        1.00*    PT        1.00*    MC        1.12     
!   SC        0.87     SV        1.01     TC        1.00*    WF        0.98     
!   WZ        0.85     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.86     FD        0.74     HN        1.06     HO        1.00*    
!   KP        1.00*    LA        0.86     MK        0.82     NL        1.06     
!   NY        1.13     OV        0.86     PT        0.93     MC        1.00*    
!   SC        1.06     SV        0.98     TC        1.00*    WF        1.00*    
!   WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 69 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.03     HN        1.00*    HO        1.00*    
!   KP        1.00*    LA        1.06     MK        1.00*    NL        0.99     
!   NY        1.19     OV        1.01     PT        0.97     MC        1.05     
!   SC        1.06     SV        0.92     TC        1.00*    WF        1.10     
!   WZ        0.95     
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    HN        0.92     HO        1.00*    
!   KP        1.00*    LA        1.00*    MK        1.00*    NL        1.00*    
!   NY        0.93     OV        1.00*    PT        1.00*    MC        1.08     
!   SC        1.00*    SV        0.79     TC        1.00*    WF        1.02     
!   WZ        0.92     
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        1.00*    HN        4.56     HO        1.00*    
!   KP        1.00*    LA        1.00*    MK        1.00*    NL        0.78     
!   NY        0.97     OV        1.00*    PT        1.00*    MC        1.17     
!   SC        0.91     SV        1.00     TC        1.00*    WF        1.36     
!   WZ        0.84     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.78     FD        0.73     HN        2.90     HO        1.00*    
!   KP        1.00*    LA        0.87     MK        0.77     NL        1.04     
!   NY        1.12     OV        0.83     PT        0.92     MC        1.00*    
!   SC        1.08     SV        1.11     TC        1.00*    WF        1.00*    
!   WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.205996Jy  sigma=0.001893
! Fit after  self-cal, rms=0.177008Jy  sigma=0.001223
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.446 mas, bmaj=3.858 mas, bpa=-27.39 degrees
! Estimated noise=835.463 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 (1.6, -5.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0113383 Jy
! Component: 100  -  total flux cleaned = 0.0133375 Jy
! Total flux subtracted in 100 components = 0.0133375 Jy
! Clean residual min=-0.006263 max=0.006713 Jy/beam
! Clean residual mean=0.000034 rms=0.001454 Jy/beam
! Combined flux in latest and established models = 0.703254 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 70 components and 0.703254 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.176234Jy  sigma=0.001212
! Fit after  self-cal, rms=0.176212Jy  sigma=0.001210
! 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.00140798 Jy
! Component: 100  -  total flux cleaned = 0.0022352 Jy
! Total flux subtracted in 100 components = 0.0022352 Jy
! Clean residual min=-0.005959 max=0.006445 Jy/beam
! Clean residual mean=0.000032 rms=0.001396 Jy/beam
! Combined flux in latest and established models = 0.705489 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 75 components and 0.705489 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.175872Jy  sigma=0.001205
! Fit after  self-cal, rms=0.178596Jy  sigma=0.001157
! Inverting map and beam 
! Estimated beam: bmin=2.461 mas, bmaj=3.848 mas, bpa=-27.7 degrees
! Estimated noise=839.182 mJy/beam.
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00429527 Jy
! Component: 100  -  total flux cleaned = 0.00651763 Jy
! Total flux subtracted in 100 components = 0.00651763 Jy
! Clean residual min=-0.004379 max=0.005152 Jy/beam
! Clean residual mean=0.000011 rms=0.001137 Jy/beam
! Combined flux in latest and established models = 0.712007 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 84 components and 0.712006 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.178294Jy  sigma=0.001152
! Fit after  self-cal, rms=0.176615Jy  sigma=0.001145
! Inverting map and beam 
! Estimated beam: bmin=2.458 mas, bmaj=3.844 mas, bpa=-27.8 degrees
! Estimated noise=838.174 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.0024724 Jy
! Component: 100  -  total flux cleaned = 0.00425815 Jy
! Total flux subtracted in 100 components = 0.00425815 Jy
! Clean residual min=-0.004258 max=0.004692 Jy/beam
! Clean residual mean=-0.000008 rms=0.001071 Jy/beam
! Combined flux in latest and established models = 0.716265 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 91 components and 0.716265 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.176429Jy  sigma=0.001142
! Fit after  self-cal, rms=0.176384Jy  sigma=0.001142
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0300+470_S
! Writing UV FITS file: 0300+470_S.uvf
! Writing 91 model components to file: 0300+470_S.mod
! wwins: Wrote 2 windows to 0300+470_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.458 x 3.844 at -27.8 degrees (North through East)
! Clean map  min=-0.0040368  max=0.542 Jy/beam
! Writing clean map to FITS file: 0300+470_S.fits
! Writing difmap environment to: 0300+470_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 0300+470_S]
device 0300+470_Suv.ps/vps,1,2
! Attempting to open device: '0300+470_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0300+470_Sim.ps/vps
! Attempting to open device: '0300+470_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=2.458 mas, bmaj=3.844 mas, bpa=-27.8 degrees
! Estimated noise=838.174 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.458 x 3.844 at -27.8 degrees (North through East)
! Clean map  min=-0.0040368  max=0.542 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.4]
quit
! Quitting program
! Log file 0300+470_S.log closed on Mon Oct 30 08:18:36 2006