! Started logfile: 0917+449_X.log on Tue Mar 27 20:52:15 2007
observe 0917+449_X.edt
! Reading UV FITS file: 0917+449_X.edt
! AN table 1: 63 integrations on 105 of 105 possible baselines.
! AN table 2: 8 integrations on 105 of 105 possible baselines.
! AN table 3: 4 integrations on 105 of 105 possible baselines.
! AN table 4: 56 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.126281 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0917+449
! 
! 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 1241 lines of history.
! 
! Reading 6948 visibilities.
![@gonzo7-0.1 0917+449_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 709 telescope corrections were flagged in sub-array 1.
!  A total of 101 telescope corrections were flagged in sub-array 2.
!  A total of 60 telescope corrections were flagged in sub-array 3.
!  A total of 731 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 712 telescope corrections were flagged in sub-array 1.
!  A total of 101 telescope corrections were flagged in sub-array 2.
!  A total of 60 telescope corrections were flagged in sub-array 3.
!  A total of 736 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 712 telescope corrections were flagged in sub-array 1.
!  A total of 101 telescope corrections were flagged in sub-array 2.
!  A total of 60 telescope corrections were flagged in sub-array 3.
!  A total of 749 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 709 telescope corrections were flagged in sub-array 1.
!  A total of 101 telescope corrections were flagged in sub-array 2.
!  A total of 60 telescope corrections were flagged in sub-array 3.
!  A total of 743 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.373096Jy  sigma=0.006571
! Fit after  self-cal, rms=0.372481Jy  sigma=0.006640
! 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.5572 mas, bmaj=1.087 mas, bpa=-25.98 degrees
! Estimated noise=1200.83 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.516483 Jy
! Total flux subtracted in 50 components = 0.516483 Jy
! Clean residual min=-0.039107 max=0.144055 Jy/beam
! Clean residual mean=0.000619 rms=0.013046 Jy/beam
! Combined flux in latest and established models = 0.516483 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.516483 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.270319Jy  sigma=0.004643
! Fit after  self-cal, rms=0.270320Jy  sigma=0.004643
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.118033 Jy
! Total flux subtracted in 50 components = 0.118033 Jy
! Clean residual min=-0.032722 max=0.070811 Jy/beam
! Clean residual mean=0.000442 rms=0.009960 Jy/beam
! Combined flux in latest and established models = 0.634516 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 11 components and 0.634516 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.211781Jy  sigma=0.003526
! Fit after  self-cal, rms=0.211632Jy  sigma=0.003524
! Inverting map 
! Added new window around map position (0.4, -2.2).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0691957 Jy
! Total flux subtracted in 50 components = 0.0691957 Jy
! Clean residual min=-0.031828 max=0.053132 Jy/beam
! Clean residual mean=0.000341 rms=0.008811 Jy/beam
! Combined flux in latest and established models = 0.703712 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 20 components and 0.703712 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.186795Jy  sigma=0.003014
! Fit after  self-cal, rms=0.186047Jy  sigma=0.003001
! 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.6878 mas, bmaj=1.37 mas, bpa=-27.48 degrees
! Estimated noise=572.918 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.0706479 Jy
! Component: 100  -  total flux cleaned = 0.11219 Jy
! Total flux subtracted in 100 components = 0.11219 Jy
! Clean residual min=-0.029040 max=0.033513 Jy/beam
! Clean residual mean=0.000845 rms=0.007438 Jy/beam
! Combined flux in latest and established models = 0.815902 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 37 components and 0.815902 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.160239Jy  sigma=0.002459
! Fit after  self-cal, rms=0.159763Jy  sigma=0.002451
! 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 39 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.10     FD        0.98     HN        1.05     KB        1.00*    
!   KP        0.66     LA        1.00     MK        0.94     NL        0.99     
!   NY        1.22     OV        1.00     PT        1.04     SV        1.00*    
!   WF        1.01     WZ        0.95     TC        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.10     FD        1.00*    HN        1.00*    KB        0.69     
!   KP        1.00*    LA        1.00*    MK        1.17     NL        1.00*    
!   NY        0.92     OV        1.00*    PT        1.00*    SV        1.00*    
!   WF        1.00*    WZ        1.00*    TC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   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 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.93     FD        1.28     HN        0.95     KB        0.69     
!   KP        1.00*    LA        0.91     MK        1.00*    NL        1.71     
!   NY        1.03     OV        0.87     PT        0.86     SV        1.00*    
!   WF        0.88     WZ        0.75     TC        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.13     FD        0.95     HN        1.05     KB        1.00*    
!   KP        0.87     LA        0.99     MK        0.93     NL        0.98     
!   NY        1.20     OV        0.99     PT        1.04     SV        1.00*    
!   WF        1.02     WZ        0.92     TC        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        1.00*    HN        1.00*    KB        0.68     
!   KP        1.00*    LA        1.00*    MK        1.17     NL        1.00*    
!   NY        0.91     OV        1.00*    PT        1.00*    SV        1.00*    
!   WF        1.00*    WZ        1.00*    TC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   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 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.94     FD        1.32     HN        1.04     KB        0.68     
!   KP        1.00*    LA        0.83     MK        1.00*    NL        1.81     
!   NY        1.09     OV        0.83     PT        0.81     SV        1.00*    
!   WF        0.86     WZ        0.68     TC        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.09     FD        1.01     HN        1.05     KB        1.00*    
!   KP        0.78     LA        0.98     MK        0.93     NL        0.96     
!   NY        1.25     OV        0.99     PT        1.03     SV        1.00*    
!   WF        1.02     WZ        0.90     TC        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.08     FD        1.00*    HN        1.00*    KB        0.81     
!   KP        1.00*    LA        1.00*    MK        1.08     NL        1.00*    
!   NY        0.81     OV        1.00*    PT        1.00*    SV        1.00*    
!   WF        1.00*    WZ        1.00*    TC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   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 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.08     FD        1.39     HN        0.88     KB        0.79     
!   KP        1.00*    LA        0.72     MK        1.00*    NL        2.14     
!   NY        1.26     OV        0.91     PT        0.87     SV        1.00*    
!   WF        0.87     WZ        0.71     TC        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 39 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.12     FD        1.00     HN        1.05     KB        1.00*    
!   KP        0.81     LA        1.02     MK        0.96     NL        0.98     
!   NY        1.24     OV        0.99     PT        1.03     SV        1.00*    
!   WF        1.01     WZ        0.90     TC        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.11     FD        1.00*    HN        1.00*    KB        0.91     
!   KP        1.00*    LA        1.00*    MK        1.11     NL        1.00*    
!   NY        0.86     OV        1.00*    PT        1.00*    SV        1.00*    
!   WF        1.00*    WZ        1.00*    TC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   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 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        1.32     HN        0.83     KB        0.92     
!   KP        1.00*    LA        0.61     MK        1.00*    NL        1.93     
!   NY        1.19     OV        0.76     PT        0.83     SV        1.00*    
!   WF        0.88     WZ        0.68     TC        1.00*    
! 
! 
! Fit before self-cal, rms=0.159763Jy  sigma=0.002451
! Fit after  self-cal, rms=0.093142Jy  sigma=0.001360
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.6829 mas, bmaj=1.414 mas, bpa=-26.13 degrees
! Estimated noise=560.124 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.4, -2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0182071 Jy
! Component: 100  -  total flux cleaned = 0.0193597 Jy
! Total flux subtracted in 100 components = 0.0193597 Jy
! Clean residual min=-0.006129 max=0.009225 Jy/beam
! Clean residual mean=0.000273 rms=0.001835 Jy/beam
! Combined flux in latest and established models = 0.835261 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 49 components and 0.835261 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.089835Jy  sigma=0.001285
! Fit after  self-cal, rms=0.089620Jy  sigma=0.001278
! 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 (-1.3, -5.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00910465 Jy
! Component: 100  -  total flux cleaned = 0.0100675 Jy
! Total flux subtracted in 100 components = 0.0100675 Jy
! Clean residual min=-0.006434 max=0.006629 Jy/beam
! Clean residual mean=0.000194 rms=0.001608 Jy/beam
! Combined flux in latest and established models = 0.845329 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 58 components and 0.845329 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.088512Jy  sigma=0.001258
! Fit after  self-cal, rms=0.085698Jy  sigma=0.001205
! Inverting map and beam 
! Estimated beam: bmin=0.6785 mas, bmaj=1.412 mas, bpa=-26.22 degrees
! Estimated noise=558.852 mJy/beam.
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00751069 Jy
! Component: 100  -  total flux cleaned = 0.00853006 Jy
! Total flux subtracted in 100 components = 0.00853006 Jy
! Clean residual min=-0.004982 max=0.005897 Jy/beam
! Clean residual mean=0.000200 rms=0.001262 Jy/beam
! Combined flux in latest and established models = 0.853859 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 66 components and 0.853859 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.084834Jy  sigma=0.001188
! Fit after  self-cal, rms=0.084225Jy  sigma=0.001177
! Inverting map and beam 
! Estimated beam: bmin=0.6774 mas, bmaj=1.411 mas, bpa=-26.2 degrees
! Estimated noise=559.051 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.00396922 Jy
! Component: 100  -  total flux cleaned = 0.00428056 Jy
! Total flux subtracted in 100 components = 0.00428056 Jy
! Clean residual min=-0.004514 max=0.005547 Jy/beam
! Clean residual mean=0.000177 rms=0.001150 Jy/beam
! Combined flux in latest and established models = 0.85814 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 73 components and 0.85814 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.083736Jy  sigma=0.001169
! Fit after  self-cal, rms=0.083694Jy  sigma=0.001168
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0917+449_X
! Writing UV FITS file: 0917+449_X.uvf
! Writing 73 model components to file: 0917+449_X.mod
! wwins: Wrote 4 windows to 0917+449_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6774 x 1.411 at -26.2 degrees (North through East)
! Clean map  min=-0.0042809  max=0.652 Jy/beam
! Writing clean map to FITS file: 0917+449_X.fits
! Writing difmap environment to: 0917+449_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 0917+449_X]
device 0917+449_Xuv.ps/vps,1,2
! Attempting to open device: '0917+449_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0917+449_Xim.ps/vps
! Attempting to open device: '0917+449_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.6774 mas, bmaj=1.411 mas, bpa=-26.2 degrees
! Estimated noise=559.051 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6774 x 1.411 at -26.2 degrees (North through East)
! Clean map  min=-0.0042809  max=0.652 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.1]
quit
! Quitting program
! Log file 0917+449_X.log closed on Tue Mar 27 20:52:33 2007