! Started logfile: 0048-097_S.log on Fri May 17 11:21:03 2002
observe 0048-097_S.edt
! Reading UV FITS file: 0048-097_S.edt
! AN table 1: 8 integrations on 171 of 171 possible baselines.
! AN table 2: 75 integrations on 171 of 171 possible baselines.
! AN table 3: 27 integrations on 171 of 171 possible baselines.
! AN table 4: 10 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.15614 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0048-097
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! 
! 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.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1191 lines of history.
! 
! Reading 12816 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 140 telescope corrections were flagged in sub-array 1.
!  A total of 962 telescope corrections were flagged in sub-array 2.
!  A total of 351 telescope corrections were flagged in sub-array 3.
!  A total of 190 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 140 telescope corrections were flagged in sub-array 1.
!  A total of 962 telescope corrections were flagged in sub-array 2.
!  A total of 347 telescope corrections were flagged in sub-array 3.
!  A total of 190 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 140 telescope corrections were flagged in sub-array 1.
!  A total of 962 telescope corrections were flagged in sub-array 2.
!  A total of 351 telescope corrections were flagged in sub-array 3.
!  A total of 190 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 140 telescope corrections were flagged in sub-array 1.
!  A total of 971 telescope corrections were flagged in sub-array 2.
!  A total of 347 telescope corrections were flagged in sub-array 3.
!  A total of 190 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.462201Jy  sigma=3.322344
! Fit after  self-cal, rms=0.461512Jy  sigma=3.319133
! 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=1.85 mas, bmaj=8.745 mas, bpa=-2.724 degrees
! Estimated noise=2.14623 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.405239 Jy
! Total flux subtracted in 50 components = 0.405239 Jy
! Clean residual min=-0.027287 max=0.113040 Jy/beam
! Clean residual mean=0.000668 rms=0.008532 Jy/beam
! Combined flux in latest and established models = 0.405239 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.405239 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.199890Jy  sigma=1.436676
! Fit after  self-cal, rms=0.199890Jy  sigma=1.436677
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.10102 Jy
! Total flux subtracted in 50 components = 0.10102 Jy
! Clean residual min=-0.015422 max=0.042959 Jy/beam
! Clean residual mean=0.000344 rms=0.005006 Jy/beam
! Combined flux in latest and established models = 0.506259 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 0.506259 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.137012Jy  sigma=0.983611
! Fit after  self-cal, rms=0.137010Jy  sigma=0.983596
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0459596 Jy
! Total flux subtracted in 50 components = 0.0459596 Jy
! Clean residual min=-0.013074 max=0.020827 Jy/beam
! Clean residual mean=0.000197 rms=0.003939 Jy/beam
! Combined flux in latest and established models = 0.552218 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 9 components and 0.552218 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.120592Jy  sigma=0.865269
! Fit after  self-cal, rms=0.120591Jy  sigma=0.865261
! 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.843 mas, bmaj=11.88 mas, bpa=-4.486 degrees
! Estimated noise=1.04939 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.0261404 Jy
! Component: 100  -  total flux cleaned = 0.0369773 Jy
! Total flux subtracted in 100 components = 0.0369773 Jy
! Clean residual min=-0.009667 max=0.011989 Jy/beam
! Clean residual mean=0.000172 rms=0.002699 Jy/beam
! Combined flux in latest and established models = 0.589196 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 27 components and 0.589196 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.115734Jy  sigma=0.830306
! Fit after  self-cal, rms=0.115715Jy  sigma=0.830167
! 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 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    MC        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    KK        0.00*    WZ        0.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.98     GC        1.00*    GG        1.00*    
!   HN        1.07     KP        0.97     LA        0.97     MC        0.96     
!   MK        1.00*    NL        1.00     NY        1.00*    ON        1.00*    
!   OV        1.09     PT        0.98     SC        1.00*    TS        1.00*    
!   WF        0.94     KK        1.00*    WZ        1.11     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.86     FD        1.09     GC        1.01     GG        1.00*    
!   HN        1.00*    KP        0.90     LA        0.96     MC        1.00*    
!   MK        0.85     NL        0.88     NY        1.00*    ON        1.00*    
!   OV        0.94     PT        0.95     SC        1.00*    TS        1.10     
!   WF        1.00*    KK        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    MC        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    KK        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    MC        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    KK        0.00*    WZ        0.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.99     GC        1.00*    GG        1.00*    
!   HN        0.97     KP        0.98     LA        1.00     MC        1.03     
!   MK        1.00*    NL        0.99     NY        1.00*    ON        1.00*    
!   OV        1.03     PT        0.99     SC        1.00*    TS        1.00*    
!   WF        0.97     KK        1.00*    WZ        1.12     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        0.97     GC        1.00     GG        1.00*    
!   HN        1.00*    KP        0.97     LA        0.93     MC        1.00*    
!   MK        0.97     NL        0.96     NY        1.00*    ON        1.00*    
!   OV        0.96     PT        0.95     SC        1.00*    TS        1.06     
!   WF        1.00*    KK        1.11     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    MC        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    KK        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    MC        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    KK        0.00*    WZ        0.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.08     FD        1.02     GC        1.00*    GG        1.00*    
!   HN        1.01     KP        1.00     LA        1.01     MC        1.00     
!   MK        1.00*    NL        1.02     NY        1.00*    ON        1.00*    
!   OV        0.99     PT        0.99     SC        1.00*    TS        1.00*    
!   WF        1.40     KK        1.00*    WZ        1.13     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.93     GC        1.08     GG        1.00*    
!   HN        1.00*    KP        1.04     LA        0.91     MC        1.00*    
!   MK        0.91     NL        1.02     NY        1.00*    ON        1.00*    
!   OV        0.96     PT        1.06     SC        1.00*    TS        1.10     
!   WF        1.00*    KK        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    MC        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    KK        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    MC        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    KK        0.00*    WZ        0.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        1.03     GC        1.00*    GG        1.00*    
!   HN        1.00     KP        1.04     LA        1.01     MC        1.00*    
!   MK        1.00*    NL        1.03     NY        1.00*    ON        1.00*    
!   OV        0.95     PT        0.97     SC        1.00*    TS        1.00*    
!   WF        0.99     KK        1.00*    WZ        1.13     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.85     GC        1.17     GG        1.00*    
!   HN        1.00*    KP        1.05     LA        0.78     MC        1.00*    
!   MK        0.90     NL        0.99     NY        1.00*    ON        1.00*    
!   OV        0.90     PT        1.03     SC        1.00*    TS        1.04     
!   WF        1.00*    KK        0.99     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    MC        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    KK        0.00*    WZ        0.00*    
! 
! 
! Fit before self-cal, rms=0.115715Jy  sigma=0.830167
! Fit after  self-cal, rms=0.105710Jy  sigma=0.735337
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.901 mas, bmaj=11.98 mas, bpa=-4.75 degrees
! Estimated noise=1.04838 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.00222792 Jy
! Component: 100  -  total flux cleaned = -0.00235657 Jy
! Total flux subtracted in 100 components = -0.00235657 Jy
! Clean residual min=-0.003977 max=0.006606 Jy/beam
! Clean residual mean=0.000328 rms=0.001280 Jy/beam
! Combined flux in latest and established models = 0.586839 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 41 components and 0.586839 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.105541Jy  sigma=0.734153
! Fit after  self-cal, rms=0.105559Jy  sigma=0.734043
! 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 (6.8, 39.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00600288 Jy
! Component: 100  -  total flux cleaned = 0.00939978 Jy
! Total flux subtracted in 100 components = 0.00939978 Jy
! Clean residual min=-0.003535 max=0.004428 Jy/beam
! Clean residual mean=0.000242 rms=0.000986 Jy/beam
! Combined flux in latest and established models = 0.596239 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 21 model components to the UV plane model.
! The established model now contains 61 components and 0.596239 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.105233Jy  sigma=0.731769
! Fit after  self-cal, rms=0.103545Jy  sigma=0.718897
! Inverting map and beam 
! Estimated beam: bmin=2.908 mas, bmaj=11.98 mas, bpa=-4.755 degrees
! Estimated noise=1.04739 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.000163808 Jy
! Component: 100  -  total flux cleaned = 0.000514698 Jy
! Total flux subtracted in 100 components = 0.000514698 Jy
! Clean residual min=-0.003634 max=0.003962 Jy/beam
! Clean residual mean=0.000244 rms=0.000900 Jy/beam
! Combined flux in latest and established models = 0.596754 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 68 components and 0.596754 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.103437Jy  sigma=0.718200
! Fit after  self-cal, rms=0.103441Jy  sigma=0.718175
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0048-097_S
! Writing UV FITS file: 0048-097_S.uvf
! Writing 68 model components to file: 0048-097_S.mod
! wwins: Wrote 2 windows to 0048-097_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.908 x 11.98 at -4.755 degrees (North through East)
! Clean map  min=-0.0034681  max=0.54618 Jy/beam
! Writing clean map to FITS file: 0048-097_S.fits
! Writing difmap environment to: 0048-097_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 0048-097_Suv.ps/vps,1,2
! Attempting to open device: '0048-097_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0048-097_Sim.ps/vps
! Attempting to open device: '0048-097_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.908 mas, bmaj=11.98 mas, bpa=-4.755 degrees
! Estimated noise=1.04739 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.908 x 11.98 at -4.755 degrees (North through East)
! Clean map  min=-0.0034681  max=0.54618 Jy/beam
quit
! Quitting program
! Log file 0048-097_S.log closed on Fri May 17 11:21:29 2002