! Started logfile: 1417+385_S.log on Tue Mar 27 19:45:33 2007
observe 1417+385_S.edt
! Reading UV FITS file: 1417+385_S.edt
! AN table 1: 11 integrations on 105 of 105 possible baselines.
! AN table 2: 6 integrations on 105 of 105 possible baselines.
! AN table 3: 29 integrations on 105 of 105 possible baselines.
! AN table 4: 18 integrations on 105 of 105 possible baselines.
! AN table 5: 14 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.0820513 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1417+385
! 
! 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 1268 lines of history.
! 
! Reading 2688 visibilities.
![@gonzo7-0.4 1417+385_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 146 telescope corrections were flagged in sub-array 1.
!  A total of 74 telescope corrections were flagged in sub-array 2.
!  A total of 401 telescope corrections were flagged in sub-array 3.
!  A total of 157 telescope corrections were flagged in sub-array 4.
!  A total of 151 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 153 telescope corrections were flagged in sub-array 1.
!  A total of 74 telescope corrections were flagged in sub-array 2.
!  A total of 398 telescope corrections were flagged in sub-array 3.
!  A total of 157 telescope corrections were flagged in sub-array 4.
!  A total of 151 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 153 telescope corrections were flagged in sub-array 1.
!  A total of 74 telescope corrections were flagged in sub-array 2.
!  A total of 417 telescope corrections were flagged in sub-array 3.
!  A total of 157 telescope corrections were flagged in sub-array 4.
!  A total of 152 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 153 telescope corrections were flagged in sub-array 1.
!  A total of 74 telescope corrections were flagged in sub-array 2.
!  A total of 404 telescope corrections were flagged in sub-array 3.
!  A total of 157 telescope corrections were flagged in sub-array 4.
!  A total of 152 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.251459Jy  sigma=0.002877
! Fit after  self-cal, rms=0.240274Jy  sigma=0.002741
! 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.336 mas, bmaj=4.131 mas, bpa=-4.647 degrees
! Estimated noise=2391.62 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.771698 Jy
! Total flux subtracted in 50 components = 0.771698 Jy
! Clean residual min=-0.064559 max=0.215221 Jy/beam
! Clean residual mean=0.000395 rms=0.022947 Jy/beam
! Combined flux in latest and established models = 0.771698 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.771698 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.312392Jy  sigma=0.003780
! Fit after  self-cal, rms=0.312392Jy  sigma=0.003780
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.186779 Jy
! Total flux subtracted in 50 components = 0.186779 Jy
! Clean residual min=-0.059617 max=0.092088 Jy/beam
! Clean residual mean=0.000186 rms=0.017307 Jy/beam
! Combined flux in latest and established models = 0.958477 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 11 components and 0.958477 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.237490Jy  sigma=0.002769
! Fit after  self-cal, rms=0.237487Jy  sigma=0.002769
! 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=3.553 mas, bmaj=5.893 mas, bpa=-9.691 degrees
! Estimated noise=1368.98 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.040026 Jy
! Component: 100  -  total flux cleaned = 0.0532982 Jy
! Total flux subtracted in 100 components = 0.0532982 Jy
! Clean residual min=-0.048061 max=0.050836 Jy/beam
! Clean residual mean=0.001414 rms=0.014827 Jy/beam
! Combined flux in latest and established models = 1.01178 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 20 components and 1.01178 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.233238Jy  sigma=0.002683
! Fit after  self-cal, rms=0.233235Jy  sigma=0.002683
! 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 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00*    HN        1.00*    KB        0.81     
!   KP        1.00*    LA        1.00*    MK        1.06     NL        1.00*    
!   NY        0.94     OV        1.00*    PT        1.00*    SV        1.00*    
!   WF        1.00*    WZ        1.00*    TC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    HN        0.98     KB        0.88     
!   KP        1.00*    LA        1.00*    MK        1.00*    NL        1.00*    
!   NY        1.16     OV        1.00*    PT        1.00*    SV        1.00*    
!   WF        1.00*    WZ        0.97     TC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.00*    HN        1.00*    KB        0.83     
!   KP        1.00*    LA        1.00*    MK        0.84     NL        1.00*    
!   NY        0.97     OV        2.41     PT        1.00*    SV        1.00*    
!   WF        1.00*    WZ        1.00     TC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        1.20     HN        1.00*    KB        1.00*    
!   KP        1.44     LA        0.99     MK        1.00*    NL        0.95     
!   NY        1.10     OV        1.04     PT        1.08     SV        1.00*    
!   WF        1.00*    WZ        1.00*    TC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.82     FD        0.68     HN        0.78     KB        1.00*    
!   KP        2.18     LA        0.88     MK        1.06     NL        1.05     
!   NY        1.00*    OV        0.80     PT        0.89     SV        1.00*    
!   WF        1.02     WZ        1.03     TC        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    HN        0.00*    KB        0.00*    
!   KP        0.00*    LA        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SV        0.00*    
!   WF        0.00*    WZ        0.00*    TC        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    HN        1.01     KB        1.00     
!   KP        1.00*    LA        1.00*    MK        1.00*    NL        1.00*    
!   NY        1.28     OV        1.00*    PT        1.00*    SV        1.00*    
!   WF        1.00*    WZ        0.93     TC        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.00*    HN        1.00*    KB        0.94     
!   KP        1.00*    LA        1.00*    MK        0.87     NL        1.00*    
!   NY        0.93     OV        2.20     PT        1.00*    SV        1.00*    
!   WF        1.00*    WZ        0.99     TC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.24     HN        1.00*    KB        1.00*    
!   KP        1.18     LA        1.00     MK        1.00*    NL        0.99     
!   NY        1.09     OV        0.98     PT        1.05     SV        1.00*    
!   WF        1.00*    WZ        1.00*    TC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.83     FD        0.70     HN        0.80     KB        1.00*    
!   KP        1.22     LA        0.87     MK        0.83     NL        1.05     
!   NY        1.00*    OV        0.79     PT        0.94     SV        1.00*    
!   WF        0.99     WZ        1.03     TC        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    HN        0.00*    KB        0.00*    
!   KP        0.00*    LA        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SV        0.00*    
!   WF        0.00*    WZ        0.00*    TC        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    HN        0.99     KB        1.13     
!   KP        1.00*    LA        1.00*    MK        1.00*    NL        1.00*    
!   NY        1.21     OV        1.00*    PT        1.00*    SV        1.00*    
!   WF        1.00*    WZ        1.01     TC        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        1.00*    HN        1.00*    KB        1.08     
!   KP        1.00*    LA        1.00*    MK        0.87     NL        1.00*    
!   NY        1.00*    OV        2.16     PT        1.00*    SV        1.00*    
!   WF        1.00*    WZ        1.00*    TC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.93     FD        1.17     HN        1.00*    KB        1.00*    
!   KP        1.33     LA        0.95     MK        1.00*    NL        0.96     
!   NY        1.09     OV        1.00     PT        1.00     SV        1.00*    
!   WF        1.00*    WZ        1.00*    TC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.75     FD        0.67     HN        0.75     KB        1.00*    
!   KP        1.26     LA        0.81     MK        0.75     NL        1.05     
!   NY        1.00*    OV        0.81     PT        0.89     SV        1.00*    
!   WF        1.06     WZ        1.08     TC        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    HN        0.00*    KB        0.00*    
!   KP        0.00*    LA        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SV        0.00*    
!   WF        0.00*    WZ        0.00*    TC        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    HN        0.97     KB        1.67     
!   KP        1.00*    LA        1.00*    MK        1.00*    NL        1.00*    
!   NY        1.18     OV        1.00*    PT        1.00*    SV        1.00*    
!   WF        1.00*    WZ        1.04     TC        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.89     FD        1.00*    HN        1.00*    KB        1.00*    
!   KP        1.00*    LA        1.00*    MK        1.02     NL        1.00*    
!   NY        1.04     OV        1.95     PT        1.00*    SV        1.00*    
!   WF        1.00*    WZ        1.04     TC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        1.15     HN        1.00*    KB        1.00*    
!   KP        1.25     LA        0.97     MK        1.00*    NL        0.94     
!   NY        1.14     OV        1.03     PT        1.02     SV        1.00*    
!   WF        1.00*    WZ        1.00*    TC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.68     FD        0.72     HN        0.77     KB        1.00*    
!   KP        1.17     LA        0.81     MK        0.70     NL        1.02     
!   NY        1.00*    OV        0.76     PT        0.89     SV        1.00*    
!   WF        1.10     WZ        1.00     TC        1.00*    
! 
! 
! Fit before self-cal, rms=0.233235Jy  sigma=0.002683
! Fit after  self-cal, rms=0.118501Jy  sigma=0.001065
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.628 mas, bmaj=6.156 mas, bpa=-11.6 degrees
! Estimated noise=1374.08 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.00130981 Jy
! Component: 100  -  total flux cleaned = -0.00138001 Jy
! Total flux subtracted in 100 components = -0.00138001 Jy
! Clean residual min=-0.006965 max=0.005040 Jy/beam
! Clean residual mean=-0.000159 rms=0.001396 Jy/beam
! Combined flux in latest and established models = 1.0104 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 26 components and 1.0104 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.118422Jy  sigma=0.001065
! Fit after  self-cal, rms=0.118590Jy  sigma=0.001064
! 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 = 7.41431e-05 Jy
! Component: 100  -  total flux cleaned = 1.66552e-05 Jy
! Total flux subtracted in 100 components = 1.66552e-05 Jy
! Clean residual min=-0.007033 max=0.004958 Jy/beam
! Clean residual mean=-0.000158 rms=0.001394 Jy/beam
! Combined flux in latest and established models = 1.01041 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 30 components and 1.01041 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.118551Jy  sigma=0.001064
! Fit after  self-cal, rms=0.116573Jy  sigma=0.001045
! Inverting map and beam 
! Estimated beam: bmin=3.623 mas, bmaj=6.159 mas, bpa=-11.62 degrees
! Estimated noise=1372.56 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.00114707 Jy
! Component: 100  -  total flux cleaned = -0.00123007 Jy
! Total flux subtracted in 100 components = -0.00123007 Jy
! Clean residual min=-0.006057 max=0.005139 Jy/beam
! Clean residual mean=-0.000090 rms=0.001364 Jy/beam
! Combined flux in latest and established models = 1.00918 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 31 components and 1.00918 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.116465Jy  sigma=0.001045
! Fit after  self-cal, rms=0.116493Jy  sigma=0.001045
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1417+385_S
! Writing UV FITS file: 1417+385_S.uvf
! Writing 31 model components to file: 1417+385_S.mod
! wwins: Wrote 1 windows to 1417+385_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.623 x 6.159 at -11.62 degrees (North through East)
! Clean map  min=-0.0059505  max=0.96592 Jy/beam
! Writing clean map to FITS file: 1417+385_S.fits
! Writing difmap environment to: 1417+385_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1417+385_S]
device 1417+385_Suv.ps/vps,1,2
! Attempting to open device: '1417+385_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1417+385_Sim.ps/vps
! Attempting to open device: '1417+385_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.623 mas, bmaj=6.159 mas, bpa=-11.62 degrees
! Estimated noise=1372.56 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.623 x 6.159 at -11.62 degrees (North through East)
! Clean map  min=-0.0059505  max=0.96592 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.4]
quit
! Quitting program
! Log file 1417+385_S.log closed on Tue Mar 27 19:45:47 2007