! Started logfile: 1342+663_S.log on Tue Aug 16 17:52:37 2005
observe 1342+663_S.edt
! Reading UV FITS file: 1342+663_S.edt
! AN table 1: 31 integrations on 171 of 171 possible baselines.
! AN table 2: 30 integrations on 171 of 171 possible baselines.
! AN table 3: 81 integrations on 171 of 171 possible baselines.
! AN table 4: 38 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.172027 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1342+663
! 
! 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.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1565 lines of history.
! 
! Reading 21180 visibilities.
![@gonzo7-0.4 1342+663_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 371 telescope corrections were flagged in sub-array 1.
!  A total of 444 telescope corrections were flagged in sub-array 2.
!  A total of 966 telescope corrections were flagged in sub-array 3.
!  A total of 513 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 371 telescope corrections were flagged in sub-array 1.
!  A total of 425 telescope corrections were flagged in sub-array 2.
!  A total of 968 telescope corrections were flagged in sub-array 3.
!  A total of 513 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 373 telescope corrections were flagged in sub-array 1.
!  A total of 429 telescope corrections were flagged in sub-array 2.
!  A total of 1027 telescope corrections were flagged in sub-array 3.
!  A total of 531 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 371 telescope corrections were flagged in sub-array 1.
!  A total of 438 telescope corrections were flagged in sub-array 2.
!  A total of 966 telescope corrections were flagged in sub-array 3.
!  A total of 513 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.229395Jy  sigma=0.003532
! Fit after  self-cal, rms=0.228398Jy  sigma=0.003523
! 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=3.013 mas, bmaj=3.643 mas, bpa=19.4 degrees
! Estimated noise=679.388 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.608077 Jy
! Total flux subtracted in 50 components = 0.608077 Jy
! Clean residual min=-0.024288 max=0.169654 Jy/beam
! Clean residual mean=-0.000029 rms=0.007297 Jy/beam
! Combined flux in latest and established models = 0.608077 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.608077 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.214722Jy  sigma=0.003469
! Fit after  self-cal, rms=0.214722Jy  sigma=0.003469
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.133456 Jy
! Total flux subtracted in 50 components = 0.133456 Jy
! Clean residual min=-0.011312 max=0.041601 Jy/beam
! Clean residual mean=-0.000022 rms=0.003043 Jy/beam
! Combined flux in latest and established models = 0.741533 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.741533 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.117121Jy  sigma=0.001822
! Fit after  self-cal, rms=0.117121Jy  sigma=0.001822
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0403827 Jy
! Total flux subtracted in 50 components = 0.0403827 Jy
! Clean residual min=-0.009933 max=0.016936 Jy/beam
! Clean residual mean=-0.000020 rms=0.002373 Jy/beam
! Combined flux in latest and established models = 0.781916 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 12 components and 0.781916 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.102960Jy  sigma=0.001559
! Fit after  self-cal, rms=0.102960Jy  sigma=0.001559
! Inverting map 
! Added new window around map position (4.4, 4.8).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0203359 Jy
! Total flux subtracted in 50 components = 0.0203359 Jy
! Clean residual min=-0.009572 max=0.014737 Jy/beam
! Clean residual mean=-0.000017 rms=0.002187 Jy/beam
! Combined flux in latest and established models = 0.802252 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 20 components and 0.802252 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.099631Jy  sigma=0.001495
! Fit after  self-cal, rms=0.099593Jy  sigma=0.001494
! 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=4.007 mas, bmaj=4.757 mas, bpa=8.389 degrees
! Estimated noise=362.292 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.0155516 Jy
! Component: 100  -  total flux cleaned = 0.0226806 Jy
! Total flux subtracted in 100 components = 0.0226806 Jy
! Clean residual min=-0.006416 max=0.008394 Jy/beam
! Clean residual mean=-0.000076 rms=0.001792 Jy/beam
! Combined flux in latest and established models = 0.824932 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 36 components and 0.824932 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.097704Jy  sigma=0.001456
! Fit after  self-cal, rms=0.097693Jy  sigma=0.001456
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.98     GC        1.03     HH        1.00*    
!   HN        0.97     KK        1.00*    KP        1.01     LA        0.99     
!   MC        1.00*    MK        1.13     NL        0.99     NY        1.05     
!   ON        1.00*    OV        0.99     PT        0.98     SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        0.99     
!   MC        1.00*    MK        0.96     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.96     SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.01     GC        1.00*    HH        1.00*    
!   HN        1.05     KK        1.00*    KP        1.03     LA        1.01     
!   MC        1.00*    MK        0.92     NL        1.00     NY        1.00*    
!   ON        1.00*    OV        1.03     PT        1.02     SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        0.95     GC        1.00*    HH        1.00*    
!   HN        0.98     KK        1.04     KP        0.98     LA        0.94     
!   MC        1.00*    MK        0.95     NL        0.96     NY        1.00*    
!   ON        1.00*    OV        0.91     PT        0.95     SC        0.94     
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.97     GC        1.02     HH        1.00*    
!   HN        0.99     KK        1.00*    KP        0.99     LA        1.01     
!   MC        1.00*    MK        1.12     NL        0.99     NY        1.06     
!   ON        1.00*    OV        0.99     PT        0.99     SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.14     LA        0.98     
!   MC        1.00*    MK        0.98     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.97     PT        0.94     SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.02     GC        1.00*    HH        1.00*    
!   HN        1.04     KK        1.00*    KP        0.99     LA        0.99     
!   MC        1.00*    MK        1.00     NL        1.01     NY        1.00*    
!   ON        1.00*    OV        1.03     PT        1.00     SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        0.96     GC        1.00*    HH        1.00*    
!   HN        1.22     KK        1.00     KP        0.96     LA        0.92     
!   MC        1.00*    MK        0.99     NL        0.97     NY        1.00*    
!   ON        1.00*    OV        0.96     PT        0.96     SC        1.05     
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.00     GC        1.03     HH        1.00*    
!   HN        0.99     KK        1.00*    KP        1.02     LA        1.26     
!   MC        1.00*    MK        1.10     NL        0.99     NY        1.05     
!   ON        1.00*    OV        1.00     PT        0.99     SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.90     FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.08     LA        1.02     
!   MC        1.00*    MK        0.96     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.97     PT        0.96     SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.06     FD        1.00     GC        1.00*    HH        1.00*    
!   HN        0.99     KK        1.00*    KP        1.03     LA        1.49     
!   MC        1.00*    MK        0.94     NL        1.05     NY        1.00*    
!   ON        1.00*    OV        1.02     PT        0.99     SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.94     FD        0.95     GC        1.00*    HH        1.00*    
!   HN        1.02     KK        1.06     KP        0.95     LA        1.45     
!   MC        1.00*    MK        0.98     NL        0.96     NY        1.00*    
!   ON        1.00*    OV        0.96     PT        0.96     SC        1.14     
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.98     GC        1.04     HH        1.00*    
!   HN        0.99     KK        1.00*    KP        1.01     LA        1.01     
!   MC        1.00*    MK        1.13     NL        0.99     NY        1.03     
!   ON        1.00*    OV        0.98     PT        0.98     SC        1.00*    
!   TS        1.00*    WF        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.90     FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.10     LA        0.98     
!   MC        1.00*    MK        0.96     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.83     PT        0.96     SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        1.02     GC        1.00*    HH        1.00*    
!   HN        1.03     KK        1.00*    KP        1.04     LA        0.97     
!   MC        1.00*    MK        0.93     NL        1.02     NY        1.00*    
!   ON        1.00*    OV        1.01     PT        1.00     SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        0.94     GC        1.00*    HH        1.00*    
!   HN        1.04     KK        1.12     KP        0.96     LA        0.94     
!   MC        1.00*    MK        0.98     NL        0.95     NY        1.00*    
!   ON        1.00*    OV        0.97     PT        0.95     SC        1.16     
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.097693Jy  sigma=0.001456
! Fit after  self-cal, rms=0.084598Jy  sigma=0.001212
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=4.03 mas, bmaj=4.761 mas, bpa=7.917 degrees
! Estimated noise=360.905 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.00233141 Jy
! Component: 100  -  total flux cleaned = -0.00266074 Jy
! Total flux subtracted in 100 components = -0.00266074 Jy
! Clean residual min=-0.002445 max=0.002545 Jy/beam
! Clean residual mean=-0.000027 rms=0.000631 Jy/beam
! Combined flux in latest and established models = 0.822271 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 50 components and 0.822271 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.084513Jy  sigma=0.001210
! Fit after  self-cal, rms=0.084523Jy  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.000193315 Jy
! Component: 100  -  total flux cleaned = -0.000295733 Jy
! Total flux subtracted in 100 components = -0.000295733 Jy
! Clean residual min=-0.002451 max=0.002498 Jy/beam
! Clean residual mean=-0.000027 rms=0.000625 Jy/beam
! Combined flux in latest and established models = 0.821976 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 51 components and 0.821976 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.084493Jy  sigma=0.001210
! Fit after  self-cal, rms=0.082395Jy  sigma=0.001176
! Inverting map and beam 
! Estimated beam: bmin=4.028 mas, bmaj=4.763 mas, bpa=7.844 degrees
! Estimated noise=361.035 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.000288692 Jy
! Component: 100  -  total flux cleaned = 0.000200592 Jy
! Total flux subtracted in 100 components = 0.000200592 Jy
! Clean residual min=-0.002123 max=0.002098 Jy/beam
! Clean residual mean=-0.000017 rms=0.000482 Jy/beam
! Combined flux in latest and established models = 0.822176 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 54 components and 0.822176 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.082370Jy  sigma=0.001175
! Fit after  self-cal, rms=0.082370Jy  sigma=0.001175
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1342+663_S
! Writing UV FITS file: 1342+663_S.uvf
! Writing 54 model components to file: 1342+663_S.mod
! wwins: Wrote 2 windows to 1342+663_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.028 x 4.763 at 7.844 degrees (North through East)
! Clean map  min=-0.0020326  max=0.79178 Jy/beam
! Writing clean map to FITS file: 1342+663_S.fits
! Writing difmap environment to: 1342+663_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1342+663_S]
device 1342+663_Suv.ps/vps,1,2
! Attempting to open device: '1342+663_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1342+663_Sim.ps/vps
! Attempting to open device: '1342+663_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=4.028 mas, bmaj=4.763 mas, bpa=7.844 degrees
! Estimated noise=361.035 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.028 x 4.763 at 7.844 degrees (North through East)
! Clean map  min=-0.0020326  max=0.79178 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.4]
quit
! Quitting program
! Log file 1342+663_S.log closed on Tue Aug 16 17:53:16 2005