! Started logfile: J0121+0422_S_2001_10_29_pus_uvs.log on Wed Feb 27 15:10:44 2008
obs J0121+0422_S_2001_10_29_pus_uva.fits
! Reading UV FITS file: J0121+0422_S_2001_10_29_pus_uva.fits
! AN table 1: 24 integrations on 153 of 153 possible baselines.
! AN table 2: 87 integrations on 153 of 153 possible baselines.
! AN table 3: 307 integrations on 153 of 153 possible baselines.
! AN table 4: 24 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.0276964 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0121+0422
! 
! 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 2604 lines of history.
! 
! Reading 7492 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 J0121+0422_S_2001_10_29_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 265 telescope corrections were flagged in sub-array 1.
!  A total of 1536 telescope corrections were flagged in sub-array 2.
!  A total of 5241 telescope corrections were flagged in sub-array 3.
!  A total of 368 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 265 telescope corrections were flagged in sub-array 1.
!  A total of 1536 telescope corrections were flagged in sub-array 2.
!  A total of 5241 telescope corrections were flagged in sub-array 3.
!  A total of 368 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 265 telescope corrections were flagged in sub-array 1.
!  A total of 1536 telescope corrections were flagged in sub-array 2.
!  A total of 5241 telescope corrections were flagged in sub-array 3.
!  A total of 368 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 265 telescope corrections were flagged in sub-array 1.
!  A total of 1536 telescope corrections were flagged in sub-array 2.
!  A total of 5331 telescope corrections were flagged in sub-array 3.
!  A total of 368 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.865582Jy  sigma=0.007503
! Fit after  self-cal, rms=0.298498Jy  sigma=0.002173
! 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.999 mas, bmaj=5.672 mas, bpa=-3.898 degrees
! Estimated noise=1524.85 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.6365 Jy
! Component: 100  -  total flux cleaned = 0.800523 Jy
! Total flux subtracted in 100 components = 0.800523 Jy
! Clean residual min=-0.023387 max=0.069414 Jy/beam
! Clean residual mean=0.000451 rms=0.008062 Jy/beam
! Combined flux in latest and established models = 0.800523 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.800523 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.246122Jy  sigma=0.001800
! Fit after  self-cal, rms=0.245870Jy  sigma=0.001800
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0745584 Jy
! Component: 100  -  total flux cleaned = 0.112374 Jy
! Total flux subtracted in 100 components = 0.112374 Jy
! Clean residual min=-0.015129 max=0.021889 Jy/beam
! Clean residual mean=0.000018 rms=0.004416 Jy/beam
! Combined flux in latest and established models = 0.912898 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 13 components and 0.912898 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224677Jy  sigma=0.001546
! Fit after  self-cal, rms=0.224629Jy  sigma=0.001545
! 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.365 mas, bmaj=6.284 mas, bpa=-5.049 degrees
! Estimated noise=1131.57 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.0210931 Jy
! Component: 100  -  total flux cleaned = 0.0312256 Jy
! Component: 150  -  total flux cleaned = 0.0361455 Jy
! Component: 200  -  total flux cleaned = 0.0371298 Jy
! Total flux subtracted in 200 components = 0.0371298 Jy
! Clean residual min=-0.016695 max=0.018237 Jy/beam
! Clean residual mean=-0.000264 rms=0.004428 Jy/beam
! Combined flux in latest and established models = 0.950028 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 32 components and 0.950028 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223365Jy  sigma=0.001523
! Fit after  self-cal, rms=0.223329Jy  sigma=0.001523
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.93     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.84     KK        1.01     KP        0.92     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        0.98     NL        0.98     
!   OV        0.95     PT        1.00     SC        1.00     TS        1.00*    
!   WF        1.07     WZ        1.00*    
! 
!  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*    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*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 162 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        0.99     KP        0.95     LA        1.04     
!   MA        1.00*    MC        1.00*    MK        0.97     NL        1.06     
!   OV        0.95     PT        1.04     SC        1.00*    TS        0.97     
!   WF        1.16     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*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.07     SC        0.98     TS        1.00*    
!   WF        0.98     WZ        0.98     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.99     KK        1.04     KP        0.76     LA        0.96     
!   MA        1.00*    MC        1.00*    MK        1.01     NL        1.00     
!   OV        0.99     PT        0.98     SC        1.02     TS        1.00*    
!   WF        1.05     WZ        1.00*    
! 
!  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*    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*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 162 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.02     KP        0.82     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        0.97     NL        1.07     
!   OV        0.97     PT        1.00     SC        1.00*    TS        1.00     
!   WF        1.10     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*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        0.99     SC        1.07     TS        1.00*    
!   WF        0.96     WZ        1.02     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.02     KP        0.98     LA        0.99     
!   MA        1.00*    MC        1.00*    MK        0.96     NL        1.14     
!   OV        1.02     PT        1.06     SC        1.02     TS        1.00*    
!   WF        1.14     WZ        1.00*    
! 
!  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*    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*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 162 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        0.99     KP        0.98     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        0.94     NL        1.09     
!   OV        0.97     PT        1.03     SC        1.00*    TS        1.05     
!   WF        1.12     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*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        0.95     SC        1.05     TS        1.00*    
!   WF        1.20     WZ        1.20     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.98     KK        1.00     KP        0.98     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        1.01     NL        1.05     
!   OV        0.99     PT        1.39     SC        1.05     TS        1.00*    
!   WF        1.03     WZ        1.00*    
! 
!  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*    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*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 72 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        0.99     KP        1.00     LA        1.04     
!   MA        1.00*    MC        1.00*    MK        0.98     NL        1.13     
!   OV        0.98     PT        1.10     SC        1.00*    TS        1.02     
!   WF        1.12     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*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.07     SC        0.96     TS        1.00*    
!   WF        1.01     WZ        1.13     
! 
! 
! Fit before self-cal, rms=0.223329Jy  sigma=0.001523
! Fit after  self-cal, rms=0.195483Jy  sigma=0.001328
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.415 mas, bmaj=7.492 mas, bpa=-6.893 degrees
! Estimated noise=1160.22 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.000442114 Jy
! Component: 100  -  total flux cleaned = 0.000729042 Jy
! Component: 150  -  total flux cleaned = 0.00102014 Jy
! Component: 200  -  total flux cleaned = 0.00109489 Jy
! Total flux subtracted in 200 components = 0.00109489 Jy
! Clean residual min=-0.005513 max=0.006076 Jy/beam
! Clean residual mean=-0.000085 rms=0.001487 Jy/beam
! Combined flux in latest and established models = 0.951123 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 41 components and 0.951123 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.195464Jy  sigma=0.001328
! Fit after  self-cal, rms=0.195749Jy  sigma=0.001327
! 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.195749Jy  sigma=0.001327
! Fit after  self-cal, rms=0.195864Jy  sigma=0.001327
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.416 mas, bmaj=7.491 mas, bpa=-6.897 degrees
! Estimated noise=1160.64 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000347523 Jy
! Component: 100  -  total flux cleaned = 0.000573587 Jy
! Component: 150  -  total flux cleaned = 0.000676607 Jy
! Component: 200  -  total flux cleaned = 0.000708789 Jy
! Total flux subtracted in 200 components = 0.000708789 Jy
! Clean residual min=-0.005529 max=0.006024 Jy/beam
! Clean residual mean=-0.000082 rms=0.001478 Jy/beam
! Combined flux in latest and established models = 0.951831 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 45 components and 0.951831 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.195854Jy  sigma=0.001327
! Fit after  self-cal, rms=0.195853Jy  sigma=0.001327
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 = -8.93035e-06 Jy
! Component: 100  -  total flux cleaned = 5.457e-05 Jy
! Component: 150  -  total flux cleaned = 0.000112892 Jy
! Component: 200  -  total flux cleaned = 0.000141948 Jy
! Total flux subtracted in 200 components = 0.000141948 Jy
! Clean residual min=-0.005538 max=0.005976 Jy/beam
! Clean residual mean=-0.000083 rms=0.001474 Jy/beam
! Combined flux in latest and established models = 0.951973 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 48 components and 0.951973 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.195844Jy  sigma=0.001327
! Fit after  self-cal, rms=0.195845Jy  sigma=0.001327
! 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.195845Jy  sigma=0.001327
! Fit after  self-cal, rms=0.195947Jy  sigma=0.001327
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.416 mas, bmaj=7.489 mas, bpa=-6.897 degrees
! Estimated noise=1161.11 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000384228 Jy
! Component: 100  -  total flux cleaned = 0.00041651 Jy
! Component: 150  -  total flux cleaned = 0.000445034 Jy
! Component: 200  -  total flux cleaned = 0.000499601 Jy
! Total flux subtracted in 200 components = 0.000499601 Jy
! Clean residual min=-0.005528 max=0.005924 Jy/beam
! Clean residual mean=-0.000081 rms=0.001470 Jy/beam
! Combined flux in latest and established models = 0.952473 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 48 components and 0.952473 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.195939Jy  sigma=0.001327
! Fit after  self-cal, rms=0.195940Jy  sigma=0.001327
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.87684e-05 Jy
! Component: 100  -  total flux cleaned = 1.60898e-05 Jy
! Component: 150  -  total flux cleaned = 4.26756e-05 Jy
! Component: 200  -  total flux cleaned = 6.69086e-05 Jy
! Total flux subtracted in 200 components = 6.69086e-05 Jy
! Clean residual min=-0.005530 max=0.005887 Jy/beam
! Clean residual mean=-0.000081 rms=0.001466 Jy/beam
! Combined flux in latest and established models = 0.95254 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 49 components and 0.95254 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.195933Jy  sigma=0.001327
! Fit after  self-cal, rms=0.195934Jy  sigma=0.001327
! 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.195934Jy  sigma=0.001327
! Fit after  self-cal, rms=0.196029Jy  sigma=0.001327
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.261 mas, bmaj=11.92 mas, bpa=-7.027 degrees
! Estimated noise=1661.9 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00183431 Jy
! Component: 100  -  total flux cleaned = 0.00203313 Jy
! Component: 150  -  total flux cleaned = 0.00214205 Jy
! Component: 200  -  total flux cleaned = 0.00223363 Jy
! Total flux subtracted in 200 components = 0.00223363 Jy
! Clean residual min=-0.005608 max=0.005692 Jy/beam
! Clean residual mean=-0.000263 rms=0.002065 Jy/beam
! Combined flux in latest and established models = 0.954773 Jy
selfcal
! Performing phase self-cal
! Adding 3 model components to the UV plane model.
! The established model now contains 50 components and 0.954773 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.196039Jy  sigma=0.001327
! Fit after  self-cal, rms=0.196010Jy  sigma=0.001327
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 = -2.68722e-06 Jy
! Component: 100  -  total flux cleaned = 5.18558e-05 Jy
! Component: 150  -  total flux cleaned = 0.000146122 Jy
! Component: 200  -  total flux cleaned = 0.000187606 Jy
! Total flux subtracted in 200 components = 0.000187606 Jy
! Clean residual min=-0.005565 max=0.005665 Jy/beam
! Clean residual mean=-0.000266 rms=0.002054 Jy/beam
! Combined flux in latest and established models = 0.954961 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 51 components and 0.954961 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.196030Jy  sigma=0.001327
! Fit after  self-cal, rms=0.196005Jy  sigma=0.001327
! 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.416 mas, bmaj=7.488 mas, bpa=-6.895 degrees
! Estimated noise=1161.58 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.416 x 7.488 at -6.895 degrees (North through East)
! Clean map  min=-0.0051868  max=0.84801 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.196005Jy  sigma=0.001327
! Fit after  self-cal, rms=0.187792Jy  sigma=0.001223
! Inverting map and beam 
! Estimated beam: bmin=2.416 mas, bmaj=7.487 mas, bpa=-6.885 degrees
! Estimated noise=1161.76 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000783971 Jy
! Component: 100  -  total flux cleaned = -0.000849221 Jy
! Component: 150  -  total flux cleaned = -0.000875319 Jy
! Component: 200  -  total flux cleaned = -0.000920684 Jy
! Total flux subtracted in 200 components = -0.000920684 Jy
! Clean residual min=-0.005454 max=0.005693 Jy/beam
! Clean residual mean=-0.000014 rms=0.001442 Jy/beam
! Combined flux in latest and established models = 0.95404 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 57 components and 0.95404 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.187783Jy  sigma=0.001222
! Fit after  self-cal, rms=0.187784Jy  sigma=0.001222
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.89371e-07 Jy
! Component: 100  -  total flux cleaned = -2.28346e-05 Jy
! Component: 150  -  total flux cleaned = -8.32445e-05 Jy
! Component: 200  -  total flux cleaned = -0.000119201 Jy
! Total flux subtracted in 200 components = -0.000119201 Jy
! Clean residual min=-0.005448 max=0.005571 Jy/beam
! Clean residual mean=-0.000013 rms=0.001441 Jy/beam
! Combined flux in latest and established models = 0.953921 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 58 components and 0.953921 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.187777Jy  sigma=0.001222
! Fit after  self-cal, rms=0.187778Jy  sigma=0.001222
! 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.187778Jy  sigma=0.001222
! Fit after  self-cal, rms=0.187771Jy  sigma=0.001222
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.025 mas, bmaj=6.794 mas, bpa=-6.576 degrees
! Estimated noise=1567.77 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.644949 Jy
! Component: 100  -  total flux cleaned = 0.808334 Jy
! Component: 150  -  total flux cleaned = 0.879161 Jy
! Component: 200  -  total flux cleaned = 0.913859 Jy
! Total flux subtracted in 200 components = 0.913859 Jy
! Clean residual min=-0.007847 max=0.016022 Jy/beam
! Clean residual mean=0.000171 rms=0.002360 Jy/beam
! Combined flux in latest and established models = 0.913859 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 16 model components to the UV plane model.
! The established model now contains 16 components and 0.913859 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.416 mas, bmaj=7.486 mas, bpa=-6.876 degrees
! Estimated noise=1161.6 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.0202121 Jy
! Component: 100  -  total flux cleaned = 0.0293872 Jy
! Component: 150  -  total flux cleaned = 0.0342629 Jy
! Component: 200  -  total flux cleaned = 0.0371493 Jy
! Total flux subtracted in 200 components = 0.0371493 Jy
! Clean residual min=-0.005380 max=0.006025 Jy/beam
! Clean residual mean=0.000005 rms=0.001464 Jy/beam
! Combined flux in latest and established models = 0.951008 Jy
! Adding 21 model components to the UV plane model.
! The established model now contains 30 components and 0.951009 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.26 mas, bmaj=11.91 mas, bpa=-7.027 degrees
! Estimated noise=1662.46 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0039553 Jy
! Component: 100  -  total flux cleaned = 0.00460553 Jy
! Component: 150  -  total flux cleaned = 0.00476177 Jy
! Component: 200  -  total flux cleaned = 0.00489471 Jy
! Total flux subtracted in 200 components = 0.00489471 Jy
! Clean residual min=-0.005420 max=0.005612 Jy/beam
! Clean residual mean=-0.000085 rms=0.002041 Jy/beam
! Combined flux in latest and established models = 0.955903 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 = 3.69277e-05 Jy
! Component: 100  -  total flux cleaned = 7.00754e-05 Jy
! Component: 150  -  total flux cleaned = 0.000100109 Jy
! Component: 200  -  total flux cleaned = 0.000126663 Jy
! Total flux subtracted in 200 components = 0.000126663 Jy
! Clean residual min=-0.005342 max=0.005382 Jy/beam
! Clean residual mean=-0.000087 rms=0.002011 Jy/beam
! Combined flux in latest and established models = 0.95603 Jy
! Adding 15 model components to the UV plane model.
! The established model now contains 41 components and 0.95603 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.416 mas, bmaj=7.486 mas, bpa=-6.876 degrees
! Estimated noise=1161.6 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000749656 Jy
! Component: 100  -  total flux cleaned = -0.000830512 Jy
! Component: 150  -  total flux cleaned = -0.000885942 Jy
! Component: 200  -  total flux cleaned = -0.000934326 Jy
! Total flux subtracted in 200 components = -0.000934326 Jy
! Clean residual min=-0.005387 max=0.005927 Jy/beam
! Clean residual mean=-0.000023 rms=0.001437 Jy/beam
! Combined flux in latest and established models = 0.955096 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 51 components and 0.955096 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.187800Jy  sigma=0.001222
! Fit after  self-cal, rms=0.187804Jy  sigma=0.001222
wmodel J0121+0422_S_2001_10_29_pus_map.mod
! Writing 51 model components to file: J0121+0422_S_2001_10_29_pus_map.mod
wobs J0121+0422_S_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J0121+0422_S_2001_10_29_pus_uvs.fits
wwins J0121+0422_S_2001_10_29_pus_map.win
! wwins: Wrote 1 windows to J0121+0422_S_2001_10_29_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.00105756 Jy
! Component: 100  -  total flux cleaned = 0.00142506 Jy
! Component: 150  -  total flux cleaned = 0.00142147 Jy
! Component: 200  -  total flux cleaned = 0.00149875 Jy
! Component: 250  -  total flux cleaned = 0.00127815 Jy
! Component: 300  -  total flux cleaned = 0.00120602 Jy
! Component: 350  -  total flux cleaned = 0.000997013 Jy
! Component: 400  -  total flux cleaned = 0.00066185 Jy
! Component: 450  -  total flux cleaned = 0.000333878 Jy
! Component: 500  -  total flux cleaned = 0.000205812 Jy
! Component: 550  -  total flux cleaned = -4.50469e-05 Jy
! Component: 600  -  total flux cleaned = -0.000229027 Jy
! Component: 650  -  total flux cleaned = -0.000470901 Jy
! Component: 700  -  total flux cleaned = -0.000648757 Jy
! Component: 750  -  total flux cleaned = -0.000823755 Jy
! Component: 800  -  total flux cleaned = -0.000939884 Jy
! Component: 850  -  total flux cleaned = -0.00116644 Jy
! Component: 900  -  total flux cleaned = -0.00144383 Jy
! Component: 950  -  total flux cleaned = -0.00149787 Jy
! Component: 1000  -  total flux cleaned = -0.00160523 Jy
! Component: 1050  -  total flux cleaned = -0.00160516 Jy
! Component: 1100  -  total flux cleaned = -0.00171074 Jy
! Component: 1150  -  total flux cleaned = -0.00171109 Jy
! Component: 1200  -  total flux cleaned = -0.00181406 Jy
! Component: 1250  -  total flux cleaned = -0.00186505 Jy
! Component: 1300  -  total flux cleaned = -0.00191565 Jy
! Component: 1350  -  total flux cleaned = -0.00226052 Jy
! Component: 1400  -  total flux cleaned = -0.00221124 Jy
! Component: 1450  -  total flux cleaned = -0.00230885 Jy
! Component: 1500  -  total flux cleaned = -0.0024522 Jy
! Component: 1550  -  total flux cleaned = -0.00259416 Jy
! Component: 1600  -  total flux cleaned = -0.00273383 Jy
! Component: 1650  -  total flux cleaned = -0.00273403 Jy
! Component: 1700  -  total flux cleaned = -0.00282626 Jy
! Component: 1750  -  total flux cleaned = -0.00296235 Jy
! Component: 1800  -  total flux cleaned = -0.00323037 Jy
! Component: 1850  -  total flux cleaned = -0.00318591 Jy
! Component: 1900  -  total flux cleaned = -0.00331723 Jy
! Component: 1950  -  total flux cleaned = -0.00344715 Jy
! Component: 2000  -  total flux cleaned = -0.0034904 Jy
! Total flux subtracted in 2048 components = -0.00370262 Jy
! Clean residual min=-0.002627 max=0.003191 Jy/beam
! Clean residual mean=-0.000025 rms=0.000866 Jy/beam
! Combined flux in latest and established models = 0.951393 Jy
keep
! Adding 150 model components to the UV plane model.
! The established model now contains 201 components and 0.951393 Jy
![Exited script file: muppet]
wmap "J0121+0422_S_2001_10_29_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.416 x 7.486 at -6.876 degrees (North through East)
! Clean map  min=-0.0045353  max=0.8483 Jy/beam
! Writing clean map to FITS file: J0121+0422_S_2001_10_29_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.848297 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000861259 
device "J0121+0422_S_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J0121+0422_S_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.304584 0.304584 0.609168 1.21834 2.43667 4.87334 9.74669 19.4934 38.9867 77.9735
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0025 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.848 
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.416 x 7.486 at -6.876 degrees (North through East)
! Clean map  min=-0.0045353  max=0.8483 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0121+0422_S_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J0121+0422_S_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0121+0422_S_2001_10_29_pus_uvs.log closed on Wed Feb 27 15:10:54 2008