! Started logfile: 0727-115_S.log on Thu Oct 22 18:41:46 1998
observe 0727-115_S.edt
! Reading UV FITS file: 0727-115_S.edt
! AN table 1: 36 integrations on 67 of 91 possible baselines.
! AN table 2: 42 integrations on 55 of 78 possible baselines.
! AN table 3: 47 integrations on 74 of 78 possible baselines.
! AN table 4: 29 integrations on 1 of 1 possible baselines.
! Apparent sampling: 0.34986 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0727-115
! 
! 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 1602 lines of history.
! 
! Reading 11516 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 299 telescope corrections were flagged in sub-array 1.
!  A total of 341 telescope corrections were flagged in sub-array 2.
!  A total of 425 telescope corrections were flagged in sub-array 3.
!  A total of 58 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 299 telescope corrections were flagged in sub-array 1.
!  A total of 341 telescope corrections were flagged in sub-array 2.
!  A total of 425 telescope corrections were flagged in sub-array 3.
!  A total of 58 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 299 telescope corrections were flagged in sub-array 1.
!  A total of 341 telescope corrections were flagged in sub-array 2.
!  A total of 425 telescope corrections were flagged in sub-array 3.
!  A total of 58 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 299 telescope corrections were flagged in sub-array 1.
!  A total of 341 telescope corrections were flagged in sub-array 2.
!  A total of 425 telescope corrections were flagged in sub-array 3.
!  A total of 58 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.637611Jy  sigma=8.769347
! Fit after  self-cal, rms=1.637124Jy  sigma=8.766225
! 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.519 mas, bmaj=7.775 mas, bpa=-3.688 degrees
! Estimated noise=2.01115 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.88464 Jy
! Total flux subtracted in 50 components = 1.88464 Jy
! Clean residual min=-0.107781 max=0.526378 Jy/beam
! Clean residual mean=0.002552 rms=0.029260 Jy/beam
! Combined flux in latest and established models = 1.88464 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.88464 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.829580Jy  sigma=4.416443
! Fit after  self-cal, rms=0.829580Jy  sigma=4.416441
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.484508 Jy
! Total flux subtracted in 50 components = 0.484508 Jy
! Clean residual min=-0.053909 max=0.204356 Jy/beam
! Clean residual mean=0.001544 rms=0.015030 Jy/beam
! Combined flux in latest and established models = 2.36915 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 9 components and 2.36915 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.483456Jy  sigma=2.538814
! Fit after  self-cal, rms=0.483054Jy  sigma=2.536713
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.221721 Jy
! Total flux subtracted in 50 components = 0.221721 Jy
! Clean residual min=-0.033033 max=0.101101 Jy/beam
! Clean residual mean=0.001079 rms=0.009911 Jy/beam
! Combined flux in latest and established models = 2.59087 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 14 components and 2.59087 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.362733Jy  sigma=1.878016
! Fit after  self-cal, rms=0.362371Jy  sigma=1.876074
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.115184 Jy
! Total flux subtracted in 50 components = 0.115184 Jy
! Clean residual min=-0.026898 max=0.056913 Jy/beam
! Clean residual mean=0.000838 rms=0.008066 Jy/beam
! Combined flux in latest and established models = 2.70606 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 20 components and 2.70606 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.316767Jy  sigma=1.624407
! Fit after  self-cal, rms=0.316571Jy  sigma=1.623359
! Inverting map 
! Added new window around map position (-2.4, 1.6).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0697436 Jy
! Total flux subtracted in 50 components = 0.0697436 Jy
! Clean residual min=-0.025241 max=0.044275 Jy/beam
! Clean residual mean=0.000693 rms=0.007331 Jy/beam
! Combined flux in latest and established models = 2.7758 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 30 components and 2.7758 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.296150Jy  sigma=1.511912
! Fit after  self-cal, rms=0.296050Jy  sigma=1.511380
! 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=3.132 mas, bmaj=8.947 mas, bpa=-2.344 degrees
! Estimated noise=1.31317 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.0859185 Jy
! Component: 100  -  total flux cleaned = 0.135293 Jy
! Total flux subtracted in 100 components = 0.135293 Jy
! Clean residual min=-0.021361 max=0.047353 Jy/beam
! Clean residual mean=0.003730 rms=0.007251 Jy/beam
! Combined flux in latest and established models = 2.91109 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 52 components and 2.91109 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.272388Jy  sigma=1.380913
! Fit after  self-cal, rms=0.271990Jy  sigma=1.378833
! Inverting map 
! Added new window around map position (-2.4, 14).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0482168 Jy
! Component: 100  -  total flux cleaned = 0.0784633 Jy
! Total flux subtracted in 100 components = 0.0784633 Jy
! Clean residual min=-0.019899 max=0.034128 Jy/beam
! Clean residual mean=0.002818 rms=0.006240 Jy/beam
! Combined flux in latest and established models = 2.98956 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 65 components and 2.98956 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.263671Jy  sigma=1.333107
! Fit after  self-cal, rms=0.263149Jy  sigma=1.330125
! 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 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.98     GN        0.97     HN        1.01     
!   KK        0.98     KP        0.99     LA        0.95     MC        1.00*    
!   NL        0.93     ON        1.00*    OV        1.00     PT        0.96     
!   SC        0.96     WF        0.92     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.00     GN        1.01     HN        0.95     
!   KK        1.00*    KP        1.02     LA        0.95     MC        1.11     
!   NL        0.96     OV        1.05     SC        0.97     WF        0.92     
!   MK        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.97     GN        1.00     HN        1.00     
!   KK        0.98     KP        0.99     LA        0.94     NL        0.96     
!   OV        1.00     PT        0.95     SC        1.08     WF        1.00*    
!   MK        0.98     
! 
!  Telescope amplitude corrections in sub-array 4:
!   MC        0.00*    ON        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.00     GN        0.97     HN        1.01     
!   KK        0.99     KP        0.98     LA        0.96     MC        1.00*    
!   NL        1.03     ON        1.00*    OV        1.01     PT        0.96     
!   SC        0.97     WF        0.98     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.01     GN        1.00     HN        0.96     
!   KK        1.00*    KP        1.02     LA        0.98     MC        0.76     
!   NL        1.03     OV        1.05     SC        0.99     WF        0.98     
!   MK        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.99     GN        0.98     HN        1.00     
!   KK        0.99     KP        0.98     LA        0.96     NL        1.04     
!   OV        1.00     PT        0.95     SC        1.08     WF        1.00*    
!   MK        0.97     
! 
!  Telescope amplitude corrections in sub-array 4:
!   MC        0.00*    ON        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.01     GN        0.96     HN        1.02     
!   KK        0.99     KP        1.01     LA        0.99     MC        1.00*    
!   NL        1.05     ON        1.00*    OV        1.02     PT        0.98     
!   SC        0.97     WF        1.00     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.03     GN        1.04     HN        0.97     
!   KK        1.00*    KP        1.03     LA        1.03     MC        1.61     
!   NL        1.05     OV        1.07     SC        0.98     WF        0.99     
!   MK        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.01     GN        1.01     HN        1.01     
!   KK        0.99     KP        1.00     LA        0.98     NL        1.05     
!   OV        1.02     PT        0.97     SC        1.09     WF        1.00*    
!   MK        0.98     
! 
!  Telescope amplitude corrections in sub-array 4:
!   MC        0.00*    ON        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.02     GN        0.97     HN        1.04     
!   KK        1.00     KP        1.02     LA        1.00     MC        1.00*    
!   NL        1.06     ON        1.00*    OV        1.02     PT        0.98     
!   SC        1.00     WF        1.00     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.03     GN        1.03     HN        0.99     
!   KK        1.00*    KP        1.04     LA        1.02     MC        1.16     
!   NL        1.06     OV        1.07     SC        1.01     WF        0.99     
!   MK        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.02     GN        0.99     HN        1.02     
!   KK        1.01     KP        1.01     LA        0.98     NL        1.06     
!   OV        1.03     PT        0.97     SC        1.11     WF        1.00*    
!   MK        0.98     
! 
!  Telescope amplitude corrections in sub-array 4:
!   MC        0.00*    ON        0.00*    
! 
! 
! Fit before self-cal, rms=0.263149Jy  sigma=1.330125
! Fit after  self-cal, rms=0.210238Jy  sigma=1.014594
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.146 mas, bmaj=8.978 mas, bpa=-2.503 degrees
! Estimated noise=1.31011 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.0178827 Jy
! Component: 100  -  total flux cleaned = 0.024892 Jy
! Total flux subtracted in 100 components = 0.024892 Jy
! Clean residual min=-0.010196 max=0.015090 Jy/beam
! Clean residual mean=0.000879 rms=0.002773 Jy/beam
! Combined flux in latest and established models = 3.01445 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 76 components and 3.01445 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.208882Jy  sigma=1.006103
! Fit after  self-cal, rms=0.208789Jy  sigma=1.005478
! 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 (-10.8, 11.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0116485 Jy
! Component: 100  -  total flux cleaned = 0.0163557 Jy
! Total flux subtracted in 100 components = 0.0163557 Jy
! Clean residual min=-0.010276 max=0.011885 Jy/beam
! Clean residual mean=0.000687 rms=0.002622 Jy/beam
! Combined flux in latest and established models = 3.0308 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 87 components and 3.0308 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.207884Jy  sigma=0.999877
! Fit after  self-cal, rms=0.189380Jy  sigma=0.886824
! Inverting map and beam 
! Estimated beam: bmin=3.146 mas, bmaj=8.975 mas, bpa=-2.489 degrees
! Estimated noise=1.31063 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.0113187 Jy
! Component: 100  -  total flux cleaned = 0.0178498 Jy
! Total flux subtracted in 100 components = 0.0178498 Jy
! Clean residual min=-0.006949 max=0.008681 Jy/beam
! Clean residual mean=0.000676 rms=0.001586 Jy/beam
! Combined flux in latest and established models = 3.04865 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 24 model components to the UV plane model.
! The established model now contains 106 components and 3.04865 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188694Jy  sigma=0.882553
! Fit after  self-cal, rms=0.188666Jy  sigma=0.882374
! Inverting map 
! Added new window around map position (3.2, 6.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00471725 Jy
! Component: 100  -  total flux cleaned = 0.00730465 Jy
! Total flux subtracted in 100 components = 0.00730465 Jy
! Clean residual min=-0.006282 max=0.006288 Jy/beam
! Clean residual mean=0.000592 rms=0.001504 Jy/beam
! Combined flux in latest and established models = 3.05596 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 117 components and 3.05596 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188308Jy  sigma=0.879659
! Fit after  self-cal, rms=0.188279Jy  sigma=0.879491
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0727-115_S
! Writing UV FITS file: 0727-115_S.uvf
! Writing 117 model components to file: 0727-115_S.mod
! wwins: Wrote 5 windows to 0727-115_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.146 x 8.975 at -2.489 degrees (North through East)
! Clean map  min=-0.0061839  max=2.5132 Jy/beam
! Writing clean map to FITS file: 0727-115_S.fits
! Writing difmap environment to: 0727-115_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 0727-115_Suv.ps/vps,1,2
! Attempting to open device: '0727-115_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 0727-115_Sim.ps/vps
! Attempting to open device: '0727-115_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=3.146 mas, bmaj=8.975 mas, bpa=-2.489 degrees
! Estimated noise=1.31063 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.146 x 8.975 at -2.489 degrees (North through East)
! Clean map  min=-0.0061839  max=2.5132 Jy/beam
quit
! Quitting program
! Log file 0727-115_S.log closed on Thu Oct 22 18:46:49 1998