! Started logfile: 0307+380_X.log on Tue Aug  7 10:02:44 2007
observe 0307+380_X.edt
! Reading UV FITS file: 0307+380_X.edt
! AN table 1: 24 integrations on 105 of 105 possible baselines.
! AN table 2: 27 integrations on 105 of 105 possible baselines.
! AN table 3: 25 integrations on 105 of 105 possible baselines.
! AN table 4: 11 integrations on 105 of 105 possible baselines.
! AN table 5: 5 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.111698 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0307+380
! 
! 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 4316 visibilities.
![@gonzo7-0.1 0307+380_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 207 telescope corrections were flagged in sub-array 1.
!  A total of 298 telescope corrections were flagged in sub-array 2.
!  A total of 327 telescope corrections were flagged in sub-array 3.
!  A total of 125 telescope corrections were flagged in sub-array 4.
!  A total of 37 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 207 telescope corrections were flagged in sub-array 1.
!  A total of 298 telescope corrections were flagged in sub-array 2.
!  A total of 330 telescope corrections were flagged in sub-array 3.
!  A total of 121 telescope corrections were flagged in sub-array 4.
!  A total of 37 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 214 telescope corrections were flagged in sub-array 1.
!  A total of 298 telescope corrections were flagged in sub-array 2.
!  A total of 327 telescope corrections were flagged in sub-array 3.
!  A total of 121 telescope corrections were flagged in sub-array 4.
!  A total of 37 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 217 telescope corrections were flagged in sub-array 1.
!  A total of 295 telescope corrections were flagged in sub-array 2.
!  A total of 339 telescope corrections were flagged in sub-array 3.
!  A total of 121 telescope corrections were flagged in sub-array 4.
!  A total of 37 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.195592Jy  sigma=0.002658
! Fit after  self-cal, rms=0.193360Jy  sigma=0.002652
! 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.7146 mas, bmaj=0.994 mas, bpa=-27.41 degrees
! Estimated noise=1266.11 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.675735 Jy
! Total flux subtracted in 50 components = 0.675735 Jy
! Clean residual min=-0.047275 max=0.188466 Jy/beam
! Clean residual mean=-0.000407 rms=0.011427 Jy/beam
! Combined flux in latest and established models = 0.675735 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.675735 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.283521Jy  sigma=0.004004
! Fit after  self-cal, rms=0.283521Jy  sigma=0.004004
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.148436 Jy
! Total flux subtracted in 50 components = 0.148436 Jy
! Clean residual min=-0.031150 max=0.045571 Jy/beam
! Clean residual mean=-0.000496 rms=0.007126 Jy/beam
! Combined flux in latest and established models = 0.824171 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.824172 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.186405Jy  sigma=0.002516
! Fit after  self-cal, rms=0.186405Jy  sigma=0.002516
! 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=1.032 mas, bmaj=1.42 mas, bpa=-31.97 degrees
! Estimated noise=788.542 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.0652337 Jy
! Component: 100  -  total flux cleaned = 0.0806773 Jy
! Total flux subtracted in 100 components = 0.0806773 Jy
! Clean residual min=-0.032782 max=0.025567 Jy/beam
! Clean residual mean=-0.001970 rms=0.007095 Jy/beam
! Combined flux in latest and established models = 0.904849 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 14 components and 0.904849 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.166122Jy  sigma=0.002209
! Fit after  self-cal, rms=0.166121Jy  sigma=0.002209
! 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 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.99     HH        1.00*    HN        0.96     
!   KB        1.00*    KK        1.53     KP        0.95     LA        0.95     
!   MK        1.01     NL        0.97     NY        1.00*    OV        0.98     
!   PT        0.94     SC        1.01     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.08     FD        1.10     HH        0.85     HN        1.11     
!   KB        1.19     KK        0.82     KP        0.91     LA        1.06     
!   MK        0.91     NL        1.32     NY        1.00*    OV        1.00*    
!   PT        1.06     SC        1.14     WZ        0.91     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        1.01     LA        1.05     
!   MK        1.00*    NL        1.08     NY        1.00*    OV        1.00*    
!   PT        1.05     SC        1.00*    WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.00*    HH        1.00*    HN        1.00*    
!   KB        0.96     KK        0.91     KP        1.02     LA        1.00*    
!   MK        0.93     NL        1.00*    NY        1.00*    OV        1.03     
!   PT        1.00*    SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.09     FD        1.07     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        1.10     LA        1.01     
!   MK        1.00*    NL        1.03     NY        1.00*    OV        1.14     
!   PT        1.03     SC        1.04     WZ        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.95     FD        0.97     HH        1.00*    HN        0.97     
!   KB        1.00*    KK        1.48     KP        0.95     LA        0.96     
!   MK        1.02     NL        0.97     NY        1.00*    OV        0.97     
!   PT        0.94     SC        0.97     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        1.08     HH        0.93     HN        1.14     
!   KB        1.23     KK        0.86     KP        0.90     LA        1.07     
!   MK        0.95     NL        1.34     NY        1.00*    OV        1.00*    
!   PT        1.06     SC        0.99     WZ        0.73     
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.04     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        1.01     LA        0.99     
!   MK        1.00*    NL        1.11     NY        1.00*    OV        1.00*    
!   PT        1.03     SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.00*    HH        1.04     HN        1.00*    
!   KB        0.95     KK        0.91     KP        1.01     LA        1.00*    
!   MK        0.95     NL        1.00*    NY        1.01     OV        1.00     
!   PT        1.00*    SC        1.00*    WZ        0.93     
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.07     FD        1.00     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        1.10     LA        1.01     
!   MK        1.00*    NL        1.02     NY        1.00*    OV        1.13     
!   PT        1.03     SC        1.01     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.96     HH        1.00*    HN        0.93     
!   KB        1.00*    KK        1.56     KP        0.95     LA        0.95     
!   MK        1.02     NL        0.94     NY        1.00*    OV        0.97     
!   PT        0.93     SC        1.01     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.07     FD        1.11     HH        0.88     HN        1.10     
!   KB        1.11     KK        0.87     KP        0.89     LA        1.05     
!   MK        0.89     NL        1.33     NY        1.00*    OV        1.00*    
!   PT        1.05     SC        1.14     WZ        0.72     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.97     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        0.97     LA        1.00     
!   MK        1.00*    NL        1.05     NY        1.00*    OV        1.00*    
!   PT        1.02     SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.00*    HH        1.04     HN        1.00*    
!   KB        0.97     KK        0.85     KP        1.02     LA        1.00*    
!   MK        0.95     NL        1.00*    NY        0.99     OV        0.98     
!   PT        1.00*    SC        1.00*    WZ        0.90     
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.06     FD        1.05     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        1.07     LA        1.06     
!   MK        1.00*    NL        1.03     NY        1.00*    OV        1.14     
!   PT        1.00     SC        0.99     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.95     FD        0.95     HH        1.00*    HN        0.93     
!   KB        1.00*    KK        1.51     KP        0.94     LA        0.95     
!   MK        1.01     NL        0.97     NY        1.00*    OV        0.97     
!   PT        0.94     SC        1.05     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.10     HH        1.05     HN        1.12     
!   KB        1.25     KK        0.85     KP        0.88     LA        1.06     
!   MK        0.93     NL        1.33     NY        1.00*    OV        1.00*    
!   PT        1.05     SC        0.98     WZ        0.73     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.95     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        1.00     LA        0.95     
!   MK        1.00*    NL        1.02     NY        1.00*    OV        1.00*    
!   PT        0.94     SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        1.00*    HH        1.10     HN        1.00*    
!   KB        0.99     KK        0.88     KP        1.00     LA        1.00*    
!   MK        0.91     NL        1.00*    NY        1.06     OV        1.04     
!   PT        1.00*    SC        1.00*    WZ        0.94     
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.04     FD        1.07     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        1.07     LA        1.06     
!   MK        1.00*    NL        1.04     NY        1.00*    OV        1.12     
!   PT        1.07     SC        0.99     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.166121Jy  sigma=0.002209
! Fit after  self-cal, rms=0.124133Jy  sigma=0.001503
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.06 mas, bmaj=1.515 mas, bpa=-30.5 degrees
! Estimated noise=784.611 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.00171632 Jy
! Component: 100  -  total flux cleaned = -0.001726 Jy
! Total flux subtracted in 100 components = -0.001726 Jy
! Clean residual min=-0.012354 max=0.010099 Jy/beam
! Clean residual mean=-0.001313 rms=0.003278 Jy/beam
! Combined flux in latest and established models = 0.903123 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 18 components and 0.903123 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.123825Jy  sigma=0.001499
! Fit after  self-cal, rms=0.123848Jy  sigma=0.001499
! 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.04838e-05 Jy
! Component: 100  -  total flux cleaned = 0.000164617 Jy
! Total flux subtracted in 100 components = 0.000164617 Jy
! Clean residual min=-0.012272 max=0.010122 Jy/beam
! Clean residual mean=-0.001314 rms=0.003269 Jy/beam
! Combined flux in latest and established models = 0.903287 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 21 components and 0.903287 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.123700Jy  sigma=0.001497
! Fit after  self-cal, rms=0.095046Jy  sigma=0.001062
! Inverting map and beam 
! Estimated beam: bmin=1.059 mas, bmaj=1.515 mas, bpa=-30.64 degrees
! Estimated noise=783.292 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.000570514 Jy
! Component: 100  -  total flux cleaned = 0.00047949 Jy
! Total flux subtracted in 100 components = 0.00047949 Jy
! Clean residual min=-0.003117 max=0.003152 Jy/beam
! Clean residual mean=0.000029 rms=0.000798 Jy/beam
! Combined flux in latest and established models = 0.903767 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 25 components and 0.903767 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.095007Jy  sigma=0.001061
! Fit after  self-cal, rms=0.094999Jy  sigma=0.001061
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0307+380_X
! Writing UV FITS file: 0307+380_X.uvf
! Writing 25 model components to file: 0307+380_X.mod
! wwins: Wrote 1 windows to 0307+380_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.059 x 1.515 at -30.64 degrees (North through East)
! Clean map  min=-0.0030799  max=0.89474 Jy/beam
! Writing clean map to FITS file: 0307+380_X.fits
! Writing difmap environment to: 0307+380_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 0307+380_X]
device 0307+380_Xuv.ps/vps,1,2
! Attempting to open device: '0307+380_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0307+380_Xim.ps/vps
! Attempting to open device: '0307+380_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=1.059 mas, bmaj=1.515 mas, bpa=-30.64 degrees
! Estimated noise=783.292 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.059 x 1.515 at -30.64 degrees (North through East)
! Clean map  min=-0.0030799  max=0.89474 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.1]
quit
! Quitting program
! Log file 0307+380_X.log closed on Tue Aug  7 10:03:02 2007