! Started logfile: 1437-153_K.log on Mon Oct 16 13:45:35 2006
observe 1437-153_K.edt
! Reading UV FITS file: 1437-153_K.edt
! AN table 1: 33 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.713805 visibilities/baseline/integration-bin.
! Found source: 1437-153
! 
! There are 8 IFs, and a total of 8 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.37245e+10        8e+06          1        8e+06
!  02        2  2.37375e+10        8e+06          1        8e+06
!  03        3  2.37765e+10        8e+06          1        8e+06
!  04        4  2.38545e+10        8e+06          1        8e+06
!  05        5  2.39975e+10        8e+06          1        8e+06
!  06        6  2.41015e+10        8e+06          1        8e+06
!  07        7  2.41665e+10        8e+06          1        8e+06
!  08        8  2.41925e+10        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1089 lines of history.
! 
! Reading 8480 visibilities.
![@gonzo6-0.02 1437-153_K]
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.02
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float win_mult
win_mult = 1.4
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.0200x0.0200 milli-arcsec cellsize.
select
! Selecting polarization: RR,  channels: 1..8
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
! Reading IF 5 channels: 5..5
! Reading IF 6 channels: 6..6
! Reading IF 7 channels: 7..7
! Reading IF 8 channels: 8..8
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 73 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 73 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 73 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 80 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 5.
!  A total of 80 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 6.
!  A total of 73 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 7.
!  A total of 73 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 8.
!  A total of 122 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.650458Jy  sigma=0.002201
! Fit after  self-cal, rms=0.648915Jy  sigma=0.002197
! 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.262 mas, bmaj=0.812 mas, bpa=-13.32 degrees
! Estimated noise=4951.21 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=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.34638 Jy
! Component: 100  -  total flux cleaned = 0.424344 Jy
! Total flux subtracted in 100 components = 0.424344 Jy
! Clean residual min=-0.024199 max=0.031565 Jy/beam
! Clean residual mean=-0.000291 rms=0.008308 Jy/beam
! Combined flux in latest and established models = 0.424344 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.424344 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Correcting IF 5.
! 
! Correcting IF 6.
! 
! Correcting IF 7.
! 
! Correcting IF 8.
! 
! Fit before self-cal, rms=0.354615Jy  sigma=0.001062
! Fit after  self-cal, rms=0.354565Jy  sigma=0.001061
! 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.4
clean_niter = clean_niter * 2
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.2826 mas, bmaj=0.8349 mas, bpa=-12.85 degrees
! Estimated noise=2660.3 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=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0263943 Jy
! Component: 100  -  total flux cleaned = 0.0394274 Jy
! Component: 150  -  total flux cleaned = 0.0452457 Jy
! Component: 200  -  total flux cleaned = 0.0458545 Jy
! Total flux subtracted in 200 components = 0.0458545 Jy
! Clean residual min=-0.020293 max=0.023577 Jy/beam
! Clean residual mean=-0.000087 rms=0.005724 Jy/beam
! Combined flux in latest and established models = 0.470199 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 22 components and 0.470199 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Correcting IF 5.
! 
! Correcting IF 6.
! 
! Correcting IF 7.
! 
! Correcting IF 8.
! 
! Fit before self-cal, rms=0.351762Jy  sigma=0.001058
! Fit after  self-cal, rms=0.351687Jy  sigma=0.001058
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
gscale false
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Amplitude normalization factor in sub-array 1: 0.98472
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.07     FD        1.02     HN        1.08     KP        1.07     
!   LA        0.81     MK        1.02     NL        1.20     OV        1.00     
!   PT        1.00*    SC        0.88     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 1.00417
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.94     HN        0.99     KP        1.10     
!   LA        0.84     MK        1.01     NL        1.06     OV        1.03     
!   PT        1.00*    SC        0.96     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 1.01635
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.08     FD        0.79     HN        1.07     KP        1.01     
!   LA        0.85     MK        0.91     NL        1.14     OV        1.01     
!   PT        1.00*    SC        0.97     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 0.999582
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.92     HN        1.18     KP        0.99     
!   LA        0.82     MK        0.87     NL        1.30     OV        0.93     
!   PT        1.00*    SC        1.00     
! 
! 
! Correcting IF 5.
!  Amplitude normalization factor in sub-array 1: 0.99782
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.80     FD        1.05     HN        0.92     KP        0.98     
!   LA        0.92     MK        1.03     NL        1.05     OV        1.22     
!   PT        1.00*    SC        1.05     
! 
! 
! Correcting IF 6.
!  Amplitude normalization factor in sub-array 1: 0.979611
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        0.95     HN        1.12     KP        1.00     
!   LA        0.87     MK        0.99     NL        1.31     OV        0.95     
!   PT        1.00*    SC        0.97     
! 
! 
! Correcting IF 7.
!  Amplitude normalization factor in sub-array 1: 1.00303
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.16     FD        0.76     HN        0.90     KP        1.00     
!   LA        0.90     MK        0.97     NL        1.42     OV        0.99     
!   PT        1.00*    SC        0.88     
! 
! 
! Correcting IF 8.
!  Amplitude normalization factor in sub-array 1: 1.00714
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.06     FD        0.83     HN        1.00*    KP        0.99     
!   LA        0.91     MK        1.00     NL        1.00*    OV        1.16     
!   PT        1.00*    SC        0.98     
! 
! 
! Fit before self-cal, rms=0.351687Jy  sigma=0.001058
! Fit after  self-cal, rms=0.337161Jy  sigma=0.001032
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.2817 mas, bmaj=0.8325 mas, bpa=-12.61 degrees
! Estimated noise=2640.76 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=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000732237 Jy
! Component: 100  -  total flux cleaned = -0.00135993 Jy
! Component: 150  -  total flux cleaned = -0.00163351 Jy
! Component: 200  -  total flux cleaned = -0.00188283 Jy
! Total flux subtracted in 200 components = -0.00188283 Jy
! Clean residual min=-0.008870 max=0.010555 Jy/beam
! Clean residual mean=0.000094 rms=0.002809 Jy/beam
! Combined flux in latest and established models = 0.468316 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 39 components and 0.468316 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Correcting IF 5.
! 
! Correcting IF 6.
! 
! Correcting IF 7.
! 
! Correcting IF 8.
! 
! Fit before self-cal, rms=0.337112Jy  sigma=0.001032
! Fit after  self-cal, rms=0.337091Jy  sigma=0.001031
! 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=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -9.48587e-05 Jy
! Component: 100  -  total flux cleaned = -0.000237644 Jy
! Component: 150  -  total flux cleaned = -0.000374922 Jy
! Component: 200  -  total flux cleaned = -0.000500084 Jy
! Total flux subtracted in 200 components = -0.000500084 Jy
! Clean residual min=-0.008940 max=0.010195 Jy/beam
! Clean residual mean=0.000090 rms=0.002776 Jy/beam
! Combined flux in latest and established models = 0.467816 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 46 components and 0.467816 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Correcting IF 5.
! 
! Correcting IF 6.
! 
! Correcting IF 7.
! 
! Correcting IF 8.
! 
! Fit before self-cal, rms=0.337068Jy  sigma=0.001031
! Fit after  self-cal, rms=0.341681Jy  sigma=0.001022
! Inverting map and beam 
! Estimated beam: bmin=0.2816 mas, bmaj=0.834 mas, bpa=-12.7 degrees
! Estimated noise=2661.78 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=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00301139 Jy
! Component: 100  -  total flux cleaned = 0.00351405 Jy
! Component: 150  -  total flux cleaned = 0.00358412 Jy
! Component: 200  -  total flux cleaned = 0.00352915 Jy
! Total flux subtracted in 200 components = 0.00352915 Jy
! Clean residual min=-0.009276 max=0.009387 Jy/beam
! Clean residual mean=0.000112 rms=0.002712 Jy/beam
! Combined flux in latest and established models = 0.471345 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 57 components and 0.471345 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Correcting IF 5.
! 
! Correcting IF 6.
! 
! Correcting IF 7.
! 
! Correcting IF 8.
! 
! Fit before self-cal, rms=0.341639Jy  sigma=0.001022
! Fit after  self-cal, rms=0.341650Jy  sigma=0.001022
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1437-153_K
! Writing UV FITS file: 1437-153_K.uvf
! Writing 57 model components to file: 1437-153_K.mod
! wwins: Wrote 1 windows to 1437-153_K.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.2816 x 0.834 at -12.7 degrees (North through East)
! Clean map  min=-0.0092582  max=0.43749 Jy/beam
! Writing clean map to FITS file: 1437-153_K.fits
! Writing difmap environment to: 1437-153_K.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1437-153_K]
device 1437-153_Kuv.ps/vps,1,2
! Attempting to open device: '1437-153_Kuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1437-153_Kim.ps/vps
! Attempting to open device: '1437-153_Kim.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.2816 mas, bmaj=0.834 mas, bpa=-12.7 degrees
! Estimated noise=2661.78 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.2816 x 0.834 at -12.7 degrees (North through East)
! Clean map  min=-0.0092582  max=0.43749 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo6-0.02]
quit
! Quitting program
! Log file 1437-153_K.log closed on Mon Oct 16 13:45:41 2006