! Started logfile: NGC1052_S.log on Wed May  5 08:22:11 1999
observe NGC1052_S.edt
! Reading UV FITS file: NGC1052_S.edt
! AN table 1: 49 integrations on 78 of 105 possible baselines.
! AN table 2: 67 integrations on 74 of 78 possible baselines.
! AN table 3: 19 integrations on 37 of 55 possible baselines.
! Apparent sampling: 0.297585 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: NGC1052
! 
! 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 11288 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 481 telescope corrections were flagged in sub-array 1.
!  A total of 535 telescope corrections were flagged in sub-array 2.
!  A total of 141 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 481 telescope corrections were flagged in sub-array 1.
!  A total of 535 telescope corrections were flagged in sub-array 2.
!  A total of 141 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 482 telescope corrections were flagged in sub-array 1.
!  A total of 538 telescope corrections were flagged in sub-array 2.
!  A total of 141 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 481 telescope corrections were flagged in sub-array 1.
!  A total of 538 telescope corrections were flagged in sub-array 2.
!  A total of 141 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.503219Jy  sigma=1.968390
! Fit after  self-cal, rms=0.501279Jy  sigma=1.961394
! 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.568 mas, bmaj=6.374 mas, bpa=-1.672 degrees
! Estimated noise=2.82291 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.495267 Jy
! Total flux subtracted in 50 components = 0.495267 Jy
! Clean residual min=-0.044217 max=0.193803 Jy/beam
! Clean residual mean=-0.000046 rms=0.016571 Jy/beam
! Combined flux in latest and established models = 0.495267 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 10 components and 0.495267 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.515305Jy  sigma=2.020336
! Fit after  self-cal, rms=0.515248Jy  sigma=2.020097
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.215788 Jy
! Total flux subtracted in 50 components = 0.215788 Jy
! Clean residual min=-0.034875 max=0.144657 Jy/beam
! Clean residual mean=-0.000051 rms=0.012189 Jy/beam
! Combined flux in latest and established models = 0.711054 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 18 components and 0.711055 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.391811Jy  sigma=1.535314
! Fit after  self-cal, rms=0.391717Jy  sigma=1.534921
! Inverting map 
! Added new window around map position (4, 2).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.152113 Jy
! Total flux subtracted in 50 components = 0.152113 Jy
! Clean residual min=-0.028626 max=0.100464 Jy/beam
! Clean residual mean=-0.000049 rms=0.009296 Jy/beam
! Combined flux in latest and established models = 0.863167 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 23 components and 0.863167 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.313074Jy  sigma=1.225493
! Fit after  self-cal, rms=0.311896Jy  sigma=1.220934
! Inverting map 
! Added new window around map position (7.2, 4.4).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.112336 Jy
! Total flux subtracted in 50 components = 0.112336 Jy
! Clean residual min=-0.021204 max=0.061363 Jy/beam
! Clean residual mean=-0.000045 rms=0.007128 Jy/beam
! Combined flux in latest and established models = 0.975504 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 35 components and 0.975504 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.259113Jy  sigma=1.013072
! Fit after  self-cal, rms=0.257942Jy  sigma=1.008546
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0821169 Jy
! Total flux subtracted in 50 components = 0.0821169 Jy
! Clean residual min=-0.016537 max=0.047503 Jy/beam
! Clean residual mean=-0.000041 rms=0.005637 Jy/beam
! Combined flux in latest and established models = 1.05762 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 45 components and 1.05762 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222608Jy  sigma=0.869148
! Fit after  self-cal, rms=0.221979Jy  sigma=0.866719
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0616855 Jy
! Total flux subtracted in 50 components = 0.0616855 Jy
! Clean residual min=-0.013741 max=0.038430 Jy/beam
! Clean residual mean=-0.000039 rms=0.004614 Jy/beam
! Combined flux in latest and established models = 1.11931 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 54 components and 1.11931 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.198459Jy  sigma=0.773768
! Fit after  self-cal, rms=0.198001Jy  sigma=0.771993
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0470297 Jy
! Total flux subtracted in 50 components = 0.0470297 Jy
! Clean residual min=-0.012133 max=0.031453 Jy/beam
! Clean residual mean=-0.000037 rms=0.003911 Jy/beam
! Combined flux in latest and established models = 1.16634 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 62 components and 1.16634 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.182324Jy  sigma=0.709923
! Fit after  self-cal, rms=0.182042Jy  sigma=0.708832
! Inverting map 
! Added new window around map position (-3.6, -1.2).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0373353 Jy
! Total flux subtracted in 50 components = 0.0373353 Jy
! Clean residual min=-0.010976 max=0.024566 Jy/beam
! Clean residual mean=-0.000035 rms=0.003411 Jy/beam
! Combined flux in latest and established models = 1.20367 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 74 components and 1.20367 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.171336Jy  sigma=0.666414
! Fit after  self-cal, rms=0.171237Jy  sigma=0.666012
! Inverting map 
! Added new window around map position (-16.8, -8).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0304946 Jy
! Total flux subtracted in 50 components = 0.0304946 Jy
! Clean residual min=-0.010321 max=0.018108 Jy/beam
! Clean residual mean=-0.000032 rms=0.003056 Jy/beam
! Combined flux in latest and established models = 1.23417 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 84 components and 1.23417 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.163995Jy  sigma=0.637287
! Fit after  self-cal, rms=0.163953Jy  sigma=0.637105
! 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.23 mas, bmaj=7.778 mas, bpa=-0.2148 degrees
! Estimated noise=1.86225 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.0484767 Jy
! Component: 100  -  total flux cleaned = 0.0821529 Jy
! Total flux subtracted in 100 components = 0.0821529 Jy
! Clean residual min=-0.012026 max=0.020641 Jy/beam
! Clean residual mean=-0.000088 rms=0.004093 Jy/beam
! Combined flux in latest and established models = 1.31632 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 53 model components to the UV plane model.
! The established model now contains 125 components and 1.31632 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.149215Jy  sigma=0.578383
! Fit after  self-cal, rms=0.149094Jy  sigma=0.577914
! 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.01     FD        0.98     GC        1.05     GN        0.92     
!   HN        1.00     KK        0.96     KP        0.98     LA        0.96     
!   MC        1.00*    MK        0.98     ON        1.00*    OV        1.04     
!   PT        1.04     SC        1.09     WF        1.10     
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        0.96     GN        1.07     HN        1.04     
!   KK        0.96     KP        1.01     LA        0.99     MC        1.00*    
!   MK        1.02     OV        0.99     PT        0.96     SC        0.98     
!   WF        1.16     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.07     FD        1.02     GC        0.97     KK        0.95     
!   KP        0.97     LA        0.99     MC        1.00*    MK        1.00     
!   ON        1.00*    OV        0.97     PT        0.99     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.96     GC        1.01     GN        0.93     
!   HN        0.98     KK        0.91     KP        0.98     LA        0.98     
!   MC        1.00*    MK        1.00     ON        1.00*    OV        0.99     
!   PT        1.03     SC        1.06     WF        0.99     
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        0.95     GN        1.01     HN        1.03     
!   KK        0.94     KP        1.00     LA        0.98     MC        1.00*    
!   MK        0.96     OV        1.01     PT        0.96     SC        0.98     
!   WF        1.01     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.10     FD        1.01     GC        0.99     KK        0.96     
!   KP        0.94     LA        1.01     MC        1.00*    MK        1.00     
!   ON        1.00*    OV        1.02     PT        0.98     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.98     GC        0.98     GN        0.93     
!   HN        0.99     KK        0.95     KP        0.96     LA        0.97     
!   MC        1.00*    MK        0.98     ON        1.00*    OV        0.96     
!   PT        1.03     SC        1.02     WF        0.98     
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        0.95     GN        0.97     HN        0.98     
!   KK        0.96     KP        0.98     LA        0.97     MC        1.00*    
!   MK        0.97     OV        0.99     PT        0.96     SC        0.98     
!   WF        0.96     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        0.98     GC        1.06     KK        0.93     
!   KP        0.94     LA        0.97     MC        1.00*    MK        0.97     
!   ON        1.00*    OV        1.00     PT        1.01     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.95     GC        1.01     GN        0.96     
!   HN        0.96     KK        0.94     KP        0.96     LA        0.96     
!   MC        1.00*    MK        0.96     ON        1.00*    OV        0.95     
!   PT        1.01     SC        1.04     WF        0.98     
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        0.94     GN        0.96     HN        0.95     
!   KK        0.96     KP        0.97     LA        0.95     MC        1.00*    
!   MK        0.98     OV        1.00     PT        0.94     SC        0.98     
!   WF        0.97     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.00     GC        1.00     KK        0.94     
!   KP        0.91     LA        0.99     MC        1.00*    MK        0.96     
!   ON        1.00*    OV        1.00     PT        0.98     
! 
! 
! Fit before self-cal, rms=0.149094Jy  sigma=0.577914
! Fit after  self-cal, rms=0.137311Jy  sigma=0.541219
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.26 mas, bmaj=7.87 mas, bpa=-0.1748 degrees
! Estimated noise=1.81626 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.0115156 Jy
! Component: 100  -  total flux cleaned = 0.0160253 Jy
! Total flux subtracted in 100 components = 0.0160253 Jy
! Clean residual min=-0.005264 max=0.009198 Jy/beam
! Clean residual mean=0.000018 rms=0.001668 Jy/beam
! Combined flux in latest and established models = 1.33234 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 153 components and 1.33234 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.136372Jy  sigma=0.537320
! Fit after  self-cal, rms=0.136336Jy  sigma=0.537119
! 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 (13.2, 6.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00667559 Jy
! Component: 100  -  total flux cleaned = 0.00848887 Jy
! Total flux subtracted in 100 components = 0.00848887 Jy
! Clean residual min=-0.005138 max=0.006111 Jy/beam
! Clean residual mean=0.000022 rms=0.001506 Jy/beam
! Combined flux in latest and established models = 1.34083 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 35 model components to the UV plane model.
! The established model now contains 182 components and 1.34083 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.135829Jy  sigma=0.535032
! Fit after  self-cal, rms=0.134146Jy  sigma=0.529193
! Inverting map and beam 
! Estimated beam: bmin=3.26 mas, bmaj=7.856 mas, bpa=-0.1097 degrees
! Estimated noise=1.81594 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.00611085 Jy
! Component: 100  -  total flux cleaned = 0.00909114 Jy
! Total flux subtracted in 100 components = 0.00909114 Jy
! Clean residual min=-0.004494 max=0.005476 Jy/beam
! Clean residual mean=0.000013 rms=0.001352 Jy/beam
! Combined flux in latest and established models = 1.34992 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 27 model components to the UV plane model.
! The established model now contains 203 components and 1.34992 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.133816Jy  sigma=0.527799
! Fit after  self-cal, rms=0.133791Jy  sigma=0.527675
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save NGC1052_S
! Writing UV FITS file: NGC1052_S.uvf
! Writing 203 model components to file: NGC1052_S.mod
! wwins: Wrote 6 windows to NGC1052_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.26 x 7.856 at -0.1097 degrees (North through East)
! Clean map  min=-0.0045302  max=0.65941 Jy/beam
! Writing clean map to FITS file: NGC1052_S.fits
! Writing difmap environment to: NGC1052_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device NGC1052_Suv.ps/vps,1,2
! Attempting to open device: 'NGC1052_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device NGC1052_Sim.ps/vps
! Attempting to open device: 'NGC1052_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.26 mas, bmaj=7.856 mas, bpa=-0.1097 degrees
! Estimated noise=1.81594 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.26 x 7.856 at -0.1097 degrees (North through East)
! Clean map  min=-0.0045302  max=0.65941 Jy/beam
quit
! Quitting program
! Log file NGC1052_S.log closed on Wed May  5 08:24:29 1999