! Started logfile: 1514-241_S.log on Tue May  4 08:43:09 1999
observe 1514-241_S.edt
! Reading UV FITS file: 1514-241_S.edt
! AN table 1: 45 integrations on 29 of 45 possible baselines.
! AN table 2: 11 integrations on 44 of 45 possible baselines.
! AN table 3: 35 integrations on 77 of 78 possible baselines.
! Apparent sampling: 0.385147 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1514-241
! 
! 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.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 911 lines of history.
! 
! Reading 6908 visibilities.
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.4
integer clean_niter
clean_niter = 50
float clean_gain
clean_gain = 0.03
float dynam
dynam = 7.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.400x0.400 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 385 telescope corrections were flagged in sub-array 1.
!  A total of 19 telescope corrections were flagged in sub-array 2.
!  A total of 223 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 385 telescope corrections were flagged in sub-array 1.
!  A total of 19 telescope corrections were flagged in sub-array 2.
!  A total of 223 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 385 telescope corrections were flagged in sub-array 1.
!  A total of 19 telescope corrections were flagged in sub-array 2.
!  A total of 223 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 385 telescope corrections were flagged in sub-array 1.
!  A total of 19 telescope corrections were flagged in sub-array 2.
!  A total of 223 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.068746Jy  sigma=4.194876
! Fit after  self-cal, rms=1.068684Jy  sigma=4.194656
! 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=2.34 mas, bmaj=7.373 mas, bpa=-8.48 degrees
! Estimated noise=3.05527 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 = 1.49947 Jy
! Total flux subtracted in 50 components = 1.49947 Jy
! Clean residual min=-0.083625 max=0.418236 Jy/beam
! Clean residual mean=0.000300 rms=0.021729 Jy/beam
! Combined flux in latest and established models = 1.49947 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 1.49947 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.610486Jy  sigma=2.395195
! Fit after  self-cal, rms=0.610487Jy  sigma=2.395195
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.371243 Jy
! Total flux subtracted in 50 components = 0.371243 Jy
! Clean residual min=-0.033856 max=0.139414 Jy/beam
! Clean residual mean=0.000312 rms=0.009983 Jy/beam
! Combined flux in latest and established models = 1.87071 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 6 components and 1.87071 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.335282Jy  sigma=1.312233
! Fit after  self-cal, rms=0.335029Jy  sigma=1.311277
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.13744 Jy
! Total flux subtracted in 50 components = 0.13744 Jy
! Clean residual min=-0.026861 max=0.103644 Jy/beam
! Clean residual mean=0.000309 rms=0.007302 Jy/beam
! Combined flux in latest and established models = 2.00815 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 15 components and 2.00815 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.265520Jy  sigma=1.035869
! Fit after  self-cal, rms=0.265343Jy  sigma=1.035199
! Inverting map 
! Added new window around map position (4, -10).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.09155 Jy
! Total flux subtracted in 50 components = 0.09155 Jy
! Clean residual min=-0.024123 max=0.051650 Jy/beam
! Clean residual mean=0.000283 rms=0.005753 Jy/beam
! Combined flux in latest and established models = 2.0997 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 31 components and 2.0997 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.225093Jy  sigma=0.875792
! Fit after  self-cal, rms=0.222941Jy  sigma=0.867113
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.058838 Jy
! Total flux subtracted in 50 components = 0.058838 Jy
! Clean residual min=-0.019582 max=0.038918 Jy/beam
! Clean residual mean=0.000267 rms=0.004764 Jy/beam
! Combined flux in latest and established models = 2.15854 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 45 components and 2.15854 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.202237Jy  sigma=0.784984
! Fit after  self-cal, rms=0.201674Jy  sigma=0.782694
! Inverting map 
! Added new window around map position (8, -16.8).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0459378 Jy
! Total flux subtracted in 50 components = 0.0459378 Jy
! Clean residual min=-0.017807 max=0.025724 Jy/beam
! Clean residual mean=0.000246 rms=0.004113 Jy/beam
! Combined flux in latest and established models = 2.20447 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 58 components and 2.20447 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.187860Jy  sigma=0.727702
! Fit after  self-cal, rms=0.187597Jy  sigma=0.726619
! 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=2.852 mas, bmaj=9.057 mas, bpa=-11.43 degrees
! Estimated noise=2.25248 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.0635654 Jy
! Component: 100  -  total flux cleaned = 0.104778 Jy
! Total flux subtracted in 100 components = 0.104778 Jy
! Clean residual min=-0.012317 max=0.028192 Jy/beam
! Clean residual mean=0.000749 rms=0.005485 Jy/beam
! Combined flux in latest and established models = 2.30925 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 33 model components to the UV plane model.
! The established model now contains 81 components and 2.30925 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.165811Jy  sigma=0.640077
! Fit after  self-cal, rms=0.164990Jy  sigma=0.636758
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.04     KK        1.00     KP        0.97     
!   LA        0.97     MC        1.00*    MK        1.01     ON        1.00*    
!   OV        1.00*    PT        0.96     
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.99     GN        0.95     HN        1.00     KP        1.00     
!   LA        0.98     NL        0.97     OV        1.02     PT        0.96     
!   SC        0.99     WF        1.11     
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        0.99     GN        1.00     HN        1.01     
!   KK        1.00     KP        0.98     LA        0.98     MK        0.99     
!   NL        0.97     OV        1.00     PT        0.97     SC        1.01     
!   WF        1.12     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.04     KK        0.98     KP        0.97     
!   LA        0.97     MC        1.00*    MK        1.01     ON        1.00*    
!   OV        1.00*    PT        0.96     
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.99     GN        0.98     HN        1.01     KP        0.99     
!   LA        0.99     NL        0.97     OV        1.04     PT        0.98     
!   SC        1.02     WF        1.02     
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        0.99     GN        0.98     HN        1.02     
!   KK        0.97     KP        0.98     LA        0.99     MK        0.99     
!   NL        1.00     OV        1.00     PT        0.97     SC        1.00     
!   WF        1.00     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.04     KK        1.00     KP        0.97     
!   LA        0.97     MC        1.00*    MK        1.03     ON        1.00*    
!   OV        1.00*    PT        0.97     
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.00     GN        1.01     HN        1.00     KP        1.00     
!   LA        1.00     NL        0.99     OV        1.05     PT        0.98     
!   SC        1.00     WF        1.01     
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.00     GN        0.96     HN        1.02     
!   KK        1.01     KP        0.98     LA        0.99     MK        0.99     
!   NL        0.99     OV        1.01     PT        0.98     SC        1.00     
!   WF        1.01     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        1.03     KK        1.00     KP        0.97     
!   LA        0.97     MC        1.00*    MK        1.03     ON        1.00*    
!   OV        1.00*    PT        0.91     
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.00     GN        0.95     HN        1.00     KP        0.99     
!   LA        0.98     NL        0.98     OV        1.03     PT        0.98     
!   SC        1.05     WF        1.03     
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        0.99     GN        0.97     HN        1.02     
!   KK        1.02     KP        0.98     LA        0.98     MK        1.00     
!   NL        1.00     OV        1.00     PT        0.96     SC        1.02     
!   WF        1.00     
! 
! 
! Fit before self-cal, rms=0.164990Jy  sigma=0.636758
! Fit after  self-cal, rms=0.147916Jy  sigma=0.573159
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.846 mas, bmaj=9.279 mas, bpa=-11.74 degrees
! Estimated noise=2.24598 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 (14, -21.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0248759 Jy
! Component: 100  -  total flux cleaned = 0.0411033 Jy
! Total flux subtracted in 100 components = 0.0411033 Jy
! Clean residual min=-0.007728 max=0.013767 Jy/beam
! Clean residual mean=0.000258 rms=0.002588 Jy/beam
! Combined flux in latest and established models = 2.35036 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 119 components and 2.35036 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.143878Jy  sigma=0.556627
! Fit after  self-cal, rms=0.143733Jy  sigma=0.556053
! 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)
! Added new window around map position (20.4, -43.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0140135 Jy
! Component: 100  -  total flux cleaned = 0.0220741 Jy
! Total flux subtracted in 100 components = 0.0220741 Jy
! Clean residual min=-0.007518 max=0.011110 Jy/beam
! Clean residual mean=0.000196 rms=0.002308 Jy/beam
! Combined flux in latest and established models = 2.37243 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 36 model components to the UV plane model.
! The established model now contains 152 components and 2.37243 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.142378Jy  sigma=0.550346
! Fit after  self-cal, rms=0.138795Jy  sigma=0.534802
! Inverting map and beam 
! Estimated beam: bmin=2.845 mas, bmaj=9.273 mas, bpa=-11.72 degrees
! Estimated noise=2.24817 mJy/beam.
! Added new window around map position (30, -26).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0133706 Jy
! Component: 100  -  total flux cleaned = 0.023497 Jy
! Total flux subtracted in 100 components = 0.023497 Jy
! Clean residual min=-0.006646 max=0.008529 Jy/beam
! Clean residual mean=0.000222 rms=0.001882 Jy/beam
! Combined flux in latest and established models = 2.39593 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 31 model components to the UV plane model.
! The established model now contains 180 components and 2.39593 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.137461Jy  sigma=0.529232
! Fit after  self-cal, rms=0.137182Jy  sigma=0.527988
! Inverting map and beam 
! Estimated beam: bmin=2.845 mas, bmaj=9.274 mas, bpa=-11.72 degrees
! Estimated noise=2.24921 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.00982004 Jy
! Component: 100  -  total flux cleaned = 0.0178293 Jy
! Total flux subtracted in 100 components = 0.0178293 Jy
! Clean residual min=-0.006241 max=0.007639 Jy/beam
! Clean residual mean=0.000200 rms=0.001706 Jy/beam
! Combined flux in latest and established models = 2.41376 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 32 model components to the UV plane model.
! The established model now contains 199 components and 2.41376 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.136418Jy  sigma=0.524796
! Fit after  self-cal, rms=0.136392Jy  sigma=0.524692
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1514-241_S
! Writing UV FITS file: 1514-241_S.uvf
! Writing 199 model components to file: 1514-241_S.mod
! wwins: Wrote 6 windows to 1514-241_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.845 x 9.274 at -11.72 degrees (North through East)
! Clean map  min=-0.0059745  max=1.9324 Jy/beam
! Writing clean map to FITS file: 1514-241_S.fits
! Writing difmap environment to: 1514-241_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1514-241_Suv.ps/vps,1,2
! Attempting to open device: '1514-241_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1514-241_Sim.ps/vps
! Attempting to open device: '1514-241_Sim.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=2.845 mas, bmaj=9.274 mas, bpa=-11.72 degrees
! Estimated noise=2.24921 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.845 x 9.274 at -11.72 degrees (North through East)
! Clean map  min=-0.0059745  max=1.9324 Jy/beam
quit
! Quitting program
! Log file 1514-241_S.log closed on Tue May  4 08:45:16 1999