! Started logfile: 0229+131_X.log on Wed Sep 20 12:37:43 2006
observe 0229+131_X.edt
! Reading UV FITS file: 0229+131_X.edt
! AN table 1: 36 integrations on 105 of 105 possible baselines.
! AN table 2: 63 integrations on 105 of 105 possible baselines.
! AN table 3: 14 integrations on 105 of 105 possible baselines.
! AN table 4: 19 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.127706 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0229+131
! 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 1641 lines of history.
! 
! Reading 7080 visibilities.
![@gonzo5-0.1 0229+131_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 = 5.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 359 telescope corrections were flagged in sub-array 1.
!  A total of 653 telescope corrections were flagged in sub-array 2.
!  A total of 175 telescope corrections were flagged in sub-array 3.
!  A total of 273 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 359 telescope corrections were flagged in sub-array 1.
!  A total of 650 telescope corrections were flagged in sub-array 2.
!  A total of 175 telescope corrections were flagged in sub-array 3.
!  A total of 273 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 359 telescope corrections were flagged in sub-array 1.
!  A total of 650 telescope corrections were flagged in sub-array 2.
!  A total of 175 telescope corrections were flagged in sub-array 3.
!  A total of 273 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 359 telescope corrections were flagged in sub-array 1.
!  A total of 650 telescope corrections were flagged in sub-array 2.
!  A total of 175 telescope corrections were flagged in sub-array 3.
!  A total of 273 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.637697Jy  sigma=0.007301
! Fit after  self-cal, rms=0.623008Jy  sigma=0.007176
! 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.7474 mas, bmaj=1.338 mas, bpa=-15.6 degrees
! Estimated noise=863.314 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.860517 Jy
! Total flux subtracted in 50 components = 0.860517 Jy
! Clean residual min=-0.055380 max=0.251151 Jy/beam
! Clean residual mean=-0.000897 rms=0.017763 Jy/beam
! Combined flux in latest and established models = 0.860517 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 0.860517 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.704031Jy  sigma=0.008637
! Fit after  self-cal, rms=0.704058Jy  sigma=0.008637
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.251255 Jy
! Total flux subtracted in 50 components = 0.251255 Jy
! Clean residual min=-0.045217 max=0.104728 Jy/beam
! Clean residual mean=-0.000459 rms=0.012395 Jy/beam
! Combined flux in latest and established models = 1.11177 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 10 components and 1.11177 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.569448Jy  sigma=0.006139
! Fit after  self-cal, rms=0.569452Jy  sigma=0.006138
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.111896 Jy
! Total flux subtracted in 50 components = 0.111896 Jy
! Clean residual min=-0.047578 max=0.051895 Jy/beam
! Clean residual mean=-0.000265 rms=0.011371 Jy/beam
! Combined flux in latest and established models = 1.22367 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 23 components and 1.22367 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.527150Jy  sigma=0.005474
! Fit after  self-cal, rms=0.527128Jy  sigma=0.005473
! 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.9314 mas, bmaj=1.852 mas, bpa=-13.54 degrees
! Estimated noise=517.259 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.113786 Jy
! Component: 100  -  total flux cleaned = 0.161047 Jy
! Total flux subtracted in 100 components = 0.161047 Jy
! Clean residual min=-0.072917 max=0.062245 Jy/beam
! Clean residual mean=-0.000384 rms=0.015199 Jy/beam
! Combined flux in latest and established models = 1.38471 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 38 model components to the UV plane model.
! The established model now contains 52 components and 1.38471 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.486704Jy  sigma=0.005217
! Fit after  self-cal, rms=0.486688Jy  sigma=0.005217
! 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:
!   AP        1.17     BR        0.76     FD        0.98     HN        1.46     
!   KP        0.95     LA        0.97     MC        0.91     MK        0.95     
!   NL        1.00     HO        1.00*    NY        1.00*    OV        1.01     
!   PT        0.97     SC        0.94     WZ        0.87     
! 
!  A total of 39 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   AP        1.05     BR        1.22     FD        1.05     HN        0.69     
!   KP        0.55     LA        1.05     MC        1.00*    MK        1.02     
!   NL        1.00     HO        1.00*    NY        1.13     OV        1.09     
!   PT        1.07     SC        1.04     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   AP        1.00     BR        1.00*    FD        1.00*    HN        1.07     
!   KP        1.00*    LA        1.00*    MC        1.00     MK        1.00*    
!   NL        1.00*    HO        1.00*    NY        0.98     OV        1.00*    
!   PT        1.00*    SC        1.05     WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   AP        0.00*    BR        0.00*    FD        0.00*    HN        0.00*    
!   KP        0.00*    LA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    HO        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   AP        1.17     BR        0.80     FD        0.97     HN        1.37     
!   KP        1.02     LA        0.98     MC        0.92     MK        1.01     
!   NL        0.99     HO        1.00*    NY        1.00*    OV        1.00     
!   PT        0.96     SC        0.96     WZ        0.89     
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   AP        1.06     BR        1.20     FD        1.05     HN        0.86     
!   KP        0.74     LA        1.06     MC        1.00*    MK        1.04     
!   NL        1.02     HO        1.00*    NY        1.14     OV        1.09     
!   PT        1.09     SC        1.01     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   AP        1.00     BR        1.00*    FD        1.00*    HN        1.12     
!   KP        1.00*    LA        1.00*    MC        1.01     MK        1.00*    
!   NL        1.00*    HO        1.00*    NY        1.00     OV        1.00*    
!   PT        1.00*    SC        1.04     WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   AP        0.00*    BR        0.00*    FD        0.00*    HN        0.00*    
!   KP        0.00*    LA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    HO        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   AP        1.18     BR        0.81     FD        0.98     HN        1.17     
!   KP        1.03     LA        0.98     MC        0.89     MK        1.03     
!   NL        1.00     HO        1.00*    NY        1.00*    OV        1.01     
!   PT        0.97     SC        0.98     WZ        0.91     
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   AP        1.03     BR        1.22     FD        1.05     HN        0.97     
!   KP        0.70     LA        1.06     MC        1.00*    MK        1.04     
!   NL        1.01     HO        1.00*    NY        1.25     OV        1.10     
!   PT        1.07     SC        1.03     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   AP        1.01     BR        1.00*    FD        1.00*    HN        1.05     
!   KP        1.00*    LA        1.00*    MC        1.06     MK        1.00*    
!   NL        1.00*    HO        1.00*    NY        1.02     OV        1.00*    
!   PT        1.00*    SC        1.04     WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   AP        0.00*    BR        0.00*    FD        0.00*    HN        0.00*    
!   KP        0.00*    LA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    HO        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   AP        1.17     BR        0.45     FD        0.98     HN        1.36     
!   KP        1.03     LA        0.97     MC        0.85     MK        1.06     
!   NL        1.00     HO        1.00*    NY        1.00*    OV        1.01     
!   PT        0.98     SC        1.04     WZ        0.96     
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   AP        1.03     BR        1.23     FD        1.06     HN        0.63     
!   KP        0.75     LA        1.05     MC        1.00*    MK        1.04     
!   NL        1.02     HO        1.00*    NY        1.32     OV        1.09     
!   PT        1.07     SC        1.03     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   AP        1.00     BR        1.00*    FD        1.00*    HN        1.06     
!   KP        1.00*    LA        1.00*    MC        1.01     MK        1.00*    
!   NL        1.00*    HO        1.00*    NY        0.97     OV        1.00*    
!   PT        1.00*    SC        1.04     WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   AP        0.00*    BR        0.00*    FD        0.00*    HN        0.00*    
!   KP        0.00*    LA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    HO        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
! 
! Fit before self-cal, rms=0.486688Jy  sigma=0.005217
! Fit after  self-cal, rms=0.200506Jy  sigma=0.003202
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.9243 mas, bmaj=1.922 mas, bpa=-13.39 degrees
! Estimated noise=522.845 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.0151855 Jy
! Component: 100  -  total flux cleaned = 0.0181496 Jy
! Total flux subtracted in 100 components = 0.0181496 Jy
! Clean residual min=-0.024189 max=0.023168 Jy/beam
! Clean residual mean=0.000061 rms=0.006376 Jy/beam
! Combined flux in latest and established models = 1.40286 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 56 components and 1.40286 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.198591Jy  sigma=0.003203
! Fit after  self-cal, rms=0.198458Jy  sigma=0.003202
! 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.000424496 Jy
! Component: 100  -  total flux cleaned = -0.000805272 Jy
! Total flux subtracted in 100 components = -0.000805272 Jy
! Clean residual min=-0.024129 max=0.023127 Jy/beam
! Clean residual mean=0.000058 rms=0.006372 Jy/beam
! Combined flux in latest and established models = 1.40206 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 59 components and 1.40206 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.198243Jy  sigma=0.003199
! Fit after  self-cal, rms=0.120727Jy  sigma=0.001789
! Inverting map and beam 
! Estimated beam: bmin=0.9264 mas, bmaj=1.923 mas, bpa=-13.14 degrees
! Estimated noise=523.58 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 (3.1, 2.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0116328 Jy
! Component: 100  -  total flux cleaned = 0.0125107 Jy
! Total flux subtracted in 100 components = 0.0125107 Jy
! Clean residual min=-0.014467 max=0.016187 Jy/beam
! Clean residual mean=-0.000002 rms=0.003283 Jy/beam
! Combined flux in latest and established models = 1.41457 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 71 components and 1.41457 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.118249Jy  sigma=0.001742
! Fit after  self-cal, rms=0.117938Jy  sigma=0.001739
! Inverting map 
! Added new window around map position (5.3, -16.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00918853 Jy
! Component: 100  -  total flux cleaned = 0.011769 Jy
! Total flux subtracted in 100 components = 0.011769 Jy
! Clean residual min=-0.013230 max=0.012607 Jy/beam
! Clean residual mean=-0.000012 rms=0.003101 Jy/beam
! Combined flux in latest and established models = 1.42634 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 84 components and 1.42634 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.115895Jy  sigma=0.001701
! Fit after  self-cal, rms=0.115845Jy  sigma=0.001701
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0229+131_X
! Writing UV FITS file: 0229+131_X.uvf
! Writing 84 model components to file: 0229+131_X.mod
! wwins: Wrote 3 windows to 0229+131_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9264 x 1.923 at -13.14 degrees (North through East)
! Clean map  min=-0.014844  max=1.2171 Jy/beam
! Writing clean map to FITS file: 0229+131_X.fits
! Writing difmap environment to: 0229+131_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 0229+131_X]
device 0229+131_Xuv.ps/vps,1,2
! Attempting to open device: '0229+131_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0229+131_Xim.ps/vps
! Attempting to open device: '0229+131_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.9264 mas, bmaj=1.923 mas, bpa=-13.14 degrees
! Estimated noise=523.58 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9264 x 1.923 at -13.14 degrees (North through East)
! Clean map  min=-0.014844  max=1.2171 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo5-0.1]
quit
! Quitting program
! Log file 0229+131_X.log closed on Wed Sep 20 12:38:05 2006