! Started logfile: 1800+440_S.log on Thu Aug 14 09:18:47 2008
observe 1800+440_S.edt
! Reading UV FITS file: 1800+440_S.edt
! AN table 1: 64 integrations on 105 of 105 possible baselines.
! AN table 2: 42 integrations on 105 of 105 possible baselines.
! AN table 3: 33 integrations on 105 of 105 possible baselines.
! AN table 4: 51 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.0830075 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1800+440
! 
! 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 947 lines of history.
! 
! Reading 6624 visibilities.
![@gonzo7-0.4 1800+440_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 804 telescope corrections were flagged in sub-array 1.
!  A total of 532 telescope corrections were flagged in sub-array 2.
!  A total of 343 telescope corrections were flagged in sub-array 3.
!  A total of 595 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 801 telescope corrections were flagged in sub-array 1.
!  A total of 532 telescope corrections were flagged in sub-array 2.
!  A total of 343 telescope corrections were flagged in sub-array 3.
!  A total of 594 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 801 telescope corrections were flagged in sub-array 1.
!  A total of 532 telescope corrections were flagged in sub-array 2.
!  A total of 346 telescope corrections were flagged in sub-array 3.
!  A total of 576 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 804 telescope corrections were flagged in sub-array 1.
!  A total of 532 telescope corrections were flagged in sub-array 2.
!  A total of 343 telescope corrections were flagged in sub-array 3.
!  A total of 576 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.385058Jy  sigma=0.003078
! Fit after  self-cal, rms=0.318940Jy  sigma=0.002826
! 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.335 mas, bmaj=3.098 mas, bpa=9.412 degrees
! Estimated noise=1724.44 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.581519 Jy
! Total flux subtracted in 50 components = 0.581519 Jy
! Clean residual min=-0.039495 max=0.162202 Jy/beam
! Clean residual mean=0.000209 rms=0.010075 Jy/beam
! Combined flux in latest and established models = 0.581519 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.581519 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.287800Jy  sigma=0.002706
! Fit after  self-cal, rms=0.287800Jy  sigma=0.002706
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.12784 Jy
! Total flux subtracted in 50 components = 0.12784 Jy
! Clean residual min=-0.028707 max=0.041108 Jy/beam
! Clean residual mean=0.000112 rms=0.007019 Jy/beam
! Combined flux in latest and established models = 0.709359 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.709359 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.226809Jy  sigma=0.001997
! Fit after  self-cal, rms=0.226801Jy  sigma=0.001997
! 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.864 mas, bmaj=3.725 mas, bpa=6.67 degrees
! Estimated noise=980.155 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.0704945 Jy
! Component: 100  -  total flux cleaned = 0.105677 Jy
! Total flux subtracted in 100 components = 0.105677 Jy
! Clean residual min=-0.033591 max=0.033683 Jy/beam
! Clean residual mean=0.000073 rms=0.007218 Jy/beam
! Combined flux in latest and established models = 0.815036 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 29 model components to the UV plane model.
! The established model now contains 31 components and 0.815036 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.210136Jy  sigma=0.001755
! Fit after  self-cal, rms=0.210054Jy  sigma=0.001754
! 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 39 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.18     FD        1.07     HN        0.98     KB        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MK        1.00*    
!   NL        1.03     NY        1.08     OV        1.00*    PT        1.11     
!   SC        0.97     WZ        0.81     ZC        0.89     
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    HN        1.05     KB        0.85     
!   KK        1.00*    KP        1.00*    LA        1.00*    MK        1.00*    
!   NL        1.58     NY        1.39     OV        1.00*    PT        1.00*    
!   SC        1.00*    WZ        1.01     ZC        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        0.86     HN        0.86     KB        1.00*    
!   KK        1.02     KP        1.02     LA        1.00*    MK        1.02     
!   NL        1.14     NY        1.11     OV        0.97     PT        1.02     
!   SC        1.14     WZ        1.00*    ZC        1.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.05     FD        0.87     HN        1.16     KB        0.76     
!   KK        1.00*    KP        1.01     LA        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.34     OV        1.01     PT        1.02     
!   SC        0.80     WZ        0.83     ZC        0.89     
! 
! 
! Correcting IF 2.
!  A total of 42 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.14     FD        1.08     HN        1.02     KB        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MK        1.00*    
!   NL        1.04     NY        1.04     OV        1.00*    PT        1.05     
!   SC        0.99     WZ        0.91     ZC        0.82     
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    HN        1.02     KB        0.78     
!   KK        1.00*    KP        1.00*    LA        1.00*    MK        1.00*    
!   NL        1.63     NY        1.26     OV        1.00*    PT        1.00*    
!   SC        1.00*    WZ        0.93     ZC        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.89     HN        0.85     KB        1.00*    
!   KK        1.01     KP        0.99     LA        1.00*    MK        1.01     
!   NL        1.14     NY        1.12     OV        0.98     PT        1.06     
!   SC        1.02     WZ        1.00*    ZC        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        0.87     HN        0.77     KB        0.83     
!   KK        1.00*    KP        0.99     LA        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.37     OV        1.04     PT        1.07     
!   SC        0.83     WZ        0.91     ZC        0.78     
! 
! 
! Correcting IF 3.
!  A total of 42 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.12     FD        1.06     HN        1.01     KB        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MK        1.00*    
!   NL        1.01     NY        1.08     OV        1.00*    PT        1.04     
!   SC        1.17     WZ        0.85     ZC        0.87     
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    HN        0.76     KB        1.11     
!   KK        1.00*    KP        1.00*    LA        1.00*    MK        1.00*    
!   NL        1.41     NY        1.38     OV        1.00*    PT        1.00*    
!   SC        1.00*    WZ        1.03     ZC        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.82     HN        0.80     KB        1.00*    
!   KK        1.02     KP        0.91     LA        1.00*    MK        0.94     
!   NL        1.10     NY        1.13     OV        0.95     PT        1.03     
!   SC        1.76     WZ        1.00*    ZC        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.80     HN        0.88     KB        1.15     
!   KK        1.00*    KP        0.88     LA        1.00*    MK        1.00*    
!   NL        1.00*    NY        0.92     OV        1.02     PT        1.03     
!   SC        1.06     WZ        0.87     ZC        1.02     
! 
! 
! Correcting IF 4.
!  A total of 39 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.09     FD        1.05     HN        0.97     KB        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MK        1.00*    
!   NL        0.98     NY        0.99     OV        1.00*    PT        1.02     
!   SC        0.98     WZ        0.84     ZC        0.90     
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    HN        0.93     KB        1.70     
!   KK        1.00*    KP        1.00*    LA        1.00*    MK        1.00*    
!   NL        1.45     NY        1.33     OV        1.00*    PT        1.00*    
!   SC        1.00*    WZ        0.97     ZC        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.92     FD        0.79     HN        0.84     KB        1.00*    
!   KK        1.04     KP        0.91     LA        1.00*    MK        0.88     
!   NL        1.09     NY        1.10     OV        0.94     PT        1.00     
!   SC        1.01     WZ        1.00*    ZC        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.92     FD        0.75     HN        0.89     KB        1.67     
!   KK        1.00*    KP        0.89     LA        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.12     OV        1.00     PT        0.98     
!   SC        0.92     WZ        0.89     ZC        1.01     
! 
! 
! Fit before self-cal, rms=0.210054Jy  sigma=0.001754
! Fit after  self-cal, rms=0.161167Jy  sigma=0.001171
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.01 mas, bmaj=3.789 mas, bpa=5.934 degrees
! Estimated noise=979.742 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.000255386 Jy
! Component: 100  -  total flux cleaned = -0.000834218 Jy
! Total flux subtracted in 100 components = -0.000834218 Jy
! Clean residual min=-0.008399 max=0.012701 Jy/beam
! Clean residual mean=-0.000052 rms=0.002427 Jy/beam
! Combined flux in latest and established models = 0.814202 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 4 model components to the UV plane model.
! The established model now contains 35 components and 0.814202 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.161024Jy  sigma=0.001169
! Fit after  self-cal, rms=0.161086Jy  sigma=0.001169
! 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 (-9.2, -20.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0119537 Jy
! Component: 100  -  total flux cleaned = 0.0190326 Jy
! Total flux subtracted in 100 components = 0.0190326 Jy
! Clean residual min=-0.007515 max=0.011949 Jy/beam
! Clean residual mean=-0.000028 rms=0.002150 Jy/beam
! Combined flux in latest and established models = 0.833234 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 30 model components to the UV plane model.
! The established model now contains 65 components and 0.833234 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.160508Jy  sigma=0.001154
! Fit after  self-cal, rms=0.157718Jy  sigma=0.001114
! Inverting map and beam 
! Estimated beam: bmin=3.013 mas, bmaj=3.786 mas, bpa=5.712 degrees
! Estimated noise=977.309 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.00588498 Jy
! Component: 100  -  total flux cleaned = 0.0087958 Jy
! Total flux subtracted in 100 components = 0.0087958 Jy
! Clean residual min=-0.006580 max=0.009460 Jy/beam
! Clean residual mean=0.000008 rms=0.001821 Jy/beam
! Combined flux in latest and established models = 0.84203 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 77 components and 0.84203 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.157544Jy  sigma=0.001110
! Fit after  self-cal, rms=0.157541Jy  sigma=0.001110
! Inverting map 
! Added new window around map position (-2, -6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00955059 Jy
! Component: 100  -  total flux cleaned = 0.0142668 Jy
! Total flux subtracted in 100 components = 0.0142668 Jy
! Clean residual min=-0.005817 max=0.006125 Jy/beam
! Clean residual mean=0.000010 rms=0.001570 Jy/beam
! Combined flux in latest and established models = 0.856297 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 95 components and 0.856297 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.157008Jy  sigma=0.001103
! Fit after  self-cal, rms=0.156960Jy  sigma=0.001102
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1800+440_S
! Writing UV FITS file: 1800+440_S.uvf
! Writing 95 model components to file: 1800+440_S.mod
! wwins: Wrote 3 windows to 1800+440_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.013 x 3.786 at 5.712 degrees (North through East)
! Clean map  min=-0.0059691  max=0.75316 Jy/beam
! Writing clean map to FITS file: 1800+440_S.fits
! Writing difmap environment to: 1800+440_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1800+440_S]
device 1800+440_Suv.ps/vps,1,2
! Attempting to open device: '1800+440_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1800+440_Sim.ps/vps
! Attempting to open device: '1800+440_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.013 mas, bmaj=3.786 mas, bpa=5.712 degrees
! Estimated noise=977.309 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.013 x 3.786 at 5.712 degrees (North through East)
! Clean map  min=-0.0059691  max=0.75316 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.4]
quit
! Quitting program
! Log file 1800+440_S.log closed on Thu Aug 14 09:19:07 2008