! Started logfile: 2227-088_K.log on Tue Aug  6 10:54:17 2002
observe 2227-088_K.edt
! Reading UV FITS file: 2227-088_K.edt
! AN table 1: 44 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.753535 visibilities/baseline/integration-bin.
! Found source: 2227-088
! 
! 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  2.42545e+10        8e+06          1        8e+06
!  02        2  2.43345e+10        8e+06          1        8e+06
!  03        3  2.45145e+10        8e+06          1        8e+06
!  04        4  2.46545e+10        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 896 lines of history.
! 
! Reading 5968 visibilities.
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.03
integer clean_niter
clean_niter = 100
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.0300x0.0300 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 92 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 92 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 92 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 92 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.583871Jy  sigma=4.196164
! Fit after  self-cal, rms=0.583743Jy  sigma=4.195258
! 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.2382 mas, bmaj=0.5889 mas, bpa=-2.817 degrees
! Estimated noise=1.94722 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 = 1.17827 Jy
! Component: 100  -  total flux cleaned = 1.4353 Jy
! Total flux subtracted in 100 components = 1.4353 Jy
! Clean residual min=-0.047269 max=0.119067 Jy/beam
! Clean residual mean=0.000164 rms=0.016356 Jy/beam
! Combined flux in latest and established models = 1.4353 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 2 model components to the UV plane model.
! The established model now contains 2 components and 1.4353 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.281963Jy  sigma=2.023253
! Fit after  self-cal, rms=0.281944Jy  sigma=2.023117
! 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.2592 mas, bmaj=0.6586 mas, bpa=-2.794 degrees
! Estimated noise=1.37419 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.0583171 Jy
! Component: 100  -  total flux cleaned = 0.0570916 Jy
! Component: 150  -  total flux cleaned = 0.0550711 Jy
! Component: 200  -  total flux cleaned = 0.052093 Jy
! Total flux subtracted in 200 components = 0.052093 Jy
! Clean residual min=-0.036615 max=0.087370 Jy/beam
! Clean residual mean=0.000294 rms=0.014391 Jy/beam
! Combined flux in latest and established models = 1.48739 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 17 components and 1.48739 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.263416Jy  sigma=1.889677
! Fit after  self-cal, rms=0.263357Jy  sigma=1.889251
! 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.948642
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        0.90     HN        1.08     KP        1.01     
!   LA        0.93     MK        1.14     NL        1.36     OV        1.03     
!   PT        1.00*    SC        1.05     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 0.985436
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.93     FD        0.95     HN        1.02     KP        1.04     
!   LA        0.94     MK        0.95     NL        1.30     OV        0.99     
!   PT        1.00*    SC        1.03     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 1.00214
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.93     FD        0.96     HN        0.92     KP        0.88     
!   LA        0.96     MK        1.01     NL        1.43     OV        0.95     
!   PT        1.00*    SC        0.94     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 0.975838
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        1.07     HN        0.89     KP        0.99     
!   LA        0.99     MK        0.89     NL        1.51     OV        1.02     
!   PT        1.00*    SC        0.93     
! 
! 
! Fit before self-cal, rms=0.263357Jy  sigma=1.889251
! Fit after  self-cal, rms=0.175866Jy  sigma=1.272729
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.2579 mas, bmaj=0.6567 mas, bpa=-2.497 degrees
! Estimated noise=1.30664 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.0506362 Jy
! Component: 100  -  total flux cleaned = -0.0640062 Jy
! Component: 150  -  total flux cleaned = -0.0644227 Jy
! Component: 200  -  total flux cleaned = -0.0647526 Jy
! Total flux subtracted in 200 components = -0.0647526 Jy
! Clean residual min=-0.014447 max=0.013218 Jy/beam
! Clean residual mean=0.000015 rms=0.003383 Jy/beam
! Combined flux in latest and established models = 1.42264 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 25 components and 1.42264 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.162271Jy  sigma=1.165017
! Fit after  self-cal, rms=0.162321Jy  sigma=1.164552
! 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 = -0.000127558 Jy
! Component: 100  -  total flux cleaned = -0.000127569 Jy
! Component: 150  -  total flux cleaned = -0.000726259 Jy
! Component: 200  -  total flux cleaned = -0.00107357 Jy
! Total flux subtracted in 200 components = -0.00107357 Jy
! Clean residual min=-0.014692 max=0.012972 Jy/beam
! Clean residual mean=0.000014 rms=0.003254 Jy/beam
! Combined flux in latest and established models = 1.42156 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 35 components and 1.42156 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.161789Jy  sigma=1.160125
! Fit after  self-cal, rms=0.144466Jy  sigma=1.019951
! Inverting map and beam 
! Estimated beam: bmin=0.2577 mas, bmaj=0.6565 mas, bpa=-2.411 degrees
! Estimated noise=1.30846 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.00381687 Jy
! Component: 100  -  total flux cleaned = 0.0047218 Jy
! Component: 150  -  total flux cleaned = 0.00496359 Jy
! Component: 200  -  total flux cleaned = 0.00496136 Jy
! Total flux subtracted in 200 components = 0.00496136 Jy
! Clean residual min=-0.007922 max=0.008965 Jy/beam
! Clean residual mean=-0.000006 rms=0.002058 Jy/beam
! Combined flux in latest and established models = 1.42652 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 49 components and 1.42652 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.144214Jy  sigma=1.017476
! Fit after  self-cal, rms=0.144219Jy  sigma=1.017293
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 2227-088_K
! Writing UV FITS file: 2227-088_K.uvf
! Writing 49 model components to file: 2227-088_K.mod
! wwins: Wrote 1 windows to 2227-088_K.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.2577 x 0.6565 at -2.411 degrees (North through East)
! Clean map  min=-0.0093819  max=1.4591 Jy/beam
! Writing clean map to FITS file: 2227-088_K.fits
! Writing difmap environment to: 2227-088_K.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 2227-088_Kuv.ps/vps,1,2
! Attempting to open device: '2227-088_Kuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 2227-088_Kim.ps/vps
! Attempting to open device: '2227-088_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.2577 mas, bmaj=0.6565 mas, bpa=-2.411 degrees
! Estimated noise=1.30846 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.2577 x 0.6565 at -2.411 degrees (North through East)
! Clean map  min=-0.0093819  max=1.4591 Jy/beam
quit
! Quitting program
! Log file 2227-088_K.log closed on Tue Aug  6 10:54:49 2002