! Started logfile: J0237+2848_S_2000_12_04_pus_uvs.log on Thu Oct 18 15:37:03 2007
obs J0237+2848_S_2000_12_04_pus_uva.fits
! Reading UV FITS file: J0237+2848_S_2000_12_04_pus_uva.fits
! AN table 1: 195 integrations on 190 of 190 possible baselines.
! AN table 2: 72 integrations on 190 of 190 possible baselines.
! AN table 3: 40 integrations on 190 of 190 possible baselines.
! AN table 4: 21 integrations on 190 of 190 possible baselines.
! AN table 5: 194 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.152803 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0237+2848
! 
! 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 2173 lines of history.
! 
! Reading 60620 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 J0237+2848_S_2000_12_04_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 2439 telescope corrections were flagged in sub-array 1.
!  A total of 1068 telescope corrections were flagged in sub-array 2.
!  A total of 753 telescope corrections were flagged in sub-array 3.
!  A total of 420 telescope corrections were flagged in sub-array 4.
!  A total of 2673 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 2437 telescope corrections were flagged in sub-array 1.
!  A total of 1068 telescope corrections were flagged in sub-array 2.
!  A total of 753 telescope corrections were flagged in sub-array 3.
!  A total of 420 telescope corrections were flagged in sub-array 4.
!  A total of 2673 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 2437 telescope corrections were flagged in sub-array 1.
!  A total of 1068 telescope corrections were flagged in sub-array 2.
!  A total of 753 telescope corrections were flagged in sub-array 3.
!  A total of 420 telescope corrections were flagged in sub-array 4.
!  A total of 2673 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 2436 telescope corrections were flagged in sub-array 1.
!  A total of 1068 telescope corrections were flagged in sub-array 2.
!  A total of 753 telescope corrections were flagged in sub-array 3.
!  A total of 420 telescope corrections were flagged in sub-array 4.
!  A total of 2673 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.865348Jy  sigma=0.006754
! Fit after  self-cal, rms=0.624979Jy  sigma=0.004791
! 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=1.848 mas, bmaj=3.138 mas, bpa=1.54 degrees
! Estimated noise=674.051 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.564129 Jy
! Component: 100  -  total flux cleaned = 0.755059 Jy
! Total flux subtracted in 100 components = 0.755059 Jy
! Clean residual min=-0.028491 max=0.161524 Jy/beam
! Clean residual mean=0.000157 rms=0.008212 Jy/beam
! Combined flux in latest and established models = 0.755059 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 0.755059 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.598482Jy  sigma=0.004830
! Fit after  self-cal, rms=0.596269Jy  sigma=0.004823
! Inverting map 
! Added new window around map position (-0.5, 4.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.153006 Jy
! Component: 100  -  total flux cleaned = 0.246351 Jy
! Total flux subtracted in 100 components = 0.246351 Jy
! Clean residual min=-0.019426 max=0.063489 Jy/beam
! Clean residual mean=0.000113 rms=0.005529 Jy/beam
! Combined flux in latest and established models = 1.00141 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 27 components and 1.00141 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.522876Jy  sigma=0.004112
! Fit after  self-cal, rms=0.517606Jy  sigma=0.004076
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0805129 Jy
! Component: 100  -  total flux cleaned = 0.138871 Jy
! Total flux subtracted in 100 components = 0.138871 Jy
! Clean residual min=-0.014505 max=0.037008 Jy/beam
! Clean residual mean=0.000090 rms=0.004104 Jy/beam
! Combined flux in latest and established models = 1.14028 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 46 components and 1.14028 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.489702Jy  sigma=0.003792
! Fit after  self-cal, rms=0.488158Jy  sigma=0.003783
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0519617 Jy
! Component: 100  -  total flux cleaned = 0.0912638 Jy
! Total flux subtracted in 100 components = 0.0912638 Jy
! Clean residual min=-0.012958 max=0.026374 Jy/beam
! Clean residual mean=0.000074 rms=0.003398 Jy/beam
! Combined flux in latest and established models = 1.23154 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 57 components and 1.23154 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.474983Jy  sigma=0.003644
! Fit after  self-cal, rms=0.474316Jy  sigma=0.003641
! Inverting map 
! Added new window around map position (-0.5, 7.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0352828 Jy
! Component: 100  -  total flux cleaned = 0.0627924 Jy
! Total flux subtracted in 100 components = 0.0627924 Jy
! Clean residual min=-0.011980 max=0.020314 Jy/beam
! Clean residual mean=0.000062 rms=0.003024 Jy/beam
! Combined flux in latest and established models = 1.29434 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 70 components and 1.29434 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.467603Jy  sigma=0.003569
! Fit after  self-cal, rms=0.467294Jy  sigma=0.003567
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0249448 Jy
! Component: 100  -  total flux cleaned = 0.0448344 Jy
! Total flux subtracted in 100 components = 0.0448344 Jy
! Clean residual min=-0.011133 max=0.017564 Jy/beam
! Clean residual mean=0.000053 rms=0.002817 Jy/beam
! Combined flux in latest and established models = 1.33917 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 73 components and 1.33917 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.463679Jy  sigma=0.003528
! Fit after  self-cal, rms=0.463502Jy  sigma=0.003527
! Inverting map 
! Added new window around map position (2.5, 11).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0194207 Jy
! Component: 100  -  total flux cleaned = 0.0346666 Jy
! Total flux subtracted in 100 components = 0.0346666 Jy
! Clean residual min=-0.010731 max=0.013967 Jy/beam
! Clean residual mean=0.000046 rms=0.002684 Jy/beam
! Combined flux in latest and established models = 1.37384 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 78 components and 1.37384 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.461293Jy  sigma=0.003503
! Fit after  self-cal, rms=0.461174Jy  sigma=0.003502
! 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.216 mas, bmaj=3.758 mas, bpa=2.372 degrees
! Estimated noise=378.447 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.0391252 Jy
! Component: 100  -  total flux cleaned = 0.065176 Jy
! Component: 150  -  total flux cleaned = 0.0835591 Jy
! Component: 200  -  total flux cleaned = 0.0968027 Jy
! Total flux subtracted in 200 components = 0.0968027 Jy
! Clean residual min=-0.007785 max=0.015967 Jy/beam
! Clean residual mean=0.001400 rms=0.002891 Jy/beam
! Combined flux in latest and established models = 1.47064 Jy
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 101 components and 1.47064 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.457887Jy  sigma=0.003464
! Fit after  self-cal, rms=0.457609Jy  sigma=0.003462
! Inverting map 
! Added new window around map position (-3.5, 6.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0174688 Jy
! Component: 100  -  total flux cleaned = 0.0277495 Jy
! Component: 150  -  total flux cleaned = 0.0349014 Jy
! Component: 200  -  total flux cleaned = 0.0401015 Jy
! Total flux subtracted in 200 components = 0.0401015 Jy
! Clean residual min=-0.007890 max=0.010753 Jy/beam
! Clean residual mean=0.000993 rms=0.002531 Jy/beam
! Combined flux in latest and established models = 1.51074 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 125 components and 1.51074 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.457011Jy  sigma=0.003455
! Fit after  self-cal, rms=0.456901Jy  sigma=0.003454
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        1.00     HN        0.99     KK        1.00*    KP        0.94     
!   LA        1.03     MA        1.29     MC        1.05     MK        1.08     
!   NL        0.99     NY        1.03     OV        1.03     PT        1.01     
!   SC        1.05     TS        1.00*    WF        0.87     WZ        1.02     
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.97     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.02     KP        0.83     
!   LA        1.02     MA        1.00*    MC        1.12     MK        1.01     
!   NL        0.98     NY        1.02     OV        0.95     PT        0.98     
!   SC        1.01     TS        1.00*    WF        1.03     WZ        1.15     
! 
!  A total of 3 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*    
!   HH        0.96     HN        0.91     KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.37     TS        1.00*    WF        1.03     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 117 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.99     FD        0.99     GC        1.10     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.00     KP        0.97     
!   LA        1.04     MA        0.64     MC        1.13     MK        1.00     
!   NL        0.95     NY        0.97     OV        0.98     PT        0.98     
!   SC        1.08     TS        1.05     WF        0.88     WZ        1.21     
! 
! 
! Correcting IF 2.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        1.03     GC        1.00*    GG        1.00*    
!   HH        1.00     HN        0.99     KK        1.00*    KP        0.97     
!   LA        1.00     MA        0.88     MC        0.98     MK        1.06     
!   NL        0.95     NY        1.01     OV        1.00     PT        1.02     
!   SC        0.99     TS        1.00*    WF        1.01     WZ        1.01     
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.98     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.01     KP        0.92     
!   LA        0.98     MA        1.00*    MC        1.05     MK        1.01     
!   NL        0.94     NY        0.99     OV        0.93     PT        0.99     
!   SC        1.00     TS        1.00*    WF        1.00     WZ        1.10     
! 
!  A total of 3 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*    
!   HH        0.88     HN        1.02     KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.14     TS        1.00*    WF        1.02     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 117 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.98     FD        0.99     GC        1.09     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        0.99     KP        0.97     
!   LA        1.00     MA        1.11     MC        1.06     MK        1.01     
!   NL        0.93     NY        0.99     OV        0.94     PT        1.00     
!   SC        1.05     TS        1.05     WF        1.00     WZ        1.16     
! 
! 
! Correcting IF 3.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.91     FD        0.94     GC        1.00*    GG        1.00*    
!   HH        1.02     HN        0.95     KK        1.00*    KP        1.21     
!   LA        0.88     MA        1.95     MC        1.13     MK        1.06     
!   NL        1.00     NY        1.02     OV        1.04     PT        0.93     
!   SC        1.03     TS        1.00*    WF        1.01     WZ        0.86     
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.00     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        0.86     KK        0.97     KP        1.12     
!   LA        0.97     MA        1.00*    MC        1.32     MK        0.96     
!   NL        1.79     NY        0.97     OV        1.07     PT        1.02     
!   SC        0.94     TS        1.00*    WF        0.79     WZ        0.96     
! 
!  A total of 3 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*    
!   HH        0.96     HN        0.94     KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.03     TS        1.00*    WF        1.24     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 117 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.93     FD        1.07     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        0.96     KP        0.96     
!   LA        1.06     MA        0.94     MC        0.80     MK        1.00     
!   NL        1.08     NY        1.17     OV        1.00     PT        0.89     
!   SC        1.14     TS        1.00     WF        1.14     WZ        0.99     
! 
! 
! Correcting IF 4.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.02     GC        1.00*    GG        1.00*    
!   HH        0.98     HN        1.00     KK        1.00*    KP        0.99     
!   LA        1.00     MA        1.09     MC        1.03     MK        1.06     
!   NL        0.99     NY        0.98     OV        1.03     PT        1.07     
!   SC        0.98     TS        1.00*    WF        1.02     WZ        1.01     
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.97     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.00     KP        0.92     
!   LA        0.98     MA        1.00*    MC        1.14     MK        1.01     
!   NL        0.97     NY        0.97     OV        0.95     PT        1.18     
!   SC        0.98     TS        1.00*    WF        0.97     WZ        1.14     
! 
!  A total of 3 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*    
!   HH        1.05     HN        0.98     KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.12     TS        1.00*    WF        1.05     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 117 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.95     FD        0.98     GC        1.08     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        0.98     KP        0.98     
!   LA        1.00     MA        0.86     MC        0.80     MK        0.99     
!   NL        0.95     NY        0.95     OV        0.97     PT        1.08     
!   SC        1.08     TS        1.03     WF        1.01     WZ        1.27     
! 
! 
! Fit before self-cal, rms=0.456901Jy  sigma=0.003454
! Fit after  self-cal, rms=0.465103Jy  sigma=0.003390
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.231 mas, bmaj=3.801 mas, bpa=2.649 degrees
! Estimated noise=381.743 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.00355709 Jy
! Component: 100  -  total flux cleaned = -0.00226562 Jy
! Component: 150  -  total flux cleaned = -0.00125218 Jy
! Component: 200  -  total flux cleaned = -0.000815018 Jy
! Total flux subtracted in 200 components = -0.000815018 Jy
! Clean residual min=-0.006533 max=0.008187 Jy/beam
! Clean residual mean=0.000513 rms=0.001849 Jy/beam
! Combined flux in latest and established models = 1.50993 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 139 components and 1.50993 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.464884Jy  sigma=0.003389
! Fit after  self-cal, rms=0.465752Jy  sigma=0.003386
! 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.465752Jy  sigma=0.003386
! Fit after  self-cal, rms=0.472640Jy  sigma=0.003335
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.233 mas, bmaj=3.803 mas, bpa=2.654 degrees
! Estimated noise=381.391 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000381707 Jy
! Component: 100  -  total flux cleaned = 0.00108007 Jy
! Component: 150  -  total flux cleaned = 0.0015234 Jy
! Component: 200  -  total flux cleaned = 0.00165357 Jy
! Total flux subtracted in 200 components = 0.00165357 Jy
! Clean residual min=-0.005162 max=0.005120 Jy/beam
! Clean residual mean=0.000318 rms=0.001341 Jy/beam
! Combined flux in latest and established models = 1.51158 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 148 components and 1.51158 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.472507Jy  sigma=0.003334
! Fit after  self-cal, rms=0.473110Jy  sigma=0.003333
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 = -3.17343e-05 Jy
! Component: 100  -  total flux cleaned = 0.000374705 Jy
! Component: 150  -  total flux cleaned = 0.000371982 Jy
! Component: 200  -  total flux cleaned = 0.000603487 Jy
! Total flux subtracted in 200 components = 0.000603487 Jy
! Clean residual min=-0.005157 max=0.005169 Jy/beam
! Clean residual mean=0.000310 rms=0.001327 Jy/beam
! Combined flux in latest and established models = 1.51218 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 154 components and 1.51218 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.473026Jy  sigma=0.003333
! Fit after  self-cal, rms=0.473024Jy  sigma=0.003333
! 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.473024Jy  sigma=0.003333
! Fit after  self-cal, rms=0.476554Jy  sigma=0.003331
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.235 mas, bmaj=3.805 mas, bpa=2.659 degrees
! Estimated noise=380.936 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00227936 Jy
! Component: 100  -  total flux cleaned = -0.00200779 Jy
! Component: 150  -  total flux cleaned = -0.00165154 Jy
! Component: 200  -  total flux cleaned = -0.00154307 Jy
! Total flux subtracted in 200 components = -0.00154307 Jy
! Clean residual min=-0.004974 max=0.005120 Jy/beam
! Clean residual mean=0.000270 rms=0.001285 Jy/beam
! Combined flux in latest and established models = 1.51064 Jy
selfcal
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 155 components and 1.51064 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.476462Jy  sigma=0.003330
! Fit after  self-cal, rms=0.476572Jy  sigma=0.003330
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.000177526 Jy
! Component: 100  -  total flux cleaned = 0.000163933 Jy
! Component: 150  -  total flux cleaned = 0.000371571 Jy
! Component: 200  -  total flux cleaned = 0.000465939 Jy
! Total flux subtracted in 200 components = 0.000465939 Jy
! Clean residual min=-0.004935 max=0.005080 Jy/beam
! Clean residual mean=0.000264 rms=0.001273 Jy/beam
! Combined flux in latest and established models = 1.51111 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 158 components and 1.51111 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.476510Jy  sigma=0.003330
! Fit after  self-cal, rms=0.476507Jy  sigma=0.003330
! 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.476507Jy  sigma=0.003330
! Fit after  self-cal, rms=0.476364Jy  sigma=0.003330
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.239 mas, bmaj=9.478 mas, bpa=3.556 degrees
! Estimated noise=525.923 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00197205 Jy
! Component: 100  -  total flux cleaned = 0.00219359 Jy
! Component: 150  -  total flux cleaned = 0.0025516 Jy
! Component: 200  -  total flux cleaned = 0.00271155 Jy
! Total flux subtracted in 200 components = 0.00271155 Jy
! Clean residual min=-0.006021 max=0.007747 Jy/beam
! Clean residual mean=0.000592 rms=0.002171 Jy/beam
! Combined flux in latest and established models = 1.51382 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 162 components and 1.51382 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.476360Jy  sigma=0.003330
! Fit after  self-cal, rms=0.476358Jy  sigma=0.003330
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.0003653 Jy
! Component: 100  -  total flux cleaned = 0.000758796 Jy
! Component: 150  -  total flux cleaned = 0.000976195 Jy
! Component: 200  -  total flux cleaned = 0.00102143 Jy
! Total flux subtracted in 200 components = 0.00102143 Jy
! Clean residual min=-0.005729 max=0.007899 Jy/beam
! Clean residual mean=0.000561 rms=0.002166 Jy/beam
! Combined flux in latest and established models = 1.51484 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 165 components and 1.51484 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.476344Jy  sigma=0.003329
! Fit after  self-cal, rms=0.476337Jy  sigma=0.003329
! 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.237 mas, bmaj=3.809 mas, bpa=2.64 degrees
! Estimated noise=380.619 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.237 x 3.809 at 2.64 degrees (North through East)
! Clean map  min=-0.0043554  max=0.73093 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.476337Jy  sigma=0.003329
! Fit after  self-cal, rms=7.354380Jy  sigma=0.003010
! Inverting map and beam 
! Estimated beam: bmin=2.242 mas, bmaj=3.817 mas, bpa=2.325 degrees
! Estimated noise=381.297 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00228005 Jy
! Component: 100  -  total flux cleaned = -0.00214239 Jy
! Component: 150  -  total flux cleaned = -0.00238333 Jy
! Component: 200  -  total flux cleaned = -0.0026007 Jy
! Total flux subtracted in 200 components = -0.0026007 Jy
! Clean residual min=-0.004721 max=0.005886 Jy/beam
! Clean residual mean=0.000223 rms=0.001344 Jy/beam
! Combined flux in latest and established models = 1.51224 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 171 components and 1.51224 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=7.354373Jy  sigma=0.003010
! Fit after  self-cal, rms=7.354401Jy  sigma=0.003010
! Inverting map 
! Added new window around map position (-0.5, 46).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00261194 Jy
! Component: 100  -  total flux cleaned = 0.00311504 Jy
! Component: 150  -  total flux cleaned = 0.00322058 Jy
! Component: 200  -  total flux cleaned = 0.00340747 Jy
! Total flux subtracted in 200 components = 0.00340747 Jy
! Clean residual min=-0.004752 max=0.005619 Jy/beam
! Clean residual mean=0.000188 rms=0.001324 Jy/beam
! Combined flux in latest and established models = 1.51565 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 179 components and 1.51565 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=7.354373Jy  sigma=0.003009
! Fit after  self-cal, rms=7.354363Jy  sigma=0.003009
! Inverting map 
! Added new window around map position (-33, -9).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00361152 Jy
! Component: 100  -  total flux cleaned = 0.00510058 Jy
! Component: 150  -  total flux cleaned = 0.00597882 Jy
! Component: 200  -  total flux cleaned = 0.00650604 Jy
! Total flux subtracted in 200 components = 0.00650604 Jy
! Clean residual min=-0.004730 max=0.005374 Jy/beam
! Clean residual mean=0.000120 rms=0.001284 Jy/beam
! Combined flux in latest and established models = 1.52215 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 192 components and 1.52215 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=7.354375Jy  sigma=0.003009
! Fit after  self-cal, rms=7.354381Jy  sigma=0.003009
! Inverting map 
! Added new window around map position (26, -30).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00469238 Jy
! Component: 100  -  total flux cleaned = 0.0055237 Jy
! Component: 150  -  total flux cleaned = 0.00590298 Jy
! Component: 200  -  total flux cleaned = 0.00607753 Jy
! Total flux subtracted in 200 components = 0.00607753 Jy
! Clean residual min=-0.004683 max=0.004749 Jy/beam
! Clean residual mean=0.000065 rms=0.001247 Jy/beam
! Combined flux in latest and established models = 1.52823 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 206 components and 1.52823 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=7.354374Jy  sigma=0.003008
! Fit after  self-cal, rms=7.354392Jy  sigma=0.003008
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=7.354392Jy  sigma=0.003008
! Fit after  self-cal, rms=6.510253Jy  sigma=0.003008
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=1.88 mas, bmaj=3.16 mas, bpa=1.467 degrees
! Estimated noise=693.745 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.577924 Jy
! Component: 100  -  total flux cleaned = 0.808785 Jy
! Component: 150  -  total flux cleaned = 0.945776 Jy
! Component: 200  -  total flux cleaned = 1.04453 Jy
! Total flux subtracted in 200 components = 1.04453 Jy
! Clean residual min=-0.012784 max=0.056170 Jy/beam
! Clean residual mean=0.000101 rms=0.004406 Jy/beam
! Combined flux in latest and established models = 1.04453 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 35 model components to the UV plane model.
! The established model now contains 35 components and 1.04453 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.247 mas, bmaj=3.823 mas, bpa=2.248 degrees
! Estimated noise=381.817 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.156374 Jy
! Component: 100  -  total flux cleaned = 0.248168 Jy
! Component: 150  -  total flux cleaned = 0.307486 Jy
! Component: 200  -  total flux cleaned = 0.348537 Jy
! Total flux subtracted in 200 components = 0.348537 Jy
! Clean residual min=-0.006343 max=0.023952 Jy/beam
! Clean residual mean=0.001524 rms=0.003606 Jy/beam
! Combined flux in latest and established models = 1.39307 Jy
! Adding 90 model components to the UV plane model.
! The established model now contains 109 components and 1.39307 Jy
! Inverting map 
! Added new window around map position (1.5, 6.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0296275 Jy
! Component: 100  -  total flux cleaned = 0.0512825 Jy
! Component: 150  -  total flux cleaned = 0.0673854 Jy
! Component: 200  -  total flux cleaned = 0.0796355 Jy
! Total flux subtracted in 200 components = 0.0796355 Jy
! Clean residual min=-0.004384 max=0.008364 Jy/beam
! Clean residual mean=0.000680 rms=0.001748 Jy/beam
! Combined flux in latest and established models = 1.4727 Jy
! Adding 67 model components to the UV plane model.
! The established model now contains 161 components and 1.4727 Jy
! Inverting map 
! Added new window around map position (2.5, 16).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.010046 Jy
! Component: 100  -  total flux cleaned = 0.0183186 Jy
! Component: 150  -  total flux cleaned = 0.0252992 Jy
! Component: 200  -  total flux cleaned = 0.0312484 Jy
! Total flux subtracted in 200 components = 0.0312484 Jy
! Clean residual min=-0.004469 max=0.005161 Jy/beam
! Clean residual mean=0.000358 rms=0.001378 Jy/beam
! Combined flux in latest and established models = 1.50395 Jy
! Adding 46 model components to the UV plane model.
! The established model now contains 187 components and 1.50395 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=8.252 mas, bmaj=9.46 mas, bpa=3.237 degrees
! Estimated noise=525.193 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0100488 Jy
! Component: 100  -  total flux cleaned = 0.01678 Jy
! Component: 150  -  total flux cleaned = 0.0217699 Jy
! Component: 200  -  total flux cleaned = 0.0255595 Jy
! Total flux subtracted in 200 components = 0.0255595 Jy
! Clean residual min=-0.006367 max=0.007311 Jy/beam
! Clean residual mean=0.000293 rms=0.002240 Jy/beam
! Combined flux in latest and established models = 1.52951 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.00292861 Jy
! Component: 100  -  total flux cleaned = 0.00520615 Jy
! Component: 150  -  total flux cleaned = 0.00589254 Jy
! Component: 200  -  total flux cleaned = 0.00623742 Jy
! Total flux subtracted in 200 components = 0.00623742 Jy
! Clean residual min=-0.006463 max=0.007102 Jy/beam
! Clean residual mean=0.000108 rms=0.002213 Jy/beam
! Combined flux in latest and established models = 1.53575 Jy
! Adding 72 model components to the UV plane model.
! The established model now contains 246 components and 1.53575 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.247 mas, bmaj=3.823 mas, bpa=2.248 degrees
! Estimated noise=381.817 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 3.64735e-05 Jy
! Component: 100  -  total flux cleaned = 0.000641577 Jy
! Component: 150  -  total flux cleaned = 0.00111056 Jy
! Component: 200  -  total flux cleaned = 0.00154799 Jy
! Total flux subtracted in 200 components = 0.00154799 Jy
! Clean residual min=-0.004408 max=0.004594 Jy/beam
! Clean residual mean=0.000017 rms=0.001215 Jy/beam
! Combined flux in latest and established models = 1.53729 Jy
selfcal
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 267 components and 1.53729 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=6.510222Jy  sigma=0.003007
! Fit after  self-cal, rms=6.510228Jy  sigma=0.003007
wmodel J0237+2848_S_2000_12_04_pus_map.mod
! Writing 267 model components to file: J0237+2848_S_2000_12_04_pus_map.mod
wobs J0237+2848_S_2000_12_04_pus_uvs.fits
! Writing UV FITS file: J0237+2848_S_2000_12_04_pus_uvs.fits
wwins J0237+2848_S_2000_12_04_pus_map.win
! wwins: Wrote 10 windows to J0237+2848_S_2000_12_04_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.000774646 Jy
! Component: 100  -  total flux cleaned = 0.00148008 Jy
! Component: 150  -  total flux cleaned = 0.00200075 Jy
! Component: 200  -  total flux cleaned = 0.00271671 Jy
! Component: 250  -  total flux cleaned = 0.00334193 Jy
! Component: 300  -  total flux cleaned = 0.00374871 Jy
! Component: 350  -  total flux cleaned = 0.00407958 Jy
! Component: 400  -  total flux cleaned = 0.00459939 Jy
! Component: 450  -  total flux cleaned = 0.00485435 Jy
! Component: 500  -  total flux cleaned = 0.00510685 Jy
! Component: 550  -  total flux cleaned = 0.0052323 Jy
! Component: 600  -  total flux cleaned = 0.00553948 Jy
! Component: 650  -  total flux cleaned = 0.00590301 Jy
! Component: 700  -  total flux cleaned = 0.00596251 Jy
! Component: 750  -  total flux cleaned = 0.00619892 Jy
! Component: 800  -  total flux cleaned = 0.00643232 Jy
! Component: 850  -  total flux cleaned = 0.00654723 Jy
! Component: 900  -  total flux cleaned = 0.00666141 Jy
! Component: 950  -  total flux cleaned = 0.00694452 Jy
! Component: 1000  -  total flux cleaned = 0.00700028 Jy
! Component: 1050  -  total flux cleaned = 0.00716738 Jy
! Component: 1100  -  total flux cleaned = 0.00738815 Jy
! Component: 1150  -  total flux cleaned = 0.0074981 Jy
! Component: 1200  -  total flux cleaned = 0.00766143 Jy
! Component: 1250  -  total flux cleaned = 0.00782365 Jy
! Component: 1300  -  total flux cleaned = 0.00793101 Jy
! Component: 1350  -  total flux cleaned = 0.00814382 Jy
! Component: 1400  -  total flux cleaned = 0.0081967 Jy
! Component: 1450  -  total flux cleaned = 0.0083541 Jy
! Component: 1500  -  total flux cleaned = 0.00845817 Jy
! Component: 1550  -  total flux cleaned = 0.00861304 Jy
! Component: 1600  -  total flux cleaned = 0.00866436 Jy
! Component: 1650  -  total flux cleaned = 0.00881702 Jy
! Component: 1700  -  total flux cleaned = 0.00891827 Jy
! Component: 1750  -  total flux cleaned = 0.00891818 Jy
! Component: 1800  -  total flux cleaned = 0.00901865 Jy
! Component: 1850  -  total flux cleaned = 0.00906858 Jy
! Component: 1900  -  total flux cleaned = 0.00926629 Jy
! Component: 1950  -  total flux cleaned = 0.00926637 Jy
! Component: 2000  -  total flux cleaned = 0.00926671 Jy
! Total flux subtracted in 2048 components = 0.00950931 Jy
! Clean residual min=-0.002596 max=0.002737 Jy/beam
! Clean residual mean=-0.000023 rms=0.000975 Jy/beam
! Combined flux in latest and established models = 1.5468 Jy
keep
! Adding 175 model components to the UV plane model.
! The established model now contains 442 components and 1.5468 Jy
![Exited script file: muppet]
wmap "J0237+2848_S_2000_12_04_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.247 x 3.823 at 2.248 degrees (North through East)
! Clean map  min=-0.0040899  max=0.73607 Jy/beam
! Writing clean map to FITS file: J0237+2848_S_2000_12_04_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.736073 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000971259 
device "J0237+2848_S_2000_12_04_pus\_map.eps/VPS"
! Attempting to open device: 'J0237+2848_S_2000_12_04_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.395854 0.395854 0.791708 1.58342 3.16683 6.33367 12.6673 25.3347 50.6693
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0029 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.736 
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.247 x 3.823 at 2.248 degrees (North through East)
! Clean map  min=-0.0040899  max=0.73607 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0237+2848_S_2000_12_04_pus\_map.gif/vgif"
! Attempting to open device: 'J0237+2848_S_2000_12_04_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0237+2848_S_2000_12_04_pus_uvs.log closed on Thu Oct 18 15:37:39 2007