! Started logfile: J0204+1514_S_1999_03_08_pus_uvs.log on Wed Jan  9 13:43:38 2008
obs J0204+1514_S_1999_03_08_pus_uva.fits
! Reading UV FITS file: J0204+1514_S_1999_03_08_pus_uva.fits
! AN table 1: 56 integrations on 190 of 190 possible baselines.
! AN table 2: 45 integrations on 190 of 190 possible baselines.
! AN table 3: 128 integrations on 190 of 190 possible baselines.
! AN table 4: 81 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.146961 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0204+1514
! 
! 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 2340 lines of history.
! 
! Reading 34624 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 
![@muppet J0204+1514_S_1999_03_08_pus]
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 734 telescope corrections were flagged in sub-array 1.
!  A total of 579 telescope corrections were flagged in sub-array 2.
!  A total of 2245 telescope corrections were flagged in sub-array 3.
!  A total of 730 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 734 telescope corrections were flagged in sub-array 1.
!  A total of 579 telescope corrections were flagged in sub-array 2.
!  A total of 2245 telescope corrections were flagged in sub-array 3.
!  A total of 730 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 734 telescope corrections were flagged in sub-array 1.
!  A total of 579 telescope corrections were flagged in sub-array 2.
!  A total of 2176 telescope corrections were flagged in sub-array 3.
!  A total of 730 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 734 telescope corrections were flagged in sub-array 1.
!  A total of 579 telescope corrections were flagged in sub-array 2.
!  A total of 2171 telescope corrections were flagged in sub-array 3.
!  A total of 730 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.048463Jy  sigma=0.007974
! Fit after  self-cal, rms=0.596238Jy  sigma=0.005232
! 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.353 mas, bmaj=3.82 mas, bpa=-4.095 degrees
! Estimated noise=1000.7 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 = 0.956224 Jy
! Component: 100  -  total flux cleaned = 1.20512 Jy
! Total flux subtracted in 100 components = 1.20512 Jy
! Clean residual min=-0.041067 max=0.195555 Jy/beam
! Clean residual mean=0.000990 rms=0.014430 Jy/beam
! Combined flux in latest and established models = 1.20512 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 1.20512 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.486996Jy  sigma=0.004138
! Fit after  self-cal, rms=0.485277Jy  sigma=0.004131
! Inverting map 
! Added new window around map position (-3.5, 3).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.180006 Jy
! Component: 100  -  total flux cleaned = 0.291308 Jy
! Total flux subtracted in 100 components = 0.291308 Jy
! Clean residual min=-0.030700 max=0.063448 Jy/beam
! Clean residual mean=0.000754 rms=0.009400 Jy/beam
! Combined flux in latest and established models = 1.49643 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 21 components and 1.49643 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.362167Jy  sigma=0.002879
! Fit after  self-cal, rms=0.354090Jy  sigma=0.002814
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0899972 Jy
! Component: 100  -  total flux cleaned = 0.156279 Jy
! Total flux subtracted in 100 components = 0.156279 Jy
! Clean residual min=-0.022263 max=0.038653 Jy/beam
! Clean residual mean=0.000634 rms=0.006897 Jy/beam
! Combined flux in latest and established models = 1.65271 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 32 components and 1.65271 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.306712Jy  sigma=0.002285
! Fit after  self-cal, rms=0.305260Jy  sigma=0.002274
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0538273 Jy
! Component: 100  -  total flux cleaned = 0.0953857 Jy
! Total flux subtracted in 100 components = 0.0953857 Jy
! Clean residual min=-0.018827 max=0.025759 Jy/beam
! Clean residual mean=0.000560 rms=0.005864 Jy/beam
! Combined flux in latest and established models = 1.74809 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 40 components and 1.74809 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.285457Jy  sigma=0.002041
! Fit after  self-cal, rms=0.284971Jy  sigma=0.002038
! 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=3.092 mas, bmaj=5.424 mas, bpa=-4.172 degrees
! Estimated noise=480.817 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.0640485 Jy
! Component: 100  -  total flux cleaned = 0.104457 Jy
! Component: 150  -  total flux cleaned = 0.131789 Jy
! Component: 200  -  total flux cleaned = 0.150811 Jy
! Total flux subtracted in 200 components = 0.150811 Jy
! Clean residual min=-0.019699 max=0.026995 Jy/beam
! Clean residual mean=0.001688 rms=0.006382 Jy/beam
! Combined flux in latest and established models = 1.8989 Jy
! Performing phase self-cal
! Adding 50 model components to the UV plane model.
! The established model now contains 80 components and 1.8989 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.269794Jy  sigma=0.001851
! Fit after  self-cal, rms=0.269323Jy  sigma=0.001847
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.97     GC        1.02     GG        1.00*    
!   HN        1.06     KP        1.00*    LA        1.00*    NL        1.01     
!   OV        1.00*    PT        1.00*    SC        1.01     WF        0.93     
!   GN        0.95     HH        1.00*    KK        1.00*    MC        1.03     
!   MK        1.00*    NY        0.97     ON        1.00     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.96     GC        0.99     GG        1.00*    
!   HN        1.07     KP        1.02     LA        1.00*    NL        0.99     
!   OV        1.00*    PT        1.02     SC        1.01     WF        1.00     
!   GN        0.95     HH        1.00*    KK        0.99     MC        1.00*    
!   MK        0.97     NY        1.09     ON        1.00*    WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        0.98     KP        1.00*    LA        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.01     WF        0.91     
!   GN        1.04     HH        1.00*    KK        1.00*    MC        0.94     
!   MK        1.00*    NY        1.01     ON        1.00*    WZ        0.86     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        0.98     GC        0.97     GG        1.00*    
!   HN        1.02     KP        1.04     LA        0.97     NL        0.93     
!   OV        0.98     PT        1.03     SC        1.04     WF        0.98     
!   GN        0.96     HH        1.00*    KK        0.96     MC        1.00*    
!   MK        0.95     NY        1.06     ON        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.03     GC        1.05     GG        1.00*    
!   HN        0.95     KP        1.00*    LA        1.00*    NL        0.97     
!   OV        1.00*    PT        1.00*    SC        1.04     WF        0.97     
!   GN        0.96     HH        1.00*    KK        1.00*    MC        1.25     
!   MK        1.00*    NY        0.97     ON        1.03     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00     GC        1.02     GG        1.00*    
!   HN        0.97     KP        0.99     LA        1.00*    NL        0.92     
!   OV        1.00*    PT        0.96     SC        1.05     WF        0.97     
!   GN        0.96     HH        1.00*    KK        0.95     MC        1.00*    
!   MK        1.02     NY        1.11     ON        1.00*    WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        0.92     KP        1.00*    LA        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.07     WF        0.99     
!   GN        1.02     HH        1.00*    KK        1.00*    MC        0.80     
!   MK        1.00*    NY        1.03     ON        1.00*    WZ        0.87     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.01     GC        1.00     GG        1.00*    
!   HN        0.97     KP        1.03     LA        0.94     NL        1.06     
!   OV        0.95     PT        0.98     SC        1.10     WF        0.99     
!   GN        0.96     HH        1.00*    KK        0.90     MC        1.00*    
!   MK        0.97     NY        1.10     ON        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.99     GC        1.01     GG        1.00*    
!   HN        1.20     KP        1.00*    LA        1.00*    NL        0.99     
!   OV        1.00*    PT        1.00*    SC        1.00     WF        0.92     
!   GN        0.98     HH        1.00*    KK        1.00*    MC        1.37     
!   MK        1.00*    NY        0.96     ON        0.98     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.98     GC        0.98     GG        1.00*    
!   HN        1.23     KP        1.00     LA        1.00*    NL        0.96     
!   OV        1.00*    PT        0.91     SC        1.01     WF        0.94     
!   GN        0.96     HH        1.00*    KK        0.95     MC        1.00*    
!   MK        0.99     NY        1.16     ON        1.00*    WZ        1.00*    
! 
!  A total of 48 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.13     KP        1.00*    LA        1.00*    NL        0.64     
!   OV        1.00*    PT        1.00*    SC        1.03     WF        0.86     
!   GN        1.05     HH        1.01     KK        1.00*    MC        2.03     
!   MK        1.00*    NY        1.00     ON        1.00*    WZ        0.88     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.98     GC        0.98     GG        1.00*    
!   HN        1.21     KP        1.01     LA        0.97     NL        0.96     
!   OV        0.98     PT        0.97     SC        1.03     WF        0.94     
!   GN        0.96     HH        1.00*    KK        0.91     MC        1.00*    
!   MK        0.94     NY        1.05     ON        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.98     GC        1.03     GG        1.00*    
!   HN        1.16     KP        1.00*    LA        1.00*    NL        0.97     
!   OV        1.00*    PT        1.00*    SC        1.02     WF        0.96     
!   GN        0.95     HH        1.00*    KK        1.00*    MC        1.05     
!   MK        1.00*    NY        0.97     ON        1.00     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.98     GC        1.00     GG        1.00*    
!   HN        1.14     KP        0.98     LA        1.00*    NL        0.91     
!   OV        1.00*    PT        0.91     SC        0.98     WF        0.93     
!   GN        0.95     HH        1.00*    KK        0.99     MC        1.00*    
!   MK        1.00     NY        1.11     ON        1.00*    WZ        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.13     KP        1.00*    LA        1.00*    NL        0.67     
!   OV        1.00*    PT        1.00*    SC        1.05     WF        0.84     
!   GN        0.99     HH        1.05     KK        1.00*    MC        2.22     
!   MK        1.00*    NY        1.06     ON        1.00*    WZ        0.95     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        0.98     GC        0.98     GG        1.00*    
!   HN        1.13     KP        1.01     LA        0.96     NL        1.03     
!   OV        1.00     PT        1.07     SC        1.02     WF        0.93     
!   GN        0.96     HH        1.00*    KK        0.96     MC        1.00*    
!   MK        0.96     NY        1.05     ON        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.269323Jy  sigma=0.001847
! Fit after  self-cal, rms=0.253064Jy  sigma=0.001535
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.123 mas, bmaj=5.503 mas, bpa=-4.477 degrees
! Estimated noise=479.736 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.00740321 Jy
! Component: 100  -  total flux cleaned = 0.00667813 Jy
! Component: 150  -  total flux cleaned = 0.00589011 Jy
! Component: 200  -  total flux cleaned = 0.00511544 Jy
! Total flux subtracted in 200 components = 0.00511544 Jy
! Clean residual min=-0.011338 max=0.017907 Jy/beam
! Clean residual mean=0.001900 rms=0.004598 Jy/beam
! Combined flux in latest and established models = 1.90402 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 85 components and 1.90402 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.252506Jy  sigma=0.001529
! Fit after  self-cal, rms=0.252828Jy  sigma=0.001527
! 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.252828Jy  sigma=0.001527
! Fit after  self-cal, rms=0.253503Jy  sigma=0.001526
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.123 mas, bmaj=5.502 mas, bpa=-4.483 degrees
! Estimated noise=479.332 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00228321 Jy
! Component: 100  -  total flux cleaned = 0.00161973 Jy
! Component: 150  -  total flux cleaned = 0.00122799 Jy
! Component: 200  -  total flux cleaned = 0.00101316 Jy
! Total flux subtracted in 200 components = 0.00101316 Jy
! Clean residual min=-0.011445 max=0.017802 Jy/beam
! Clean residual mean=0.001902 rms=0.004569 Jy/beam
! Combined flux in latest and established models = 1.90503 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 89 components and 1.90503 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.253304Jy  sigma=0.001524
! Fit after  self-cal, rms=0.253267Jy  sigma=0.001524
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.000533838 Jy
! Component: 100  -  total flux cleaned = 0.000738431 Jy
! Component: 150  -  total flux cleaned = 0.000737721 Jy
! Component: 200  -  total flux cleaned = 0.000654205 Jy
! Total flux subtracted in 200 components = 0.000654205 Jy
! Clean residual min=-0.011339 max=0.017720 Jy/beam
! Clean residual mean=0.001899 rms=0.004559 Jy/beam
! Combined flux in latest and established models = 1.90569 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 90 components and 1.90569 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.253194Jy  sigma=0.001523
! Fit after  self-cal, rms=0.253172Jy  sigma=0.001523
! 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.253172Jy  sigma=0.001523
! Fit after  self-cal, rms=0.253598Jy  sigma=0.001523
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.125 mas, bmaj=5.505 mas, bpa=-4.48 degrees
! Estimated noise=479.146 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000213635 Jy
! Component: 100  -  total flux cleaned = -0.000402736 Jy
! Component: 150  -  total flux cleaned = -0.000402827 Jy
! Component: 200  -  total flux cleaned = -0.000476044 Jy
! Total flux subtracted in 200 components = -0.000476044 Jy
! Clean residual min=-0.011496 max=0.017620 Jy/beam
! Clean residual mean=0.001901 rms=0.004552 Jy/beam
! Combined flux in latest and established models = 1.90521 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 91 components and 1.90521 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.253533Jy  sigma=0.001522
! Fit after  self-cal, rms=0.253521Jy  sigma=0.001522
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 = 9.46929e-05 Jy
! Component: 100  -  total flux cleaned = 0.000248112 Jy
! Component: 150  -  total flux cleaned = 0.000317637 Jy
! Component: 200  -  total flux cleaned = 0.000382321 Jy
! Total flux subtracted in 200 components = 0.000382321 Jy
! Clean residual min=-0.011456 max=0.017535 Jy/beam
! Clean residual mean=0.001899 rms=0.004547 Jy/beam
! Combined flux in latest and established models = 1.90559 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 92 components and 1.90559 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.253480Jy  sigma=0.001521
! Fit after  self-cal, rms=0.253470Jy  sigma=0.001521
! 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.253470Jy  sigma=0.001521
! Fit after  self-cal, rms=0.253696Jy  sigma=0.001521
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=6.96 mas, bmaj=9.178 mas, bpa=-4.816 degrees
! Estimated noise=591.864 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00545932 Jy
! Component: 100  -  total flux cleaned = 0.00612392 Jy
! Component: 150  -  total flux cleaned = 0.0063953 Jy
! Component: 200  -  total flux cleaned = 0.00663353 Jy
! Total flux subtracted in 200 components = 0.00663353 Jy
! Clean residual min=-0.020954 max=0.035997 Jy/beam
! Clean residual mean=0.004828 rms=0.010613 Jy/beam
! Combined flux in latest and established models = 1.91223 Jy
selfcal
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 95 components and 1.91223 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.253760Jy  sigma=0.001521
! Fit after  self-cal, rms=0.253756Jy  sigma=0.001521
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.00106132 Jy
! Component: 100  -  total flux cleaned = 0.00126924 Jy
! Component: 150  -  total flux cleaned = 0.00138813 Jy
! Component: 200  -  total flux cleaned = 0.00149739 Jy
! Total flux subtracted in 200 components = 0.00149739 Jy
! Clean residual min=-0.020681 max=0.035976 Jy/beam
! Clean residual mean=0.004813 rms=0.010607 Jy/beam
! Combined flux in latest and established models = 1.91372 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 96 components and 1.91372 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.253828Jy  sigma=0.001522
! Fit after  self-cal, rms=0.253828Jy  sigma=0.001522
! 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=3.126 mas, bmaj=5.507 mas, bpa=-4.475 degrees
! Estimated noise=479.044 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.126 x 5.507 at -4.475 degrees (North through East)
! Clean map  min=-0.010807  max=1.3132 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.253828Jy  sigma=0.001522
! Fit after  self-cal, rms=0.273734Jy  sigma=0.001405
! Inverting map and beam 
! Estimated beam: bmin=3.127 mas, bmaj=5.507 mas, bpa=-4.478 degrees
! Estimated noise=479.109 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00195012 Jy
! Component: 100  -  total flux cleaned = -0.00230564 Jy
! Component: 150  -  total flux cleaned = -0.00280636 Jy
! Component: 200  -  total flux cleaned = -0.00314046 Jy
! Total flux subtracted in 200 components = -0.00314046 Jy
! Clean residual min=-0.011746 max=0.016890 Jy/beam
! Clean residual mean=0.001706 rms=0.004499 Jy/beam
! Combined flux in latest and established models = 1.91058 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 101 components and 1.91058 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.273607Jy  sigma=0.001404
! Fit after  self-cal, rms=0.273576Jy  sigma=0.001404
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000141285 Jy
! Component: 100  -  total flux cleaned = -0.00036284 Jy
! Component: 150  -  total flux cleaned = -0.000499651 Jy
! Component: 200  -  total flux cleaned = -0.000691372 Jy
! Total flux subtracted in 200 components = -0.000691372 Jy
! Clean residual min=-0.011840 max=0.017000 Jy/beam
! Clean residual mean=0.001708 rms=0.004502 Jy/beam
! Combined flux in latest and established models = 1.90989 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 103 components and 1.90989 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.273531Jy  sigma=0.001404
! Fit after  self-cal, rms=0.273521Jy  sigma=0.001404
! 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.273521Jy  sigma=0.001404
! Fit after  self-cal, rms=0.273695Jy  sigma=0.001404
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.367 mas, bmaj=3.923 mas, bpa=-4.69 degrees
! Estimated noise=996.803 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.95446 Jy
! Component: 100  -  total flux cleaned = 1.24286 Jy
! Component: 150  -  total flux cleaned = 1.40399 Jy
! Component: 200  -  total flux cleaned = 1.51315 Jy
! Total flux subtracted in 200 components = 1.51315 Jy
! Clean residual min=-0.016600 max=0.060744 Jy/beam
! Clean residual mean=0.000715 rms=0.006552 Jy/beam
! Combined flux in latest and established models = 1.51315 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 22 model components to the UV plane model.
! The established model now contains 22 components and 1.51315 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.126 mas, bmaj=5.509 mas, bpa=-4.497 degrees
! Estimated noise=478.932 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.150753 Jy
! Component: 100  -  total flux cleaned = 0.234609 Jy
! Component: 150  -  total flux cleaned = 0.286848 Jy
! Component: 200  -  total flux cleaned = 0.32118 Jy
! Total flux subtracted in 200 components = 0.32118 Jy
! Clean residual min=-0.012402 max=0.019775 Jy/beam
! Clean residual mean=0.002025 rms=0.005234 Jy/beam
! Combined flux in latest and established models = 1.83433 Jy
! Adding 70 model components to the UV plane model.
! The established model now contains 78 components and 1.83433 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=6.957 mas, bmaj=9.178 mas, bpa=-4.838 degrees
! Estimated noise=591.838 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0392547 Jy
! Component: 100  -  total flux cleaned = 0.0585071 Jy
! Component: 150  -  total flux cleaned = 0.0686577 Jy
! Component: 200  -  total flux cleaned = 0.0737515 Jy
! Total flux subtracted in 200 components = 0.0737515 Jy
! Clean residual min=-0.022284 max=0.034639 Jy/beam
! Clean residual mean=0.004438 rms=0.010547 Jy/beam
! Combined flux in latest and established models = 1.90809 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 = 0.000790055 Jy
! Component: 100  -  total flux cleaned = 0.00165152 Jy
! Component: 150  -  total flux cleaned = 0.00242654 Jy
! Component: 200  -  total flux cleaned = 0.0031223 Jy
! Total flux subtracted in 200 components = 0.0031223 Jy
! Clean residual min=-0.022037 max=0.035020 Jy/beam
! Clean residual mean=0.004403 rms=0.010530 Jy/beam
! Combined flux in latest and established models = 1.91121 Jy
! Adding 39 model components to the UV plane model.
! The established model now contains 102 components and 1.91121 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.126 mas, bmaj=5.509 mas, bpa=-4.497 degrees
! Estimated noise=478.932 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00116793 Jy
! Component: 100  -  total flux cleaned = -0.00211354 Jy
! Component: 150  -  total flux cleaned = -0.00229555 Jy
! Component: 200  -  total flux cleaned = -0.00194595 Jy
! Total flux subtracted in 200 components = -0.00194595 Jy
! Clean residual min=-0.011985 max=0.017100 Jy/beam
! Clean residual mean=0.001711 rms=0.004508 Jy/beam
! Combined flux in latest and established models = 1.90926 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 107 components and 1.90926 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.274542Jy  sigma=0.001409
! Fit after  self-cal, rms=0.274493Jy  sigma=0.001408
wmodel J0204+1514_S_1999_03_08_pus_map.mod
! Writing 107 model components to file: J0204+1514_S_1999_03_08_pus_map.mod
wobs J0204+1514_S_1999_03_08_pus_uvs.fits
! Writing UV FITS file: J0204+1514_S_1999_03_08_pus_uvs.fits
wwins J0204+1514_S_1999_03_08_pus_map.win
! wwins: Wrote 2 windows to J0204+1514_S_1999_03_08_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.00786785 Jy
! Component: 100  -  total flux cleaned = 0.015017 Jy
! Component: 150  -  total flux cleaned = 0.0216555 Jy
! Component: 200  -  total flux cleaned = 0.027895 Jy
! Component: 250  -  total flux cleaned = 0.0338308 Jy
! Component: 300  -  total flux cleaned = 0.0395174 Jy
! Component: 350  -  total flux cleaned = 0.0449946 Jy
! Component: 400  -  total flux cleaned = 0.0502819 Jy
! Component: 450  -  total flux cleaned = 0.0549818 Jy
! Component: 500  -  total flux cleaned = 0.0593357 Jy
! Component: 550  -  total flux cleaned = 0.0637513 Jy
! Component: 600  -  total flux cleaned = 0.0676664 Jy
! Component: 650  -  total flux cleaned = 0.0716527 Jy
! Component: 700  -  total flux cleaned = 0.0755288 Jy
! Component: 750  -  total flux cleaned = 0.0793009 Jy
! Component: 800  -  total flux cleaned = 0.0828097 Jy
! Component: 850  -  total flux cleaned = 0.086398 Jy
! Component: 900  -  total flux cleaned = 0.089903 Jy
! Component: 950  -  total flux cleaned = 0.0933283 Jy
! Component: 1000  -  total flux cleaned = 0.0963758 Jy
! Component: 1050  -  total flux cleaned = 0.0996585 Jy
! Component: 1100  -  total flux cleaned = 0.102727 Jy
! Component: 1150  -  total flux cleaned = 0.105737 Jy
! Component: 1200  -  total flux cleaned = 0.108829 Jy
! Component: 1250  -  total flux cleaned = 0.111587 Jy
! Component: 1300  -  total flux cleaned = 0.113892 Jy
! Component: 1350  -  total flux cleaned = 0.116561 Jy
! Component: 1400  -  total flux cleaned = 0.118926 Jy
! Component: 1450  -  total flux cleaned = 0.121385 Jy
! Component: 1500  -  total flux cleaned = 0.123805 Jy
! Component: 1550  -  total flux cleaned = 0.126063 Jy
! Component: 1600  -  total flux cleaned = 0.12829 Jy
! Component: 1650  -  total flux cleaned = 0.130486 Jy
! Component: 1700  -  total flux cleaned = 0.132771 Jy
! Component: 1750  -  total flux cleaned = 0.135027 Jy
! Component: 1800  -  total flux cleaned = 0.137252 Jy
! Component: 1850  -  total flux cleaned = 0.139448 Jy
! Component: 1900  -  total flux cleaned = 0.141388 Jy
! Component: 1950  -  total flux cleaned = 0.143643 Jy
! Component: 2000  -  total flux cleaned = 0.145647 Jy
! Total flux subtracted in 2048 components = 0.147628 Jy
! Clean residual min=-0.005483 max=0.006530 Jy/beam
! Clean residual mean=0.001220 rms=0.002458 Jy/beam
! Combined flux in latest and established models = 2.05689 Jy
keep
! Adding 298 model components to the UV plane model.
! The established model now contains 405 components and 2.05689 Jy
![Exited script file: muppet]
wmap "J0204+1514_S_1999_03_08_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.126 x 5.509 at -4.497 degrees (North through East)
! Clean map  min=-0.008668  max=1.3187 Jy/beam
! Writing clean map to FITS file: J0204+1514_S_1999_03_08_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.31871 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00244597 
device "J0204+1514_S_1999_03_08_pus\_map.eps/VPS"
! Attempting to open device: 'J0204+1514_S_1999_03_08_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.556447 0.556447 1.11289 2.22579 4.45158 8.90315 17.8063 35.6126 71.2252
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0073 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.318 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.126 x 5.509 at -4.497 degrees (North through East)
! Clean map  min=-0.008668  max=1.3187 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0204+1514_S_1999_03_08_pus\_map.gif/vgif"
! Attempting to open device: 'J0204+1514_S_1999_03_08_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0204+1514_S_1999_03_08_pus_uvs.log closed on Wed Jan  9 13:43:58 2008