! Started logfile: 0019+058_S.log on Fri May 17 11:07:14 2002
observe 0019+058_S.edt
! Reading UV FITS file: 0019+058_S.edt
! AN table 1: 18 integrations on 171 of 171 possible baselines.
! AN table 2: 34 integrations on 171 of 171 possible baselines.
! AN table 3: 125 integrations on 171 of 171 possible baselines.
! AN table 4: 168 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.145792 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0019+058
! 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 34404 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 251 telescope corrections were flagged in sub-array 1.
!  A total of 361 telescope corrections were flagged in sub-array 2.
!  A total of 1257 telescope corrections were flagged in sub-array 3.
!  A total of 2804 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 251 telescope corrections were flagged in sub-array 1.
!  A total of 361 telescope corrections were flagged in sub-array 2.
!  A total of 1257 telescope corrections were flagged in sub-array 3.
!  A total of 2804 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 251 telescope corrections were flagged in sub-array 1.
!  A total of 361 telescope corrections were flagged in sub-array 2.
!  A total of 1257 telescope corrections were flagged in sub-array 3.
!  A total of 2804 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 251 telescope corrections were flagged in sub-array 1.
!  A total of 361 telescope corrections were flagged in sub-array 2.
!  A total of 1257 telescope corrections were flagged in sub-array 3.
!  A total of 2976 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.608720Jy  sigma=4.361267
! Fit after  self-cal, rms=0.608632Jy  sigma=4.361398
! 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.324 mas, bmaj=5.13 mas, bpa=2.875 degrees
! Estimated noise=1.11461 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.305703 Jy
! Total flux subtracted in 50 components = 0.305703 Jy
! Clean residual min=-0.013321 max=0.085336 Jy/beam
! Clean residual mean=-0.000005 rms=0.004153 Jy/beam
! Combined flux in latest and established models = 0.305703 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.305703 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.131501Jy  sigma=0.939333
! Fit after  self-cal, rms=0.131501Jy  sigma=0.939333
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0667346 Jy
! Total flux subtracted in 50 components = 0.0667346 Jy
! Clean residual min=-0.006710 max=0.019340 Jy/beam
! Clean residual mean=0.000001 rms=0.001702 Jy/beam
! Combined flux in latest and established models = 0.372438 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 0.372438 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.096731Jy  sigma=0.689288
! Fit after  self-cal, rms=0.096728Jy  sigma=0.689271
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0194082 Jy
! Total flux subtracted in 50 components = 0.0194082 Jy
! Clean residual min=-0.006304 max=0.008057 Jy/beam
! Clean residual mean=0.000003 rms=0.001347 Jy/beam
! Combined flux in latest and established models = 0.391846 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 4 model components to the UV plane model.
! The established model now contains 8 components and 0.391846 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.092895Jy  sigma=0.661685
! Fit after  self-cal, rms=0.092891Jy  sigma=0.661660
! 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.889 mas, bmaj=6.115 mas, bpa=-0.6122 degrees
! Estimated noise=0.562428 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.0113525 Jy
! Component: 100  -  total flux cleaned = 0.0166291 Jy
! Total flux subtracted in 100 components = 0.0166291 Jy
! Clean residual min=-0.004275 max=0.004451 Jy/beam
! Clean residual mean=0.000007 rms=0.000918 Jy/beam
! Combined flux in latest and established models = 0.408475 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.408475 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.091697Jy  sigma=0.653057
! Fit after  self-cal, rms=0.091696Jy  sigma=0.653048
! 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.99     FD        1.00     GC        1.00*    GG        1.00*    
!   HN        0.92     KP        0.94     LA        0.98     MC        1.00*    
!   MK        1.00*    NL        1.02     NY        1.00*    ON        1.00*    
!   OV        0.96     PT        0.99     SC        1.01     TS        1.00*    
!   WF        1.00*    KK        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.98     GC        1.00*    GG        1.00*    
!   HN        1.01     KP        0.99     LA        0.97     MC        1.00*    
!   MK        0.99     NL        1.00     NY        1.00*    ON        1.00*    
!   OV        0.97     PT        1.01     SC        1.02     TS        1.00*    
!   WF        1.00*    KK        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.98     GC        1.01     GG        1.00*    
!   HN        0.95     KP        0.97     LA        0.97     MC        1.00*    
!   MK        0.95     NL        0.96     NY        1.00*    ON        1.00*    
!   OV        0.93     PT        0.98     SC        0.93     TS        1.00*    
!   WF        1.00*    KK        0.98     WZ        1.00*    
! 
!  A total of 180 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    MC        1.05     
!   MK        1.00*    NL        1.00*    NY        1.07     ON        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.24     
!   WF        1.00*    KK        1.00*    WZ        0.98     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.00     GC        1.00*    GG        1.00*    
!   HN        1.01     KP        0.99     LA        0.99     MC        1.00*    
!   MK        1.00*    NL        1.01     NY        1.00*    ON        1.00*    
!   OV        1.02     PT        1.01     SC        0.99     TS        1.00*    
!   WF        1.00*    KK        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.01     GC        1.00*    GG        1.00*    
!   HN        1.01     KP        0.99     LA        1.00     MC        1.00*    
!   MK        1.00     NL        1.00     NY        1.00*    ON        1.00*    
!   OV        1.00     PT        1.01     SC        1.00     TS        1.00*    
!   WF        1.00*    KK        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.99     GC        1.02     GG        1.00*    
!   HN        0.99     KP        1.00     LA        0.98     MC        1.00*    
!   MK        0.98     NL        0.97     NY        1.00*    ON        1.00*    
!   OV        1.00     PT        0.99     SC        0.93     TS        1.00*    
!   WF        1.00*    KK        0.98     WZ        1.00*    
! 
!  A total of 180 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    MC        1.18     
!   MK        1.00*    NL        1.00*    NY        1.00     ON        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.18     
!   WF        1.00*    KK        1.00*    WZ        0.96     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.03     GC        1.00*    GG        1.00*    
!   HN        1.02     KP        1.01     LA        1.01     MC        1.00*    
!   MK        1.00*    NL        1.05     NY        1.00*    ON        1.00*    
!   OV        1.03     PT        1.03     SC        1.06     TS        1.00*    
!   WF        1.00*    KK        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.02     GC        1.00*    GG        1.00*    
!   HN        1.03     KP        1.00     LA        1.01     MC        1.00*    
!   MK        1.01     NL        1.03     NY        1.00*    ON        1.00*    
!   OV        1.02     PT        1.03     SC        1.04     TS        1.00*    
!   WF        1.00*    KK        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.01     GC        1.04     GG        1.00*    
!   HN        1.01     KP        1.02     LA        0.99     MC        1.00*    
!   MK        0.98     NL        0.99     NY        1.00*    ON        1.00*    
!   OV        1.01     PT        1.01     SC        0.96     TS        1.00*    
!   WF        1.00*    KK        1.05     WZ        1.00*    
! 
!  A total of 180 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    MC        1.13     
!   MK        1.00*    NL        1.00*    NY        1.08     ON        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.27     
!   WF        1.00*    KK        1.00*    WZ        0.93     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.06     GC        1.00*    GG        1.00*    
!   HN        1.06     KP        1.04     LA        1.00     MC        1.00*    
!   MK        1.00*    NL        1.05     NY        1.00*    ON        1.00*    
!   OV        1.05     PT        0.91     SC        0.98     TS        1.00*    
!   WF        1.00*    KK        1.00*    WZ        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     GC        1.00*    GG        1.00*    
!   HN        1.01     KP        1.04     LA        1.02     MC        1.00*    
!   MK        1.03     NL        1.03     NY        1.00*    ON        1.00*    
!   OV        1.00     PT        1.03     SC        1.02     TS        1.00*    
!   WF        1.00*    KK        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.01     GC        1.03     GG        1.00*    
!   HN        1.01     KP        1.03     LA        1.02     MC        1.00*    
!   MK        1.00     NL        1.00     NY        1.00*    ON        1.00*    
!   OV        1.01     PT        0.98     SC        0.96     TS        1.00*    
!   WF        1.00*    KK        1.07     WZ        1.00*    
! 
!  A total of 216 telescope corrections were flagged in sub-array 4.
!  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.091696Jy  sigma=0.653048
! Fit after  self-cal, rms=0.087849Jy  sigma=0.629216
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.996 mas, bmaj=6.151 mas, bpa=-1.864 degrees
! Estimated noise=0.566568 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.00105896 Jy
! Component: 100  -  total flux cleaned = 0.00113874 Jy
! Total flux subtracted in 100 components = 0.00113874 Jy
! Clean residual min=-0.001541 max=0.001576 Jy/beam
! Clean residual mean=0.000010 rms=0.000376 Jy/beam
! Combined flux in latest and established models = 0.409614 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 31 components and 0.409614 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.087836Jy  sigma=0.629117
! Fit after  self-cal, rms=0.087841Jy  sigma=0.629097
! 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 = 7.15621e-05 Jy
! Component: 100  -  total flux cleaned = 0.00012992 Jy
! Total flux subtracted in 100 components = 0.00012992 Jy
! Clean residual min=-0.001537 max=0.001519 Jy/beam
! Clean residual mean=0.000010 rms=0.000374 Jy/beam
! Combined flux in latest and established models = 0.409744 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 34 components and 0.409744 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.087836Jy  sigma=0.629063
! Fit after  self-cal, rms=0.086214Jy  sigma=0.615716
! Inverting map and beam 
! Estimated beam: bmin=2.994 mas, bmaj=6.149 mas, bpa=-1.889 degrees
! Estimated noise=0.567188 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.000802781 Jy
! Component: 100  -  total flux cleaned = 0.00108323 Jy
! Total flux subtracted in 100 components = 0.00108323 Jy
! Clean residual min=-0.001490 max=0.001427 Jy/beam
! Clean residual mean=0.000009 rms=0.000358 Jy/beam
! Combined flux in latest and established models = 0.410827 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 44 components and 0.410827 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.086208Jy  sigma=0.615663
! Fit after  self-cal, rms=0.086209Jy  sigma=0.615653
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0019+058_S
! Writing UV FITS file: 0019+058_S.uvf
! Writing 44 model components to file: 0019+058_S.mod
! wwins: Wrote 1 windows to 0019+058_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.994 x 6.149 at -1.889 degrees (North through East)
! Clean map  min=-0.0014361  max=0.39637 Jy/beam
! Writing clean map to FITS file: 0019+058_S.fits
! Writing difmap environment to: 0019+058_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 0019+058_Suv.ps/vps,1,2
! Attempting to open device: '0019+058_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0019+058_Sim.ps/vps
! Attempting to open device: '0019+058_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.994 mas, bmaj=6.149 mas, bpa=-1.889 degrees
! Estimated noise=0.567188 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.994 x 6.149 at -1.889 degrees (North through East)
! Clean map  min=-0.0014361  max=0.39637 Jy/beam
quit
! Quitting program
! Log file 0019+058_S.log closed on Fri May 17 11:08:01 2002