! Started logfile: 0955+476_X.log on Sat Apr 20 21:33:20 2002
observe 0955+476_X.edt
! Reading UV FITS file: 0955+476_X.edt
! AN table 1: 19 integrations on 171 of 171 possible baselines.
! AN table 2: 72 integrations on 171 of 171 possible baselines.
! AN table 3: 72 integrations on 171 of 171 possible baselines.
! AN table 4: 69 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.102087 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0955+476
! 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  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1606 lines of history.
! 
! Reading 16200 visibilities.
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.1
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.100x0.100 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 336 telescope corrections were flagged in sub-array 1.
!  A total of 1077 telescope corrections were flagged in sub-array 2.
!  A total of 1083 telescope corrections were flagged in sub-array 3.
!  A total of 1047 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 336 telescope corrections were flagged in sub-array 1.
!  A total of 1077 telescope corrections were flagged in sub-array 2.
!  A total of 1083 telescope corrections were flagged in sub-array 3.
!  A total of 1047 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 336 telescope corrections were flagged in sub-array 1.
!  A total of 1077 telescope corrections were flagged in sub-array 2.
!  A total of 1083 telescope corrections were flagged in sub-array 3.
!  A total of 1047 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 336 telescope corrections were flagged in sub-array 1.
!  A total of 1083 telescope corrections were flagged in sub-array 2.
!  A total of 1083 telescope corrections were flagged in sub-array 3.
!  A total of 1047 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.409245Jy  sigma=2.900755
! Fit after  self-cal, rms=0.408512Jy  sigma=2.895157
! 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=0.4814 mas, bmaj=0.894 mas, bpa=-10.09 degrees
! Estimated noise=1.96852 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.992954 Jy
! Total flux subtracted in 50 components = 0.992954 Jy
! Clean residual min=-0.040055 max=0.276994 Jy/beam
! Clean residual mean=0.000611 rms=0.014073 Jy/beam
! Combined flux in latest and established models = 0.992954 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.992954 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.414605Jy  sigma=2.938494
! Fit after  self-cal, rms=0.414605Jy  sigma=2.938493
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.236662 Jy
! Total flux subtracted in 50 components = 0.236662 Jy
! Clean residual min=-0.026237 max=0.096426 Jy/beam
! Clean residual mean=0.000278 rms=0.007575 Jy/beam
! Combined flux in latest and established models = 1.22962 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 5 components and 1.22962 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.235626Jy  sigma=1.660137
! Fit after  self-cal, rms=0.235617Jy  sigma=1.660072
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.105318 Jy
! Total flux subtracted in 50 components = 0.105318 Jy
! Clean residual min=-0.021685 max=0.047962 Jy/beam
! Clean residual mean=0.000128 rms=0.005587 Jy/beam
! Combined flux in latest and established models = 1.33493 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 6 components and 1.33493 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179000Jy  sigma=1.250139
! Fit after  self-cal, rms=0.178998Jy  sigma=1.250122
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0527041 Jy
! Total flux subtracted in 50 components = 0.0527041 Jy
! Clean residual min=-0.022209 max=0.025147 Jy/beam
! Clean residual mean=0.000052 rms=0.004964 Jy/beam
! Combined flux in latest and established models = 1.38764 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 8 components and 1.38764 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.161477Jy  sigma=1.121807
! Fit after  self-cal, rms=0.161475Jy  sigma=1.121787
! 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=0.7018 mas, bmaj=1.081 mas, bpa=-10.9 degrees
! Estimated noise=1.03396 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.0419486 Jy
! Component: 100  -  total flux cleaned = 0.0624483 Jy
! Total flux subtracted in 100 components = 0.0624483 Jy
! Clean residual min=-0.017474 max=0.019707 Jy/beam
! Clean residual mean=-0.000057 rms=0.004521 Jy/beam
! Combined flux in latest and established models = 1.45009 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 16 components and 1.45009 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.152088Jy  sigma=1.051581
! Fit after  self-cal, rms=0.152080Jy  sigma=1.051521
! 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 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    MC        1.00*    
!   MK        1.00*    NL        1.00*    NY        0.95     ON        1.05     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        0.93     
!   WF        1.00*    KK        1.01     WZ        1.00*    
! 
!  A total of 114 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.01     GC        0.96     GG        1.00*    
!   HN        0.85     KP        1.03     LA        0.95     MC        0.99     
!   MK        0.97     NL        0.98     NY        0.97     ON        0.90     
!   OV        0.94     PT        1.01     SC        0.99     TS        1.00*    
!   WF        1.19     KK        1.17     WZ        0.95     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.00*    KP        0.98     LA        1.00*    MC        1.00*    
!   MK        1.00*    NL        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.01     PT        1.02     SC        1.00*    TS        1.00*    
!   WF        1.01     KK        1.00*    WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        0.96     GC        1.00*    GG        1.00*    
!   HN        0.97     KP        1.01     LA        0.99     MC        1.00*    
!   MK        1.00*    NL        0.93     NY        1.00*    ON        1.06     
!   OV        1.00*    PT        0.99     SC        0.95     TS        1.00*    
!   WF        1.00     KK        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    MC        1.00*    
!   MK        1.00*    NL        1.00*    NY        0.98     ON        1.00     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        0.98     
!   WF        1.00*    KK        1.01     WZ        1.00*    
! 
!  A total of 114 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.00     GC        0.95     GG        1.00*    
!   HN        0.86     KP        1.03     LA        0.93     MC        1.04     
!   MK        0.98     NL        0.99     NY        0.98     ON        0.89     
!   OV        0.94     PT        1.03     SC        1.00     TS        1.00*    
!   WF        1.17     KK        1.20     WZ        0.97     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.00*    KP        0.97     LA        1.00*    MC        1.00*    
!   MK        1.00*    NL        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.01     PT        1.02     SC        1.00*    TS        1.00*    
!   WF        1.02     KK        1.00*    WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        0.95     GC        1.00*    GG        1.00*    
!   HN        0.99     KP        1.01     LA        1.00     MC        1.00*    
!   MK        1.00*    NL        0.95     NY        1.00*    ON        0.97     
!   OV        1.00*    PT        0.99     SC        0.95     TS        1.00*    
!   WF        1.04     KK        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    MC        1.00*    
!   MK        1.00*    NL        1.00*    NY        1.00     ON        0.98     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        0.93     
!   WF        1.00*    KK        1.02     WZ        1.00*    
! 
!  A total of 114 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.02     GC        0.97     GG        1.00*    
!   HN        0.86     KP        1.03     LA        0.95     MC        1.01     
!   MK        1.00     NL        1.00     NY        0.97     ON        0.92     
!   OV        0.95     PT        1.04     SC        1.02     TS        1.00*    
!   WF        1.22     KK        1.20     WZ        0.95     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.00*    KP        0.97     LA        1.00*    MC        1.00*    
!   MK        1.00*    NL        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.01     PT        1.04     SC        1.00*    TS        1.00*    
!   WF        1.00     KK        1.00*    WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.93     FD        0.96     GC        1.00*    GG        1.00*    
!   HN        0.96     KP        1.01     LA        1.01     MC        1.00*    
!   MK        1.00*    NL        0.93     NY        1.00*    ON        1.08     
!   OV        1.00*    PT        1.00     SC        0.99     TS        1.00*    
!   WF        0.99     KK        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    MC        1.00*    
!   MK        1.00*    NL        1.00*    NY        1.00     ON        1.01     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        0.96     
!   WF        1.00*    KK        1.03     WZ        1.00*    
! 
!  A total of 114 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.02     GC        0.98     GG        1.00*    
!   HN        0.86     KP        1.01     LA        0.94     MC        1.02     
!   MK        1.04     NL        0.99     NY        1.00*    ON        0.92     
!   OV        0.95     PT        1.05     SC        1.01     TS        1.00*    
!   WF        1.21     KK        1.21     WZ        0.98     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.00*    KP        0.98     LA        1.00*    MC        1.00*    
!   MK        1.00*    NL        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.02     PT        1.05     SC        1.00*    TS        1.00*    
!   WF        1.01     KK        1.00*    WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        0.95     GC        1.00*    GG        1.00*    
!   HN        0.99     KP        1.01     LA        1.01     MC        1.00*    
!   MK        1.00*    NL        0.94     NY        1.00*    ON        1.07     
!   OV        1.00*    PT        0.99     SC        0.97     TS        1.00*    
!   WF        1.06     KK        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.152080Jy  sigma=1.051521
! Fit after  self-cal, rms=0.112169Jy  sigma=0.748269
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.7198 mas, bmaj=1.122 mas, bpa=-6.068 degrees
! Estimated noise=1.06125 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.000907685 Jy
! Component: 100  -  total flux cleaned = 0.000268691 Jy
! Total flux subtracted in 100 components = 0.000268691 Jy
! Clean residual min=-0.004991 max=0.005364 Jy/beam
! Clean residual mean=-0.000080 rms=0.001055 Jy/beam
! Combined flux in latest and established models = 1.45035 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 23 components and 1.45035 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.111212Jy  sigma=0.740718
! Fit after  self-cal, rms=0.111225Jy  sigma=0.740633
! 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.000260807 Jy
! Component: 100  -  total flux cleaned = -0.000489841 Jy
! Total flux subtracted in 100 components = -0.000489841 Jy
! Clean residual min=-0.004883 max=0.004976 Jy/beam
! Clean residual mean=-0.000072 rms=0.001010 Jy/beam
! Combined flux in latest and established models = 1.44986 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 24 components and 1.44986 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.110824Jy  sigma=0.737324
! Fit after  self-cal, rms=0.108863Jy  sigma=0.722307
! Inverting map and beam 
! Estimated beam: bmin=0.7194 mas, bmaj=1.122 mas, bpa=-6.183 degrees
! Estimated noise=1.06176 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 (0.9, -1.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0021948 Jy
! Component: 100  -  total flux cleaned = 0.00239063 Jy
! Total flux subtracted in 100 components = 0.00239063 Jy
! Clean residual min=-0.003946 max=0.003565 Jy/beam
! Clean residual mean=-0.000036 rms=0.000846 Jy/beam
! Combined flux in latest and established models = 1.45226 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 29 components and 1.45226 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.108521Jy  sigma=0.719477
! Fit after  self-cal, rms=0.108526Jy  sigma=0.719445
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0955+476_X
! Writing UV FITS file: 0955+476_X.uvf
! Writing 29 model components to file: 0955+476_X.mod
! wwins: Wrote 2 windows to 0955+476_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7194 x 1.122 at -6.183 degrees (North through East)
! Clean map  min=-0.0037194  max=1.3294 Jy/beam
! Writing clean map to FITS file: 0955+476_X.fits
! Writing difmap environment to: 0955+476_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 0955+476_Xuv.ps/vps,1,2
! Attempting to open device: '0955+476_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0955+476_Xim.ps/vps
! Attempting to open device: '0955+476_Xim.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=0.7194 mas, bmaj=1.122 mas, bpa=-6.183 degrees
! Estimated noise=1.06176 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7194 x 1.122 at -6.183 degrees (North through East)
! Clean map  min=-0.0037194  max=1.3294 Jy/beam
quit
! Quitting program
! Log file 0955+476_X.log closed on Sat Apr 20 21:34:05 2002