! Started logfile: J1407+2827_S_1999_05_10_pus_uvs.log on Mon Jan 21 17:40:55 2008
obs J1407+2827_S_1999_05_10_pus_uva.fits
! Reading UV FITS file: J1407+2827_S_1999_05_10_pus_uva.fits
! AN table 1: 104 integrations on 153 of 153 possible baselines.
! AN table 2: 155 integrations on 153 of 153 possible baselines.
! AN table 3: 52 integrations on 153 of 153 possible baselines.
! AN table 4: 233 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.146338 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1407+2827
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1998 lines of history.
! 
! Reading 48720 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 J1407+2827_S_1999_05_10_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 1542 telescope corrections were flagged in sub-array 1.
!  A total of 1686 telescope corrections were flagged in sub-array 2.
!  A total of 737 telescope corrections were flagged in sub-array 3.
!  A total of 2782 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1542 telescope corrections were flagged in sub-array 1.
!  A total of 1686 telescope corrections were flagged in sub-array 2.
!  A total of 737 telescope corrections were flagged in sub-array 3.
!  A total of 2783 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1542 telescope corrections were flagged in sub-array 1.
!  A total of 1686 telescope corrections were flagged in sub-array 2.
!  A total of 737 telescope corrections were flagged in sub-array 3.
!  A total of 2779 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1628 telescope corrections were flagged in sub-array 1.
!  A total of 1744 telescope corrections were flagged in sub-array 2.
!  A total of 737 telescope corrections were flagged in sub-array 3.
!  A total of 2845 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.025191Jy  sigma=0.006050
! Fit after  self-cal, rms=0.603042Jy  sigma=0.003351
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.171 mas, bmaj=3.173 mas, bpa=-13.04 degrees
! Estimated noise=768.604 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.740695 Jy
! Component: 100  -  total flux cleaned = 1.01198 Jy
! Total flux subtracted in 100 components = 1.01198 Jy
! Clean residual min=-0.027513 max=0.137126 Jy/beam
! Clean residual mean=-0.000060 rms=0.009685 Jy/beam
! Combined flux in latest and established models = 1.01198 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 16 components and 1.01198 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.557116Jy  sigma=0.003142
! Fit after  self-cal, rms=0.556168Jy  sigma=0.003140
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.165184 Jy
! Component: 100  -  total flux cleaned = 0.270022 Jy
! Total flux subtracted in 100 components = 0.270022 Jy
! Clean residual min=-0.018245 max=0.055489 Jy/beam
! Clean residual mean=-0.000059 rms=0.005923 Jy/beam
! Combined flux in latest and established models = 1.282 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 28 components and 1.282 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.496075Jy  sigma=0.002073
! Fit after  self-cal, rms=0.495497Jy  sigma=0.002071
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0700703 Jy
! Component: 100  -  total flux cleaned = 0.11804 Jy
! Total flux subtracted in 100 components = 0.11804 Jy
! Clean residual min=-0.016593 max=0.045231 Jy/beam
! Clean residual mean=-0.000059 rms=0.004903 Jy/beam
! Combined flux in latest and established models = 1.40004 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 36 components and 1.40004 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.484787Jy  sigma=0.001794
! Fit after  self-cal, rms=0.484618Jy  sigma=0.001794
! Inverting map 
! Added new window around map position (-5.5, -3.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0429546 Jy
! Component: 100  -  total flux cleaned = 0.0688824 Jy
! Total flux subtracted in 100 components = 0.0688824 Jy
! Clean residual min=-0.017373 max=0.025325 Jy/beam
! Clean residual mean=-0.000062 rms=0.004466 Jy/beam
! Combined flux in latest and established models = 1.46893 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 46 components and 1.46893 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.481583Jy  sigma=0.001702
! Fit after  self-cal, rms=0.481362Jy  sigma=0.001698
! Inverting map 
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
win_mult = win_mult * 1.6
clean_niter = clean_niter * 2
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.665 mas, bmaj=3.595 mas, bpa=-7.062 degrees
! Estimated noise=460.793 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.0287862 Jy
! Component: 100  -  total flux cleaned = 0.0430904 Jy
! Component: 150  -  total flux cleaned = 0.0467346 Jy
! Component: 200  -  total flux cleaned = 0.0504199 Jy
! Total flux subtracted in 200 components = 0.0504199 Jy
! Clean residual min=-0.013135 max=0.012286 Jy/beam
! Clean residual mean=-0.000310 rms=0.003048 Jy/beam
! Combined flux in latest and established models = 1.51935 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 52 components and 1.51935 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.479698Jy  sigma=0.001658
! Fit after  self-cal, rms=0.479499Jy  sigma=0.001657
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.16     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.02     MK        1.00*    NL        1.00*    NY        0.94     
!   ON        0.99     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        0.98     
! 
!  A total of 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.99     GC        1.04     HH        1.00*    
!   HN        1.00     KK        1.01     KP        1.02     LA        1.00     
!   MC        1.53     MK        0.97     NL        0.99     NY        0.97     
!   ON        1.06     OV        1.03     PT        1.01     SC        1.05     
!   WF        0.99     WZ        1.05     
! 
!  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.79     HH        1.94     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.95     MK        1.00*    NL        1.00*    NY        0.97     
!   ON        1.00     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.01     GC        1.01     HH        1.39     
!   HN        1.02     KK        1.01     KP        1.08     LA        1.01     
!   MC        1.14     MK        0.94     NL        0.99     NY        0.99     
!   ON        1.08     OV        1.03     PT        1.01     SC        1.10     
!   WF        1.06     WZ        0.98     
! 
! 
! Correcting IF 2.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.16     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        2.02     MK        1.00*    NL        1.00*    NY        0.94     
!   ON        1.14     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        0.95     
! 
!  A total of 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.02     GC        1.02     HH        1.00*    
!   HN        0.99     KK        0.99     KP        1.01     LA        0.97     
!   MC        1.45     MK        1.04     NL        0.99     NY        0.96     
!   ON        1.08     OV        0.98     PT        1.00     SC        1.06     
!   WF        0.97     WZ        1.03     
! 
!  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.79     HH        1.85     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.93     MK        1.00*    NL        1.00*    NY        0.94     
!   ON        1.02     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.04     GC        0.99     HH        1.35     
!   HN        1.02     KK        0.98     KP        1.02     LA        0.97     
!   MC        0.95     MK        1.02     NL        1.00     NY        0.97     
!   ON        1.07     OV        0.99     PT        0.99     SC        1.12     
!   WF        1.05     WZ        0.99     
! 
! 
! Correcting IF 3.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.76     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.22     MK        1.00*    NL        1.00*    NY        0.95     
!   ON        0.98     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00     
! 
!  A total of 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.98     GC        1.01     HH        1.00*    
!   HN        0.98     KK        0.96     KP        0.96     LA        0.97     
!   MC        1.34     MK        0.92     NL        0.99     NY        0.99     
!   ON        1.04     OV        0.96     PT        0.94     SC        1.04     
!   WF        0.96     WZ        1.56     
! 
!  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.60     HH        1.72     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.81     MK        1.00*    NL        1.00*    NY        0.98     
!   ON        1.04     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        0.99     GC        0.98     HH        1.44     
!   HN        1.00     KK        0.95     KP        0.96     LA        0.97     
!   MC        1.52     MK        0.95     NL        1.00     NY        1.02     
!   ON        1.05     OV        0.96     PT        0.94     SC        1.12     
!   WF        1.03     WZ        0.91     
! 
! 
! Correcting IF 4.
!  A total of 84 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.18     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.82     MK        1.00*    NL        1.00*    NY        1.07     
!   ON        0.98     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 60 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.93     FD        0.97     GC        1.01     HH        1.00*    
!   HN        0.97     KK        0.96     KP        0.99     LA        0.96     
!   MC        1.55     MK        0.92     NL        1.00     NY        0.99     
!   ON        1.00     OV        0.92     PT        1.01     SC        1.02     
!   WF        0.95     WZ        1.00*    
! 
!  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.58     HH        2.14     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.69     MK        1.00*    NL        1.00*    NY        1.06     
!   ON        0.99     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 54 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        0.97     GC        0.98     HH        1.42     
!   HN        0.98     KK        0.95     KP        0.98     LA        0.97     
!   MC        1.07     MK        0.97     NL        1.00     NY        1.03     
!   ON        1.10     OV        0.92     PT        0.99     SC        1.13     
!   WF        1.04     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.479499Jy  sigma=0.001657
! Fit after  self-cal, rms=0.497020Jy  sigma=0.001466
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.752 mas, bmaj=3.748 mas, bpa=-5.209 degrees
! Estimated noise=470.314 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.0014381 Jy
! Component: 100  -  total flux cleaned = -0.00144598 Jy
! Component: 150  -  total flux cleaned = -0.00201303 Jy
! Component: 200  -  total flux cleaned = -0.00252923 Jy
! Total flux subtracted in 200 components = -0.00252923 Jy
! Clean residual min=-0.008413 max=0.007436 Jy/beam
! Clean residual mean=-0.000103 rms=0.001732 Jy/beam
! Combined flux in latest and established models = 1.51682 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 63 components and 1.51682 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.496574Jy  sigma=0.001461
! Fit after  self-cal, rms=0.497451Jy  sigma=0.001460
! 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.497451Jy  sigma=0.001460
! Fit after  self-cal, rms=0.621798Jy  sigma=0.001371
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.769 mas, bmaj=3.76 mas, bpa=-4.764 degrees
! Estimated noise=473.285 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00109098 Jy
! Component: 100  -  total flux cleaned = 0.00034398 Jy
! Component: 150  -  total flux cleaned = 0.000118948 Jy
! Component: 200  -  total flux cleaned = -0.000287656 Jy
! Total flux subtracted in 200 components = -0.000287656 Jy
! Clean residual min=-0.004958 max=0.004622 Jy/beam
! Clean residual mean=-0.000013 rms=0.001056 Jy/beam
! Combined flux in latest and established models = 1.51653 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 70 components and 1.51653 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.621562Jy  sigma=0.001368
! Fit after  self-cal, rms=0.622245Jy  sigma=0.001367
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.000205162 Jy
! Component: 100  -  total flux cleaned = -0.000557795 Jy
! Component: 150  -  total flux cleaned = -0.000720987 Jy
! Component: 200  -  total flux cleaned = -0.000868684 Jy
! Total flux subtracted in 200 components = -0.000868684 Jy
! Clean residual min=-0.004411 max=0.004573 Jy/beam
! Clean residual mean=-0.000008 rms=0.001030 Jy/beam
! Combined flux in latest and established models = 1.51566 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 71 components and 1.51566 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.622126Jy  sigma=0.001366
! Fit after  self-cal, rms=0.622179Jy  sigma=0.001366
! Inverting map 
! Added new window around map position (-34, -6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00304504 Jy
! Component: 100  -  total flux cleaned = 0.00362758 Jy
! Component: 150  -  total flux cleaned = 0.00402435 Jy
! Component: 200  -  total flux cleaned = 0.00427317 Jy
! Total flux subtracted in 200 components = 0.00427317 Jy
! Clean residual min=-0.004084 max=0.003702 Jy/beam
! Clean residual mean=-0.000038 rms=0.000992 Jy/beam
! Combined flux in latest and established models = 1.51993 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 78 components and 1.51993 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.622075Jy  sigma=0.001365
! Fit after  self-cal, rms=0.622113Jy  sigma=0.001365
! 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.622113Jy  sigma=0.001365
! Fit after  self-cal, rms=0.656094Jy  sigma=0.001355
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.754 mas, bmaj=3.759 mas, bpa=-4.682 degrees
! Estimated noise=472.921 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00178032 Jy
! Component: 100  -  total flux cleaned = 0.0022063 Jy
! Component: 150  -  total flux cleaned = 0.00259101 Jy
! Component: 200  -  total flux cleaned = 0.00294991 Jy
! Total flux subtracted in 200 components = 0.00294991 Jy
! Clean residual min=-0.005292 max=0.003469 Jy/beam
! Clean residual mean=-0.000011 rms=0.000860 Jy/beam
! Combined flux in latest and established models = 1.52288 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 86 components and 1.52288 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.655997Jy  sigma=0.001354
! Fit after  self-cal, rms=0.656088Jy  sigma=0.001354
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 = -6.24208e-05 Jy
! Component: 100  -  total flux cleaned = 0.000269662 Jy
! Component: 150  -  total flux cleaned = 0.000692261 Jy
! Component: 200  -  total flux cleaned = 0.000896533 Jy
! Total flux subtracted in 200 components = 0.000896533 Jy
! Clean residual min=-0.005012 max=0.003400 Jy/beam
! Clean residual mean=-0.000018 rms=0.000845 Jy/beam
! Combined flux in latest and established models = 1.52378 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 92 components and 1.52378 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.656030Jy  sigma=0.001353
! Fit after  self-cal, rms=0.656055Jy  sigma=0.001353
! 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.656055Jy  sigma=0.001353
! Fit after  self-cal, rms=0.659071Jy  sigma=0.001353
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.877 mas, bmaj=8.696 mas, bpa=-4.878 degrees
! Estimated noise=618.183 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0029859 Jy
! Component: 100  -  total flux cleaned = 0.00407915 Jy
! Component: 150  -  total flux cleaned = 0.00451457 Jy
! Component: 200  -  total flux cleaned = 0.00475593 Jy
! Total flux subtracted in 200 components = 0.00475593 Jy
! Clean residual min=-0.002626 max=0.002866 Jy/beam
! Clean residual mean=-0.000062 rms=0.000836 Jy/beam
! Combined flux in latest and established models = 1.52854 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 104 components and 1.52854 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.659060Jy  sigma=0.001353
! Fit after  self-cal, rms=0.659057Jy  sigma=0.001353
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.000577989 Jy
! Component: 100  -  total flux cleaned = 0.000806711 Jy
! Component: 150  -  total flux cleaned = 0.000919346 Jy
! Component: 200  -  total flux cleaned = 0.000994294 Jy
! Total flux subtracted in 200 components = 0.000994294 Jy
! Clean residual min=-0.002678 max=0.002839 Jy/beam
! Clean residual mean=-0.000083 rms=0.000825 Jy/beam
! Combined flux in latest and established models = 1.52953 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 107 components and 1.52953 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.659057Jy  sigma=0.001353
! Fit after  self-cal, rms=0.659051Jy  sigma=0.001353
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Estimated beam: bmin=2.753 mas, bmaj=3.75 mas, bpa=-4.48 degrees
! Estimated noise=472.904 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.753 x 3.75 at -4.48 degrees (North through East)
! Clean map  min=-0.0034009  max=1.0608 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.659051Jy  sigma=0.001353
! Fit after  self-cal, rms=1.440540Jy  sigma=0.001222
! Inverting map and beam 
! Estimated beam: bmin=2.753 mas, bmaj=3.75 mas, bpa=-4.497 degrees
! Estimated noise=472.827 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00169047 Jy
! Component: 100  -  total flux cleaned = 0.00156649 Jy
! Component: 150  -  total flux cleaned = 0.00135102 Jy
! Component: 200  -  total flux cleaned = 0.00125074 Jy
! Total flux subtracted in 200 components = 0.00125074 Jy
! Clean residual min=-0.004767 max=0.003228 Jy/beam
! Clean residual mean=-0.000013 rms=0.000797 Jy/beam
! Combined flux in latest and established models = 1.53078 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 108 components and 1.53078 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.440498Jy  sigma=0.001221
! Fit after  self-cal, rms=1.440530Jy  sigma=0.001221
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000250401 Jy
! Component: 100  -  total flux cleaned = -0.000441344 Jy
! Component: 150  -  total flux cleaned = -0.000532364 Jy
! Component: 200  -  total flux cleaned = -0.000534754 Jy
! Total flux subtracted in 200 components = -0.000534754 Jy
! Clean residual min=-0.004552 max=0.003176 Jy/beam
! Clean residual mean=-0.000010 rms=0.000788 Jy/beam
! Combined flux in latest and established models = 1.53025 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 109 components and 1.53025 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.440506Jy  sigma=0.001221
! Fit after  self-cal, rms=1.440527Jy  sigma=0.001221
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.440527Jy  sigma=0.001221
! Fit after  self-cal, rms=1.449247Jy  sigma=0.001221
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.277 mas, bmaj=3.25 mas, bpa=-9.757 degrees
! Estimated noise=801.719 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.777447 Jy
! Component: 100  -  total flux cleaned = 1.03881 Jy
! Component: 150  -  total flux cleaned = 1.19292 Jy
! Component: 200  -  total flux cleaned = 1.29004 Jy
! Total flux subtracted in 200 components = 1.29004 Jy
! Clean residual min=-0.012374 max=0.050984 Jy/beam
! Clean residual mean=-0.000004 rms=0.004079 Jy/beam
! Combined flux in latest and established models = 1.29004 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 24 model components to the UV plane model.
! The established model now contains 24 components and 1.29004 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.752 mas, bmaj=3.74 mas, bpa=-4.283 degrees
! Estimated noise=472.667 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.088731 Jy
! Component: 100  -  total flux cleaned = 0.141654 Jy
! Component: 150  -  total flux cleaned = 0.174816 Jy
! Component: 200  -  total flux cleaned = 0.196246 Jy
! Total flux subtracted in 200 components = 0.196246 Jy
! Clean residual min=-0.010215 max=0.012168 Jy/beam
! Clean residual mean=0.000304 rms=0.001497 Jy/beam
! Combined flux in latest and established models = 1.48628 Jy
! Adding 34 model components to the UV plane model.
! The established model now contains 52 components and 1.48628 Jy
! Inverting map 
! Added new window around map position (0, -3.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00704551 Jy
! Component: 100  -  total flux cleaned = 0.0119404 Jy
! Component: 150  -  total flux cleaned = 0.0153195 Jy
! Component: 200  -  total flux cleaned = 0.0183472 Jy
! Total flux subtracted in 200 components = 0.0183472 Jy
! Clean residual min=-0.006622 max=0.006846 Jy/beam
! Clean residual mean=0.000180 rms=0.001147 Jy/beam
! Combined flux in latest and established models = 1.50463 Jy
! Adding 19 model components to the UV plane model.
! The established model now contains 58 components and 1.50463 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00310306 Jy
! Component: 100  -  total flux cleaned = 0.00587256 Jy
! Component: 150  -  total flux cleaned = 0.00747518 Jy
! Component: 200  -  total flux cleaned = 0.00896078 Jy
! Total flux subtracted in 200 components = 0.00896078 Jy
! Clean residual min=-0.004776 max=0.005025 Jy/beam
! Clean residual mean=0.000118 rms=0.001019 Jy/beam
! Combined flux in latest and established models = 1.51359 Jy
! Adding 15 model components to the UV plane model.
! The established model now contains 62 components and 1.51359 Jy
! Inverting map 
! Added new window around map position (-28.5, -8.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00168343 Jy
! Component: 100  -  total flux cleaned = 0.00322754 Jy
! Component: 150  -  total flux cleaned = 0.00443482 Jy
! Component: 200  -  total flux cleaned = 0.00558096 Jy
! Total flux subtracted in 200 components = 0.00558096 Jy
! Clean residual min=-0.004350 max=0.004453 Jy/beam
! Clean residual mean=0.000080 rms=0.000944 Jy/beam
! Combined flux in latest and established models = 1.51917 Jy
! Adding 21 model components to the UV plane model.
! The established model now contains 69 components and 1.51917 Jy
! Inverting map 
! Added new window around map position (14.5, 5.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00162246 Jy
! Component: 100  -  total flux cleaned = 0.00245853 Jy
! Component: 150  -  total flux cleaned = 0.00346276 Jy
! Component: 200  -  total flux cleaned = 0.00384603 Jy
! Total flux subtracted in 200 components = 0.00384603 Jy
! Clean residual min=-0.004382 max=0.004176 Jy/beam
! Clean residual mean=0.000053 rms=0.000899 Jy/beam
! Combined flux in latest and established models = 1.52302 Jy
! Adding 18 model components to the UV plane model.
! The established model now contains 74 components and 1.52302 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.695 mas, bpa=-4.836 degrees
! Estimated noise=618.543 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00492047 Jy
! Component: 100  -  total flux cleaned = 0.0078048 Jy
! Component: 150  -  total flux cleaned = 0.00896823 Jy
! Component: 200  -  total flux cleaned = 0.0094903 Jy
! Total flux subtracted in 200 components = 0.0094903 Jy
! Clean residual min=-0.002764 max=0.003249 Jy/beam
! Clean residual mean=-0.000038 rms=0.000836 Jy/beam
! Combined flux in latest and established models = 1.53251 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.000322343 Jy
! Component: 100  -  total flux cleaned = 0.000596105 Jy
! Component: 150  -  total flux cleaned = 0.000715362 Jy
! Component: 200  -  total flux cleaned = 0.000820122 Jy
! Total flux subtracted in 200 components = 0.000820122 Jy
! Clean residual min=-0.002739 max=0.003017 Jy/beam
! Clean residual mean=-0.000055 rms=0.000811 Jy/beam
! Combined flux in latest and established models = 1.53333 Jy
! Adding 43 model components to the UV plane model.
! The established model now contains 115 components and 1.53333 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.752 mas, bmaj=3.74 mas, bpa=-4.283 degrees
! Estimated noise=472.667 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000437429 Jy
! Component: 100  -  total flux cleaned = -0.000259721 Jy
! Component: 150  -  total flux cleaned = -0.000256336 Jy
! Component: 200  -  total flux cleaned = -0.000249696 Jy
! Total flux subtracted in 200 components = -0.000249696 Jy
! Clean residual min=-0.004116 max=0.003538 Jy/beam
! Clean residual mean=-0.000017 rms=0.000830 Jy/beam
! Combined flux in latest and established models = 1.53308 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 120 components and 1.53308 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.449728Jy  sigma=0.001224
! Fit after  self-cal, rms=1.450215Jy  sigma=0.001224
wmodel J1407+2827_S_1999_05_10_pus_map.mod
! Writing 120 model components to file: J1407+2827_S_1999_05_10_pus_map.mod
wobs J1407+2827_S_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J1407+2827_S_1999_05_10_pus_uvs.fits
wwins J1407+2827_S_1999_05_10_pus_map.win
! wwins: Wrote 6 windows to J1407+2827_S_1999_05_10_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000833566 Jy
! Component: 100  -  total flux cleaned = -0.000773124 Jy
! Component: 150  -  total flux cleaned = -0.000426643 Jy
! Component: 200  -  total flux cleaned = -0.000257533 Jy
! Component: 250  -  total flux cleaned = -0.00031186 Jy
! Component: 300  -  total flux cleaned = -0.000311261 Jy
! Component: 350  -  total flux cleaned = -0.000258115 Jy
! Component: 400  -  total flux cleaned = -0.000258458 Jy
! Component: 450  -  total flux cleaned = -0.000206898 Jy
! Component: 500  -  total flux cleaned = -0.000258702 Jy
! Component: 550  -  total flux cleaned = -0.000155514 Jy
! Component: 600  -  total flux cleaned = -5.34754e-05 Jy
! Component: 650  -  total flux cleaned = 9.78408e-05 Jy
! Component: 700  -  total flux cleaned = 0.000147494 Jy
! Component: 750  -  total flux cleaned = 9.82928e-05 Jy
! Component: 800  -  total flux cleaned = 0.000246022 Jy
! Component: 850  -  total flux cleaned = 0.000343958 Jy
! Component: 900  -  total flux cleaned = 0.000392391 Jy
! Component: 950  -  total flux cleaned = 0.00034447 Jy
! Component: 1000  -  total flux cleaned = 0.000488507 Jy
! Component: 1050  -  total flux cleaned = 0.000536069 Jy
! Component: 1100  -  total flux cleaned = 0.000488664 Jy
! Component: 1150  -  total flux cleaned = 0.00062986 Jy
! Component: 1200  -  total flux cleaned = 0.000630035 Jy
! Component: 1250  -  total flux cleaned = 0.000630098 Jy
! Component: 1300  -  total flux cleaned = 0.00067664 Jy
! Component: 1350  -  total flux cleaned = 0.000676746 Jy
! Component: 1400  -  total flux cleaned = 0.000768245 Jy
! Component: 1450  -  total flux cleaned = 0.000768489 Jy
! Component: 1500  -  total flux cleaned = 0.000858919 Jy
! Component: 1550  -  total flux cleaned = 0.000948904 Jy
! Component: 1600  -  total flux cleaned = 0.00094897 Jy
! Component: 1650  -  total flux cleaned = 0.00108216 Jy
! Component: 1700  -  total flux cleaned = 0.00112642 Jy
! Component: 1750  -  total flux cleaned = 0.00108252 Jy
! Component: 1800  -  total flux cleaned = 0.00108247 Jy
! Component: 1850  -  total flux cleaned = 0.00116946 Jy
! Component: 1900  -  total flux cleaned = 0.00116934 Jy
! Component: 1950  -  total flux cleaned = 0.00116921 Jy
! Component: 2000  -  total flux cleaned = 0.00121208 Jy
! Total flux subtracted in 2048 components = 0.00116948 Jy
! Clean residual min=-0.002130 max=0.002496 Jy/beam
! Clean residual mean=-0.000025 rms=0.000728 Jy/beam
! Combined flux in latest and established models = 1.53425 Jy
keep
! Adding 115 model components to the UV plane model.
! The established model now contains 224 components and 1.53425 Jy
![Exited script file: muppet]
wmap "J1407+2827_S_1999_05_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.752 x 3.74 at -4.283 degrees (North through East)
! Clean map  min=-0.0027346  max=1.0605 Jy/beam
! Writing clean map to FITS file: J1407+2827_S_1999_05_10_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.06049 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000727969 
device "J1407+2827_S_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J1407+2827_S_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.205934 0.205934 0.411868 0.823737 1.64747 3.29495 6.58989 13.1798 26.3596 52.7192
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0021 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.06 
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.752 x 3.74 at -4.283 degrees (North through East)
! Clean map  min=-0.0027346  max=1.0605 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1407+2827_S_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J1407+2827_S_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1407+2827_S_1999_05_10_pus_uvs.log closed on Mon Jan 21 17:41:18 2008