! Started logfile: 2356+385_X.log on Tue Aug  7 10:29:00 2007
observe 2356+385_X.edt
! Reading UV FITS file: 2356+385_X.edt
! AN table 1: 16 integrations on 105 of 105 possible baselines.
! AN table 2: 37 integrations on 105 of 105 possible baselines.
! AN table 3: 19 integrations on 105 of 105 possible baselines.
! AN table 4: 13 integrations on 105 of 105 possible baselines.
! AN table 5: 46 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.111087 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 2356+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  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1066 lines of history.
! 
! Reading 6112 visibilities.
![@gonzo7-0.1 2356+385_X]
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.1
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.100x0.100 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 160 telescope corrections were flagged in sub-array 1.
!  A total of 352 telescope corrections were flagged in sub-array 2.
!  A total of 160 telescope corrections were flagged in sub-array 3.
!  A total of 174 telescope corrections were flagged in sub-array 4.
!  A total of 633 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 160 telescope corrections were flagged in sub-array 1.
!  A total of 352 telescope corrections were flagged in sub-array 2.
!  A total of 160 telescope corrections were flagged in sub-array 3.
!  A total of 174 telescope corrections were flagged in sub-array 4.
!  A total of 633 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 160 telescope corrections were flagged in sub-array 1.
!  A total of 352 telescope corrections were flagged in sub-array 2.
!  A total of 160 telescope corrections were flagged in sub-array 3.
!  A total of 174 telescope corrections were flagged in sub-array 4.
!  A total of 633 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 160 telescope corrections were flagged in sub-array 1.
!  A total of 352 telescope corrections were flagged in sub-array 2.
!  A total of 160 telescope corrections were flagged in sub-array 3.
!  A total of 174 telescope corrections were flagged in sub-array 4.
!  A total of 639 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.536591Jy  sigma=0.007187
! Fit after  self-cal, rms=0.520778Jy  sigma=0.007133
! 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=0.718 mas, bmaj=1.272 mas, bpa=-35.28 degrees
! Estimated noise=1159.72 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.381362 Jy
! Total flux subtracted in 50 components = 0.381362 Jy
! Clean residual min=-0.021521 max=0.106373 Jy/beam
! Clean residual mean=-0.000379 rms=0.006522 Jy/beam
! Combined flux in latest and established models = 0.381362 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.381362 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.160021Jy  sigma=0.002147
! Fit after  self-cal, rms=0.160021Jy  sigma=0.002147
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0843926 Jy
! Total flux subtracted in 50 components = 0.0843926 Jy
! Clean residual min=-0.014573 max=0.027325 Jy/beam
! Clean residual mean=-0.000165 rms=0.003461 Jy/beam
! Combined flux in latest and established models = 0.465754 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.465754 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.118188Jy  sigma=0.001435
! Fit after  self-cal, rms=0.118192Jy  sigma=0.001435
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0267058 Jy
! Total flux subtracted in 50 components = 0.0267058 Jy
! Clean residual min=-0.014036 max=0.016510 Jy/beam
! Clean residual mean=-0.000098 rms=0.003027 Jy/beam
! Combined flux in latest and established models = 0.49246 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 11 components and 0.49246 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.113433Jy  sigma=0.001341
! Fit after  self-cal, rms=0.113418Jy  sigma=0.001340
! 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=0.9485 mas, bmaj=1.521 mas, bpa=-34.25 degrees
! Estimated noise=683.284 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.9, -1.9).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0182918 Jy
! Component: 100  -  total flux cleaned = 0.0216728 Jy
! Total flux subtracted in 100 components = 0.0216728 Jy
! Clean residual min=-0.011378 max=0.013184 Jy/beam
! Clean residual mean=-0.000102 rms=0.002698 Jy/beam
! Combined flux in latest and established models = 0.514133 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 29 components and 0.514133 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.110429Jy  sigma=0.001296
! Fit after  self-cal, rms=0.110172Jy  sigma=0.001293
! 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.02     FD        1.03     HH        1.00*    HN        1.58     
!   KB        1.00*    KK        1.00*    KP        0.96     LA        0.97     
!   MK        1.03     NL        1.04     NY        1.00*    OV        1.01     
!   PT        0.97     SC        1.00*    WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.99     HH        1.00*    HN        1.01     
!   KB        1.00*    KK        0.89     KP        0.96     LA        0.98     
!   MK        0.99     NL        1.02     NY        1.00*    OV        0.93     
!   PT        0.95     SC        0.98     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        1.00*    HH        1.00*    HN        0.90     
!   KB        1.00*    KK        1.00*    KP        1.00     LA        1.04     
!   MK        1.00*    NL        1.09     NY        1.01     OV        1.02     
!   PT        1.07     SC        0.85     WZ        1.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    HH        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*    
! 
!  A total of 57 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.00*    FD        0.00*    HH        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*    
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.01     HH        1.00*    HN        1.58     
!   KB        1.00*    KK        1.00*    KP        0.99     LA        0.97     
!   MK        1.00     NL        1.01     NY        1.00*    OV        1.00     
!   PT        1.00     SC        1.00*    WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.98     HH        1.00*    HN        1.02     
!   KB        1.00*    KK        0.93     KP        0.95     LA        0.97     
!   MK        1.02     NL        1.01     NY        1.00*    OV        0.91     
!   PT        0.96     SC        0.96     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        1.00*    HH        1.00*    HN        0.86     
!   KB        1.00*    KK        1.00*    KP        0.99     LA        1.04     
!   MK        1.00*    NL        1.11     NY        1.00     OV        1.04     
!   PT        1.07     SC        0.86     WZ        1.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    HH        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*    
! 
!  A total of 57 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.00*    FD        0.00*    HH        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*    
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.05     HH        1.00*    HN        1.43     
!   KB        1.00*    KK        1.00*    KP        0.99     LA        1.01     
!   MK        1.05     NL        1.01     NY        1.00*    OV        1.00     
!   PT        0.99     SC        1.00*    WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.00     HH        1.00*    HN        1.04     
!   KB        1.00*    KK        0.92     KP        0.97     LA        0.98     
!   MK        0.95     NL        1.04     NY        1.00*    OV        0.94     
!   PT        0.97     SC        0.97     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.92     FD        1.00*    HH        1.00*    HN        0.89     
!   KB        1.00*    KK        1.00*    KP        0.99     LA        0.99     
!   MK        1.00*    NL        1.08     NY        1.05     OV        0.98     
!   PT        1.07     SC        1.00     WZ        1.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    HH        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*    
! 
!  A total of 57 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.00*    FD        0.00*    HH        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*    
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.03     HH        1.00*    HN        1.38     
!   KB        1.00*    KK        1.00*    KP        0.98     LA        1.00     
!   MK        1.07     NL        1.05     NY        1.00*    OV        1.02     
!   PT        0.97     SC        1.00*    WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.01     HH        1.00*    HN        1.04     
!   KB        1.00*    KK        0.92     KP        0.95     LA        1.00     
!   MK        1.02     NL        1.06     NY        1.00*    OV        0.94     
!   PT        0.98     SC        0.98     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.92     FD        1.00*    HH        1.00*    HN        0.85     
!   KB        1.00*    KK        1.00*    KP        1.01     LA        1.00     
!   MK        1.00*    NL        1.08     NY        1.09     OV        1.04     
!   PT        0.99     SC        0.96     WZ        1.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    HH        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*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.00*    FD        0.00*    HH        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*    
! 
! 
! Fit before self-cal, rms=0.110172Jy  sigma=0.001293
! Fit after  self-cal, rms=0.099373Jy  sigma=0.001112
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.9986 mas, bmaj=1.646 mas, bpa=-33.5 degrees
! Estimated noise=685.049 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.00453873 Jy
! Component: 100  -  total flux cleaned = 0.00465499 Jy
! Total flux subtracted in 100 components = 0.00465499 Jy
! Clean residual min=-0.003579 max=0.003242 Jy/beam
! Clean residual mean=-0.000004 rms=0.000789 Jy/beam
! Combined flux in latest and established models = 0.518788 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 40 components and 0.518788 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.099177Jy  sigma=0.001109
! Fit after  self-cal, rms=0.099189Jy  sigma=0.001108
! 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.000365383 Jy
! Component: 100  -  total flux cleaned = 0.000368051 Jy
! Total flux subtracted in 100 components = 0.000368051 Jy
! Clean residual min=-0.003392 max=0.003191 Jy/beam
! Clean residual mean=-0.000002 rms=0.000771 Jy/beam
! Combined flux in latest and established models = 0.519156 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 48 components and 0.519156 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.099125Jy  sigma=0.001108
! Fit after  self-cal, rms=0.098870Jy  sigma=0.001095
! Inverting map and beam 
! Estimated beam: bmin=0.9951 mas, bmaj=1.644 mas, bpa=-33.44 degrees
! Estimated noise=685.61 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.00265578 Jy
! Component: 100  -  total flux cleaned = 0.00311663 Jy
! Total flux subtracted in 100 components = 0.00311663 Jy
! Clean residual min=-0.003198 max=0.003277 Jy/beam
! Clean residual mean=-0.000006 rms=0.000744 Jy/beam
! Combined flux in latest and established models = 0.522273 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 54 components and 0.522273 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.098787Jy  sigma=0.001094
! Fit after  self-cal, rms=0.098790Jy  sigma=0.001094
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 2356+385_X
! Writing UV FITS file: 2356+385_X.uvf
! Writing 54 model components to file: 2356+385_X.mod
! wwins: Wrote 2 windows to 2356+385_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9951 x 1.644 at -33.44 degrees (North through East)
! Clean map  min=-0.0030951  max=0.48508 Jy/beam
! Writing clean map to FITS file: 2356+385_X.fits
! Writing difmap environment to: 2356+385_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 2356+385_X]
device 2356+385_Xuv.ps/vps,1,2
! Attempting to open device: '2356+385_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 2356+385_Xim.ps/vps
! Attempting to open device: '2356+385_Xim.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=0.9951 mas, bmaj=1.644 mas, bpa=-33.44 degrees
! Estimated noise=685.61 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9951 x 1.644 at -33.44 degrees (North through East)
! Clean map  min=-0.0030951  max=0.48508 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.1]
quit
! Quitting program
! Log file 2356+385_X.log closed on Tue Aug  7 10:29:17 2007