! Started logfile: J0555+3948_S_2001_07_05_pus_uvs.log on Fri Aug 10 00:22:43 2007
obs J0555+3948_S_2001_07_05_pus_uva.fits
! Reading UV FITS file: J0555+3948_S_2001_07_05_pus_uva.fits
! AN table 1: 92 integrations on 171 of 171 possible baselines.
! AN table 2: 123 integrations on 171 of 171 possible baselines.
! AN table 3: 137 integrations on 171 of 171 possible baselines.
! AN table 4: 134 integrations on 171 of 171 possible baselines.
! AN table 5: 74 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.170948 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0555+3948
! 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.
! 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 1774 lines of history.
! 
! Reading 65480 visibilities.
select I
! Polarization I is unavailable.
! 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
print "field_size =",field_size
! field_size = 512 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
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 949 telescope corrections were flagged in sub-array 1.
!  A total of 1748 telescope corrections were flagged in sub-array 2.
!  A total of 1502 telescope corrections were flagged in sub-array 3.
!  A total of 1638 telescope corrections were flagged in sub-array 4.
!  A total of 1055 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 949 telescope corrections were flagged in sub-array 1.
!  A total of 1748 telescope corrections were flagged in sub-array 2.
!  A total of 1502 telescope corrections were flagged in sub-array 3.
!  A total of 1638 telescope corrections were flagged in sub-array 4.
!  A total of 1055 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 949 telescope corrections were flagged in sub-array 1.
!  A total of 1748 telescope corrections were flagged in sub-array 2.
!  A total of 1502 telescope corrections were flagged in sub-array 3.
!  A total of 1638 telescope corrections were flagged in sub-array 4.
!  A total of 1055 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 1043 telescope corrections were flagged in sub-array 1.
!  A total of 1748 telescope corrections were flagged in sub-array 2.
!  A total of 1502 telescope corrections were flagged in sub-array 3.
!  A total of 1638 telescope corrections were flagged in sub-array 4.
!  A total of 1055 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=2.224737Jy  sigma=0.018017
! Fit after  self-cal, rms=1.866516Jy  sigma=0.015054
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 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.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.001 mas, bmaj=2.979 mas, bpa=-3.751 degrees
! Estimated noise=676.321 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.03242 Jy
! Component: 100  -  total flux cleaned = 2.53969 Jy
! Total flux subtracted in 100 components = 2.53969 Jy
! Clean residual min=-0.040894 max=0.214909 Jy/beam
! Clean residual mean=0.000198 rms=0.011805 Jy/beam
! Combined flux in latest and established models = 2.53969 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 2.53969 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.573245Jy  sigma=0.004222
! Fit after  self-cal, rms=0.573214Jy  sigma=0.004222
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.227559 Jy
! Component: 100  -  total flux cleaned = 0.352849 Jy
! Total flux subtracted in 100 components = 0.352849 Jy
! Clean residual min=-0.032652 max=0.067131 Jy/beam
! Clean residual mean=0.000001 rms=0.007836 Jy/beam
! Combined flux in latest and established models = 2.89254 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 21 components and 2.89254 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.436573Jy  sigma=0.002911
! Fit after  self-cal, rms=0.436528Jy  sigma=0.002911
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0841862 Jy
! Component: 100  -  total flux cleaned = 0.142141 Jy
! Total flux subtracted in 100 components = 0.142141 Jy
! Clean residual min=-0.028908 max=0.031891 Jy/beam
! Clean residual mean=-0.000077 rms=0.007019 Jy/beam
! Combined flux in latest and established models = 3.03468 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 25 components and 3.03468 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.415856Jy  sigma=0.002712
! Fit after  self-cal, rms=0.415830Jy  sigma=0.002711
! Inverting map 
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 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
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.787 mas, bmaj=3.62 mas, bpa=-1.496 degrees
! Estimated noise=357.5 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0326981 Jy
! Component: 100  -  total flux cleaned = 0.0494449 Jy
! Component: 150  -  total flux cleaned = 0.0524943 Jy
! Component: 200  -  total flux cleaned = 0.054755 Jy
! Total flux subtracted in 200 components = 0.054755 Jy
! Clean residual min=-0.025536 max=0.021716 Jy/beam
! Clean residual mean=-0.000920 rms=0.006634 Jy/beam
! Combined flux in latest and established models = 3.08943 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 29 components and 3.08943 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.412887Jy  sigma=0.002689
! Fit after  self-cal, rms=0.412870Jy  sigma=0.002689
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.02     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.00*    KP        1.00*    
!   LA        1.00     MC        1.00*    MK        1.00*    NL        1.02     
!   NY        1.00*    OV        1.02     PT        1.00*    SC        0.97     
!   TS        1.00*    WF        1.03     WZ        1.00*    
! 
!  A total of 117 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.97     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.00*    KP        1.07     
!   LA        0.99     MC        1.24     MK        1.04     NL        0.98     
!   NY        1.01     OV        0.99     PT        0.93     SC        1.03     
!   TS        1.09     WF        1.03     WZ        1.00*    
! 
!  A total of 123 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.01     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.06     KP        0.89     
!   LA        1.02     MC        1.02     MK        1.01     NL        1.01     
!   NY        1.02     OV        0.99     PT        0.99     SC        1.00     
!   TS        1.05     WF        1.06     WZ        1.01     
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        1.04     GC        0.98     GG        1.00*    
!   HH        0.97     HN        0.98     KK        1.19     KP        1.00*    
!   LA        1.05     MC        1.01     MK        1.00*    NL        1.03     
!   NY        1.01     OV        1.04     PT        1.02     SC        1.11     
!   TS        1.02     WF        1.01     WZ        1.06     
! 
!  A total of 6 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.96     FD        0.98     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.05     KK        1.10     KP        0.97     
!   LA        0.99     MC        1.02     MK        1.06     NL        0.99     
!   NY        1.01     OV        0.94     PT        0.94     SC        0.98     
!   TS        1.00*    WF        1.04     WZ        1.00     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.03     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.00*    KP        1.00*    
!   LA        0.97     MC        1.00*    MK        1.00*    NL        0.99     
!   NY        1.00*    OV        1.05     PT        1.00*    SC        0.99     
!   TS        1.00*    WF        1.02     WZ        1.00*    
! 
!  A total of 117 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.97     GC        0.95     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.00*    KP        0.94     
!   LA        0.94     MC        1.07     MK        1.01     NL        0.93     
!   NY        1.02     OV        1.01     PT        0.94     SC        1.04     
!   TS        1.07     WF        1.01     WZ        1.00*    
! 
!  A total of 123 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.02     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.06     KP        0.86     
!   LA        0.98     MC        0.92     MK        0.97     NL        0.99     
!   NY        1.00     OV        1.01     PT        1.01     SC        1.02     
!   TS        1.00     WF        1.04     WZ        1.00     
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.05     GC        0.94     GG        1.00*    
!   HH        1.02     HN        0.97     KK        1.19     KP        1.00*    
!   LA        1.02     MC        1.01     MK        1.00*    NL        1.00     
!   NY        1.03     OV        1.06     PT        1.05     SC        1.14     
!   TS        0.99     WF        1.01     WZ        1.02     
! 
!  A total of 6 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.94     FD        0.98     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.10     KP        1.02     
!   LA        0.94     MC        0.96     MK        1.04     NL        0.95     
!   NY        1.00     OV        0.96     PT        0.96     SC        0.99     
!   TS        1.00*    WF        1.03     WZ        0.93     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        0.96     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.00*    KP        1.00*    
!   LA        1.04     MC        1.00*    MK        1.00*    NL        1.04     
!   NY        1.00*    OV        1.03     PT        1.00*    SC        0.96     
!   TS        1.00*    WF        1.01     WZ        1.00*    
! 
!  A total of 117 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.93     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        1.00*    KP        1.08     
!   LA        0.96     MC        2.68     MK        1.03     NL        1.02     
!   NY        1.00     OV        1.01     PT        1.01     SC        1.02     
!   TS        1.08     WF        0.99     WZ        1.00*    
! 
!  A total of 123 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.96     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.06     KK        0.88     KP        0.96     
!   LA        1.00     MC        0.92     MK        0.99     NL        1.02     
!   NY        1.00     OV        1.03     PT        1.00     SC        1.00     
!   TS        1.01     WF        1.05     WZ        1.01     
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        0.97     GC        0.98     GG        1.00*    
!   HH        0.99     HN        1.01     KK        1.14     KP        1.00*    
!   LA        1.04     MC        1.29     MK        1.00*    NL        1.07     
!   NY        1.01     OV        1.05     PT        1.03     SC        1.08     
!   TS        1.00     WF        0.98     WZ        1.02     
! 
!  A total of 6 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.97     FD        0.93     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.09     KK        1.03     KP        0.97     
!   LA        0.96     MC        1.02     MK        1.05     NL        0.99     
!   NY        0.99     OV        0.96     PT        0.99     SC        0.97     
!   TS        1.00*    WF        0.99     WZ        0.96     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.00     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        0.91     KK        1.00*    KP        1.00*    
!   LA        1.01     MC        1.00*    MK        1.00*    NL        0.99     
!   NY        1.00*    OV        1.02     PT        1.00*    SC        0.96     
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 117 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.92     FD        0.94     GC        0.95     GG        1.00*    
!   HH        1.00*    HN        0.92     KK        1.00*    KP        1.10     
!   LA        0.94     MC        0.87     MK        1.02     NL        0.94     
!   NY        1.00     OV        0.95     PT        1.18     SC        1.01     
!   TS        1.08     WF        1.03     WZ        1.00*    
! 
!  A total of 123 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        0.99     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        0.98     KP        0.92     
!   LA        0.99     MC        0.69     MK        0.98     NL        0.99     
!   NY        1.02     OV        0.97     PT        1.04     SC        1.00     
!   TS        1.02     WF        1.03     WZ        0.99     
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.01     GC        0.95     GG        1.00*    
!   HH        1.04     HN        0.92     KK        1.12     KP        1.00*    
!   LA        1.02     MC        2.66     MK        1.00*    NL        1.00     
!   NY        1.04     OV        1.04     PT        1.01     SC        1.09     
!   TS        0.97     WF        0.99     WZ        1.04     
! 
!  A total of 6 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.92     FD        0.95     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        0.92     KK        1.06     KP        0.98     
!   LA        0.95     MC        1.08     MK        1.03     NL        0.95     
!   NY        1.01     OV        0.94     PT        1.22     SC        0.96     
!   TS        1.00*    WF        1.01     WZ        0.94     
! 
! 
! Fit before self-cal, rms=0.412870Jy  sigma=0.002689
! Fit after  self-cal, rms=0.340893Jy  sigma=0.002065
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.809 mas, bmaj=3.662 mas, bpa=-4.038 degrees
! Estimated noise=363.613 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00692186 Jy
! Component: 100  -  total flux cleaned = 0.00858818 Jy
! Component: 150  -  total flux cleaned = 0.00884897 Jy
! Component: 200  -  total flux cleaned = 0.00908911 Jy
! Total flux subtracted in 200 components = 0.00908911 Jy
! Clean residual min=-0.018076 max=0.016008 Jy/beam
! Clean residual mean=-0.000381 rms=0.004035 Jy/beam
! Combined flux in latest and established models = 3.09852 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 31 components and 3.09852 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.340618Jy  sigma=0.002065
! Fit after  self-cal, rms=0.341111Jy  sigma=0.002064
! Inverting map 
selfcal true, true, soltime1
! Performing amp+phase self-cal over 120 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.341111Jy  sigma=0.002064
! Fit after  self-cal, rms=0.249349Jy  sigma=0.001568
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.806 mas, bmaj=3.668 mas, bpa=-4.061 degrees
! Estimated noise=363.983 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000916671 Jy
! Component: 100  -  total flux cleaned = 0.000565303 Jy
! Component: 150  -  total flux cleaned = 0.000433782 Jy
! Component: 200  -  total flux cleaned = 0.000437809 Jy
! Total flux subtracted in 200 components = 0.000437809 Jy
! Clean residual min=-0.006461 max=0.004258 Jy/beam
! Clean residual mean=-0.000162 rms=0.000969 Jy/beam
! Combined flux in latest and established models = 3.09896 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 37 components and 3.09896 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.249104Jy  sigma=0.001566
! Fit after  self-cal, rms=0.249110Jy  sigma=0.001566
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00015607 Jy
! Component: 100  -  total flux cleaned = 5.61851e-05 Jy
! Component: 150  -  total flux cleaned = 5.79875e-05 Jy
! Component: 200  -  total flux cleaned = -3.81619e-05 Jy
! Total flux subtracted in 200 components = -3.81619e-05 Jy
! Clean residual min=-0.007100 max=0.004257 Jy/beam
! Clean residual mean=-0.000162 rms=0.000961 Jy/beam
! Combined flux in latest and established models = 3.09892 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 40 components and 3.09892 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.249025Jy  sigma=0.001565
! Fit after  self-cal, rms=0.249019Jy  sigma=0.001565
! Inverting map 
selfcal true, true, soltime2
! Performing amp+phase self-cal over 20 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.249019Jy  sigma=0.001565
! Fit after  self-cal, rms=0.248970Jy  sigma=0.001563
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.804 mas, bmaj=3.671 mas, bpa=-4.108 degrees
! Estimated noise=364.285 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0014974 Jy
! Component: 100  -  total flux cleaned = 0.00138096 Jy
! Component: 150  -  total flux cleaned = 0.00127924 Jy
! Component: 200  -  total flux cleaned = 0.00109425 Jy
! Total flux subtracted in 200 components = 0.00109425 Jy
! Clean residual min=-0.006808 max=0.004036 Jy/beam
! Clean residual mean=-0.000155 rms=0.000930 Jy/beam
! Combined flux in latest and established models = 3.10002 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 40 components and 3.10002 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.248833Jy  sigma=0.001562
! Fit after  self-cal, rms=0.248828Jy  sigma=0.001562
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000136136 Jy
! Component: 100  -  total flux cleaned = -4.36108e-05 Jy
! Component: 150  -  total flux cleaned = -0.000129834 Jy
! Component: 200  -  total flux cleaned = -0.000211874 Jy
! Total flux subtracted in 200 components = -0.000211874 Jy
! Clean residual min=-0.007142 max=0.004034 Jy/beam
! Clean residual mean=-0.000153 rms=0.000925 Jy/beam
! Combined flux in latest and established models = 3.0998 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 41 components and 3.0998 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.248765Jy  sigma=0.001561
! Fit after  self-cal, rms=0.248763Jy  sigma=0.001561
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
win_mult = win_mult * 1.2
selfcal true, true, soltime2
! Performing amp+phase self-cal over 20 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.248763Jy  sigma=0.001561
! Fit after  self-cal, rms=0.248756Jy  sigma=0.001559
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.574 mas, bmaj=8.304 mas, bpa=32.2 degrees
! Estimated noise=496.926 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00199384 Jy
! Component: 100  -  total flux cleaned = -0.00247918 Jy
! Component: 150  -  total flux cleaned = -0.00255607 Jy
! Component: 200  -  total flux cleaned = -0.00262838 Jy
! Total flux subtracted in 200 components = -0.00262838 Jy
! Clean residual min=-0.003566 max=0.002870 Jy/beam
! Clean residual mean=-0.000317 rms=0.001051 Jy/beam
! Combined flux in latest and established models = 3.09718 Jy
selfcal
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 42 components and 3.09717 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.248746Jy  sigma=0.001559
! Fit after  self-cal, rms=0.248743Jy  sigma=0.001559
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000101184 Jy
! Component: 100  -  total flux cleaned = -0.000146562 Jy
! Component: 150  -  total flux cleaned = -0.000208791 Jy
! Component: 200  -  total flux cleaned = -0.000247789 Jy
! Total flux subtracted in 200 components = -0.000247789 Jy
! Clean residual min=-0.003575 max=0.002865 Jy/beam
! Clean residual mean=-0.000309 rms=0.001052 Jy/beam
! Combined flux in latest and established models = 3.09693 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 43 components and 3.09693 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.248736Jy  sigma=0.001559
! Fit after  self-cal, rms=0.248735Jy  sigma=0.001559
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Estimated beam: bmin=2.802 mas, bmaj=3.672 mas, bpa=-4.133 degrees
! Estimated noise=364.568 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.802 x 3.672 at -4.133 degrees (North through East)
! Clean map  min=-0.0032349  max=2.776 Jy/beam
if(peak(flux) > thresh)
  selfcal true, true
  clean clean_niter,clean_gain
  selfcal
  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
    new_peak = peak(flux)
    until(new_peak<=flux_cutoff)
  selfcal true, true
  end if
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.248735Jy  sigma=0.001559
! Fit after  self-cal, rms=0.233122Jy  sigma=0.001281
! Inverting map and beam 
! Estimated beam: bmin=2.804 mas, bmaj=3.673 mas, bpa=-4.176 degrees
! Estimated noise=364.45 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000306382 Jy
! Component: 100  -  total flux cleaned = 0.000132837 Jy
! Component: 150  -  total flux cleaned = 4.64756e-05 Jy
! Component: 200  -  total flux cleaned = -3.77398e-05 Jy
! Total flux subtracted in 200 components = -3.77398e-05 Jy
! Clean residual min=-0.006711 max=0.003035 Jy/beam
! Clean residual mean=-0.000081 rms=0.000755 Jy/beam
! Combined flux in latest and established models = 3.09689 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 43 components and 3.09689 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.233057Jy  sigma=0.001281
! Fit after  self-cal, rms=0.233054Jy  sigma=0.001281
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000109076 Jy
! Component: 100  -  total flux cleaned = -0.000123245 Jy
! Component: 150  -  total flux cleaned = -0.000195712 Jy
! Component: 200  -  total flux cleaned = -0.000266241 Jy
! Total flux subtracted in 200 components = -0.000266241 Jy
! Clean residual min=-0.006922 max=0.003038 Jy/beam
! Clean residual mean=-0.000078 rms=0.000751 Jy/beam
! Combined flux in latest and established models = 3.09662 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 43 components and 3.09662 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.233004Jy  sigma=0.001280
! Fit after  self-cal, rms=0.233001Jy  sigma=0.001280
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.233001Jy  sigma=0.001280
! Fit after  self-cal, rms=0.232962Jy  sigma=0.001280
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 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.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.01 mas, bmaj=3.01 mas, bpa=-4.049 degrees
! Estimated noise=676.495 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.04321 Jy
! Component: 100  -  total flux cleaned = 2.54649 Jy
! Component: 150  -  total flux cleaned = 2.7686 Jy
! Component: 200  -  total flux cleaned = 2.88257 Jy
! Total flux subtracted in 200 components = 2.88257 Jy
! Clean residual min=-0.013359 max=0.059422 Jy/beam
! Clean residual mean=0.000114 rms=0.003839 Jy/beam
! Combined flux in latest and established models = 2.88257 Jy
uvw 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.
flux_cutoff = imstat(rms) * dynam
! Adding 14 model components to the UV plane model.
! The established model now contains 14 components and 2.88257 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.803 mas, bmaj=3.674 mas, bpa=-4.182 degrees
! Estimated noise=364.504 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  keep
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.108458 Jy
! Component: 100  -  total flux cleaned = 0.161211 Jy
! Component: 150  -  total flux cleaned = 0.188793 Jy
! Component: 200  -  total flux cleaned = 0.20282 Jy
! Total flux subtracted in 200 components = 0.20282 Jy
! Clean residual min=-0.007644 max=0.007525 Jy/beam
! Clean residual mean=0.000048 rms=0.001020 Jy/beam
! Combined flux in latest and established models = 3.08539 Jy
! Adding 33 model components to the UV plane model.
! The established model now contains 40 components and 3.08539 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.575 mas, bmaj=8.307 mas, bpa=32.11 degrees
! Estimated noise=496.522 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00516173 Jy
! Component: 100  -  total flux cleaned = 0.00641787 Jy
! Component: 150  -  total flux cleaned = 0.0068109 Jy
! Component: 200  -  total flux cleaned = 0.00691974 Jy
! Total flux subtracted in 200 components = 0.00691974 Jy
! Clean residual min=-0.003059 max=0.002013 Jy/beam
! Clean residual mean=-0.000099 rms=0.000783 Jy/beam
! Combined flux in latest and established models = 3.09231 Jy
flux_cutoff = imstat(rms) * dynam
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  keep
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 7.91811e-06 Jy
! Component: 100  -  total flux cleaned = 1.88581e-05 Jy
! Component: 150  -  total flux cleaned = 2.57938e-05 Jy
! Component: 200  -  total flux cleaned = 3.23856e-05 Jy
! Total flux subtracted in 200 components = 3.23856e-05 Jy
! Clean residual min=-0.003059 max=0.002011 Jy/beam
! Clean residual mean=-0.000100 rms=0.000783 Jy/beam
! Combined flux in latest and established models = 3.09235 Jy
! Adding 18 model components to the UV plane model.
! The established model now contains 50 components and 3.09235 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.803 mas, bmaj=3.674 mas, bpa=-4.182 degrees
! Estimated noise=364.504 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00468742 Jy
! Component: 100  -  total flux cleaned = -0.00244762 Jy
! Component: 150  -  total flux cleaned = -0.000498292 Jy
! Component: 200  -  total flux cleaned = 0.000926676 Jy
! Total flux subtracted in 200 components = 0.000926676 Jy
! Clean residual min=-0.004856 max=0.004472 Jy/beam
! Clean residual mean=-0.000039 rms=0.000884 Jy/beam
! Combined flux in latest and established models = 3.09327 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 50 components and 3.09327 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.234246Jy  sigma=0.001292
! Fit after  self-cal, rms=0.234224Jy  sigma=0.001292
wmodel J0555+3948_S_2001_07_05_pus_map.mod
! Writing 50 model components to file: J0555+3948_S_2001_07_05_pus_map.mod
wobs J0555+3948_S_2001_07_05_pus_uvs.fits
! Writing UV FITS file: J0555+3948_S_2001_07_05_pus_uvs.fits
wwins J0555+3948_S_2001_07_05_pus_map.win
! wwins: Wrote 1 windows to J0555+3948_S_2001_07_05_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00103921 Jy
! Component: 100  -  total flux cleaned = 0.00121129 Jy
! Component: 150  -  total flux cleaned = 0.00145874 Jy
! Component: 200  -  total flux cleaned = 0.00137908 Jy
! Component: 250  -  total flux cleaned = 0.00122571 Jy
! Component: 300  -  total flux cleaned = 0.00107673 Jy
! Component: 350  -  total flux cleaned = 0.000930131 Jy
! Component: 400  -  total flux cleaned = 0.000644861 Jy
! Component: 450  -  total flux cleaned = 0.000505182 Jy
! Component: 500  -  total flux cleaned = 0.000299194 Jy
! Component: 550  -  total flux cleaned = 0.000163427 Jy
! Component: 600  -  total flux cleaned = -3.71805e-05 Jy
! Component: 650  -  total flux cleaned = -0.000234521 Jy
! Component: 700  -  total flux cleaned = -0.000429151 Jy
! Component: 750  -  total flux cleaned = -0.000556814 Jy
! Component: 800  -  total flux cleaned = -0.000746894 Jy
! Component: 850  -  total flux cleaned = -0.000871303 Jy
! Component: 900  -  total flux cleaned = -0.000994445 Jy
! Component: 950  -  total flux cleaned = -0.00111632 Jy
! Component: 1000  -  total flux cleaned = -0.00123639 Jy
! Component: 1050  -  total flux cleaned = -0.00135562 Jy
! Component: 1100  -  total flux cleaned = -0.00147378 Jy
! Component: 1150  -  total flux cleaned = -0.00164824 Jy
! Component: 1200  -  total flux cleaned = -0.00176316 Jy
! Component: 1250  -  total flux cleaned = -0.00187651 Jy
! Component: 1300  -  total flux cleaned = -0.0019889 Jy
! Component: 1350  -  total flux cleaned = -0.00210039 Jy
! Component: 1400  -  total flux cleaned = -0.00226574 Jy
! Component: 1450  -  total flux cleaned = -0.00232004 Jy
! Component: 1500  -  total flux cleaned = -0.00237393 Jy
! Component: 1550  -  total flux cleaned = -0.00248117 Jy
! Component: 1600  -  total flux cleaned = -0.00258708 Jy
! Component: 1650  -  total flux cleaned = -0.00269145 Jy
! Component: 1700  -  total flux cleaned = -0.00274277 Jy
! Component: 1750  -  total flux cleaned = -0.00284531 Jy
! Component: 1800  -  total flux cleaned = -0.00289651 Jy
! Component: 1850  -  total flux cleaned = -0.00304863 Jy
! Component: 1900  -  total flux cleaned = -0.00314893 Jy
! Component: 1950  -  total flux cleaned = -0.00329753 Jy
! Component: 2000  -  total flux cleaned = -0.00329717 Jy
! Total flux subtracted in 2048 components = -0.00339487 Jy
! Clean residual min=-0.003182 max=0.002435 Jy/beam
! Clean residual mean=-0.000009 rms=0.000752 Jy/beam
! Combined flux in latest and established models = 3.08988 Jy
keep
! Adding 59 model components to the UV plane model.
! The established model now contains 98 components and 3.08988 Jy
wmap "J0555+3948_S_2001_07_05_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.803 x 3.674 at -4.182 degrees (North through East)
! Clean map  min=-0.0032003  max=2.7776 Jy/beam
! Writing clean map to FITS file: J0555+3948_S_2001_07_05_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 2.77764 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000752877 
device "J0555+3948_S_2001_07_05_pus\_map.eps/VPS"
! Attempting to open device: 'J0555+3948_S_2001_07_05_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.0813148 0.0813148 0.16263 0.325259 0.650518 1.30104 2.60207 5.20414 10.4083 20.8166 41.6332 83.2663
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0022 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.777 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.803 x 3.674 at -4.182 degrees (North through East)
! Clean map  min=-0.0032003  max=2.7776 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0555+3948_S_2001_07_05_pus\_map.gif/vgif"
! Attempting to open device: 'J0555+3948_S_2001_07_05_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0555+3948_S_2001_07_05_pus_uvs.log closed on Fri Aug 10 00:25:36 2007