! Started logfile: 0202+319_S.log on Thu Aug 14 08:59:40 2008
observe 0202+319_S.edt
! Reading UV FITS file: 0202+319_S.edt
! AN table 1: 34 integrations on 105 of 105 possible baselines.
! AN table 2: 52 integrations on 105 of 105 possible baselines.
! AN table 3: 32 integrations on 105 of 105 possible baselines.
! AN table 4: 5 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.0899729 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0202+319
! 
! 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 947 lines of history.
! 
! Reading 4648 visibilities.
![@gonzo7-0.4 0202+319_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 378 telescope corrections were flagged in sub-array 1.
!  A total of 608 telescope corrections were flagged in sub-array 2.
!  A total of 376 telescope corrections were flagged in sub-array 3.
!  A total of 60 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 375 telescope corrections were flagged in sub-array 1.
!  A total of 608 telescope corrections were flagged in sub-array 2.
!  A total of 376 telescope corrections were flagged in sub-array 3.
!  A total of 60 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 372 telescope corrections were flagged in sub-array 1.
!  A total of 608 telescope corrections were flagged in sub-array 2.
!  A total of 376 telescope corrections were flagged in sub-array 3.
!  A total of 60 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 372 telescope corrections were flagged in sub-array 1.
!  A total of 608 telescope corrections were flagged in sub-array 2.
!  A total of 383 telescope corrections were flagged in sub-array 3.
!  A total of 60 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.327365Jy  sigma=0.002812
! Fit after  self-cal, rms=0.305084Jy  sigma=0.002739
! 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.972 mas, bmaj=3.785 mas, bpa=6.868 degrees
! Estimated noise=1629.21 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.651911 Jy
! Total flux subtracted in 50 components = 0.651911 Jy
! Clean residual min=-0.036201 max=0.181827 Jy/beam
! Clean residual mean=-0.000188 rms=0.012495 Jy/beam
! Combined flux in latest and established models = 0.651911 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.651911 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.347569Jy  sigma=0.003378
! Fit after  self-cal, rms=0.347569Jy  sigma=0.003378
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.150959 Jy
! Total flux subtracted in 50 components = 0.150959 Jy
! Clean residual min=-0.031699 max=0.058265 Jy/beam
! Clean residual mean=-0.000071 rms=0.009120 Jy/beam
! Combined flux in latest and established models = 0.80287 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 10 components and 0.80287 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.279353Jy  sigma=0.002632
! Fit after  self-cal, rms=0.279296Jy  sigma=0.002631
! 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.322 mas, bmaj=4.424 mas, bpa=4.22 degrees
! Estimated noise=1161.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)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0994732 Jy
! Component: 100  -  total flux cleaned = 0.15508 Jy
! Total flux subtracted in 100 components = 0.15508 Jy
! Clean residual min=-0.034468 max=0.074742 Jy/beam
! Clean residual mean=0.000826 rms=0.010375 Jy/beam
! Combined flux in latest and established models = 0.95795 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 26 components and 0.95795 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.248430Jy  sigma=0.002272
! Fit after  self-cal, rms=0.248165Jy  sigma=0.002270
! Inverting map 
! Added new window around map position (-0.8, 8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0730525 Jy
! Component: 100  -  total flux cleaned = 0.113775 Jy
! Total flux subtracted in 100 components = 0.113775 Jy
! Clean residual min=-0.030441 max=0.040178 Jy/beam
! Clean residual mean=0.000467 rms=0.008218 Jy/beam
! Combined flux in latest and established models = 1.07173 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 31 model components to the UV plane model.
! The established model now contains 56 components and 1.07172 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.230125Jy  sigma=0.002045
! Fit after  self-cal, rms=0.228691Jy  sigma=0.002032
! 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 45 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.94     HN        1.02     KB        0.94     
!   KK        1.00*    KP        0.88     LA        1.00*    MK        0.86     
!   NL        0.98     NY        1.00     OV        0.91     PT        0.92     
!   SC        1.02     WZ        1.00*    ZC        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.26     FD        0.87     HN        0.97     KB        1.00*    
!   KK        1.00*    KP        1.03     LA        1.00*    MK        1.00*    
!   NL        1.06     NY        1.32     OV        1.00*    PT        0.99     
!   SC        0.96     WZ        1.04     ZC        0.96     
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.09     FD        0.91     HN        1.00*    KB        0.93     
!   KK        1.00*    KP        1.05     LA        1.00*    MK        1.00*    
!   NL        1.10     NY        1.04     OV        1.16     PT        1.06     
!   SC        0.95     WZ        0.98     ZC        1.00     
! 
!  A total of 15 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*    
!   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*    ZC        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 48 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.92     HN        1.04     KB        0.91     
!   KK        1.00*    KP        0.90     LA        1.00*    MK        0.84     
!   NL        0.98     NY        1.03     OV        0.91     PT        0.92     
!   SC        1.02     WZ        1.00*    ZC        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.24     FD        0.90     HN        0.95     KB        1.00*    
!   KK        1.00*    KP        0.92     LA        1.00*    MK        1.00*    
!   NL        1.08     NY        1.33     OV        1.00*    PT        1.11     
!   SC        0.95     WZ        0.89     ZC        1.05     
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.13     FD        0.94     HN        1.00*    KB        3.43     
!   KK        1.00*    KP        1.02     LA        1.00*    MK        1.00*    
!   NL        1.09     NY        1.08     OV        1.14     PT        1.10     
!   SC        0.84     WZ        1.04     ZC        1.02     
! 
!  A total of 15 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*    
!   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*    ZC        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 51 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.91     HN        1.02     KB        1.01     
!   KK        1.00*    KP        0.85     LA        1.00*    MK        0.83     
!   NL        0.97     NY        1.02     OV        0.91     PT        0.92     
!   SC        1.38     WZ        1.00*    ZC        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.11     FD        0.79     HN        0.72     KB        1.00*    
!   KK        1.00*    KP        0.83     LA        1.00*    MK        1.00*    
!   NL        1.02     NY        1.35     OV        1.00*    PT        1.06     
!   SC        1.83     WZ        1.03     ZC        0.97     
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        0.86     HN        1.00*    KB        1.27     
!   KK        1.00*    KP        0.94     LA        1.00*    MK        1.00*    
!   NL        1.09     NY        1.01     OV        1.13     PT        1.07     
!   SC        1.52     WZ        0.93     ZC        0.90     
! 
!  A total of 15 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*    
!   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*    ZC        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 51 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.89     HN        0.99     KB        1.81     
!   KK        1.00*    KP        0.87     LA        1.00*    MK        0.85     
!   NL        0.98     NY        0.97     OV        0.89     PT        0.89     
!   SC        1.01     WZ        1.00*    ZC        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.07     FD        0.79     HN        0.87     KB        1.00*    
!   KK        1.00*    KP        0.84     LA        1.00*    MK        1.00*    
!   NL        1.04     NY        1.35     OV        1.00*    PT        1.04     
!   SC        0.86     WZ        1.01     ZC        1.03     
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.83     HN        1.00*    KB        1.00*    
!   KK        1.00*    KP        0.97     LA        1.00*    MK        1.00*    
!   NL        1.05     NY        1.05     OV        1.12     PT        1.05     
!   SC        0.79     WZ        1.00*    ZC        1.00*    
! 
!  A total of 15 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*    
!   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*    ZC        0.00*    
! 
! 
! Fit before self-cal, rms=0.228691Jy  sigma=0.002032
! Fit after  self-cal, rms=0.160000Jy  sigma=0.001235
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.367 mas, bmaj=4.564 mas, bpa=2.54 degrees
! Estimated noise=1181.06 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.0167899 Jy
! Component: 100  -  total flux cleaned = 0.0191487 Jy
! Total flux subtracted in 100 components = 0.0191487 Jy
! Clean residual min=-0.007862 max=0.011733 Jy/beam
! Clean residual mean=0.000027 rms=0.002195 Jy/beam
! Combined flux in latest and established models = 1.09087 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 69 components and 1.09087 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.158320Jy  sigma=0.001215
! Fit after  self-cal, rms=0.158393Jy  sigma=0.001213
! 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 (-8, 14.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00915921 Jy
! Component: 100  -  total flux cleaned = 0.0105673 Jy
! Total flux subtracted in 100 components = 0.0105673 Jy
! Clean residual min=-0.008864 max=0.008648 Jy/beam
! Clean residual mean=-0.000026 rms=0.001992 Jy/beam
! Combined flux in latest and established models = 1.10144 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 84 components and 1.10144 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.157606Jy  sigma=0.001202
! Fit after  self-cal, rms=0.153948Jy  sigma=0.001177
! Inverting map and beam 
! Estimated beam: bmin=2.369 mas, bmaj=4.566 mas, bpa=2.516 degrees
! Estimated noise=1177.84 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.00365783 Jy
! Component: 100  -  total flux cleaned = 0.00482744 Jy
! Total flux subtracted in 100 components = 0.00482744 Jy
! Clean residual min=-0.006851 max=0.008603 Jy/beam
! Clean residual mean=0.000025 rms=0.001762 Jy/beam
! Combined flux in latest and established models = 1.10627 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 90 components and 1.10627 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.153423Jy  sigma=0.001171
! Fit after  self-cal, rms=0.153396Jy  sigma=0.001171
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0202+319_S
! Writing UV FITS file: 0202+319_S.uvf
! Writing 90 model components to file: 0202+319_S.mod
! wwins: Wrote 3 windows to 0202+319_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.369 x 4.566 at 2.516 degrees (North through East)
! Clean map  min=-0.0065428  max=0.84549 Jy/beam
! Writing clean map to FITS file: 0202+319_S.fits
! Writing difmap environment to: 0202+319_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 0202+319_S]
device 0202+319_Suv.ps/vps,1,2
! Attempting to open device: '0202+319_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0202+319_Sim.ps/vps
! Attempting to open device: '0202+319_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.369 mas, bmaj=4.566 mas, bpa=2.516 degrees
! Estimated noise=1177.84 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.369 x 4.566 at 2.516 degrees (North through East)
! Clean map  min=-0.0065428  max=0.84549 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.4]
quit
! Quitting program
! Log file 0202+319_S.log closed on Thu Aug 14 08:59:58 2008