! Started logfile: 2235+731_S.log on Thu Oct 21 00:20:55 2004
observe 2235+731_S.edt
! Reading UV FITS file: 2235+731_S.edt
! AN table 1: 44 integrations on 153 of 153 possible baselines.
! AN table 2: 54 integrations on 153 of 153 possible baselines.
! AN table 3: 35 integrations on 153 of 153 possible baselines.
! AN table 4: 17 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.182963 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 2235+731
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! 
! 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 1075 lines of history.
! 
! Reading 16796 visibilities.
![@gonzo6-0.4 2235+731_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 = 6.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 570 telescope corrections were flagged in sub-array 1.
!  A total of 662 telescope corrections were flagged in sub-array 2.
!  A total of 484 telescope corrections were flagged in sub-array 3.
!  A total of 249 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 570 telescope corrections were flagged in sub-array 1.
!  A total of 662 telescope corrections were flagged in sub-array 2.
!  A total of 484 telescope corrections were flagged in sub-array 3.
!  A total of 249 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 570 telescope corrections were flagged in sub-array 1.
!  A total of 662 telescope corrections were flagged in sub-array 2.
!  A total of 484 telescope corrections were flagged in sub-array 3.
!  A total of 249 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 570 telescope corrections were flagged in sub-array 1.
!  A total of 662 telescope corrections were flagged in sub-array 2.
!  A total of 484 telescope corrections were flagged in sub-array 3.
!  A total of 249 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.727535Jy  sigma=5.197292
! Fit after  self-cal, rms=0.726925Jy  sigma=5.193504
! 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=3.227 mas, bmaj=3.526 mas, bpa=-74.98 degrees
! Estimated noise=1.71462 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.210574 Jy
! Total flux subtracted in 50 components = 0.210574 Jy
! Clean residual min=-0.010729 max=0.058744 Jy/beam
! Clean residual mean=-0.000166 rms=0.003138 Jy/beam
! Combined flux in latest and established models = 0.210574 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.210574 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.133734Jy  sigma=0.948170
! Fit after  self-cal, rms=0.133734Jy  sigma=0.948169
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.048809 Jy
! Total flux subtracted in 50 components = 0.048809 Jy
! Clean residual min=-0.008219 max=0.018077 Jy/beam
! Clean residual mean=-0.000072 rms=0.002000 Jy/beam
! Combined flux in latest and established models = 0.259383 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.259383 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.114958Jy  sigma=0.812482
! Fit after  self-cal, rms=0.114939Jy  sigma=0.812350
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.019332 Jy
! Total flux subtracted in 50 components = 0.019332 Jy
! Clean residual min=-0.007374 max=0.009458 Jy/beam
! Clean residual mean=-0.000035 rms=0.001787 Jy/beam
! Combined flux in latest and established models = 0.278715 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 15 components and 0.278715 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.111301Jy  sigma=0.786062
! Fit after  self-cal, rms=0.111247Jy  sigma=0.785661
! Inverting map 
! Added new window around map position (2.8, 4).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0110152 Jy
! Total flux subtracted in 50 components = 0.0110152 Jy
! Clean residual min=-0.006816 max=0.007517 Jy/beam
! Clean residual mean=-0.000014 rms=0.001709 Jy/beam
! Combined flux in latest and established models = 0.289731 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 30 components and 0.289731 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.109998Jy  sigma=0.776706
! Fit after  self-cal, rms=0.109965Jy  sigma=0.776457
! 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.995 mas, bmaj=4.889 mas, bpa=-63.05 degrees
! Estimated noise=0.954717 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.0119439 Jy
! Component: 100  -  total flux cleaned = 0.0185575 Jy
! Total flux subtracted in 100 components = 0.0185575 Jy
! Clean residual min=-0.004525 max=0.005656 Jy/beam
! Clean residual mean=0.000006 rms=0.001317 Jy/beam
! Combined flux in latest and established models = 0.308288 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 21 model components to the UV plane model.
! The established model now contains 44 components and 0.308288 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.108794Jy  sigma=0.768056
! Fit after  self-cal, rms=0.108777Jy  sigma=0.767916
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.12     GC        1.00*    GG        1.00*    
!   HN        1.10     KK        1.00*    KP        0.83     LA        1.11     
!   MC        1.00*    MK        0.92     NL        0.97     ON        1.00*    
!   OV        1.01     PT        1.00     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.08     GC        1.00*    GG        1.00*    
!   HN        1.01     KK        1.00*    KP        0.91     LA        1.09     
!   MC        1.00*    MK        0.94     NL        1.01     ON        1.00*    
!   OV        0.99     PT        1.03     SC        0.97     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.93     FD        1.11     GC        1.00*    GG        1.00*    
!   HN        1.05     KK        1.00*    KP        0.89     LA        1.12     
!   MC        1.00*    MK        0.89     NL        1.02     ON        1.00*    
!   OV        1.03     PT        1.00     SC        0.91     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.06     GC        1.00*    GG        1.00*    
!   HN        1.02     KK        1.00*    KP        0.86     LA        1.47     
!   MC        1.00*    MK        0.88     NL        0.97     ON        1.00*    
!   OV        1.02     PT        1.11     SC        0.84     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.10     FD        1.07     GC        1.00*    GG        1.00*    
!   HN        1.10     KK        1.00*    KP        0.98     LA        1.03     
!   MC        1.00*    MK        1.02     NL        0.98     ON        1.00*    
!   OV        1.03     PT        0.96     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.07     FD        1.06     GC        1.00*    GG        1.00*    
!   HN        1.18     KK        1.00*    KP        0.95     LA        1.04     
!   MC        1.00*    MK        1.00     NL        1.03     ON        1.00*    
!   OV        0.99     PT        0.99     SC        0.99     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.05     FD        1.07     GC        1.00*    GG        1.00*    
!   HN        1.25     KK        1.00*    KP        0.97     LA        1.07     
!   MC        1.00*    MK        1.00     NL        1.00     ON        1.00*    
!   OV        1.04     PT        1.00     SC        0.94     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.05     GC        1.00*    GG        1.00*    
!   HN        1.12     KK        1.00*    KP        0.99     LA        1.32     
!   MC        1.00*    MK        0.99     NL        0.97     ON        1.00*    
!   OV        0.98     PT        0.99     SC        0.96     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.11     FD        0.97     GC        1.00*    GG        1.00*    
!   HN        1.10     KK        1.00*    KP        1.04     LA        0.93     
!   MC        1.00*    MK        0.99     NL        1.02     ON        1.00*    
!   OV        1.00     PT        1.03     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.97     GC        1.00*    GG        1.00*    
!   HN        1.15     KK        1.00*    KP        1.00     LA        0.94     
!   MC        1.00*    MK        0.94     NL        1.07     ON        1.00*    
!   OV        0.99     PT        1.05     SC        1.17     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.66     FD        0.97     GC        1.00*    GG        1.00*    
!   HN        1.15     KK        1.00*    KP        1.00     LA        0.93     
!   MC        1.00*    MK        0.92     NL        1.11     ON        1.00*    
!   OV        1.01     PT        1.02     SC        1.09     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.93     GC        1.00*    GG        1.00*    
!   HN        1.11     KK        1.00*    KP        0.96     LA        1.13     
!   MC        1.00*    MK        0.99     NL        1.05     ON        1.00*    
!   OV        1.00     PT        1.02     SC        1.06     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        1.04     GC        1.00*    GG        1.00*    
!   HN        1.07     KK        1.00*    KP        0.89     LA        0.82     
!   MC        1.00*    MK        1.00     NL        0.94     ON        1.00*    
!   OV        0.87     PT        0.96     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.01     GC        1.00*    GG        1.00*    
!   HN        1.13     KK        1.00*    KP        0.88     LA        0.81     
!   MC        1.00*    MK        0.95     NL        0.99     ON        1.00*    
!   OV        0.87     PT        0.99     SC        1.11     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        0.98     GC        1.00*    GG        1.00*    
!   HN        1.09     KK        1.00*    KP        0.86     LA        0.78     
!   MC        1.00*    MK        0.92     NL        0.98     ON        1.00*    
!   OV        0.86     PT        0.96     SC        1.12     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.03     GC        1.00*    GG        1.00*    
!   HN        1.06     KK        1.00*    KP        0.96     LA        0.82     
!   MC        1.00*    MK        0.96     NL        0.97     ON        1.00*    
!   OV        0.80     PT        0.95     SC        1.09     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.108777Jy  sigma=0.767916
! Fit after  self-cal, rms=0.098531Jy  sigma=0.717872
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=4.005 mas, bmaj=4.923 mas, bpa=-64.09 degrees
! Estimated noise=0.946488 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 (23.2, 26).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00476432 Jy
! Component: 100  -  total flux cleaned = 0.00772359 Jy
! Total flux subtracted in 100 components = 0.00772359 Jy
! Clean residual min=-0.003050 max=0.003328 Jy/beam
! Clean residual mean=0.000015 rms=0.000780 Jy/beam
! Combined flux in latest and established models = 0.316012 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 25 model components to the UV plane model.
! The established model now contains 69 components and 0.316012 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.098318Jy  sigma=0.716293
! Fit after  self-cal, rms=0.098349Jy  sigma=0.716072
! 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 (86.8, 46).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00311832 Jy
! Component: 100  -  total flux cleaned = 0.00526694 Jy
! Total flux subtracted in 100 components = 0.00526694 Jy
! Clean residual min=-0.002960 max=0.002963 Jy/beam
! Clean residual mean=0.000010 rms=0.000749 Jy/beam
! Combined flux in latest and established models = 0.321279 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 25 model components to the UV plane model.
! The established model now contains 84 components and 0.321279 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.098250Jy  sigma=0.715331
! Fit after  self-cal, rms=0.096127Jy  sigma=0.696138
! Inverting map and beam 
! Estimated beam: bmin=4.005 mas, bmaj=4.916 mas, bpa=-64.12 degrees
! Estimated noise=0.948254 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)
! Added new window around map position (28.8, 2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00306666 Jy
! Component: 100  -  total flux cleaned = 0.00518961 Jy
! Total flux subtracted in 100 components = 0.00518961 Jy
! Clean residual min=-0.002797 max=0.002504 Jy/beam
! Clean residual mean=0.000010 rms=0.000648 Jy/beam
! Combined flux in latest and established models = 0.326468 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 97 components and 0.326468 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.096028Jy  sigma=0.695442
! Fit after  self-cal, rms=0.096041Jy  sigma=0.695385
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 2235+731_S
! Writing UV FITS file: 2235+731_S.uvf
! Writing 97 model components to file: 2235+731_S.mod
! wwins: Wrote 5 windows to 2235+731_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.005 x 4.916 at -64.12 degrees (North through East)
! Clean map  min=-0.0027916  max=0.27177 Jy/beam
! Writing clean map to FITS file: 2235+731_S.fits
! Writing difmap environment to: 2235+731_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 2235+731_S]
device 2235+731_Suv.ps/vps,1,2
! Attempting to open device: '2235+731_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 2235+731_Sim.ps/vps
! Attempting to open device: '2235+731_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=4.005 mas, bmaj=4.916 mas, bpa=-64.12 degrees
! Estimated noise=0.948254 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.005 x 4.916 at -64.12 degrees (North through East)
! Clean map  min=-0.0027916  max=0.27177 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo6-0.4]
quit
! Quitting program
! Log file 2235+731_S.log closed on Thu Oct 21 00:21:20 2004