! Started logfile: J0238+1636_S_2001_04_09_pus_uvs.log on Fri Oct  5 15:51:17 2007
obs J0238+1636_S_2001_04_09_pus_uva.fits
! Reading UV FITS file: J0238+1636_S_2001_04_09_pus_uva.fits
! AN table 1: 168 integrations on 190 of 190 possible baselines.
! AN table 2: 27 integrations on 190 of 190 possible baselines.
! AN table 3: 79 integrations on 190 of 190 possible baselines.
! AN table 4: 53 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.163222 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0238+1636
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1949 lines of history.
! 
! Reading 40564 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 J0238+1636_S_2001_04_09_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 2099 telescope corrections were flagged in sub-array 1.
!  A total of 464 telescope corrections were flagged in sub-array 2.
!  A total of 1024 telescope corrections were flagged in sub-array 3.
!  A total of 699 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 2099 telescope corrections were flagged in sub-array 1.
!  A total of 464 telescope corrections were flagged in sub-array 2.
!  A total of 1024 telescope corrections were flagged in sub-array 3.
!  A total of 699 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 2099 telescope corrections were flagged in sub-array 1.
!  A total of 464 telescope corrections were flagged in sub-array 2.
!  A total of 1024 telescope corrections were flagged in sub-array 3.
!  A total of 699 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 2099 telescope corrections were flagged in sub-array 1.
!  A total of 510 telescope corrections were flagged in sub-array 2.
!  A total of 1024 telescope corrections were flagged in sub-array 3.
!  A total of 699 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.062046Jy  sigma=0.007149
! Fit after  self-cal, rms=0.381909Jy  sigma=0.002208
! 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.803 mas, bmaj=3.259 mas, bpa=9.666 degrees
! Estimated noise=839.733 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.615978 Jy
! Component: 100  -  total flux cleaned = 0.755983 Jy
! Total flux subtracted in 100 components = 0.755983 Jy
! Clean residual min=-0.012352 max=0.048536 Jy/beam
! Clean residual mean=0.000128 rms=0.003850 Jy/beam
! Combined flux in latest and established models = 0.755983 Jy
! Performing phase self-cal
! Adding 3 model components to the UV plane model.
! The established model now contains 3 components and 0.755983 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.317813Jy  sigma=0.001811
! Fit after  self-cal, rms=0.317816Jy  sigma=0.001811
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0517426 Jy
! Component: 100  -  total flux cleaned = 0.0802882 Jy
! Total flux subtracted in 100 components = 0.0802882 Jy
! Clean residual min=-0.011366 max=0.014704 Jy/beam
! Clean residual mean=0.000060 rms=0.002925 Jy/beam
! Combined flux in latest and established models = 0.836271 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 18 components and 0.836271 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.310048Jy  sigma=0.001716
! Fit after  self-cal, rms=0.309983Jy  sigma=0.001716
! 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.014 mas, bmaj=3.61 mas, bpa=6.654 degrees
! Estimated noise=525.519 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.0199506 Jy
! Component: 100  -  total flux cleaned = 0.030892 Jy
! Component: 150  -  total flux cleaned = 0.0373538 Jy
! Component: 200  -  total flux cleaned = 0.0407459 Jy
! Total flux subtracted in 200 components = 0.0407459 Jy
! Clean residual min=-0.011990 max=0.011264 Jy/beam
! Clean residual mean=0.000566 rms=0.002613 Jy/beam
! Combined flux in latest and established models = 0.877017 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 35 components and 0.877017 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.308947Jy  sigma=0.001701
! Fit after  self-cal, rms=0.308923Jy  sigma=0.001701
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 96 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.06     FD        1.01     GC        1.10     GG        1.00*    
!   HH        1.03     HN        0.96     KK        1.00     KP        1.04     
!   LA        0.99     MA        1.13     MC        1.01     MK        1.09     
!   NL        1.00     NY        0.99     OV        1.05     PT        0.98     
!   SC        1.00     TS        0.96     WF        1.02     WZ        0.95     
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.11     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.02     MC        0.91     MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.03     WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.96     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        0.98     KP        1.00     
!   LA        0.96     MA        1.00*    MC        1.01     MK        1.00     
!   NL        0.95     NY        0.98     OV        0.99     PT        0.95     
!   SC        0.99     TS        0.95     WF        0.97     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.98     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        0.91     KP        1.01     
!   LA        0.93     MA        1.00*    MC        1.00*    MK        0.96     
!   NL        0.98     NY        1.02     OV        1.00     PT        0.93     
!   SC        0.97     TS        1.00*    WF        1.00     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 96 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        1.00     GC        1.06     GG        1.00*    
!   HH        1.03     HN        0.96     KK        0.99     KP        0.97     
!   LA        1.01     MA        0.95     MC        0.95     MK        1.08     
!   NL        1.01     NY        1.02     OV        1.00     PT        1.02     
!   SC        1.01     TS        1.00     WF        1.01     WZ        0.91     
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.10     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        0.91     MC        0.94     MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.04     WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.94     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        0.95     KK        0.97     KP        0.97     
!   LA        0.97     MA        1.00*    MC        1.05     MK        1.01     
!   NL        0.96     NY        1.01     OV        0.98     PT        1.00     
!   SC        0.97     TS        0.98     WF        0.98     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        0.98     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        0.92     KP        0.92     
!   LA        0.97     MA        1.00*    MC        1.00*    MK        0.96     
!   NL        0.98     NY        1.07     OV        0.96     PT        0.96     
!   SC        0.97     TS        1.00*    WF        1.01     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 96 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.08     FD        1.02     GC        1.05     GG        1.00*    
!   HH        1.00     HN        1.02     KK        0.99     KP        1.15     
!   LA        0.97     MA        0.93     MC        0.97     MK        1.11     
!   NL        1.00     NY        0.99     OV        1.00     PT        1.02     
!   SC        0.99     TS        1.00     WF        1.01     WZ        0.93     
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.20     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.05     MC        0.87     MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        0.99     WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.96     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        0.98     KP        1.03     
!   LA        0.91     MA        1.00*    MC        2.03     MK        0.98     
!   NL        0.97     NY        0.98     OV        0.97     PT        1.01     
!   SC        0.95     TS        1.00     WF        0.97     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        0.98     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        0.95     KP        0.97     
!   LA        0.94     MA        1.00*    MC        1.00*    MK        0.94     
!   NL        0.97     NY        1.02     OV        0.95     PT        0.96     
!   SC        0.93     TS        1.00*    WF        1.00     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 96 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.02     GC        1.08     GG        1.00*    
!   HH        1.06     HN        1.01     KK        1.01     KP        1.12     
!   LA        1.01     MA        1.00     MC        1.71     MK        1.05     
!   NL        1.00     NY        1.04     OV        1.00     PT        1.06     
!   SC        1.02     TS        0.95     WF        1.02     WZ        0.92     
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   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*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.99     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        0.99     KP        1.01     
!   LA        0.96     MA        1.00*    MC        1.24     MK        0.97     
!   NL        0.95     NY        1.03     OV        0.99     PT        1.04     
!   SC        0.96     TS        0.94     WF        0.94     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        0.98     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        0.91     KP        0.98     
!   LA        0.95     MA        1.00*    MC        1.00*    MK        0.92     
!   NL        0.98     NY        1.07     OV        0.96     PT        1.10     
!   SC        0.94     TS        1.00*    WF        1.02     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.308923Jy  sigma=0.001701
! Fit after  self-cal, rms=0.366149Jy  sigma=0.001602
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.03 mas, bmaj=3.637 mas, bpa=6.336 degrees
! Estimated noise=529.63 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.00253061 Jy
! Component: 100  -  total flux cleaned = -0.00266289 Jy
! Component: 150  -  total flux cleaned = -0.00260724 Jy
! Component: 200  -  total flux cleaned = -0.00260993 Jy
! Total flux subtracted in 200 components = -0.00260993 Jy
! Clean residual min=-0.006237 max=0.007566 Jy/beam
! Clean residual mean=0.000426 rms=0.001535 Jy/beam
! Combined flux in latest and established models = 0.874407 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 38 components and 0.874407 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.366120Jy  sigma=0.001602
! Fit after  self-cal, rms=0.367348Jy  sigma=0.001600
! 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.367348Jy  sigma=0.001600
! Fit after  self-cal, rms=0.377720Jy  sigma=0.001571
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.032 mas, bmaj=3.636 mas, bpa=6.236 degrees
! Estimated noise=529.751 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00172599 Jy
! Component: 100  -  total flux cleaned = -0.00183807 Jy
! Component: 150  -  total flux cleaned = -0.00175133 Jy
! Component: 200  -  total flux cleaned = -0.00167009 Jy
! Total flux subtracted in 200 components = -0.00167009 Jy
! Clean residual min=-0.003322 max=0.006178 Jy/beam
! Clean residual mean=0.000437 rms=0.001081 Jy/beam
! Combined flux in latest and established models = 0.872737 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 41 components and 0.872737 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.377701Jy  sigma=0.001571
! Fit after  self-cal, rms=0.378010Jy  sigma=0.001571
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)
! Added new window around map position (3.5, 2.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00632835 Jy
! Component: 100  -  total flux cleaned = 0.0100558 Jy
! Component: 150  -  total flux cleaned = 0.0115523 Jy
! Component: 200  -  total flux cleaned = 0.0120641 Jy
! Total flux subtracted in 200 components = 0.0120641 Jy
! Clean residual min=-0.003218 max=0.003977 Jy/beam
! Clean residual mean=0.000325 rms=0.000950 Jy/beam
! Combined flux in latest and established models = 0.884801 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 63 components and 0.884801 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.377865Jy  sigma=0.001569
! Fit after  self-cal, rms=0.377860Jy  sigma=0.001569
! Inverting map 
! Added new window around map position (6, 20).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00381881 Jy
! Component: 100  -  total flux cleaned = 0.00565781 Jy
! Component: 150  -  total flux cleaned = 0.00656068 Jy
! Component: 200  -  total flux cleaned = 0.00720506 Jy
! Total flux subtracted in 200 components = 0.00720506 Jy
! Clean residual min=-0.003140 max=0.003804 Jy/beam
! Clean residual mean=0.000264 rms=0.000908 Jy/beam
! Combined flux in latest and established models = 0.892006 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 82 components and 0.892006 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.377783Jy  sigma=0.001569
! Fit after  self-cal, rms=0.377778Jy  sigma=0.001569
! 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.377778Jy  sigma=0.001569
! Fit after  self-cal, rms=0.380624Jy  sigma=0.001568
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.034 mas, bmaj=3.633 mas, bpa=6.292 degrees
! Estimated noise=530.157 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00282644 Jy
! Component: 100  -  total flux cleaned = 0.00388719 Jy
! Component: 150  -  total flux cleaned = 0.00476504 Jy
! Component: 200  -  total flux cleaned = 0.00539508 Jy
! Total flux subtracted in 200 components = 0.00539508 Jy
! Clean residual min=-0.003171 max=0.003670 Jy/beam
! Clean residual mean=0.000208 rms=0.000902 Jy/beam
! Combined flux in latest and established models = 0.897401 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 86 components and 0.897401 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.380573Jy  sigma=0.001568
! Fit after  self-cal, rms=0.380599Jy  sigma=0.001568
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.000797156 Jy
! Component: 100  -  total flux cleaned = 0.00130242 Jy
! Component: 150  -  total flux cleaned = 0.0016983 Jy
! Component: 200  -  total flux cleaned = 0.00189782 Jy
! Total flux subtracted in 200 components = 0.00189782 Jy
! Clean residual min=-0.003205 max=0.003694 Jy/beam
! Clean residual mean=0.000191 rms=0.000893 Jy/beam
! Combined flux in latest and established models = 0.899299 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 94 components and 0.899299 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.380580Jy  sigma=0.001568
! Fit after  self-cal, rms=0.380582Jy  sigma=0.001568
! 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.380582Jy  sigma=0.001568
! Fit after  self-cal, rms=0.381726Jy  sigma=0.001568
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.872 mas, bmaj=8.689 mas, bpa=-8.613 degrees
! Estimated noise=795.209 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00339113 Jy
! Component: 100  -  total flux cleaned = 0.00513158 Jy
! Component: 150  -  total flux cleaned = 0.00604308 Jy
! Component: 200  -  total flux cleaned = 0.00626082 Jy
! Total flux subtracted in 200 components = 0.00626082 Jy
! Clean residual min=-0.004475 max=0.005095 Jy/beam
! Clean residual mean=0.000466 rms=0.001643 Jy/beam
! Combined flux in latest and established models = 0.90556 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 101 components and 0.90556 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.381719Jy  sigma=0.001568
! Fit after  self-cal, rms=0.381723Jy  sigma=0.001568
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.000295289 Jy
! Component: 100  -  total flux cleaned = 0.000536826 Jy
! Component: 150  -  total flux cleaned = 0.000716646 Jy
! Component: 200  -  total flux cleaned = 0.000854425 Jy
! Total flux subtracted in 200 components = 0.000854425 Jy
! Clean residual min=-0.004435 max=0.004937 Jy/beam
! Clean residual mean=0.000440 rms=0.001637 Jy/beam
! Combined flux in latest and established models = 0.906415 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 101 components and 0.906415 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.381721Jy  sigma=0.001568
! Fit after  self-cal, rms=0.381720Jy  sigma=0.001568
! 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.035 mas, bmaj=3.632 mas, bpa=6.304 degrees
! Estimated noise=530.299 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.035 x 3.632 at 6.304 degrees (North through East)
! Clean map  min=-0.0030304  max=0.79039 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.381720Jy  sigma=0.001568
! Fit after  self-cal, rms=0.639516Jy  sigma=0.001468
! Inverting map and beam 
! Estimated beam: bmin=2.034 mas, bmaj=3.636 mas, bpa=6.237 degrees
! Estimated noise=529.784 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00194916 Jy
! Component: 100  -  total flux cleaned = -0.0032047 Jy
! Component: 150  -  total flux cleaned = -0.00389737 Jy
! Component: 200  -  total flux cleaned = -0.00449256 Jy
! Total flux subtracted in 200 components = -0.00449256 Jy
! Clean residual min=-0.002609 max=0.003561 Jy/beam
! Clean residual mean=0.000200 rms=0.000804 Jy/beam
! Combined flux in latest and established models = 0.901922 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 112 components and 0.901922 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.639482Jy  sigma=0.001468
! Fit after  self-cal, rms=0.639490Jy  sigma=0.001468
! Inverting map 
! Added new window around map position (28, 16).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00307197 Jy
! Component: 100  -  total flux cleaned = 0.00389263 Jy
! Component: 150  -  total flux cleaned = 0.00378915 Jy
! Component: 200  -  total flux cleaned = 0.00369468 Jy
! Total flux subtracted in 200 components = 0.00369468 Jy
! Clean residual min=-0.002600 max=0.003020 Jy/beam
! Clean residual mean=0.000174 rms=0.000789 Jy/beam
! Combined flux in latest and established models = 0.905617 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 125 components and 0.905617 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.639423Jy  sigma=0.001468
! Fit after  self-cal, rms=0.639429Jy  sigma=0.001468
! 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.639429Jy  sigma=0.001468
! Fit after  self-cal, rms=0.915055Jy  sigma=0.001468
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.824 mas, bmaj=3.299 mas, bpa=9.241 degrees
! Estimated noise=838.207 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.613148 Jy
! Component: 100  -  total flux cleaned = 0.749308 Jy
! Component: 150  -  total flux cleaned = 0.795368 Jy
! Component: 200  -  total flux cleaned = 0.81932 Jy
! Total flux subtracted in 200 components = 0.81932 Jy
! Clean residual min=-0.004812 max=0.012240 Jy/beam
! Clean residual mean=0.000083 rms=0.001469 Jy/beam
! Combined flux in latest and established models = 0.81932 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 18 model components to the UV plane model.
! The established model now contains 18 components and 0.81932 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.035 mas, bmaj=3.637 mas, bpa=6.22 degrees
! Estimated noise=529.535 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.0232204 Jy
! Component: 100  -  total flux cleaned = 0.0372868 Jy
! Component: 150  -  total flux cleaned = 0.0467745 Jy
! Component: 200  -  total flux cleaned = 0.0536855 Jy
! Total flux subtracted in 200 components = 0.0536855 Jy
! Clean residual min=-0.003280 max=0.004912 Jy/beam
! Clean residual mean=0.000456 rms=0.001053 Jy/beam
! Combined flux in latest and established models = 0.873006 Jy
! Adding 45 model components to the UV plane model.
! The established model now contains 58 components and 0.873006 Jy
! Inverting map 
! Added new window around map position (-5, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00566609 Jy
! Component: 100  -  total flux cleaned = 0.0102382 Jy
! Component: 150  -  total flux cleaned = 0.0140601 Jy
! Component: 200  -  total flux cleaned = 0.0172686 Jy
! Total flux subtracted in 200 components = 0.0172686 Jy
! Clean residual min=-0.002918 max=0.003330 Jy/beam
! Clean residual mean=0.000303 rms=0.000846 Jy/beam
! Combined flux in latest and established models = 0.890274 Jy
! Adding 40 model components to the UV plane model.
! The established model now contains 82 components and 0.890274 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.877 mas, bmaj=8.691 mas, bpa=-8.565 degrees
! Estimated noise=793.832 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00622439 Jy
! Component: 100  -  total flux cleaned = 0.0097954 Jy
! Component: 150  -  total flux cleaned = 0.0123377 Jy
! Component: 200  -  total flux cleaned = 0.0141995 Jy
! Total flux subtracted in 200 components = 0.0141995 Jy
! Clean residual min=-0.002437 max=0.003703 Jy/beam
! Clean residual mean=0.000635 rms=0.001061 Jy/beam
! Combined flux in latest and established models = 0.904474 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.0013965 Jy
! Component: 100  -  total flux cleaned = 0.00244802 Jy
! Component: 150  -  total flux cleaned = 0.00324168 Jy
! Component: 200  -  total flux cleaned = 0.00384483 Jy
! Total flux subtracted in 200 components = 0.00384483 Jy
! Clean residual min=-0.002393 max=0.003675 Jy/beam
! Clean residual mean=0.000520 rms=0.001036 Jy/beam
! Combined flux in latest and established models = 0.908319 Jy
! Adding 54 model components to the UV plane model.
! The established model now contains 123 components and 0.908319 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.035 mas, bmaj=3.637 mas, bpa=6.22 degrees
! Estimated noise=529.535 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000995915 Jy
! Component: 100  -  total flux cleaned = -0.00134017 Jy
! Component: 150  -  total flux cleaned = -0.00133758 Jy
! Component: 200  -  total flux cleaned = -0.00145024 Jy
! Total flux subtracted in 200 components = -0.00145024 Jy
! Clean residual min=-0.002590 max=0.002835 Jy/beam
! Clean residual mean=0.000158 rms=0.000771 Jy/beam
! Combined flux in latest and established models = 0.906869 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 141 components and 0.906869 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.915008Jy  sigma=0.001468
! Fit after  self-cal, rms=0.915022Jy  sigma=0.001467
wmodel J0238+1636_S_2001_04_09_pus_map.mod
! Writing 141 model components to file: J0238+1636_S_2001_04_09_pus_map.mod
wobs J0238+1636_S_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J0238+1636_S_2001_04_09_pus_uvs.fits
wwins J0238+1636_S_2001_04_09_pus_map.win
! wwins: Wrote 5 windows to J0238+1636_S_2001_04_09_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.00135043 Jy
! Component: 100  -  total flux cleaned = 0.0024239 Jy
! Component: 150  -  total flux cleaned = 0.0032156 Jy
! Component: 200  -  total flux cleaned = 0.00394059 Jy
! Component: 250  -  total flux cleaned = 0.00465083 Jy
! Component: 300  -  total flux cleaned = 0.00534771 Jy
! Component: 350  -  total flux cleaned = 0.0059872 Jy
! Component: 400  -  total flux cleaned = 0.00648185 Jy
! Component: 450  -  total flux cleaned = 0.00701328 Jy
! Component: 500  -  total flux cleaned = 0.00736318 Jy
! Component: 550  -  total flux cleaned = 0.00783897 Jy
! Component: 600  -  total flux cleaned = 0.00826612 Jy
! Component: 650  -  total flux cleaned = 0.00860406 Jy
! Component: 700  -  total flux cleaned = 0.00885499 Jy
! Component: 750  -  total flux cleaned = 0.00906295 Jy
! Component: 800  -  total flux cleaned = 0.00931056 Jy
! Component: 850  -  total flux cleaned = 0.00967802 Jy
! Component: 900  -  total flux cleaned = 0.00983998 Jy
! Component: 950  -  total flux cleaned = 0.0101214 Jy
! Component: 1000  -  total flux cleaned = 0.0104005 Jy
! Component: 1050  -  total flux cleaned = 0.0106769 Jy
! Component: 1100  -  total flux cleaned = 0.0108732 Jy
! Component: 1150  -  total flux cleaned = 0.0112235 Jy
! Component: 1200  -  total flux cleaned = 0.0114168 Jy
! Component: 1250  -  total flux cleaned = 0.0116854 Jy
! Component: 1300  -  total flux cleaned = 0.0119138 Jy
! Component: 1350  -  total flux cleaned = 0.0121783 Jy
! Component: 1400  -  total flux cleaned = 0.0124036 Jy
! Component: 1450  -  total flux cleaned = 0.0125903 Jy
! Component: 1500  -  total flux cleaned = 0.0127757 Jy
! Component: 1550  -  total flux cleaned = 0.0131073 Jy
! Component: 1600  -  total flux cleaned = 0.0133266 Jy
! Component: 1650  -  total flux cleaned = 0.0136175 Jy
! Component: 1700  -  total flux cleaned = 0.0138704 Jy
! Component: 1750  -  total flux cleaned = 0.0140501 Jy
! Component: 1800  -  total flux cleaned = 0.0142646 Jy
! Component: 1850  -  total flux cleaned = 0.0144777 Jy
! Component: 1900  -  total flux cleaned = 0.0146545 Jy
! Component: 1950  -  total flux cleaned = 0.0148652 Jy
! Component: 2000  -  total flux cleaned = 0.0151099 Jy
! Total flux subtracted in 2048 components = 0.0153183 Jy
! Clean residual min=-0.002246 max=0.002131 Jy/beam
! Clean residual mean=0.000048 rms=0.000653 Jy/beam
! Combined flux in latest and established models = 0.922187 Jy
keep
! Adding 158 model components to the UV plane model.
! The established model now contains 299 components and 0.922187 Jy
![Exited script file: muppet]
wmap "J0238+1636_S_2001_04_09_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.035 x 3.637 at 6.22 degrees (North through East)
! Clean map  min=-0.0023984  max=0.79011 Jy/beam
! Writing clean map to FITS file: J0238+1636_S_2001_04_09_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.790113 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000653172 
device "J0238+1636_S_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J0238+1636_S_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.248005 0.248005 0.496009 0.992019 1.98404 3.96807 7.93615 15.8723 31.7446 63.4892
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0019 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.79 
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.035 x 3.637 at 6.22 degrees (North through East)
! Clean map  min=-0.0023984  max=0.79011 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0238+1636_S_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J0238+1636_S_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0238+1636_S_2001_04_09_pus_uvs.log closed on Fri Oct  5 15:51:34 2007