! Started logfile: 1908-201_S.log on Tue Nov 26 16:37:37 2002
observe 1908-201_S.edt
! Reading UV FITS file: 1908-201_S.edt
! AN table 1: 16 integrations on 120 of 120 possible baselines.
! AN table 2: 21 integrations on 120 of 120 possible baselines.
! AN table 3: 50 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.270977 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1908-201
! 
! 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 6827 lines of history.
! 
! Reading 11316 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 256 telescope corrections were flagged in sub-array 1.
!  A total of 257 telescope corrections were flagged in sub-array 2.
!  A total of 352 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 256 telescope corrections were flagged in sub-array 1.
!  A total of 257 telescope corrections were flagged in sub-array 2.
!  A total of 352 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 256 telescope corrections were flagged in sub-array 1.
!  A total of 257 telescope corrections were flagged in sub-array 2.
!  A total of 351 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 256 telescope corrections were flagged in sub-array 1.
!  A total of 257 telescope corrections were flagged in sub-array 2.
!  A total of 351 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.195395Jy  sigma=8.438252
! Fit after  self-cal, rms=1.195007Jy  sigma=8.436996
! 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.355 mas, bmaj=6.991 mas, bpa=-6.042 degrees
! Estimated noise=1.73676 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.3537 Jy
! Total flux subtracted in 50 components = 1.3537 Jy
! Clean residual min=-0.085787 max=0.482040 Jy/beam
! Clean residual mean=0.001087 rms=0.031034 Jy/beam
! Combined flux in latest and established models = 1.3537 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 1.3537 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.912676Jy  sigma=6.440058
! Fit after  self-cal, rms=0.912602Jy  sigma=6.439572
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.50031 Jy
! Total flux subtracted in 50 components = 0.50031 Jy
! Clean residual min=-0.047005 max=0.218255 Jy/beam
! Clean residual mean=0.000693 rms=0.017473 Jy/beam
! Combined flux in latest and established models = 1.85401 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 13 components and 1.85401 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.540863Jy  sigma=3.810495
! Fit after  self-cal, rms=0.540315Jy  sigma=3.806678
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.24611 Jy
! Total flux subtracted in 50 components = 0.24611 Jy
! Clean residual min=-0.034780 max=0.136997 Jy/beam
! Clean residual mean=0.000496 rms=0.012311 Jy/beam
! Combined flux in latest and established models = 2.10012 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 30 components and 2.10012 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.385221Jy  sigma=2.710726
! Fit after  self-cal, rms=0.384872Jy  sigma=2.708294
! Inverting map 
! Added new window around map position (3.2, 1.6).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.161704 Jy
! Total flux subtracted in 50 components = 0.161704 Jy
! Clean residual min=-0.028939 max=0.088673 Jy/beam
! Clean residual mean=0.000360 rms=0.009291 Jy/beam
! Combined flux in latest and established models = 2.26183 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 38 components and 2.26183 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.296866Jy  sigma=2.086176
! Fit after  self-cal, rms=0.296025Jy  sigma=2.080503
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.111141 Jy
! Total flux subtracted in 50 components = 0.111141 Jy
! Clean residual min=-0.027539 max=0.060940 Jy/beam
! Clean residual mean=0.000268 rms=0.007432 Jy/beam
! Combined flux in latest and established models = 2.37297 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 43 components and 2.37297 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.242576Jy  sigma=1.703021
! Fit after  self-cal, rms=0.242104Jy  sigma=1.699847
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0774847 Jy
! Total flux subtracted in 50 components = 0.0774847 Jy
! Clean residual min=-0.026412 max=0.043212 Jy/beam
! Clean residual mean=0.000203 rms=0.006367 Jy/beam
! Combined flux in latest and established models = 2.45045 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 49 components and 2.45045 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.210926Jy  sigma=1.479963
! Fit after  self-cal, rms=0.210572Jy  sigma=1.477582
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0555396 Jy
! Total flux subtracted in 50 components = 0.0555396 Jy
! Clean residual min=-0.025559 max=0.031128 Jy/beam
! Clean residual mean=0.000155 rms=0.005757 Jy/beam
! Combined flux in latest and established models = 2.50599 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 2.50599 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.192490Jy  sigma=1.350281
! Fit after  self-cal, rms=0.192205Jy  sigma=1.348368
! 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.953 mas, bmaj=8.15 mas, bpa=-2.593 degrees
! Estimated noise=0.990709 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.0658815 Jy
! Component: 100  -  total flux cleaned = 0.105994 Jy
! Total flux subtracted in 100 components = 0.105994 Jy
! Clean residual min=-0.024288 max=0.033941 Jy/beam
! Clean residual mean=0.000344 rms=0.007558 Jy/beam
! Combined flux in latest and established models = 2.61199 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 37 model components to the UV plane model.
! The established model now contains 89 components and 2.61198 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.169954Jy  sigma=1.191854
! Fit after  self-cal, rms=0.169516Jy  sigma=1.188868
! 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        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MC        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WF        0.00*    GN        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.95     GC        1.00*    HN        0.97     
!   KK        1.10     KP        1.11     LA        0.98     MC        1.00*    
!   MK        1.05     NL        0.99     NY        1.00*    OV        0.99     
!   PT        0.97     SC        1.00     WF        1.00     GN        0.96     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.96     GC        1.00*    HN        1.09     
!   KK        0.98     KP        1.10     LA        0.97     MC        1.00*    
!   MK        1.07     NL        0.99     NY        1.00*    OV        0.98     
!   PT        0.97     SC        1.02     WF        1.04     GN        1.00     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MC        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WF        0.00*    GN        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.96     GC        1.00*    HN        0.99     
!   KK        1.07     KP        1.12     LA        0.96     MC        1.00*    
!   MK        1.00     NL        0.99     NY        1.00*    OV        0.99     
!   PT        0.98     SC        1.01     WF        1.00     GN        0.95     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.97     GC        1.00*    HN        1.06     
!   KK        0.93     KP        1.12     LA        0.96     MC        1.00*    
!   MK        1.03     NL        1.00     NY        1.00*    OV        0.99     
!   PT        0.97     SC        1.03     WF        1.05     GN        0.98     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MC        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WF        0.00*    GN        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.95     GC        1.00*    HN        0.95     
!   KK        1.04     KP        1.04     LA        0.97     MC        1.00*    
!   MK        0.99     NL        0.97     NY        1.00*    OV        0.97     
!   PT        0.96     SC        0.98     WF        0.98     GN        0.95     
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.96     GC        1.00*    HN        1.04     
!   KK        0.93     KP        1.04     LA        0.97     MC        1.00*    
!   MK        0.98     NL        0.98     NY        1.00*    OV        0.97     
!   PT        0.96     SC        1.01     WF        1.03     GN        0.99     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MC        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WF        0.00*    GN        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.96     GC        1.00*    HN        0.94     
!   KK        1.05     KP        1.09     LA        0.94     MC        1.00*    
!   MK        0.95     NL        0.97     NY        1.00*    OV        0.97     
!   PT        0.98     SC        0.98     WF        0.97     GN        0.94     
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.96     GC        1.00*    HN        1.02     
!   KK        0.92     KP        1.10     LA        0.96     MC        1.00*    
!   MK        0.94     NL        0.98     NY        1.00*    OV        0.96     
!   PT        1.00     SC        1.00     WF        1.02     GN        0.97     
! 
! 
! Fit before self-cal, rms=0.169516Jy  sigma=1.188868
! Fit after  self-cal, rms=0.119114Jy  sigma=0.826104
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.949 mas, bmaj=8.163 mas, bpa=-2.649 degrees
! Estimated noise=0.98315 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 (6.8, 2.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0194806 Jy
! Component: 100  -  total flux cleaned = 0.0297424 Jy
! Total flux subtracted in 100 components = 0.0297424 Jy
! Clean residual min=-0.008158 max=0.009259 Jy/beam
! Clean residual mean=0.000793 rms=0.002099 Jy/beam
! Combined flux in latest and established models = 2.64173 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 23 model components to the UV plane model.
! The established model now contains 112 components and 2.64173 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.116231Jy  sigma=0.805482
! Fit after  self-cal, rms=0.116063Jy  sigma=0.804016
! 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.00705376 Jy
! Component: 100  -  total flux cleaned = 0.00911603 Jy
! Total flux subtracted in 100 components = 0.00911603 Jy
! Clean residual min=-0.008438 max=0.008372 Jy/beam
! Clean residual mean=0.000754 rms=0.001974 Jy/beam
! Combined flux in latest and established models = 2.65084 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 126 components and 2.65084 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.115574Jy  sigma=0.800569
! Fit after  self-cal, rms=0.105872Jy  sigma=0.731118
! Inverting map and beam 
! Estimated beam: bmin=2.951 mas, bmaj=8.167 mas, bpa=-2.674 degrees
! Estimated noise=0.98401 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 (19.2, 11.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00922663 Jy
! Component: 100  -  total flux cleaned = 0.0155356 Jy
! Total flux subtracted in 100 components = 0.0155356 Jy
! Clean residual min=-0.004755 max=0.007394 Jy/beam
! Clean residual mean=0.000309 rms=0.001262 Jy/beam
! Combined flux in latest and established models = 2.66638 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 143 components and 2.66638 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.105076Jy  sigma=0.725315
! Fit after  self-cal, rms=0.105045Jy  sigma=0.725048
! Inverting map 
! Added new window around map position (-5.2, 6.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00687926 Jy
! Component: 100  -  total flux cleaned = 0.0116386 Jy
! Total flux subtracted in 100 components = 0.0116386 Jy
! Clean residual min=-0.004612 max=0.005087 Jy/beam
! Clean residual mean=0.000257 rms=0.001133 Jy/beam
! Combined flux in latest and established models = 2.67802 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 158 components and 2.67802 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.104589Jy  sigma=0.721760
! Fit after  self-cal, rms=0.104581Jy  sigma=0.721681
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1908-201_S
! Writing UV FITS file: 1908-201_S.uvf
! Writing 158 model components to file: 1908-201_S.mod
! wwins: Wrote 5 windows to 1908-201_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.951 x 8.167 at -2.674 degrees (North through East)
! Clean map  min=-0.0044926  max=1.8462 Jy/beam
! Writing clean map to FITS file: 1908-201_S.fits
! Writing difmap environment to: 1908-201_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1908-201_Suv.ps/vps,1,2
! Attempting to open device: '1908-201_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1908-201_Sim.ps/vps
! Attempting to open device: '1908-201_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.951 mas, bmaj=8.167 mas, bpa=-2.674 degrees
! Estimated noise=0.98401 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.951 x 8.167 at -2.674 degrees (North through East)
! Clean map  min=-0.0044926  max=1.8462 Jy/beam
quit
! Quitting program
! Log file 1908-201_S.log closed on Tue Nov 26 16:38:23 2002