! Started logfile: 1145-071_X.log on Wed Jul 17 11:29:21 2002
observe 1145-071_X.edt
! Reading UV FITS file: 1145-071_X.edt
! AN table 1: 13 integrations on 120 of 120 possible baselines.
! AN table 2: 117 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.270962 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1145-071
! 
! 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 16908 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 146 telescope corrections were flagged in sub-array 1.
!  A total of 1065 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 146 telescope corrections were flagged in sub-array 1.
!  A total of 1065 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 146 telescope corrections were flagged in sub-array 1.
!  A total of 1065 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 146 telescope corrections were flagged in sub-array 1.
!  A total of 1065 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=0.590618Jy  sigma=4.206980
! Fit after  self-cal, rms=0.590200Jy  sigma=4.204066
! 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.6599 mas, bmaj=1.687 mas, bpa=-1.509 degrees
! Estimated noise=1.26241 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.313804 Jy
! Total flux subtracted in 50 components = 0.313804 Jy
! Clean residual min=-0.016745 max=0.087556 Jy/beam
! Clean residual mean=0.000096 rms=0.005296 Jy/beam
! Combined flux in latest and established models = 0.313804 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.313804 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.173385Jy  sigma=1.229290
! Fit after  self-cal, rms=0.173385Jy  sigma=1.229286
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0751623 Jy
! Total flux subtracted in 50 components = 0.0751623 Jy
! Clean residual min=-0.012809 max=0.047501 Jy/beam
! Clean residual mean=0.000064 rms=0.003640 Jy/beam
! Combined flux in latest and established models = 0.388966 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 7 components and 0.388966 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.136659Jy  sigma=0.966163
! Fit after  self-cal, rms=0.136651Jy  sigma=0.966103
! Inverting map 
! Added new window around map position (-2.1, 0.6).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0444556 Jy
! Total flux subtracted in 50 components = 0.0444556 Jy
! Clean residual min=-0.010961 max=0.023312 Jy/beam
! Clean residual mean=0.000052 rms=0.002895 Jy/beam
! Combined flux in latest and established models = 0.433421 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 14 components and 0.433421 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.120367Jy  sigma=0.848794
! Fit after  self-cal, rms=0.119917Jy  sigma=0.845753
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0285616 Jy
! Total flux subtracted in 50 components = 0.0285616 Jy
! Clean residual min=-0.009789 max=0.018675 Jy/beam
! Clean residual mean=0.000043 rms=0.002470 Jy/beam
! Combined flux in latest and established models = 0.461983 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 24 components and 0.461983 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.111895Jy  sigma=0.787834
! Fit after  self-cal, rms=0.111781Jy  sigma=0.787090
! 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.7735 mas, bmaj=1.985 mas, bpa=-1.953 degrees
! Estimated noise=0.81163 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.0346803 Jy
! Component: 100  -  total flux cleaned = 0.0570331 Jy
! Total flux subtracted in 100 components = 0.0570331 Jy
! Clean residual min=-0.008273 max=0.015768 Jy/beam
! Clean residual mean=0.000115 rms=0.002483 Jy/beam
! Combined flux in latest and established models = 0.519016 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 43 model components to the UV plane model.
! The established model now contains 62 components and 0.519016 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.101076Jy  sigma=0.709598
! Fit after  self-cal, rms=0.100706Jy  sigma=0.707008
! 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.03     FD        0.97     GC        1.00     HN        1.00*    
!   KK        0.94     KP        0.98     LA        1.00     MC        1.00*    
!   MK        1.03     NL        1.00*    NY        1.00*    OV        1.02     
!   PT        0.97     SC        1.00*    WF        1.00*    GN        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.99     GC        1.07     HN        1.05     
!   KK        0.94     KP        0.95     LA        0.96     MC        1.27     
!   MK        1.01     NL        1.01     NY        1.00*    OV        1.00     
!   PT        0.96     SC        0.99     WF        1.04     GN        0.90     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.98     GC        1.00     HN        1.00*    
!   KK        0.91     KP        1.00     LA        0.98     MC        1.00*    
!   MK        1.00     NL        1.00*    NY        1.00*    OV        1.03     
!   PT        0.99     SC        1.00*    WF        1.00*    GN        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.97     GC        1.07     HN        1.09     
!   KK        0.95     KP        0.97     LA        0.96     MC        1.24     
!   MK        1.00     NL        1.01     NY        1.00*    OV        1.01     
!   PT        0.96     SC        0.99     WF        1.03     GN        0.93     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.00     GC        1.03     HN        1.00*    
!   KK        0.94     KP        0.99     LA        0.98     MC        1.00*    
!   MK        0.99     NL        1.00*    NY        1.00*    OV        1.01     
!   PT        0.99     SC        1.00*    WF        1.00*    GN        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.98     GC        1.06     HN        1.11     
!   KK        0.95     KP        0.97     LA        0.96     MC        1.23     
!   MK        1.03     NL        1.01     NY        1.00*    OV        1.02     
!   PT        0.96     SC        1.00     WF        1.01     GN        0.77     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.01     GC        0.97     HN        1.00*    
!   KK        0.92     KP        0.95     LA        0.99     MC        1.00*    
!   MK        1.00     NL        1.00*    NY        1.00*    OV        1.03     
!   PT        0.98     SC        1.00*    WF        1.00*    GN        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.98     GC        1.05     HN        1.06     
!   KK        0.93     KP        0.96     LA        0.95     MC        1.29     
!   MK        1.01     NL        1.00     NY        1.00*    OV        1.01     
!   PT        0.97     SC        1.01     WF        1.01     GN        0.75     
! 
! 
! Fit before self-cal, rms=0.100706Jy  sigma=0.707008
! Fit after  self-cal, rms=0.090611Jy  sigma=0.650627
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.7934 mas, bmaj=2.016 mas, bpa=-2.087 degrees
! Estimated noise=0.795096 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.4, 0.7).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.012184 Jy
! Component: 100  -  total flux cleaned = 0.0175345 Jy
! Total flux subtracted in 100 components = 0.0175345 Jy
! Clean residual min=-0.003508 max=0.004422 Jy/beam
! Clean residual mean=0.000019 rms=0.000893 Jy/beam
! Combined flux in latest and established models = 0.536551 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 79 components and 0.536551 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.089208Jy  sigma=0.639847
! Fit after  self-cal, rms=0.089110Jy  sigma=0.638895
! 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.00253178 Jy
! Component: 100  -  total flux cleaned = 0.00323493 Jy
! Total flux subtracted in 100 components = 0.00323493 Jy
! Clean residual min=-0.003248 max=0.003711 Jy/beam
! Clean residual mean=0.000014 rms=0.000801 Jy/beam
! Combined flux in latest and established models = 0.539785 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 96 components and 0.539785 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.088847Jy  sigma=0.636849
! Fit after  self-cal, rms=0.087733Jy  sigma=0.623014
! Inverting map and beam 
! Estimated beam: bmin=0.7941 mas, bmaj=2.015 mas, bpa=-2.121 degrees
! Estimated noise=0.797844 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 (-2.8, 1.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00428707 Jy
! Component: 100  -  total flux cleaned = 0.00633624 Jy
! Total flux subtracted in 100 components = 0.00633624 Jy
! Clean residual min=-0.002302 max=0.002585 Jy/beam
! Clean residual mean=0.000017 rms=0.000579 Jy/beam
! Combined flux in latest and established models = 0.546122 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 111 components and 0.546121 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.087543Jy  sigma=0.621561
! Fit after  self-cal, rms=0.087529Jy  sigma=0.621417
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1145-071_X
! Writing UV FITS file: 1145-071_X.uvf
! Writing 111 model components to file: 1145-071_X.mod
! wwins: Wrote 4 windows to 1145-071_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7941 x 2.015 at -2.121 degrees (North through East)
! Clean map  min=-0.0022641  max=0.40397 Jy/beam
! Writing clean map to FITS file: 1145-071_X.fits
! Writing difmap environment to: 1145-071_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1145-071_Xuv.ps/vps,1,2
! Attempting to open device: '1145-071_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1145-071_Xim.ps/vps
! Attempting to open device: '1145-071_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.7941 mas, bmaj=2.015 mas, bpa=-2.121 degrees
! Estimated noise=0.797844 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7941 x 2.015 at -2.121 degrees (North through East)
! Clean map  min=-0.0022641  max=0.40397 Jy/beam
quit
! Quitting program
! Log file 1145-071_X.log closed on Wed Jul 17 11:29:49 2002