! Started logfile: J2236+2828_S_1999_05_10_pus_uvs.log on Mon Jan 21 17:51:27 2008
obs J2236+2828_S_1999_05_10_pus_uva.fits
! Reading UV FITS file: J2236+2828_S_1999_05_10_pus_uva.fits
! AN table 1: 10 integrations on 153 of 153 possible baselines.
! AN table 2: 49 integrations on 153 of 153 possible baselines.
! AN table 3: 101 integrations on 153 of 153 possible baselines.
! AN table 4: 106 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.101872 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2236+2828
! 
! 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 1998 lines of history.
! 
! Reading 16584 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 J2236+2828_S_1999_05_10_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 180 telescope corrections were flagged in sub-array 1.
!  A total of 783 telescope corrections were flagged in sub-array 2.
!  A total of 1265 telescope corrections were flagged in sub-array 3.
!  A total of 1169 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 180 telescope corrections were flagged in sub-array 1.
!  A total of 783 telescope corrections were flagged in sub-array 2.
!  A total of 1265 telescope corrections were flagged in sub-array 3.
!  A total of 1169 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 180 telescope corrections were flagged in sub-array 1.
!  A total of 783 telescope corrections were flagged in sub-array 2.
!  A total of 1265 telescope corrections were flagged in sub-array 3.
!  A total of 1169 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 180 telescope corrections were flagged in sub-array 1.
!  A total of 783 telescope corrections were flagged in sub-array 2.
!  A total of 1265 telescope corrections were flagged in sub-array 3.
!  A total of 1282 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.638662Jy  sigma=0.004413
! Fit after  self-cal, rms=0.463172Jy  sigma=0.003194
! 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.428 mas, bmaj=3.505 mas, bpa=49.15 degrees
! Estimated noise=1313.27 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.624817 Jy
! Component: 100  -  total flux cleaned = 0.829088 Jy
! Total flux subtracted in 100 components = 0.829088 Jy
! Clean residual min=-0.042499 max=0.087030 Jy/beam
! Clean residual mean=0.000091 rms=0.012840 Jy/beam
! Combined flux in latest and established models = 0.829088 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.829088 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.307667Jy  sigma=0.002227
! Fit after  self-cal, rms=0.307473Jy  sigma=0.002226
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0925462 Jy
! Component: 100  -  total flux cleaned = 0.141483 Jy
! Total flux subtracted in 100 components = 0.141483 Jy
! Clean residual min=-0.044946 max=0.040354 Jy/beam
! Clean residual mean=-0.000117 rms=0.008699 Jy/beam
! Combined flux in latest and established models = 0.970571 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 16 components and 0.970571 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.297464Jy  sigma=0.002075
! Fit after  self-cal, rms=0.297469Jy  sigma=0.002075
! 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.665 mas, bmaj=3.579 mas, bpa=35.62 degrees
! Estimated noise=726.588 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.0205107 Jy
! Component: 100  -  total flux cleaned = -0.0157096 Jy
! Component: 150  -  total flux cleaned = -0.0110474 Jy
! Component: 200  -  total flux cleaned = -0.00757271 Jy
! Total flux subtracted in 200 components = -0.00757271 Jy
! Clean residual min=-0.051693 max=0.034576 Jy/beam
! Clean residual mean=-0.000498 rms=0.009777 Jy/beam
! Combined flux in latest and established models = 0.962998 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 20 components and 0.962998 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.291903Jy  sigma=0.002056
! Fit after  self-cal, rms=0.291912Jy  sigma=0.002056
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 99 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.98     GC        0.98     HH        1.00*    
!   HN        1.00*    KK        0.95     KP        0.97     LA        0.99     
!   MC        1.00*    MK        0.88     NL        0.93     NY        1.00*    
!   ON        1.00*    OV        1.03     PT        1.00     SC        1.00*    
!   WF        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        1.00*    FD        1.00*    GC        1.00*    HH        1.05     
!   HN        1.06     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.10     MK        1.00*    NL        1.04     NY        1.23     
!   ON        1.00     OV        1.00*    PT        1.00*    SC        1.15     
!   WF        1.03     WZ        1.02     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 99 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.00     GC        0.97     HH        1.00*    
!   HN        1.00*    KK        0.92     KP        1.00     LA        0.87     
!   MC        1.00*    MK        0.93     NL        0.93     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.98     SC        1.00*    
!   WF        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        1.00*    FD        1.00*    GC        1.00*    HH        0.97     
!   HN        1.10     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        3.11     MK        1.00*    NL        1.17     NY        1.04     
!   ON        1.01     OV        1.00*    PT        1.00*    SC        1.17     
!   WF        1.02     WZ        1.02     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 99 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.86     FD        0.97     GC        0.98     HH        1.00*    
!   HN        1.00*    KK        0.92     KP        0.98     LA        0.92     
!   MC        1.00*    MK        0.87     NL        0.87     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        0.94     SC        1.00*    
!   WF        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        1.00*    FD        1.00*    GC        1.00*    HH        0.99     
!   HN        1.10     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.83     MK        1.00*    NL        1.20     NY        1.06     
!   ON        1.00     OV        1.00*    PT        1.00*    SC        1.24     
!   WF        1.04     WZ        1.15     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 99 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.85     FD        0.83     GC        0.97     HH        1.00*    
!   HN        1.00*    KK        0.92     KP        0.99     LA        0.92     
!   MC        1.00*    MK        0.90     NL        0.87     NY        1.00*    
!   ON        1.00*    OV        0.95     PT        0.97     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.00     
!   HN        1.11     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.10     MK        1.00*    NL        1.21     NY        1.14     
!   ON        1.05     OV        1.00*    PT        1.00*    SC        1.16     
!   WF        1.02     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.291912Jy  sigma=0.002056
! Fit after  self-cal, rms=0.300383Jy  sigma=0.001629
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.729 mas, bmaj=3.598 mas, bpa=32.42 degrees
! Estimated noise=758.875 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.005547 Jy
! Component: 100  -  total flux cleaned = -0.00670233 Jy
! Component: 150  -  total flux cleaned = -0.00808121 Jy
! Component: 200  -  total flux cleaned = -0.00901333 Jy
! Total flux subtracted in 200 components = -0.00901333 Jy
! Clean residual min=-0.017166 max=0.018593 Jy/beam
! Clean residual mean=0.001025 rms=0.004666 Jy/beam
! Combined flux in latest and established models = 0.953985 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 25 components and 0.953985 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.299480Jy  sigma=0.001619
! Fit after  self-cal, rms=0.300968Jy  sigma=0.001617
! 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.300968Jy  sigma=0.001617
! Fit after  self-cal, rms=0.303317Jy  sigma=0.001616
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.738 mas, bmaj=3.612 mas, bpa=31.74 degrees
! Estimated noise=762.08 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00109805 Jy
! Component: 100  -  total flux cleaned = -0.00226598 Jy
! Component: 150  -  total flux cleaned = -0.00328948 Jy
! Component: 200  -  total flux cleaned = -0.00398026 Jy
! Total flux subtracted in 200 components = -0.00398026 Jy
! Clean residual min=-0.016247 max=0.018010 Jy/beam
! Clean residual mean=0.001065 rms=0.004507 Jy/beam
! Combined flux in latest and established models = 0.950004 Jy
selfcal
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 26 components and 0.950004 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.302773Jy  sigma=0.001612
! Fit after  self-cal, rms=0.302793Jy  sigma=0.001612
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.000837165 Jy
! Component: 100  -  total flux cleaned = -0.00139575 Jy
! Component: 150  -  total flux cleaned = -0.00174424 Jy
! Component: 200  -  total flux cleaned = -0.00237868 Jy
! Total flux subtracted in 200 components = -0.00237868 Jy
! Clean residual min=-0.015739 max=0.017367 Jy/beam
! Clean residual mean=0.001088 rms=0.004433 Jy/beam
! Combined flux in latest and established models = 0.947626 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 28 components and 0.947626 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.302509Jy  sigma=0.001611
! Fit after  self-cal, rms=0.302510Jy  sigma=0.001611
! 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.302510Jy  sigma=0.001611
! Fit after  self-cal, rms=0.313188Jy  sigma=0.001611
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.746 mas, bmaj=3.627 mas, bpa=31.12 degrees
! Estimated noise=770.844 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00505543 Jy
! Component: 100  -  total flux cleaned = 0.00506952 Jy
! Component: 150  -  total flux cleaned = 0.00471037 Jy
! Component: 200  -  total flux cleaned = 0.00406541 Jy
! Total flux subtracted in 200 components = 0.00406541 Jy
! Clean residual min=-0.015804 max=0.017115 Jy/beam
! Clean residual mean=0.001117 rms=0.004542 Jy/beam
! Combined flux in latest and established models = 0.951691 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 31 components and 0.951691 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.312695Jy  sigma=0.001609
! Fit after  self-cal, rms=0.312779Jy  sigma=0.001609
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.000424198 Jy
! Component: 100  -  total flux cleaned = -0.000687685 Jy
! Component: 150  -  total flux cleaned = -0.00105435 Jy
! Component: 200  -  total flux cleaned = -0.00128487 Jy
! Total flux subtracted in 200 components = -0.00128487 Jy
! Clean residual min=-0.015651 max=0.016843 Jy/beam
! Clean residual mean=0.001130 rms=0.004503 Jy/beam
! Combined flux in latest and established models = 0.950406 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 33 components and 0.950406 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.312617Jy  sigma=0.001609
! Fit after  self-cal, rms=0.312621Jy  sigma=0.001609
! 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.312621Jy  sigma=0.001609
! Fit after  self-cal, rms=0.314316Jy  sigma=0.001606
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.686 mas, bmaj=8.631 mas, bpa=-12.01 degrees
! Estimated noise=1114.61 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00116435 Jy
! Component: 100  -  total flux cleaned = -0.00146406 Jy
! Component: 150  -  total flux cleaned = -0.00187233 Jy
! Component: 200  -  total flux cleaned = -0.00213044 Jy
! Total flux subtracted in 200 components = -0.00213044 Jy
! Clean residual min=-0.019107 max=0.027047 Jy/beam
! Clean residual mean=0.003932 rms=0.010167 Jy/beam
! Combined flux in latest and established models = 0.948276 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 38 components and 0.948276 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.314466Jy  sigma=0.001603
! Fit after  self-cal, rms=0.314451Jy  sigma=0.001603
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.000307421 Jy
! Component: 100  -  total flux cleaned = -0.000541201 Jy
! Component: 150  -  total flux cleaned = -0.000656874 Jy
! Component: 200  -  total flux cleaned = -0.000877185 Jy
! Total flux subtracted in 200 components = -0.000877185 Jy
! Clean residual min=-0.018927 max=0.026969 Jy/beam
! Clean residual mean=0.003959 rms=0.010118 Jy/beam
! Combined flux in latest and established models = 0.947398 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 40 components and 0.947398 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.314429Jy  sigma=0.001603
! Fit after  self-cal, rms=0.314430Jy  sigma=0.001603
! 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.753 mas, bmaj=3.636 mas, bpa=30.59 degrees
! Estimated noise=777.665 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.753 x 3.636 at 30.59 degrees (North through East)
! Clean map  min=-0.013957  max=0.76225 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.314430Jy  sigma=0.001603
! Fit after  self-cal, rms=0.356656Jy  sigma=0.001265
! Inverting map and beam 
! Estimated beam: bmin=2.749 mas, bmaj=3.649 mas, bpa=31.14 degrees
! Estimated noise=778.607 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000480922 Jy
! Component: 100  -  total flux cleaned = -0.000690442 Jy
! Component: 150  -  total flux cleaned = -0.000767295 Jy
! Component: 200  -  total flux cleaned = -0.000914871 Jy
! Total flux subtracted in 200 components = -0.000914871 Jy
! Clean residual min=-0.013375 max=0.014054 Jy/beam
! Clean residual mean=0.000948 rms=0.003694 Jy/beam
! Combined flux in latest and established models = 0.946484 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 40 components and 0.946484 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356572Jy  sigma=0.001264
! Fit after  self-cal, rms=0.356553Jy  sigma=0.001264
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000216605 Jy
! Component: 100  -  total flux cleaned = -0.000460955 Jy
! Component: 150  -  total flux cleaned = -0.000576105 Jy
! Component: 200  -  total flux cleaned = -0.000634087 Jy
! Total flux subtracted in 200 components = -0.000634087 Jy
! Clean residual min=-0.013468 max=0.013936 Jy/beam
! Clean residual mean=0.000955 rms=0.003678 Jy/beam
! Combined flux in latest and established models = 0.945849 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 43 components and 0.94585 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356520Jy  sigma=0.001264
! Fit after  self-cal, rms=0.356516Jy  sigma=0.001264
! 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.356516Jy  sigma=0.001264
! Fit after  self-cal, rms=0.357546Jy  sigma=0.001264
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.603 mas, bmaj=3.546 mas, bpa=44.62 degrees
! Estimated noise=1345.15 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.618196 Jy
! Component: 100  -  total flux cleaned = 0.809027 Jy
! Component: 150  -  total flux cleaned = 0.893171 Jy
! Component: 200  -  total flux cleaned = 0.931848 Jy
! Total flux subtracted in 200 components = 0.931848 Jy
! Clean residual min=-0.021157 max=0.019989 Jy/beam
! Clean residual mean=0.000220 rms=0.004322 Jy/beam
! Combined flux in latest and established models = 0.931848 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 11 model components to the UV plane model.
! The established model now contains 11 components and 0.931848 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.753 mas, bmaj=3.655 mas, bpa=30.81 degrees
! Estimated noise=779.302 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)
! Added new window around map position (0, -10.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0178084 Jy
! Component: 100  -  total flux cleaned = 0.0214575 Jy
! Component: 150  -  total flux cleaned = 0.0208413 Jy
! Component: 200  -  total flux cleaned = 0.0198126 Jy
! Total flux subtracted in 200 components = 0.0198126 Jy
! Clean residual min=-0.017403 max=0.015944 Jy/beam
! Clean residual mean=0.000875 rms=0.004078 Jy/beam
! Combined flux in latest and established models = 0.951661 Jy
! Adding 14 model components to the UV plane model.
! The established model now contains 22 components and 0.951661 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.724 mas, bmaj=8.656 mas, bpa=-12.45 degrees
! Estimated noise=1106.89 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0118566 Jy
! Component: 100  -  total flux cleaned = -0.0138024 Jy
! Component: 150  -  total flux cleaned = -0.0139893 Jy
! Component: 200  -  total flux cleaned = -0.0141519 Jy
! Total flux subtracted in 200 components = -0.0141519 Jy
! Clean residual min=-0.016098 max=0.019457 Jy/beam
! Clean residual mean=0.003276 rms=0.007831 Jy/beam
! Combined flux in latest and established models = 0.937509 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 = -4.42699e-06 Jy
! Component: 100  -  total flux cleaned = -0.000140621 Jy
! Component: 150  -  total flux cleaned = -0.000265508 Jy
! Component: 200  -  total flux cleaned = -0.000384884 Jy
! Total flux subtracted in 200 components = -0.000384884 Jy
! Clean residual min=-0.015865 max=0.019433 Jy/beam
! Clean residual mean=0.003286 rms=0.007772 Jy/beam
! Combined flux in latest and established models = 0.937124 Jy
! Adding 16 model components to the UV plane model.
! The established model now contains 37 components and 0.937124 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.753 mas, bmaj=3.655 mas, bpa=30.81 degrees
! Estimated noise=779.302 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00328389 Jy
! Component: 100  -  total flux cleaned = 0.00540519 Jy
! Component: 150  -  total flux cleaned = 0.00689007 Jy
! Component: 200  -  total flux cleaned = 0.00754545 Jy
! Total flux subtracted in 200 components = 0.00754545 Jy
! Clean residual min=-0.012696 max=0.015381 Jy/beam
! Clean residual mean=0.000947 rms=0.003615 Jy/beam
! Combined flux in latest and established models = 0.94467 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 42 components and 0.94467 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.358259Jy  sigma=0.001267
! Fit after  self-cal, rms=0.358108Jy  sigma=0.001265
wmodel J2236+2828_S_1999_05_10_pus_map.mod
! Writing 42 model components to file: J2236+2828_S_1999_05_10_pus_map.mod
wobs J2236+2828_S_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J2236+2828_S_1999_05_10_pus_uvs.fits
wwins J2236+2828_S_1999_05_10_pus_map.win
! wwins: Wrote 2 windows to J2236+2828_S_1999_05_10_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.00647609 Jy
! Component: 100  -  total flux cleaned = 0.0105373 Jy
! Component: 150  -  total flux cleaned = 0.0138624 Jy
! Component: 200  -  total flux cleaned = 0.0173945 Jy
! Component: 250  -  total flux cleaned = 0.0205648 Jy
! Component: 300  -  total flux cleaned = 0.0230555 Jy
! Component: 350  -  total flux cleaned = 0.0245874 Jy
! Component: 400  -  total flux cleaned = 0.0260635 Jy
! Component: 450  -  total flux cleaned = 0.0273266 Jy
! Component: 500  -  total flux cleaned = 0.0289985 Jy
! Component: 550  -  total flux cleaned = 0.0306133 Jy
! Component: 600  -  total flux cleaned = 0.0321771 Jy
! Component: 650  -  total flux cleaned = 0.0338308 Jy
! Component: 700  -  total flux cleaned = 0.035433 Jy
! Component: 750  -  total flux cleaned = 0.0371124 Jy
! Component: 800  -  total flux cleaned = 0.0383658 Jy
! Component: 850  -  total flux cleaned = 0.0395855 Jy
! Component: 900  -  total flux cleaned = 0.0408897 Jy
! Component: 950  -  total flux cleaned = 0.0419277 Jy
! Component: 1000  -  total flux cleaned = 0.0429408 Jy
! Component: 1050  -  total flux cleaned = 0.0439286 Jy
! Component: 1100  -  total flux cleaned = 0.0448907 Jy
! Component: 1150  -  total flux cleaned = 0.0458275 Jy
! Component: 1200  -  total flux cleaned = 0.0466408 Jy
! Component: 1250  -  total flux cleaned = 0.0473357 Jy
! Component: 1300  -  total flux cleaned = 0.0482088 Jy
! Component: 1350  -  total flux cleaned = 0.0489666 Jy
! Component: 1400  -  total flux cleaned = 0.0497065 Jy
! Component: 1450  -  total flux cleaned = 0.0504332 Jy
! Component: 1500  -  total flux cleaned = 0.0512336 Jy
! Component: 1550  -  total flux cleaned = 0.0519306 Jy
! Component: 1600  -  total flux cleaned = 0.0526993 Jy
! Component: 1650  -  total flux cleaned = 0.0532861 Jy
! Component: 1700  -  total flux cleaned = 0.0541069 Jy
! Component: 1750  -  total flux cleaned = 0.0545094 Jy
! Component: 1800  -  total flux cleaned = 0.0553802 Jy
! Component: 1850  -  total flux cleaned = 0.0560783 Jy
! Component: 1900  -  total flux cleaned = 0.0566884 Jy
! Component: 1950  -  total flux cleaned = 0.0573631 Jy
! Component: 2000  -  total flux cleaned = 0.0580258 Jy
! Total flux subtracted in 2048 components = 0.0586765 Jy
! Clean residual min=-0.003582 max=0.003585 Jy/beam
! Clean residual mean=0.000323 rms=0.001323 Jy/beam
! Combined flux in latest and established models = 1.00335 Jy
keep
! Adding 141 model components to the UV plane model.
! The established model now contains 182 components and 1.00335 Jy
![Exited script file: muppet]
wmap "J2236+2828_S_1999_05_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.753 x 3.655 at 30.81 degrees (North through East)
! Clean map  min=-0.013354  max=0.77719 Jy/beam
! Writing clean map to FITS file: J2236+2828_S_1999_05_10_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.777194 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00134591 
device "J2236+2828_S_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J2236+2828_S_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.519528 0.519528 1.03906 2.07811 4.15622 8.31245 16.6249 33.2498 66.4996
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.004 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.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.753 x 3.655 at 30.81 degrees (North through East)
! Clean map  min=-0.013354  max=0.77719 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2236+2828_S_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J2236+2828_S_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2236+2828_S_1999_05_10_pus_uvs.log closed on Mon Jan 21 17:51:37 2008