! Started logfile: OJ287_X.log on Mon Oct 30 09:50:29 2006
observe OJ287_X.edt
! Reading UV FITS file: OJ287_X.edt
! AN table 1: 10 integrations on 136 of 136 possible baselines.
! AN table 2: 9 integrations on 136 of 136 possible baselines.
! AN table 3: 79 integrations on 136 of 136 possible baselines.
! AN table 4: 29 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.0284275 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: OJ287
! Warning: Unknown AN-table MNTSTA value (4).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (4).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (4).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (4).
!          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 1577 lines of history.
! 
! Reading 1964 visibilities.
![@gonzo7-0.1 OJ287_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 135 telescope corrections were flagged in sub-array 1.
!  A total of 122 telescope corrections were flagged in sub-array 2.
!  A total of 1212 telescope corrections were flagged in sub-array 3.
!  A total of 431 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 135 telescope corrections were flagged in sub-array 1.
!  A total of 122 telescope corrections were flagged in sub-array 2.
!  A total of 1212 telescope corrections were flagged in sub-array 3.
!  A total of 416 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 135 telescope corrections were flagged in sub-array 1.
!  A total of 122 telescope corrections were flagged in sub-array 2.
!  A total of 1212 telescope corrections were flagged in sub-array 3.
!  A total of 419 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 135 telescope corrections were flagged in sub-array 1.
!  A total of 122 telescope corrections were flagged in sub-array 2.
!  A total of 1224 telescope corrections were flagged in sub-array 3.
!  A total of 416 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.148223Jy  sigma=0.015186
! Fit after  self-cal, rms=1.149342Jy  sigma=0.015212
! 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.4108 mas, bmaj=0.6314 mas, bpa=74.37 degrees
! Estimated noise=1925.42 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 = 1.39045 Jy
! Total flux subtracted in 50 components = 1.39045 Jy
! Clean residual min=-0.127288 max=0.454306 Jy/beam
! Clean residual mean=-0.000312 rms=0.045339 Jy/beam
! Combined flux in latest and established models = 1.39045 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 5 components and 1.39045 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.853212Jy  sigma=0.011067
! Fit after  self-cal, rms=0.853236Jy  sigma=0.011067
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.459596 Jy
! Total flux subtracted in 50 components = 0.459596 Jy
! Clean residual min=-0.098501 max=0.206212 Jy/beam
! Clean residual mean=-0.000001 rms=0.028362 Jy/beam
! Combined flux in latest and established models = 1.85004 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 16 components and 1.85004 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.571037Jy  sigma=0.007126
! Fit after  self-cal, rms=0.570983Jy  sigma=0.007125
! Inverting map 
! Added new window around map position (-0.1, -0.4).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.226509 Jy
! Total flux subtracted in 50 components = 0.226509 Jy
! Clean residual min=-0.094280 max=0.119905 Jy/beam
! Clean residual mean=0.000153 rms=0.023024 Jy/beam
! Combined flux in latest and established models = 2.07655 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 23 components and 2.07655 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.477365Jy  sigma=0.005913
! Fit after  self-cal, rms=0.477186Jy  sigma=0.005910
! 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.5326 mas, bmaj=0.7362 mas, bpa=85.69 degrees
! Estimated noise=1385.64 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.14472 Jy
! Component: 100  -  total flux cleaned = 0.208129 Jy
! Total flux subtracted in 100 components = 0.208129 Jy
! Clean residual min=-0.102241 max=0.126256 Jy/beam
! Clean residual mean=0.000445 rms=0.029581 Jy/beam
! Combined flux in latest and established models = 2.28468 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 33 components and 2.28468 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.430578Jy  sigma=0.005493
! Fit after  self-cal, rms=0.430212Jy  sigma=0.005488
! 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.00*    FD        1.00*    HN        1.00*    HO        0.95     
!   KP        1.00*    LA        1.00*    MK        1.00*    NL        1.00*    
!   NY        1.12     OV        1.00*    PT        1.00*    MC        0.99     
!   SC        1.00*    SV        1.28     TC        1.00*    WF        1.00*    
!   WZ        0.85     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    HN        1.00*    HO        1.12     
!   KP        1.00*    LA        1.00*    MK        1.00*    NL        1.00*    
!   NY        1.02     OV        1.00*    PT        1.00*    MC        1.09     
!   SC        1.00*    SV        1.00*    TC        1.00*    WF        1.00*    
!   WZ        1.01     
! 
!  A total of 78 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.19     FD        1.00     HN        1.00*    HO        0.91     
!   KP        0.74     LA        1.04     MK        0.99     NL        0.92     
!   NY        1.09     OV        1.04     PT        1.02     MC        1.00*    
!   SC        1.00*    SV        1.00*    TC        1.00*    WF        1.00*    
!   WZ        1.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    HN        1.00*    HO        1.00*    
!   KP        0.75     LA        0.94     MK        1.00*    NL        0.93     
!   NY        1.00*    OV        1.14     PT        0.89     MC        1.00*    
!   SC        0.85     SV        1.00*    TC        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.00*    FD        1.00*    HN        1.00*    HO        0.91     
!   KP        1.00*    LA        1.00*    MK        1.00*    NL        1.00*    
!   NY        1.11     OV        1.00*    PT        1.00*    MC        0.98     
!   SC        1.00*    SV        1.27     TC        1.00*    WF        1.00*    
!   WZ        0.83     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    HN        1.00*    HO        1.15     
!   KP        1.00*    LA        1.00*    MK        1.00*    NL        1.00*    
!   NY        1.05     OV        1.00*    PT        1.00*    MC        1.05     
!   SC        1.00*    SV        1.00*    TC        1.00*    WF        1.00*    
!   WZ        1.01     
! 
!  A total of 78 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.14     FD        0.95     HN        1.00*    HO        0.91     
!   KP        0.91     LA        1.04     MK        1.03     NL        0.92     
!   NY        1.08     OV        1.03     PT        1.01     MC        1.00*    
!   SC        1.00*    SV        1.00*    TC        1.00*    WF        1.00*    
!   WZ        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    HN        1.00*    HO        1.00*    
!   KP        0.79     LA        0.89     MK        1.00*    NL        0.92     
!   NY        1.00*    OV        1.11     PT        0.86     MC        1.00*    
!   SC        0.90     SV        1.00*    TC        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.00*    FD        1.00*    HN        1.00*    HO        0.90     
!   KP        1.00*    LA        1.00*    MK        1.00*    NL        1.00*    
!   NY        1.09     OV        1.00*    PT        1.00*    MC        0.98     
!   SC        1.00*    SV        1.32     TC        1.00*    WF        1.00*    
!   WZ        0.86     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    HN        1.00*    HO        1.12     
!   KP        1.00*    LA        1.00*    MK        1.00*    NL        1.00*    
!   NY        1.02     OV        1.00*    PT        1.00*    MC        1.11     
!   SC        1.00*    SV        1.00*    TC        1.00*    WF        1.00*    
!   WZ        0.97     
! 
!  A total of 78 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.15     FD        1.00     HN        1.00*    HO        0.89     
!   KP        0.93     LA        1.04     MK        0.97     NL        0.90     
!   NY        1.14     OV        1.04     PT        1.02     MC        1.00*    
!   SC        1.00*    SV        1.00*    TC        1.00*    WF        1.00*    
!   WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    HN        1.00*    HO        1.00*    
!   KP        0.82     LA        0.76     MK        1.00*    NL        1.02     
!   NY        1.00*    OV        1.19     PT        0.93     MC        1.00*    
!   SC        0.92     SV        1.00*    TC        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.00*    FD        1.00*    HN        1.00*    HO        1.03     
!   KP        1.00*    LA        1.00*    MK        1.00*    NL        1.00*    
!   NY        1.10     OV        1.00*    PT        1.00*    MC        1.01     
!   SC        1.00*    SV        1.39     TC        1.00*    WF        1.00*    
!   WZ        0.84     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    HN        1.00*    HO        1.12     
!   KP        1.00*    LA        1.00*    MK        1.00*    NL        1.00*    
!   NY        1.05     OV        1.00*    PT        1.00*    MC        1.09     
!   SC        1.00*    SV        1.00*    TC        1.00*    WF        1.00*    
!   WZ        1.01     
! 
!  A total of 66 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.48     FD        1.00     HN        1.00*    HO        0.92     
!   KP        0.90     LA        1.06     MK        0.94     NL        0.90     
!   NY        1.13     OV        1.03     PT        1.02     MC        1.00*    
!   SC        1.00*    SV        1.00*    TC        1.00*    WF        1.00*    
!   WZ        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    HN        1.00*    HO        1.00*    
!   KP        0.78     LA        0.64     MK        1.00*    NL        0.95     
!   NY        1.00*    OV        1.00     PT        0.88     MC        1.00*    
!   SC        1.00     SV        1.00*    TC        1.00*    WF        1.00*    
!   WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.430212Jy  sigma=0.005488
! Fit after  self-cal, rms=0.165854Jy  sigma=0.001894
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.6568 mas, bmaj=1.032 mas, bpa=52.71 degrees
! Estimated noise=1603.85 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.00717944 Jy
! Component: 100  -  total flux cleaned = 0.00721256 Jy
! Total flux subtracted in 100 components = 0.00721256 Jy
! Clean residual min=-0.024853 max=0.030157 Jy/beam
! Clean residual mean=-0.000059 rms=0.006510 Jy/beam
! Combined flux in latest and established models = 2.29189 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 3 model components to the UV plane model.
! The established model now contains 34 components and 2.29189 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.164010Jy  sigma=0.001873
! Fit after  self-cal, rms=0.163797Jy  sigma=0.001870
! 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.00170868 Jy
! Component: 100  -  total flux cleaned = 0.00103385 Jy
! Total flux subtracted in 100 components = 0.00103385 Jy
! Clean residual min=-0.024724 max=0.029541 Jy/beam
! Clean residual mean=-0.000056 rms=0.006413 Jy/beam
! Combined flux in latest and established models = 2.29293 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 4 model components to the UV plane model.
! The established model now contains 35 components and 2.29293 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.162847Jy  sigma=0.001859
! Fit after  self-cal, rms=0.129910Jy  sigma=0.001451
! Inverting map and beam 
! Estimated beam: bmin=0.6567 mas, bmaj=1.026 mas, bpa=53.15 degrees
! Estimated noise=1602.44 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 (-4.7, -2.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0219597 Jy
! Component: 100  -  total flux cleaned = 0.0326704 Jy
! Total flux subtracted in 100 components = 0.0326704 Jy
! Clean residual min=-0.011220 max=0.013257 Jy/beam
! Clean residual mean=0.000020 rms=0.003280 Jy/beam
! Combined flux in latest and established models = 2.3256 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 41 components and 2.3256 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.126807Jy  sigma=0.001387
! Fit after  self-cal, rms=0.126475Jy  sigma=0.001383
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save OJ287_X
! Writing UV FITS file: OJ287_X.uvf
! Writing 41 model components to file: OJ287_X.mod
! wwins: Wrote 3 windows to OJ287_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6567 x 1.026 at 53.15 degrees (North through East)
! Clean map  min=-0.012579  max=1.9726 Jy/beam
! Writing clean map to FITS file: OJ287_X.fits
! Writing difmap environment to: OJ287_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot OJ287_X]
device OJ287_Xuv.ps/vps,1,2
! Attempting to open device: 'OJ287_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device OJ287_Xim.ps/vps
! Attempting to open device: 'OJ287_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.6567 mas, bmaj=1.026 mas, bpa=53.15 degrees
! Estimated noise=1602.44 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6567 x 1.026 at 53.15 degrees (North through East)
! Clean map  min=-0.012579  max=1.9726 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.1]
quit
! Quitting program
! Log file OJ287_X.log closed on Mon Oct 30 09:50:50 2006