! Started logfile: 1717+178_S.log on Mon Oct 30 08:35:21 2006
observe 1717+178_S.edt
! Reading UV FITS file: 1717+178_S.edt
! AN table 1: 61 integrations on 136 of 136 possible baselines.
! AN table 2: 7 integrations on 136 of 136 possible baselines.
! AN table 3: 5 integrations on 136 of 136 possible baselines.
! AN table 4: 55 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.0778378 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1717+178
! 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 5420 visibilities.
![@gonzo7-0.4 1717+178_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 671 telescope corrections were flagged in sub-array 1.
!  A total of 103 telescope corrections were flagged in sub-array 2.
!  A total of 73 telescope corrections were flagged in sub-array 3.
!  A total of 781 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 671 telescope corrections were flagged in sub-array 1.
!  A total of 103 telescope corrections were flagged in sub-array 2.
!  A total of 73 telescope corrections were flagged in sub-array 3.
!  A total of 776 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 671 telescope corrections were flagged in sub-array 1.
!  A total of 103 telescope corrections were flagged in sub-array 2.
!  A total of 73 telescope corrections were flagged in sub-array 3.
!  A total of 778 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 671 telescope corrections were flagged in sub-array 1.
!  A total of 103 telescope corrections were flagged in sub-array 2.
!  A total of 73 telescope corrections were flagged in sub-array 3.
!  A total of 778 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.449601Jy  sigma=0.005442
! Fit after  self-cal, rms=0.442036Jy  sigma=0.005451
! 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.931 mas, bmaj=2.894 mas, bpa=-30.68 degrees
! Estimated noise=1379.16 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.45491 Jy
! Total flux subtracted in 50 components = 0.45491 Jy
! Clean residual min=-0.034199 max=0.126882 Jy/beam
! Clean residual mean=-0.000158 rms=0.009043 Jy/beam
! Combined flux in latest and established models = 0.45491 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.45491 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.240840Jy  sigma=0.002452
! Fit after  self-cal, rms=0.240840Jy  sigma=0.002452
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.111967 Jy
! Total flux subtracted in 50 components = 0.111967 Jy
! Clean residual min=-0.024248 max=0.041638 Jy/beam
! Clean residual mean=-0.000039 rms=0.005669 Jy/beam
! Combined flux in latest and established models = 0.566876 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.566876 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.194115Jy  sigma=0.001628
! Fit after  self-cal, rms=0.194150Jy  sigma=0.001628
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0414512 Jy
! Total flux subtracted in 50 components = 0.0414512 Jy
! Clean residual min=-0.022930 max=0.025437 Jy/beam
! Clean residual mean=0.000005 rms=0.005191 Jy/beam
! Combined flux in latest and established models = 0.608328 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 13 components and 0.608328 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188535Jy  sigma=0.001519
! Fit after  self-cal, rms=0.188541Jy  sigma=0.001518
! 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.614 mas, bmaj=4.177 mas, bpa=-26.12 degrees
! Estimated noise=806.213 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.00919708 Jy
! Component: 100  -  total flux cleaned = 0.0092159 Jy
! Total flux subtracted in 100 components = 0.0092159 Jy
! Clean residual min=-0.015117 max=0.020196 Jy/beam
! Clean residual mean=0.000126 rms=0.004349 Jy/beam
! Combined flux in latest and established models = 0.617544 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 17 components and 0.617544 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.186853Jy  sigma=0.001504
! Fit after  self-cal, rms=0.186835Jy  sigma=0.001504
! 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 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.04     HN        0.90     HO        1.01     
!   KP        1.00*    LA        1.00     MK        1.16     NL        1.03     
!   NY        1.05     OV        0.96     PT        1.02     MC        1.00*    
!   SC        0.99     SV        0.89     TC        1.00*    WF        1.06     
!   WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    HN        1.00*    HO        0.98     
!   KP        1.00*    LA        1.00*    MK        1.00*    NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        1.00*    MC        1.01     
!   SC        1.00*    SV        0.79     TC        1.00*    WF        1.00*    
!   WZ        0.77     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    HN        0.00*    HO        0.00*    
!   KP        0.00*    LA        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    MC        0.00*    
!   SC        0.00*    SV        0.00*    TC        0.00*    WF        0.00*    
!   WZ        0.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.73     HN        1.05     HO        1.00*    
!   KP        1.00*    LA        1.00*    MK        1.17     NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        0.74     MC        1.00*    
!   SC        0.75     SV        1.00*    TC        0.85     WF        1.00*    
!   WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.06     HN        0.89     HO        1.01     
!   KP        1.00*    LA        1.00     MK        0.98     NL        1.05     
!   NY        1.07     OV        0.94     PT        1.03     MC        1.00*    
!   SC        1.03     SV        0.93     TC        1.00*    WF        1.03     
!   WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    HN        1.00*    HO        1.10     
!   KP        1.00*    LA        1.00*    MK        1.00*    NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        1.00*    MC        0.96     
!   SC        1.00*    SV        0.85     TC        1.00*    WF        1.00*    
!   WZ        0.84     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    HN        0.00*    HO        0.00*    
!   KP        0.00*    LA        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    MC        0.00*    
!   SC        0.00*    SV        0.00*    TC        0.00*    WF        0.00*    
!   WZ        0.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.76     HN        1.20     HO        1.00*    
!   KP        1.00*    LA        1.00*    MK        0.85     NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        0.75     MC        1.00*    
!   SC        0.79     SV        1.00*    TC        0.87     WF        1.00*    
!   WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.05     HN        0.87     HO        1.00     
!   KP        1.00*    LA        1.01     MK        0.98     NL        1.07     
!   NY        1.10     OV        0.96     PT        1.03     MC        1.00*    
!   SC        1.02     SV        0.87     TC        1.00*    WF        1.07     
!   WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    HN        1.00*    HO        1.05     
!   KP        1.00*    LA        1.00*    MK        1.00*    NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        1.00*    MC        0.90     
!   SC        1.00*    SV        0.81     TC        1.00*    WF        1.00*    
!   WZ        0.88     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    HN        0.00*    HO        0.00*    
!   KP        0.00*    LA        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    MC        0.00*    
!   SC        0.00*    SV        0.00*    TC        0.00*    WF        0.00*    
!   WZ        0.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.77     HN        1.06     HO        1.00*    
!   KP        1.00*    LA        1.00*    MK        0.78     NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        0.77     MC        1.00*    
!   SC        0.77     SV        1.00*    TC        0.92     WF        1.00*    
!   WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.03     HN        1.05     HO        1.06     
!   KP        1.00*    LA        1.01     MK        0.97     NL        1.06     
!   NY        1.07     OV        0.94     PT        1.04     MC        1.00*    
!   SC        1.09     SV        0.90     TC        1.00*    WF        1.08     
!   WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    HN        1.00*    HO        0.97     
!   KP        1.00*    LA        1.00*    MK        1.00*    NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        1.00*    MC        0.99     
!   SC        1.00*    SV        0.85     TC        1.00*    WF        1.00*    
!   WZ        0.80     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    HN        0.00*    HO        0.00*    
!   KP        0.00*    LA        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    MC        0.00*    
!   SC        0.00*    SV        0.00*    TC        0.00*    WF        0.00*    
!   WZ        0.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.69     HN        2.15     HO        1.00*    
!   KP        1.00*    LA        1.00*    MK        0.74     NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        0.78     MC        1.00*    
!   SC        0.78     SV        1.00*    TC        0.98     WF        1.00*    
!   WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.186835Jy  sigma=0.001504
! Fit after  self-cal, rms=0.169155Jy  sigma=0.001198
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.58 mas, bmaj=4.12 mas, bpa=-23.78 degrees
! Estimated noise=805.854 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.00176722 Jy
! Component: 100  -  total flux cleaned = 0.00140118 Jy
! Total flux subtracted in 100 components = 0.00140118 Jy
! Clean residual min=-0.011107 max=0.010857 Jy/beam
! Clean residual mean=-0.000179 rms=0.002599 Jy/beam
! Combined flux in latest and established models = 0.618945 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 23 components and 0.618945 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.169090Jy  sigma=0.001197
! Fit after  self-cal, rms=0.169513Jy  sigma=0.001196
! 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 = 5.19843e-05 Jy
! Component: 100  -  total flux cleaned = -0.000143226 Jy
! Total flux subtracted in 100 components = -0.000143226 Jy
! Clean residual min=-0.010935 max=0.010838 Jy/beam
! Clean residual mean=-0.000179 rms=0.002599 Jy/beam
! Combined flux in latest and established models = 0.618801 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 3 model components to the UV plane model.
! The established model now contains 23 components and 0.618801 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.169482Jy  sigma=0.001196
! Fit after  self-cal, rms=0.157545Jy  sigma=0.001059
! Inverting map and beam 
! Estimated beam: bmin=2.569 mas, bmaj=4.114 mas, bpa=-23.95 degrees
! Estimated noise=805.894 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)
! Added new window around map position (0.8, -6.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00515708 Jy
! Component: 100  -  total flux cleaned = 0.00539506 Jy
! Total flux subtracted in 100 components = 0.00539506 Jy
! Clean residual min=-0.003666 max=0.003253 Jy/beam
! Clean residual mean=-0.000046 rms=0.000858 Jy/beam
! Combined flux in latest and established models = 0.624196 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 34 components and 0.624197 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.157268Jy  sigma=0.001056
! Fit after  self-cal, rms=0.157216Jy  sigma=0.001055
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1717+178_S
! Writing UV FITS file: 1717+178_S.uvf
! Writing 34 model components to file: 1717+178_S.mod
! wwins: Wrote 2 windows to 1717+178_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.569 x 4.114 at -23.95 degrees (North through East)
! Clean map  min=-0.0033858  max=0.58307 Jy/beam
! Writing clean map to FITS file: 1717+178_S.fits
! Writing difmap environment to: 1717+178_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1717+178_S]
device 1717+178_Suv.ps/vps,1,2
! Attempting to open device: '1717+178_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1717+178_Sim.ps/vps
! Attempting to open device: '1717+178_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.569 mas, bmaj=4.114 mas, bpa=-23.95 degrees
! Estimated noise=805.894 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.569 x 4.114 at -23.95 degrees (North through East)
! Clean map  min=-0.0033858  max=0.58307 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.4]
quit
! Quitting program
! Log file 1717+178_S.log closed on Mon Oct 30 08:35:41 2006