! Started logfile: 1749+096_S.log on Tue Nov 26 15:53:03 2002
observe 1749+096_S.edt
! Reading UV FITS file: 1749+096_S.edt
! AN table 1: 12 integrations on 120 of 120 possible baselines.
! AN table 2: 24 integrations on 120 of 120 possible baselines.
! AN table 3: 9 integrations on 120 of 120 possible baselines.
! AN table 4: 37 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.190447 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1749+096
! 
! 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 7496 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 = 8.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 192 telescope corrections were flagged in sub-array 1.
!  A total of 322 telescope corrections were flagged in sub-array 2.
!  A total of 129 telescope corrections were flagged in sub-array 3.
!  A total of 321 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 192 telescope corrections were flagged in sub-array 1.
!  A total of 322 telescope corrections were flagged in sub-array 2.
!  A total of 129 telescope corrections were flagged in sub-array 3.
!  A total of 321 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 192 telescope corrections were flagged in sub-array 1.
!  A total of 322 telescope corrections were flagged in sub-array 2.
!  A total of 132 telescope corrections were flagged in sub-array 3.
!  A total of 321 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 192 telescope corrections were flagged in sub-array 1.
!  A total of 325 telescope corrections were flagged in sub-array 2.
!  A total of 132 telescope corrections were flagged in sub-array 3.
!  A total of 321 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.328347Jy  sigma=2.263366
! Fit after  self-cal, rms=0.327911Jy  sigma=2.261771
! 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.339 mas, bmaj=4.717 mas, bpa=-13.49 degrees
! Estimated noise=1.83135 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.936978 Jy
! Total flux subtracted in 50 components = 0.936978 Jy
! Clean residual min=-0.040838 max=0.261344 Jy/beam
! Clean residual mean=0.000338 rms=0.013006 Jy/beam
! Combined flux in latest and established models = 0.936978 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.936978 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.377533Jy  sigma=2.606647
! Fit after  self-cal, rms=0.377533Jy  sigma=2.606648
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.228845 Jy
! Total flux subtracted in 50 components = 0.228845 Jy
! Clean residual min=-0.024569 max=0.093999 Jy/beam
! Clean residual mean=0.000168 rms=0.007057 Jy/beam
! Combined flux in latest and established models = 1.16582 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 7 components and 1.16582 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222604Jy  sigma=1.529764
! Fit after  self-cal, rms=0.222576Jy  sigma=1.529572
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0998059 Jy
! Total flux subtracted in 50 components = 0.0998059 Jy
! Clean residual min=-0.022000 max=0.044323 Jy/beam
! Clean residual mean=0.000093 rms=0.005352 Jy/beam
! Combined flux in latest and established models = 1.26563 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 10 components and 1.26563 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179148Jy  sigma=1.228535
! Fit after  self-cal, rms=0.179086Jy  sigma=1.228108
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0487753 Jy
! Total flux subtracted in 50 components = 0.0487753 Jy
! Clean residual min=-0.020989 max=0.030722 Jy/beam
! Clean residual mean=0.000057 rms=0.004876 Jy/beam
! Combined flux in latest and established models = 1.3144 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 16 components and 1.3144 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.166860Jy  sigma=1.144236
! Fit after  self-cal, rms=0.166832Jy  sigma=1.144047
! 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.64 mas, bmaj=5.125 mas, bpa=-10.92 degrees
! Estimated noise=1.26687 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 (2.8, 4.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0432063 Jy
! Component: 100  -  total flux cleaned = 0.0673833 Jy
! Total flux subtracted in 100 components = 0.0673833 Jy
! Clean residual min=-0.016092 max=0.029517 Jy/beam
! Clean residual mean=0.000782 rms=0.004300 Jy/beam
! Combined flux in latest and established models = 1.38179 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 34 components and 1.38179 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.156402Jy  sigma=1.071040
! Fit after  self-cal, rms=0.155971Jy  sigma=1.067995
! 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.96     FD        0.97     GC        1.00*    HN        0.97     
!   KK        1.00*    KP        0.98     LA        0.98     MC        1.40     
!   MK        1.00*    NL        0.97     NY        1.06     OV        0.97     
!   PT        0.99     SC        0.94     WF        1.03     GN        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.98     GC        1.00     HN        1.01     
!   KK        0.97     KP        1.09     LA        0.98     MC        1.00*    
!   MK        1.02     NL        0.99     NY        1.19     OV        1.00     
!   PT        0.99     SC        0.99     WF        1.00     GN        0.97     
! 
! 
! 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.97     FD        0.98     GC        1.00*    HN        0.99     
!   KK        1.00*    KP        1.11     LA        0.97     MC        0.96     
!   MK        1.00*    NL        0.98     NY        1.00     OV        1.00     
!   PT        0.97     SC        0.94     WF        1.04     GN        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        0.98     GC        1.01     HN        1.01     
!   KK        0.94     KP        1.12     LA        0.97     MC        1.00*    
!   MK        1.00     NL        0.99     NY        1.18     OV        1.01     
!   PT        0.99     SC        0.97     WF        1.01     GN        0.96     
! 
! 
! 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.95     FD        0.94     GC        1.00*    HN        0.96     
!   KK        1.00*    KP        1.03     LA        0.95     MC        1.46     
!   MK        1.00*    NL        0.97     NY        1.00     OV        0.96     
!   PT        0.96     SC        0.92     WF        1.05     GN        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.96     GC        0.99     HN        0.99     
!   KK        0.93     KP        1.04     LA        0.98     MC        1.00*    
!   MK        1.01     NL        0.98     NY        1.17     OV        0.99     
!   PT        0.98     SC        0.96     WF        1.01     GN        0.97     
! 
! 
! 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.97     FD        0.96     GC        1.00*    HN        0.93     
!   KK        1.00*    KP        1.07     LA        0.94     MC        1.85     
!   MK        1.00*    NL        0.95     NY        0.95     OV        0.95     
!   PT        0.99     SC        0.92     WF        1.03     GN        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        0.96     GC        0.99     HN        0.98     
!   KK        0.95     KP        1.10     LA        0.95     MC        1.00*    
!   MK        0.99     NL        0.97     NY        1.14     OV        0.97     
!   PT        1.01     SC        0.96     WF        0.99     GN        0.96     
! 
! 
! Fit before self-cal, rms=0.155971Jy  sigma=1.067995
! Fit after  self-cal, rms=0.130800Jy  sigma=0.871287
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.657 mas, bmaj=5.195 mas, bpa=-10.82 degrees
! Estimated noise=1.2669 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.00677669 Jy
! Component: 100  -  total flux cleaned = 0.00853579 Jy
! Total flux subtracted in 100 components = 0.00853579 Jy
! Clean residual min=-0.008988 max=0.010976 Jy/beam
! Clean residual mean=0.000523 rms=0.002480 Jy/beam
! Combined flux in latest and established models = 1.39032 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 50 components and 1.39032 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.129495Jy  sigma=0.861931
! Fit after  self-cal, rms=0.129481Jy  sigma=0.861534
! 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.00145983 Jy
! Component: 100  -  total flux cleaned = 0.00278673 Jy
! Total flux subtracted in 100 components = 0.00278673 Jy
! Clean residual min=-0.007782 max=0.010619 Jy/beam
! Clean residual mean=0.000486 rms=0.002433 Jy/beam
! Combined flux in latest and established models = 1.39311 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 59 components and 1.39311 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.129030Jy  sigma=0.858326
! Fit after  self-cal, rms=0.121833Jy  sigma=0.802288
! Inverting map and beam 
! Estimated beam: bmin=2.659 mas, bmaj=5.2 mas, bpa=-10.77 degrees
! Estimated noise=1.26666 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.00393295 Jy
! Component: 100  -  total flux cleaned = 0.00438837 Jy
! Total flux subtracted in 100 components = 0.00438837 Jy
! Clean residual min=-0.005046 max=0.005039 Jy/beam
! Clean residual mean=0.000381 rms=0.001101 Jy/beam
! Combined flux in latest and established models = 1.3975 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 69 components and 1.3975 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.121599Jy  sigma=0.800525
! Fit after  self-cal, rms=0.121590Jy  sigma=0.800405
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1749+096_S
! Writing UV FITS file: 1749+096_S.uvf
! Writing 69 model components to file: 1749+096_S.mod
! wwins: Wrote 2 windows to 1749+096_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.659 x 5.2 at -10.77 degrees (North through East)
! Clean map  min=-0.0047777  max=1.2184 Jy/beam
! Writing clean map to FITS file: 1749+096_S.fits
! Writing difmap environment to: 1749+096_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1749+096_Suv.ps/vps,1,2
! Attempting to open device: '1749+096_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1749+096_Sim.ps/vps
! Attempting to open device: '1749+096_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.659 mas, bmaj=5.2 mas, bpa=-10.77 degrees
! Estimated noise=1.26666 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.659 x 5.2 at -10.77 degrees (North through East)
! Clean map  min=-0.0047777  max=1.2184 Jy/beam
quit
! Quitting program
! Log file 1749+096_S.log closed on Tue Nov 26 15:53:35 2002