! Started logfile: 2235+731_X.log on Mon Nov  1 16:55:00 2004
observe 2235+731_X.edt
! Reading UV FITS file: 2235+731_X.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.177865 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  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 1070 lines of history.
! 
! Reading 16328 visibilities.
![@gonzo8-0.1 2235+731_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 = 8.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 555 telescope corrections were flagged in sub-array 1.
!  A total of 682 telescope corrections were flagged in sub-array 2.
!  A total of 497 telescope corrections were flagged in sub-array 3.
!  A total of 255 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 555 telescope corrections were flagged in sub-array 1.
!  A total of 682 telescope corrections were flagged in sub-array 2.
!  A total of 497 telescope corrections were flagged in sub-array 3.
!  A total of 248 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 555 telescope corrections were flagged in sub-array 1.
!  A total of 706 telescope corrections were flagged in sub-array 2.
!  A total of 497 telescope corrections were flagged in sub-array 3.
!  A total of 255 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 555 telescope corrections were flagged in sub-array 1.
!  A total of 723 telescope corrections were flagged in sub-array 2.
!  A total of 497 telescope corrections were flagged in sub-array 3.
!  A total of 264 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.784061Jy  sigma=5.645534
! Fit after  self-cal, rms=0.783688Jy  sigma=5.642660
! 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.8638 mas, bmaj=1.049 mas, bpa=68.61 degrees
! Estimated noise=1.72694 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.155515 Jy
! Total flux subtracted in 50 components = 0.155515 Jy
! Clean residual min=-0.011114 max=0.050464 Jy/beam
! Clean residual mean=-0.000041 rms=0.003250 Jy/beam
! Combined flux in latest and established models = 0.155515 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.155515 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.120709Jy  sigma=0.867361
! Fit after  self-cal, rms=0.120690Jy  sigma=0.867219
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0502753 Jy
! Total flux subtracted in 50 components = 0.0502753 Jy
! Clean residual min=-0.006490 max=0.020608 Jy/beam
! Clean residual mean=0.000000 rms=0.001907 Jy/beam
! Combined flux in latest and established models = 0.20579 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 9 components and 0.20579 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.096850Jy  sigma=0.695029
! Fit after  self-cal, rms=0.096768Jy  sigma=0.694429
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0219414 Jy
! Total flux subtracted in 50 components = 0.0219414 Jy
! Clean residual min=-0.005653 max=0.010120 Jy/beam
! Clean residual mean=0.000018 rms=0.001545 Jy/beam
! Combined flux in latest and established models = 0.227732 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 19 components and 0.227732 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.090778Jy  sigma=0.651183
! Fit after  self-cal, rms=0.090735Jy  sigma=0.650860
! 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.205 mas, bmaj=1.389 mas, bpa=75.86 degrees
! Estimated noise=1.00048 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.0189847 Jy
! Component: 100  -  total flux cleaned = 0.0279359 Jy
! Total flux subtracted in 100 components = 0.0279359 Jy
! Clean residual min=-0.004841 max=0.007014 Jy/beam
! Clean residual mean=0.000053 rms=0.001529 Jy/beam
! Combined flux in latest and established models = 0.255668 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 43 model components to the UV plane model.
! The established model now contains 58 components and 0.255668 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.087290Jy  sigma=0.626034
! Fit after  self-cal, rms=0.087277Jy  sigma=0.625945
! 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        0.85     GC        1.00*    GG        1.00*    
!   HN        1.02     KK        1.00*    KP        0.94     LA        1.01     
!   MC        1.00*    MK        0.99     NL        1.00     ON        1.00*    
!   OV        1.03     PT        1.02     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.81     GC        1.00*    GG        1.00*    
!   HN        0.97     KK        1.00*    KP        0.95     LA        1.05     
!   MC        1.00*    MK        0.98     NL        1.09     ON        1.00*    
!   OV        1.01     PT        0.99     SC        1.07     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        0.81     GC        1.00*    GG        1.00*    
!   HN        1.01     KK        1.00*    KP        0.99     LA        1.00     
!   MC        1.00*    MK        0.91     NL        1.04     ON        1.00*    
!   OV        1.07     PT        1.04     SC        1.06     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.80     GC        1.00*    GG        1.00*    
!   HN        1.00*    KK        1.00*    KP        0.96     LA        1.34     
!   MC        1.00*    MK        1.04     NL        1.09     ON        1.00*    
!   OV        1.00     PT        1.00     SC        1.03     TS        1.00*    
!   WF        1.00*    WZ        1.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.03     FD        0.83     GC        1.00*    GG        1.00*    
!   HN        1.02     KK        1.00*    KP        0.96     LA        1.03     
!   MC        1.00*    MK        1.05     NL        1.01     ON        1.00*    
!   OV        1.00     PT        1.00     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.86     GC        1.00*    GG        1.00*    
!   HN        1.01     KK        1.00*    KP        0.91     LA        1.01     
!   MC        1.00*    MK        1.03     NL        1.04     ON        1.00*    
!   OV        1.06     PT        1.05     SC        1.04     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        0.81     GC        1.00*    GG        1.00*    
!   HN        1.04     KK        1.00*    KP        0.94     LA        1.05     
!   MC        1.00*    MK        0.99     NL        0.97     ON        1.00*    
!   OV        1.05     PT        1.05     SC        1.04     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.79     GC        1.00*    GG        1.00*    
!   HN        1.09     KK        1.00*    KP        0.94     LA        1.38     
!   MC        1.00*    MK        1.06     NL        0.97     ON        1.00*    
!   OV        0.98     PT        1.06     SC        1.03     TS        1.00*    
!   WF        1.00*    WZ        1.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        0.87     GC        1.00*    GG        1.00*    
!   HN        1.07     KK        1.00*    KP        0.84     LA        1.05     
!   MC        1.00*    MK        1.05     NL        0.99     ON        1.00*    
!   OV        1.07     PT        1.13     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        0.85     GC        1.00*    GG        1.00*    
!   HN        1.00     KK        1.00*    KP        0.85     LA        1.04     
!   MC        1.00*    MK        1.05     NL        1.06     ON        1.00*    
!   OV        1.07     PT        1.09     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.06     FD        0.81     GC        1.00*    GG        1.00*    
!   HN        1.02     KK        1.00*    KP        0.87     LA        1.03     
!   MC        1.00*    MK        1.03     NL        1.04     ON        1.00*    
!   OV        1.13     PT        1.10     SC        1.04     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.81     GC        1.00*    GG        1.00*    
!   HN        1.02     KK        1.00*    KP        0.79     LA        1.00*    
!   MC        1.00*    MK        1.07     NL        0.98     ON        1.00*    
!   OV        1.15     PT        1.10     SC        0.99     TS        1.00*    
!   WF        1.00*    WZ        1.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.04     FD        0.86     GC        1.00*    GG        1.00*    
!   HN        1.04     KK        1.00*    KP        0.93     LA        1.06     
!   MC        1.00*    MK        1.02     NL        1.03     ON        1.00*    
!   OV        1.08     PT        1.08     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.85     GC        1.00*    GG        1.00*    
!   HN        0.99     KK        1.00*    KP        0.95     LA        1.01     
!   MC        1.00*    MK        1.00*    NL        1.09     ON        1.00*    
!   OV        1.08     PT        1.08     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.83     GC        1.00*    GG        1.00*    
!   HN        1.04     KK        1.00*    KP        0.96     LA        1.04     
!   MC        1.00*    MK        1.06     NL        1.03     ON        1.00*    
!   OV        1.10     PT        1.11     SC        1.01     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.85     GC        1.00*    GG        1.00*    
!   HN        1.00*    KK        1.00*    KP        0.87     LA        1.00*    
!   MC        1.00*    MK        0.99     NL        1.06     ON        1.00*    
!   OV        1.08     PT        1.09     SC        1.18     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.087277Jy  sigma=0.625945
! Fit after  self-cal, rms=0.082101Jy  sigma=0.593828
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.222 mas, bmaj=1.406 mas, bpa=77.07 degrees
! Estimated noise=0.989695 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.9, 2.7).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00450892 Jy
! Component: 100  -  total flux cleaned = 0.00636108 Jy
! Total flux subtracted in 100 components = 0.00636108 Jy
! Clean residual min=-0.002175 max=0.002638 Jy/beam
! Clean residual mean=0.000007 rms=0.000616 Jy/beam
! Combined flux in latest and established models = 0.262029 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 71 components and 0.262029 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.081892Jy  sigma=0.592231
! Fit after  self-cal, rms=0.081908Jy  sigma=0.591899
! 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.00139033 Jy
! Component: 100  -  total flux cleaned = 0.0016942 Jy
! Total flux subtracted in 100 components = 0.0016942 Jy
! Clean residual min=-0.002089 max=0.002524 Jy/beam
! Clean residual mean=0.000010 rms=0.000601 Jy/beam
! Combined flux in latest and established models = 0.263723 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 80 components and 0.263723 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.081869Jy  sigma=0.591600
! Fit after  self-cal, rms=0.081413Jy  sigma=0.583793
! Inverting map and beam 
! Estimated beam: bmin=1.221 mas, bmaj=1.407 mas, bpa=76.53 degrees
! Estimated noise=0.992157 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.00173306 Jy
! Component: 100  -  total flux cleaned = 0.00249794 Jy
! Total flux subtracted in 100 components = 0.00249794 Jy
! Clean residual min=-0.002081 max=0.002225 Jy/beam
! Clean residual mean=-0.000003 rms=0.000568 Jy/beam
! Combined flux in latest and established models = 0.266221 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 88 components and 0.266221 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.081381Jy  sigma=0.583524
! Fit after  self-cal, rms=0.081385Jy  sigma=0.583473
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 2235+731_X
! Writing UV FITS file: 2235+731_X.uvf
! Writing 88 model components to file: 2235+731_X.mod
! wwins: Wrote 2 windows to 2235+731_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.221 x 1.407 at 76.53 degrees (North through East)
! Clean map  min=-0.0020482  max=0.21074 Jy/beam
! Writing clean map to FITS file: 2235+731_X.fits
! Writing difmap environment to: 2235+731_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 2235+731_X]
device 2235+731_Xuv.ps/vps,1,2
! Attempting to open device: '2235+731_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 2235+731_Xim.ps/vps
! Attempting to open device: '2235+731_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.221 mas, bmaj=1.407 mas, bpa=76.53 degrees
! Estimated noise=0.992157 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.221 x 1.407 at 76.53 degrees (North through East)
! Clean map  min=-0.0020482  max=0.21074 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo8-0.1]
quit
! Quitting program
! Log file 2235+731_X.log closed on Mon Nov  1 16:55:25 2004