! Started logfile: 1459+480_S.log on Thu Aug 14 09:14:11 2008
observe 1459+480_S.edt
! Reading UV FITS file: 1459+480_S.edt
! AN table 1: 43 integrations on 105 of 105 possible baselines.
! AN table 2: 41 integrations on 105 of 105 possible baselines.
! AN table 3: 50 integrations on 105 of 105 possible baselines.
! AN table 4: 48 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.293511 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1459+480
! 
! 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 22436 visibilities.
![@gonzo7-0.4 1459+480_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 357 telescope corrections were flagged in sub-array 1.
!  A total of 498 telescope corrections were flagged in sub-array 2.
!  A total of 252 telescope corrections were flagged in sub-array 3.
!  A total of 238 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 357 telescope corrections were flagged in sub-array 1.
!  A total of 495 telescope corrections were flagged in sub-array 2.
!  A total of 252 telescope corrections were flagged in sub-array 3.
!  A total of 238 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 401 telescope corrections were flagged in sub-array 1.
!  A total of 495 telescope corrections were flagged in sub-array 2.
!  A total of 252 telescope corrections were flagged in sub-array 3.
!  A total of 238 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 401 telescope corrections were flagged in sub-array 1.
!  A total of 495 telescope corrections were flagged in sub-array 2.
!  A total of 252 telescope corrections were flagged in sub-array 3.
!  A total of 238 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.693608Jy  sigma=0.007113
! Fit after  self-cal, rms=0.693601Jy  sigma=0.007113
! 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=1.879 mas, bmaj=2.507 mas, bpa=3.278 degrees
! Estimated noise=930.314 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.227959 Jy
! Total flux subtracted in 50 components = 0.227959 Jy
! Clean residual min=-0.015111 max=0.063620 Jy/beam
! Clean residual mean=-0.000036 rms=0.003770 Jy/beam
! Combined flux in latest and established models = 0.227959 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.227959 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.184836Jy  sigma=0.001827
! Fit after  self-cal, rms=0.184836Jy  sigma=0.001827
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.059051 Jy
! Total flux subtracted in 50 components = 0.059051 Jy
! Clean residual min=-0.010667 max=0.025864 Jy/beam
! Clean residual mean=-0.000025 rms=0.002697 Jy/beam
! Combined flux in latest and established models = 0.28701 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.28701 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.161167Jy  sigma=0.001522
! Fit after  self-cal, rms=0.161111Jy  sigma=0.001521
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.029553 Jy
! Total flux subtracted in 50 components = 0.029553 Jy
! Clean residual min=-0.010343 max=0.019855 Jy/beam
! Clean residual mean=-0.000020 rms=0.002373 Jy/beam
! Combined flux in latest and established models = 0.316563 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 13 components and 0.316563 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.153650Jy  sigma=0.001419
! Fit after  self-cal, rms=0.153612Jy  sigma=0.001419
! Inverting map 
! Added new window around map position (6.4, 2.4).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0214746 Jy
! Total flux subtracted in 50 components = 0.0214746 Jy
! Clean residual min=-0.010340 max=0.015984 Jy/beam
! Clean residual mean=-0.000017 rms=0.002203 Jy/beam
! Combined flux in latest and established models = 0.338038 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 19 components and 0.338038 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.149825Jy  sigma=0.001367
! Fit after  self-cal, rms=0.149693Jy  sigma=0.001366
! Inverting map 
! Added new window around map position (3.6, 0.4).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0175731 Jy
! Total flux subtracted in 50 components = 0.0175731 Jy
! Clean residual min=-0.009815 max=0.012238 Jy/beam
! Clean residual mean=-0.000014 rms=0.002067 Jy/beam
! Combined flux in latest and established models = 0.355611 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 26 components and 0.355611 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.146979Jy  sigma=0.001328
! Fit after  self-cal, rms=0.146858Jy  sigma=0.001327
! 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.373 mas, bmaj=3.076 mas, bpa=0.4056 degrees
! Estimated noise=475.783 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.0268217 Jy
! Component: 100  -  total flux cleaned = 0.0426911 Jy
! Total flux subtracted in 100 components = 0.0426911 Jy
! Clean residual min=-0.010182 max=0.015575 Jy/beam
! Clean residual mean=0.000022 rms=0.002861 Jy/beam
! Combined flux in latest and established models = 0.398302 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 44 components and 0.398302 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.142621Jy  sigma=0.001271
! Fit after  self-cal, rms=0.142445Jy  sigma=0.001270
! 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 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.06     FD        1.00*    HN        1.05     KB        1.01     
!   KK        1.00*    KP        1.00*    LA        1.00*    MK        1.00*    
!   NL        1.07     NY        0.99     OV        1.00*    PT        1.00*    
!   SC        1.03     WZ        0.77     ZC        1.00*    
! 
!  A total of 117 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        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*    ZC        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        0.86     HN        0.97     KB        1.00*    
!   KK        1.00*    KP        0.99     LA        1.00*    MK        1.00*    
!   NL        1.09     NY        1.30     OV        1.01     PT        0.98     
!   SC        0.98     WZ        0.91     ZC        0.96     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        0.78     HN        0.89     KB        1.00*    
!   KK        1.04     KP        0.95     LA        1.00*    MK        1.04     
!   NL        1.17     NY        1.17     OV        0.95     PT        0.98     
!   SC        1.00*    WZ        1.14     ZC        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.07     FD        1.00*    HN        1.03     KB        1.02     
!   KK        1.00*    KP        1.00*    LA        1.00*    MK        1.00*    
!   NL        1.11     NY        0.98     OV        1.00*    PT        1.00*    
!   SC        1.06     WZ        0.91     ZC        1.00*    
! 
!  A total of 120 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        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*    ZC        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.05     FD        0.88     HN        0.96     KB        1.00*    
!   KK        1.00*    KP        0.98     LA        1.00*    MK        1.00*    
!   NL        1.13     NY        1.31     OV        1.04     PT        1.06     
!   SC        1.03     WZ        0.91     ZC        0.83     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.04     FD        0.81     HN        0.95     KB        1.00*    
!   KK        1.02     KP        0.93     LA        1.00*    MK        1.04     
!   NL        1.18     NY        1.15     OV        0.98     PT        1.05     
!   SC        1.00*    WZ        1.13     ZC        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.08     FD        1.00*    HN        1.06     KB        1.09     
!   KK        1.00*    KP        1.00*    LA        1.00*    MK        1.00*    
!   NL        1.10     NY        1.04     OV        1.00*    PT        1.00*    
!   SC        1.00*    WZ        0.83     ZC        1.00*    
! 
!  A total of 120 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        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*    ZC        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.82     HN        0.91     KB        1.00*    
!   KK        1.00*    KP        0.90     LA        1.00*    MK        1.00*    
!   NL        1.12     NY        0.82     OV        1.01     PT        1.04     
!   SC        1.41     WZ        0.98     ZC        1.08     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.73     HN        0.88     KB        1.00*    
!   KK        1.07     KP        0.83     LA        1.00*    MK        0.97     
!   NL        1.17     NY        1.19     OV        0.98     PT        1.04     
!   SC        1.00*    WZ        1.08     ZC        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.09     FD        1.00*    HN        1.08     KB        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MK        1.00*    
!   NL        1.14     NY        0.96     OV        1.00*    PT        1.00*    
!   SC        0.98     WZ        0.78     ZC        1.00*    
! 
!  A total of 120 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        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*    ZC        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        0.78     HN        0.94     KB        1.00*    
!   KK        1.00*    KP        0.93     LA        1.00*    MK        1.00*    
!   NL        1.10     NY        1.15     OV        0.99     PT        1.01     
!   SC        0.97     WZ        0.91     ZC        1.13     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.90     FD        0.69     HN        0.92     KB        1.00*    
!   KK        1.08     KP        0.84     LA        1.00*    MK        0.89     
!   NL        1.12     NY        1.21     OV        0.94     PT        0.98     
!   SC        1.00*    WZ        1.07     ZC        1.00*    
! 
! 
! Fit before self-cal, rms=0.142445Jy  sigma=0.001270
! Fit after  self-cal, rms=0.130465Jy  sigma=0.001142
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.413 mas, bmaj=3.144 mas, bpa=0.6703 degrees
! Estimated noise=469.916 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 (9.6, 4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0104623 Jy
! Component: 100  -  total flux cleaned = 0.0157374 Jy
! Total flux subtracted in 100 components = 0.0157374 Jy
! Clean residual min=-0.003552 max=0.004268 Jy/beam
! Clean residual mean=-0.000004 rms=0.000899 Jy/beam
! Combined flux in latest and established models = 0.414039 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 64 components and 0.414039 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.129861Jy  sigma=0.001131
! Fit after  self-cal, rms=0.129822Jy  sigma=0.001130
! 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 (12, 12).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00510996 Jy
! Component: 100  -  total flux cleaned = 0.00730923 Jy
! Total flux subtracted in 100 components = 0.00730923 Jy
! Clean residual min=-0.003389 max=0.003638 Jy/beam
! Clean residual mean=0.000003 rms=0.000808 Jy/beam
! Combined flux in latest and established models = 0.421349 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 25 model components to the UV plane model.
! The established model now contains 84 components and 0.421349 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.129619Jy  sigma=0.001127
! Fit after  self-cal, rms=0.129579Jy  sigma=0.001113
! Inverting map and beam 
! Estimated beam: bmin=2.416 mas, bmaj=3.152 mas, bpa=0.4555 degrees
! Estimated noise=470.657 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.00260969 Jy
! Component: 100  -  total flux cleaned = 0.00368206 Jy
! Total flux subtracted in 100 components = 0.00368206 Jy
! Clean residual min=-0.002755 max=0.002861 Jy/beam
! Clean residual mean=-0.000001 rms=0.000713 Jy/beam
! Combined flux in latest and established models = 0.425031 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 27 model components to the UV plane model.
! The established model now contains 99 components and 0.425031 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.129451Jy  sigma=0.001112
! Fit after  self-cal, rms=0.129438Jy  sigma=0.001111
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1459+480_S
! Writing UV FITS file: 1459+480_S.uvf
! Writing 99 model components to file: 1459+480_S.mod
! wwins: Wrote 5 windows to 1459+480_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.416 x 3.152 at 0.4555 degrees (North through East)
! Clean map  min=-0.0026947  max=0.31103 Jy/beam
! Writing clean map to FITS file: 1459+480_S.fits
! Writing difmap environment to: 1459+480_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1459+480_S]
device 1459+480_Suv.ps/vps,1,2
! Attempting to open device: '1459+480_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1459+480_Sim.ps/vps
! Attempting to open device: '1459+480_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.416 mas, bmaj=3.152 mas, bpa=0.4555 degrees
! Estimated noise=470.657 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.416 x 3.152 at 0.4555 degrees (North through East)
! Clean map  min=-0.0026947  max=0.31103 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.4]
quit
! Quitting program
! Log file 1459+480_S.log closed on Thu Aug 14 09:14:40 2008