! Started logfile: 1111+149_X.log on Wed Jul 17 10:22:03 2002
observe 1111+149_X.edt
! Reading UV FITS file: 1111+149_X.edt
! AN table 1: 44 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.492992 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1111+149
! 
! 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 8437 lines of history.
! 
! Reading 10412 visibilities.
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 = 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.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 250 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 250 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 250 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 250 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.727480Jy  sigma=5.219094
! Fit after  self-cal, rms=0.727406Jy  sigma=5.218549
! 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.6038 mas, bmaj=1.409 mas, bpa=-1.625 degrees
! Estimated noise=1.82102 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.214297 Jy
! Total flux subtracted in 50 components = 0.214297 Jy
! Clean residual min=-0.015529 max=0.059779 Jy/beam
! Clean residual mean=-0.000035 rms=0.004941 Jy/beam
! Combined flux in latest and established models = 0.214297 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.214297 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.123363Jy  sigma=0.884149
! Fit after  self-cal, rms=0.123363Jy  sigma=0.884148
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.053207 Jy
! Total flux subtracted in 50 components = 0.053207 Jy
! Clean residual min=-0.010039 max=0.021089 Jy/beam
! Clean residual mean=-0.000017 rms=0.003050 Jy/beam
! Combined flux in latest and established models = 0.267504 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 0.267504 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.103386Jy  sigma=0.740286
! Fit after  self-cal, rms=0.103362Jy  sigma=0.740109
! 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.7001 mas, bmaj=1.549 mas, bpa=-2.326 degrees
! Estimated noise=1.01414 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.0236316 Jy
! Component: 100  -  total flux cleaned = 0.0338681 Jy
! Total flux subtracted in 100 components = 0.0338681 Jy
! Clean residual min=-0.009734 max=0.011046 Jy/beam
! Clean residual mean=-0.000005 rms=0.002340 Jy/beam
! Combined flux in latest and established models = 0.301372 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 20 components and 0.301372 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.098782Jy  sigma=0.707114
! Fit after  self-cal, rms=0.098694Jy  sigma=0.706473
! 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:
!   BR        1.10     FD        1.02     GC        0.99     HN        1.09     
!   KK        0.96     KP        0.98     LA        0.94     MC        1.00*    
!   MK        1.00     NL        1.01     NY        1.00*    OV        0.98     
!   PT        0.97     SC        1.00     WF        1.00*    GN        0.89     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.09     FD        1.03     GC        1.00     HN        1.14     
!   KK        1.00     KP        0.98     LA        0.94     MC        1.00*    
!   MK        1.00     NL        1.01     NY        1.00*    OV        0.99     
!   PT        0.99     SC        1.03     WF        1.00*    GN        0.89     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.08     FD        1.02     GC        1.01     HN        1.13     
!   KK        0.97     KP        0.97     LA        0.94     MC        1.00*    
!   MK        1.02     NL        1.00     NY        1.00*    OV        0.99     
!   PT        1.02     SC        1.01     WF        1.00*    GN        0.75     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.07     FD        0.99     GC        1.00     HN        1.14     
!   KK        0.96     KP        0.99     LA        0.96     MC        1.00*    
!   MK        1.03     NL        0.99     NY        1.00*    OV        0.99     
!   PT        0.99     SC        0.99     WF        1.00*    GN        0.70     
! 
! 
! Fit before self-cal, rms=0.098694Jy  sigma=0.706473
! Fit after  self-cal, rms=0.093610Jy  sigma=0.664900
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.7002 mas, bmaj=1.563 mas, bpa=-2.323 degrees
! Estimated noise=1.00028 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 (-1.2, 2.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00866289 Jy
! Component: 100  -  total flux cleaned = 0.0126237 Jy
! Total flux subtracted in 100 components = 0.0126237 Jy
! Clean residual min=-0.003468 max=0.004058 Jy/beam
! Clean residual mean=-0.000015 rms=0.001005 Jy/beam
! Combined flux in latest and established models = 0.313996 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 30 components and 0.313996 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.092958Jy  sigma=0.659432
! Fit after  self-cal, rms=0.092964Jy  sigma=0.659033
! 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.0015232 Jy
! Component: 100  -  total flux cleaned = 0.00239426 Jy
! Total flux subtracted in 100 components = 0.00239426 Jy
! Clean residual min=-0.003491 max=0.003737 Jy/beam
! Clean residual mean=-0.000015 rms=0.000963 Jy/beam
! Combined flux in latest and established models = 0.31639 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 41 components and 0.31639 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.092844Jy  sigma=0.658146
! Fit after  self-cal, rms=0.092150Jy  sigma=0.652714
! Inverting map and beam 
! Estimated beam: bmin=0.6985 mas, bmaj=1.561 mas, bpa=-2.465 degrees
! Estimated noise=1.00055 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.00284922 Jy
! Component: 100  -  total flux cleaned = 0.00382317 Jy
! Total flux subtracted in 100 components = 0.00382317 Jy
! Clean residual min=-0.003157 max=0.003824 Jy/beam
! Clean residual mean=-0.000009 rms=0.000880 Jy/beam
! Combined flux in latest and established models = 0.320214 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 52 components and 0.320214 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.092059Jy  sigma=0.651973
! Fit after  self-cal, rms=0.092059Jy  sigma=0.651874
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1111+149_X
! Writing UV FITS file: 1111+149_X.uvf
! Writing 52 model components to file: 1111+149_X.mod
! wwins: Wrote 2 windows to 1111+149_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6985 x 1.561 at -2.465 degrees (North through East)
! Clean map  min=-0.0030476  max=0.27227 Jy/beam
! Writing clean map to FITS file: 1111+149_X.fits
! Writing difmap environment to: 1111+149_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1111+149_Xuv.ps/vps,1,2
! Attempting to open device: '1111+149_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1111+149_Xim.ps/vps
! Attempting to open device: '1111+149_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.6985 mas, bmaj=1.561 mas, bpa=-2.465 degrees
! Estimated noise=1.00055 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6985 x 1.561 at -2.465 degrees (North through East)
! Clean map  min=-0.0030476  max=0.27227 Jy/beam
quit
! Quitting program
! Log file 1111+149_X.log closed on Wed Jul 17 10:22:21 2002