! Started logfile: 0422+004_X.log on Thu Mar 29 18:11:53 2007
observe 0422+004_X
! Reading UV FITS file: 0422+004_X
! AN table 1: 80 integrations on 105 of 105 possible baselines.
! AN table 2: 14 integrations on 105 of 105 possible baselines.
! AN table 3: 155 integrations on 105 of 105 possible baselines.
! AN table 4: 69 integrations on 105 of 105 possible baselines.
! AN table 5: Unused.
! AN table 6: Unused.
! Apparent sampling: 0.137137 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0422+004
! 
! 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 1237 lines of history.
! 
! Reading 18316 visibilities.
![@gonzo6.5-0.1 0422+004_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 = 6.5
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 857 telescope corrections were flagged in sub-array 1.
!  A total of 210 telescope corrections were flagged in sub-array 2.
!  A total of 1388 telescope corrections were flagged in sub-array 3.
!  A total of 945 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 857 telescope corrections were flagged in sub-array 1.
!  A total of 210 telescope corrections were flagged in sub-array 2.
!  A total of 1388 telescope corrections were flagged in sub-array 3.
!  A total of 945 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 857 telescope corrections were flagged in sub-array 1.
!  A total of 210 telescope corrections were flagged in sub-array 2.
!  A total of 1388 telescope corrections were flagged in sub-array 3.
!  A total of 978 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 857 telescope corrections were flagged in sub-array 1.
!  A total of 210 telescope corrections were flagged in sub-array 2.
!  A total of 1388 telescope corrections were flagged in sub-array 3.
!  A total of 978 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.654878Jy  sigma=0.005840
! Fit after  self-cal, rms=0.502510Jy  sigma=0.004250
! 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.5715 mas, bmaj=1.414 mas, bpa=-1.693 degrees
! Estimated noise=1408.31 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.414928 Jy
! Total flux subtracted in 50 components = 0.414928 Jy
! Clean residual min=-0.043738 max=0.121045 Jy/beam
! Clean residual mean=0.000609 rms=0.014549 Jy/beam
! Combined flux in latest and established models = 0.414928 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.414928 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.241936Jy  sigma=0.001904
! Fit after  self-cal, rms=0.241936Jy  sigma=0.001904
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.101767 Jy
! Total flux subtracted in 50 components = 0.101767 Jy
! Clean residual min=-0.039914 max=0.058895 Jy/beam
! Clean residual mean=0.000093 rms=0.010583 Jy/beam
! Combined flux in latest and established models = 0.516695 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.516695 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.199433Jy  sigma=0.001415
! Fit after  self-cal, rms=0.199433Jy  sigma=0.001415
! 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.8062 mas, bmaj=2.293 mas, bpa=-7.752 degrees
! Estimated noise=615.569 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.0386801 Jy
! Component: 100  -  total flux cleaned = 0.0459419 Jy
! Total flux subtracted in 100 components = 0.0459419 Jy
! Clean residual min=-0.018260 max=0.024793 Jy/beam
! Clean residual mean=-0.000209 rms=0.005551 Jy/beam
! Combined flux in latest and established models = 0.562637 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 16 components and 0.562637 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.193542Jy  sigma=0.001343
! Fit after  self-cal, rms=0.193532Jy  sigma=0.001343
! 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        1.00*    FD        1.16     HN        1.00*    KB        0.69     
!   KP        0.90     LA        1.12     MK        1.00*    NL        1.00*    
!   NY        1.15     OV        1.00*    PT        1.17     SV        6.11     
!   WF        1.00*    WZ        1.02     TC        1.11     
! 
!  Telescope amplitude corrections in sub-array 2:
!   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*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.93     FD        1.04     HN        1.08     KB        1.00*    
!   KP        1.00     LA        0.87     MK        1.00*    NL        1.11     
!   NY        1.00*    OV        0.99     PT        0.89     SV        1.00*    
!   WF        1.06     WZ        0.92     TC        1.00*    
! 
!  A total of 90 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   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*    
! 
! 
! Correcting IF 2.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.08     HN        1.00*    KB        0.79     
!   KP        0.97     LA        1.13     MK        1.00*    NL        1.00*    
!   NY        1.19     OV        1.00*    PT        1.18     SV        8.06     
!   WF        1.00*    WZ        0.86     TC        1.03     
! 
!  Telescope amplitude corrections in sub-array 2:
!   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*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.04     HN        1.07     KB        1.00*    
!   KP        1.02     LA        0.87     MK        1.00*    NL        1.12     
!   NY        1.00*    OV        0.96     PT        0.89     SV        1.00*    
!   WF        1.06     WZ        0.94     TC        1.00*    
! 
!  A total of 90 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   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*    
! 
! 
! Correcting IF 3.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.15     HN        1.00*    KB        0.95     
!   KP        0.92     LA        1.13     MK        1.00*    NL        1.00*    
!   NY        1.28     OV        1.00*    PT        1.16     SV        9.10     
!   WF        1.00*    WZ        0.74     TC        0.99     
! 
!  Telescope amplitude corrections in sub-array 2:
!   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*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        1.06     HN        1.03     KB        1.00*    
!   KP        1.06     LA        0.86     MK        1.00*    NL        1.14     
!   NY        1.00*    OV        0.98     PT        0.89     SV        1.00*    
!   WF        1.05     WZ        0.93     TC        1.00*    
! 
!  A total of 57 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   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*    
! 
! 
! Correcting IF 4.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.20     HN        1.00*    KB        0.76     
!   KP        0.93     LA        1.15     MK        1.00*    NL        1.00*    
!   NY        1.20     OV        1.00*    PT        1.20     SV        7.29     
!   WF        1.00*    WZ        0.87     TC        0.91     
! 
!  Telescope amplitude corrections in sub-array 2:
!   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*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        1.05     HN        1.04     KB        1.00*    
!   KP        1.00     LA        0.87     MK        1.00*    NL        1.10     
!   NY        1.00*    OV        1.01     PT        0.89     SV        1.00*    
!   WF        1.07     WZ        0.91     TC        1.00*    
! 
!  A total of 57 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   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*    
! 
! 
! Fit before self-cal, rms=0.193532Jy  sigma=0.001343
! Fit after  self-cal, rms=0.201678Jy  sigma=0.001113
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.787 mas, bmaj=2.409 mas, bpa=-8.074 degrees
! Estimated noise=615.083 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 (1.1, 1.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00975396 Jy
! Component: 100  -  total flux cleaned = 0.0118329 Jy
! Total flux subtracted in 100 components = 0.0118329 Jy
! Clean residual min=-0.004069 max=0.005521 Jy/beam
! Clean residual mean=0.000630 rms=0.001103 Jy/beam
! Combined flux in latest and established models = 0.57447 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 31 components and 0.57447 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.201174Jy  sigma=0.001107
! Fit after  self-cal, rms=0.201346Jy  sigma=0.001107
! 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)
! Added new window around map position (4.8, 5.9).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00452538 Jy
! Component: 100  -  total flux cleaned = 0.00549239 Jy
! Total flux subtracted in 100 components = 0.00549239 Jy
! Clean residual min=-0.003080 max=0.003917 Jy/beam
! Clean residual mean=0.000573 rms=0.000929 Jy/beam
! Combined flux in latest and established models = 0.579963 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 26 model components to the UV plane model.
! The established model now contains 55 components and 0.579963 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.201201Jy  sigma=0.001105
! Fit after  self-cal, rms=0.202511Jy  sigma=0.001090
! Inverting map and beam 
! Estimated beam: bmin=0.7842 mas, bmaj=2.403 mas, bpa=-8.059 degrees
! Estimated noise=615.36 mJy/beam.
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00407033 Jy
! Component: 100  -  total flux cleaned = 0.00476943 Jy
! Total flux subtracted in 100 components = 0.00476943 Jy
! Clean residual min=-0.002133 max=0.003168 Jy/beam
! Clean residual mean=0.000390 rms=0.000751 Jy/beam
! Combined flux in latest and established models = 0.584732 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 64 components and 0.584732 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.202415Jy  sigma=0.001089
! Fit after  self-cal, rms=0.200870Jy  sigma=0.001088
! Inverting map and beam 
! Estimated beam: bmin=0.783 mas, bmaj=2.396 mas, bpa=-8.05 degrees
! Estimated noise=615.559 mJy/beam.
! Added new window around map position (-1.3, -0.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00280621 Jy
! Component: 100  -  total flux cleaned = 0.00327103 Jy
! Total flux subtracted in 100 components = 0.00327103 Jy
! Clean residual min=-0.002300 max=0.002820 Jy/beam
! Clean residual mean=0.000296 rms=0.000676 Jy/beam
! Combined flux in latest and established models = 0.588003 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 81 components and 0.588003 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.200813Jy  sigma=0.001087
! Fit after  self-cal, rms=0.200647Jy  sigma=0.001087
! Inverting map and beam 
! Estimated beam: bmin=0.782 mas, bmaj=2.398 mas, bpa=-8.05 degrees
! Estimated noise=615.794 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.00195185 Jy
! Component: 100  -  total flux cleaned = 0.00207361 Jy
! Total flux subtracted in 100 components = 0.00207361 Jy
! Clean residual min=-0.002436 max=0.002649 Jy/beam
! Clean residual mean=0.000234 rms=0.000642 Jy/beam
! Combined flux in latest and established models = 0.590077 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 90 components and 0.590077 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.200614Jy  sigma=0.001086
! Fit after  self-cal, rms=0.200634Jy  sigma=0.001086
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0422+004_X
! Writing UV FITS file: 0422+004_X.uvf
! Writing 90 model components to file: 0422+004_X.mod
! wwins: Wrote 4 windows to 0422+004_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.782 x 2.398 at -8.05 degrees (North through East)
! Clean map  min=-0.0023644  max=0.54657 Jy/beam
! Writing clean map to FITS file: 0422+004_X.fits
! Writing difmap environment to: 0422+004_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 0422+004_X]
device 0422+004_Xuv.ps/vps,1,2
! Attempting to open device: '0422+004_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0422+004_Xim.ps/vps
! Attempting to open device: '0422+004_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.782 mas, bmaj=2.398 mas, bpa=-8.05 degrees
! Estimated noise=615.794 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.782 x 2.398 at -8.05 degrees (North through East)
! Clean map  min=-0.0023644  max=0.54657 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo6.5-0.1]
quit
! Quitting program
! Log file 0422+004_X.log closed on Thu Mar 29 18:12:24 2007