! Started logfile: J1130+3815_S_2001_10_29_pus_uvs.log on Wed Feb 27 15:20:26 2008
obs J1130+3815_S_2001_10_29_pus_uva.fits
! Reading UV FITS file: J1130+3815_S_2001_10_29_pus_uva.fits
! AN table 1: 621 integrations on 153 of 153 possible baselines.
! AN table 2: 98 integrations on 153 of 153 possible baselines.
! AN table 3: 40 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.160919 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1130+3815
! 
! 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 74748 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 J1130+3815_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 7640 telescope corrections were flagged in sub-array 1.
!  A total of 1269 telescope corrections were flagged in sub-array 2.
!  A total of 687 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 7640 telescope corrections were flagged in sub-array 1.
!  A total of 1269 telescope corrections were flagged in sub-array 2.
!  A total of 687 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 7592 telescope corrections were flagged in sub-array 1.
!  A total of 1269 telescope corrections were flagged in sub-array 2.
!  A total of 687 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 8530 telescope corrections were flagged in sub-array 1.
!  A total of 1269 telescope corrections were flagged in sub-array 2.
!  A total of 720 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.594801Jy  sigma=0.004354
! Fit after  self-cal, rms=0.436318Jy  sigma=0.003030
! 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.698 mas, bmaj=3.384 mas, bpa=-1.133 degrees
! Estimated noise=726.581 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.487948 Jy
! Component: 100  -  total flux cleaned = 0.609757 Jy
! Total flux subtracted in 100 components = 0.609757 Jy
! Clean residual min=-0.011975 max=0.050258 Jy/beam
! Clean residual mean=0.000112 rms=0.003948 Jy/beam
! Combined flux in latest and established models = 0.609757 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 0.609757 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.253209Jy  sigma=0.001587
! Fit after  self-cal, rms=0.253153Jy  sigma=0.001587
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0584105 Jy
! Component: 100  -  total flux cleaned = 0.0942147 Jy
! Total flux subtracted in 100 components = 0.0942147 Jy
! Clean residual min=-0.010408 max=0.018709 Jy/beam
! Clean residual mean=0.000059 rms=0.002832 Jy/beam
! Combined flux in latest and established models = 0.703972 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 15 components and 0.703972 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.236605Jy  sigma=0.001416
! Fit after  self-cal, rms=0.236460Jy  sigma=0.001415
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0228591 Jy
! Component: 100  -  total flux cleaned = 0.0306306 Jy
! Total flux subtracted in 100 components = 0.0306306 Jy
! Clean residual min=-0.013084 max=0.013023 Jy/beam
! Clean residual mean=0.000042 rms=0.002651 Jy/beam
! Combined flux in latest and established models = 0.734602 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 22 components and 0.734602 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.234133Jy  sigma=0.001398
! Fit after  self-cal, rms=0.234067Jy  sigma=0.001398
! 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.052 mas, bmaj=4.134 mas, bpa=-4.237 degrees
! Estimated noise=356.159 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 (-4.5, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0127415 Jy
! Component: 100  -  total flux cleaned = 0.0169059 Jy
! Component: 150  -  total flux cleaned = 0.0174293 Jy
! Component: 200  -  total flux cleaned = 0.0176917 Jy
! Total flux subtracted in 200 components = 0.0176917 Jy
! Clean residual min=-0.008534 max=0.007906 Jy/beam
! Clean residual mean=0.000344 rms=0.001858 Jy/beam
! Combined flux in latest and established models = 0.752294 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 34 components and 0.752294 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232940Jy  sigma=0.001390
! Fit after  self-cal, rms=0.232849Jy  sigma=0.001390
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 324 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.00*    GG        1.00*    HH        4.81     
!   HN        1.00     KK        1.00     KP        1.06     LA        0.98     
!   MA        1.11     MC        1.05     MK        1.00     NL        0.96     
!   OV        1.00     PT        0.99     SC        0.96     TS        1.07     
!   WF        0.94     WZ        0.98     
! 
!  A total of 48 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.98     KK        1.06     KP        1.11     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        0.98     NL        0.99     
!   OV        0.99     PT        1.00     SC        1.02     TS        0.92     
!   WF        1.06     WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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*    
! 
! 
! Correcting IF 2.
!  A total of 324 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        3.92     
!   HN        0.97     KK        1.01     KP        1.02     LA        0.96     
!   MA        1.04     MC        1.10     MK        1.03     NL        0.97     
!   OV        1.03     PT        0.97     SC        0.97     TS        1.07     
!   WF        1.00     WZ        0.98     
! 
!  A total of 48 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.99     KK        1.05     KP        0.97     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        1.00     NL        1.00     
!   OV        1.03     PT        0.99     SC        1.01     TS        0.95     
!   WF        1.02     WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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*    
! 
! 
! Correcting IF 3.
!  A total of 372 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        4.76     
!   HN        0.99     KK        1.02     KP        0.99     LA        0.96     
!   MA        0.98     MC        1.02     MK        0.99     NL        0.99     
!   OV        1.05     PT        1.01     SC        0.97     TS        1.07     
!   WF        1.01     WZ        0.97     
! 
!  A total of 48 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.01     KK        1.03     KP        1.02     LA        0.97     
!   MA        1.00*    MC        1.00*    MK        0.97     NL        0.99     
!   OV        1.01     PT        1.02     SC        1.01     TS        0.96     
!   WF        1.03     WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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*    
! 
! 
! Correcting IF 4.
!  A total of 72 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        5.03     
!   HN        0.99     KK        0.97     KP        1.00     LA        0.99     
!   MA        1.00*    MC        1.00*    MK        1.03     NL        1.01     
!   OV        1.01     PT        1.06     SC        0.97     TS        1.04     
!   WF        1.01     WZ        0.98     
! 
!  A total of 48 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.01     KK        1.02     KP        1.04     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        0.99     NL        1.03     
!   OV        1.00     PT        0.99     SC        1.02     TS        0.96     
!   WF        1.06     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   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*    
! 
! 
! Fit before self-cal, rms=0.232849Jy  sigma=0.001390
! Fit after  self-cal, rms=0.340871Jy  sigma=0.001355
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.091 mas, bmaj=4.385 mas, bpa=-6.524 degrees
! Estimated noise=360.517 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.00473833 Jy
! Component: 100  -  total flux cleaned = 0.00612004 Jy
! Component: 150  -  total flux cleaned = 0.00686178 Jy
! Component: 200  -  total flux cleaned = 0.0073916 Jy
! Total flux subtracted in 200 components = 0.0073916 Jy
! Clean residual min=-0.007376 max=0.006232 Jy/beam
! Clean residual mean=0.000180 rms=0.001489 Jy/beam
! Combined flux in latest and established models = 0.759686 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 52 components and 0.759686 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.340731Jy  sigma=0.001353
! Fit after  self-cal, rms=0.341200Jy  sigma=0.001352
! 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.341200Jy  sigma=0.001352
! Fit after  self-cal, rms=0.343891Jy  sigma=0.001294
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.095 mas, bmaj=4.395 mas, bpa=-6.629 degrees
! Estimated noise=360.075 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000459475 Jy
! Component: 100  -  total flux cleaned = 0.000923922 Jy
! Component: 150  -  total flux cleaned = 0.00129505 Jy
! Component: 200  -  total flux cleaned = 0.00168787 Jy
! Total flux subtracted in 200 components = 0.00168787 Jy
! Clean residual min=-0.002001 max=0.002844 Jy/beam
! Clean residual mean=0.000162 rms=0.000611 Jy/beam
! Combined flux in latest and established models = 0.761374 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 69 components and 0.761374 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.343798Jy  sigma=0.001293
! Fit after  self-cal, rms=0.343779Jy  sigma=0.001293
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 (-15.5, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00232011 Jy
! Component: 100  -  total flux cleaned = 0.00367649 Jy
! Component: 150  -  total flux cleaned = 0.00460447 Jy
! Component: 200  -  total flux cleaned = 0.00511074 Jy
! Total flux subtracted in 200 components = 0.00511074 Jy
! Clean residual min=-0.002008 max=0.002457 Jy/beam
! Clean residual mean=0.000124 rms=0.000568 Jy/beam
! Combined flux in latest and established models = 0.766484 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 82 components and 0.766484 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.343725Jy  sigma=0.001292
! Fit after  self-cal, rms=0.343706Jy  sigma=0.001292
! Inverting map 
! Added new window around map position (-57.5, 45.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00254413 Jy
! Component: 100  -  total flux cleaned = 0.00367717 Jy
! Component: 150  -  total flux cleaned = 0.00472454 Jy
! Component: 200  -  total flux cleaned = 0.00530665 Jy
! Total flux subtracted in 200 components = 0.00530665 Jy
! Clean residual min=-0.002037 max=0.002314 Jy/beam
! Clean residual mean=0.000090 rms=0.000537 Jy/beam
! Combined flux in latest and established models = 0.771791 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 100 components and 0.771791 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.343660Jy  sigma=0.001292
! Fit after  self-cal, rms=0.343650Jy  sigma=0.001292
! Inverting map 
! Added new window around map position (8, -15.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0018053 Jy
! Component: 100  -  total flux cleaned = 0.00220993 Jy
! Component: 150  -  total flux cleaned = 0.00273821 Jy
! Component: 200  -  total flux cleaned = 0.00313478 Jy
! Total flux subtracted in 200 components = 0.00313478 Jy
! Clean residual min=-0.002080 max=0.002107 Jy/beam
! Clean residual mean=0.000069 rms=0.000522 Jy/beam
! Combined flux in latest and established models = 0.774926 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 114 components and 0.774926 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.343614Jy  sigma=0.001291
! Fit after  self-cal, rms=0.343611Jy  sigma=0.001291
! 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.343611Jy  sigma=0.001291
! Fit after  self-cal, rms=0.346261Jy  sigma=0.001291
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.098 mas, bmaj=4.399 mas, bpa=-6.688 degrees
! Estimated noise=360.002 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000675069 Jy
! Component: 100  -  total flux cleaned = -0.000263292 Jy
! Component: 150  -  total flux cleaned = 0.000205638 Jy
! Component: 200  -  total flux cleaned = 0.000592507 Jy
! Total flux subtracted in 200 components = 0.000592507 Jy
! Clean residual min=-0.001901 max=0.002114 Jy/beam
! Clean residual mean=0.000043 rms=0.000502 Jy/beam
! Combined flux in latest and established models = 0.775519 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 118 components and 0.775519 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.346228Jy  sigma=0.001291
! Fit after  self-cal, rms=0.346224Jy  sigma=0.001291
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.000394731 Jy
! Component: 100  -  total flux cleaned = 0.000708573 Jy
! Component: 150  -  total flux cleaned = 0.00087992 Jy
! Component: 200  -  total flux cleaned = 0.00104477 Jy
! Total flux subtracted in 200 components = 0.00104477 Jy
! Clean residual min=-0.001918 max=0.002096 Jy/beam
! Clean residual mean=0.000036 rms=0.000494 Jy/beam
! Combined flux in latest and established models = 0.776563 Jy
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 125 components and 0.776563 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.346203Jy  sigma=0.001291
! Fit after  self-cal, rms=0.346196Jy  sigma=0.001291
! Inverting map 
! Added new window around map position (-30.5, -54).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00127904 Jy
! Component: 100  -  total flux cleaned = 0.00160713 Jy
! Component: 150  -  total flux cleaned = 0.00185712 Jy
! Component: 200  -  total flux cleaned = 0.00197519 Jy
! Total flux subtracted in 200 components = 0.00197519 Jy
! Clean residual min=-0.001968 max=0.001921 Jy/beam
! Clean residual mean=0.000020 rms=0.000487 Jy/beam
! Combined flux in latest and established models = 0.778539 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 139 components and 0.778538 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.346171Jy  sigma=0.001291
! Fit after  self-cal, rms=0.346164Jy  sigma=0.001291
! 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.346164Jy  sigma=0.001291
! Fit after  self-cal, rms=0.346193Jy  sigma=0.001290
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.218 mas, bmaj=9.471 mas, bpa=15.5 degrees
! Estimated noise=534.305 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00134352 Jy
! Component: 100  -  total flux cleaned = 0.00150033 Jy
! Component: 150  -  total flux cleaned = 0.00159184 Jy
! Component: 200  -  total flux cleaned = 0.00164419 Jy
! Total flux subtracted in 200 components = 0.00164419 Jy
! Clean residual min=-0.001974 max=0.001779 Jy/beam
! Clean residual mean=-0.000007 rms=0.000567 Jy/beam
! Combined flux in latest and established models = 0.780183 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 152 components and 0.780182 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.346191Jy  sigma=0.001290
! Fit after  self-cal, rms=0.346196Jy  sigma=0.001290
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.000201675 Jy
! Component: 100  -  total flux cleaned = 0.000155859 Jy
! Component: 150  -  total flux cleaned = 0.000155683 Jy
! Component: 200  -  total flux cleaned = 0.000136821 Jy
! Total flux subtracted in 200 components = 0.000136821 Jy
! Clean residual min=-0.001957 max=0.001828 Jy/beam
! Clean residual mean=-0.000010 rms=0.000559 Jy/beam
! Combined flux in latest and established models = 0.780319 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 161 components and 0.780319 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.346194Jy  sigma=0.001290
! Fit after  self-cal, rms=0.346195Jy  sigma=0.001290
! 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.099 mas, bmaj=4.403 mas, bpa=-6.719 degrees
! Estimated noise=359.968 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.099 x 4.403 at -6.719 degrees (North through East)
! Clean map  min=-0.001749  max=0.65593 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.346195Jy  sigma=0.001290
! Fit after  self-cal, rms=0.630945Jy  sigma=0.001206
! Inverting map and beam 
! Estimated beam: bmin=2.098 mas, bmaj=4.4 mas, bpa=-6.701 degrees
! Estimated noise=359.654 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000776801 Jy
! Component: 100  -  total flux cleaned = -0.000732546 Jy
! Component: 150  -  total flux cleaned = -0.000695073 Jy
! Component: 200  -  total flux cleaned = -0.000806388 Jy
! Total flux subtracted in 200 components = -0.000806388 Jy
! Clean residual min=-0.001710 max=0.001730 Jy/beam
! Clean residual mean=0.000009 rms=0.000451 Jy/beam
! Combined flux in latest and established models = 0.779513 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 172 components and 0.779513 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.630934Jy  sigma=0.001206
! Fit after  self-cal, rms=0.630914Jy  sigma=0.001206
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 3.28209e-05 Jy
! Component: 100  -  total flux cleaned = -3.57469e-05 Jy
! Component: 150  -  total flux cleaned = -6.82647e-05 Jy
! Component: 200  -  total flux cleaned = -3.62923e-05 Jy
! Total flux subtracted in 200 components = -3.62923e-05 Jy
! Clean residual min=-0.001710 max=0.001716 Jy/beam
! Clean residual mean=0.000009 rms=0.000447 Jy/beam
! Combined flux in latest and established models = 0.779477 Jy
! Performing phase self-cal
! Adding 45 model components to the UV plane model.
! The established model now contains 185 components and 0.779477 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.630908Jy  sigma=0.001206
! Fit after  self-cal, rms=0.630892Jy  sigma=0.001206
! 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.630892Jy  sigma=0.001206
! Fit after  self-cal, rms=0.638306Jy  sigma=0.001206
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.748 mas, bmaj=3.651 mas, bpa=-4.932 degrees
! Estimated noise=730.538 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.498043 Jy
! Component: 100  -  total flux cleaned = 0.608685 Jy
! Component: 150  -  total flux cleaned = 0.651262 Jy
! Component: 200  -  total flux cleaned = 0.677378 Jy
! Total flux subtracted in 200 components = 0.677378 Jy
! Clean residual min=-0.005520 max=0.013882 Jy/beam
! Clean residual mean=0.000068 rms=0.001478 Jy/beam
! Combined flux in latest and established models = 0.677379 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 20 model components to the UV plane model.
! The established model now contains 20 components and 0.677379 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.099 mas, bmaj=4.403 mas, bpa=-6.731 degrees
! Estimated noise=359.448 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.0270215 Jy
! Component: 100  -  total flux cleaned = 0.0441239 Jy
! Component: 150  -  total flux cleaned = 0.0558861 Jy
! Component: 200  -  total flux cleaned = 0.0642729 Jy
! Total flux subtracted in 200 components = 0.0642729 Jy
! Clean residual min=-0.002015 max=0.004755 Jy/beam
! Clean residual mean=0.000272 rms=0.000811 Jy/beam
! Combined flux in latest and established models = 0.741652 Jy
! Adding 35 model components to the UV plane model.
! The established model now contains 48 components and 0.741652 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00616155 Jy
! Component: 100  -  total flux cleaned = 0.0108513 Jy
! Component: 150  -  total flux cleaned = 0.0145508 Jy
! Component: 200  -  total flux cleaned = 0.0176467 Jy
! Total flux subtracted in 200 components = 0.0176467 Jy
! Clean residual min=-0.001841 max=0.002615 Jy/beam
! Clean residual mean=0.000145 rms=0.000562 Jy/beam
! Combined flux in latest and established models = 0.759298 Jy
! Adding 37 model components to the UV plane model.
! The established model now contains 71 components and 0.759298 Jy
! Inverting map 
! Added new window around map position (-9, 8.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00301431 Jy
! Component: 100  -  total flux cleaned = 0.00550663 Jy
! Component: 150  -  total flux cleaned = 0.00773279 Jy
! Component: 200  -  total flux cleaned = 0.00972911 Jy
! Total flux subtracted in 200 components = 0.00972911 Jy
! Clean residual min=-0.001785 max=0.001867 Jy/beam
! Clean residual mean=0.000075 rms=0.000490 Jy/beam
! Combined flux in latest and established models = 0.769028 Jy
! Adding 39 model components to the UV plane model.
! The established model now contains 85 components and 0.769028 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.216 mas, bmaj=9.472 mas, bpa=15.5 degrees
! Estimated noise=533.241 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00319377 Jy
! Component: 100  -  total flux cleaned = 0.00518143 Jy
! Component: 150  -  total flux cleaned = 0.00662695 Jy
! Component: 200  -  total flux cleaned = 0.00757784 Jy
! Total flux subtracted in 200 components = 0.00757784 Jy
! Clean residual min=-0.001952 max=0.001767 Jy/beam
! Clean residual mean=0.000067 rms=0.000560 Jy/beam
! Combined flux in latest and established models = 0.776605 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.000635958 Jy
! Component: 100  -  total flux cleaned = 0.00117367 Jy
! Component: 150  -  total flux cleaned = 0.00160301 Jy
! Component: 200  -  total flux cleaned = 0.0018608 Jy
! Total flux subtracted in 200 components = 0.0018608 Jy
! Clean residual min=-0.001947 max=0.001717 Jy/beam
! Clean residual mean=0.000022 rms=0.000535 Jy/beam
! Combined flux in latest and established models = 0.778466 Jy
! Adding 69 model components to the UV plane model.
! The established model now contains 150 components and 0.778466 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.099 mas, bmaj=4.403 mas, bpa=-6.731 degrees
! Estimated noise=359.448 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -4.15253e-05 Jy
! Component: 100  -  total flux cleaned = 0.000190205 Jy
! Component: 150  -  total flux cleaned = 0.000411252 Jy
! Component: 200  -  total flux cleaned = 0.000623626 Jy
! Total flux subtracted in 200 components = 0.000623626 Jy
! Clean residual min=-0.001781 max=0.001664 Jy/beam
! Clean residual mean=0.000005 rms=0.000450 Jy/beam
! Combined flux in latest and established models = 0.77909 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 163 components and 0.77909 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.638902Jy  sigma=0.001206
! Fit after  self-cal, rms=0.639535Jy  sigma=0.001206
wmodel J1130+3815_S_2001_10_29_pus_map.mod
! Writing 163 model components to file: J1130+3815_S_2001_10_29_pus_map.mod
wobs J1130+3815_S_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J1130+3815_S_2001_10_29_pus_uvs.fits
wwins J1130+3815_S_2001_10_29_pus_map.win
! wwins: Wrote 7 windows to J1130+3815_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.000289689 Jy
! Component: 100  -  total flux cleaned = -0.000409812 Jy
! Component: 150  -  total flux cleaned = -0.000582516 Jy
! Component: 200  -  total flux cleaned = -0.000666304 Jy
! Component: 250  -  total flux cleaned = -0.00066581 Jy
! Component: 300  -  total flux cleaned = -0.000719099 Jy
! Component: 350  -  total flux cleaned = -0.00074529 Jy
! Component: 400  -  total flux cleaned = -0.000796967 Jy
! Component: 450  -  total flux cleaned = -0.000796816 Jy
! Component: 500  -  total flux cleaned = -0.000721371 Jy
! Component: 550  -  total flux cleaned = -0.00072172 Jy
! Component: 600  -  total flux cleaned = -0.000721753 Jy
! Component: 650  -  total flux cleaned = -0.000697479 Jy
! Component: 700  -  total flux cleaned = -0.000673383 Jy
! Component: 750  -  total flux cleaned = -0.000649376 Jy
! Component: 800  -  total flux cleaned = -0.000649255 Jy
! Component: 850  -  total flux cleaned = -0.000602168 Jy
! Component: 900  -  total flux cleaned = -0.000578875 Jy
! Component: 950  -  total flux cleaned = -0.000532745 Jy
! Component: 1000  -  total flux cleaned = -0.000509764 Jy
! Component: 1050  -  total flux cleaned = -0.000464301 Jy
! Component: 1100  -  total flux cleaned = -0.000464298 Jy
! Component: 1150  -  total flux cleaned = -0.000419365 Jy
! Component: 1200  -  total flux cleaned = -0.000397167 Jy
! Component: 1250  -  total flux cleaned = -0.000375163 Jy
! Component: 1300  -  total flux cleaned = -0.000353177 Jy
! Component: 1350  -  total flux cleaned = -0.000244422 Jy
! Component: 1400  -  total flux cleaned = -0.000244473 Jy
! Component: 1450  -  total flux cleaned = -0.00020147 Jy
! Component: 1500  -  total flux cleaned = -0.000201467 Jy
! Component: 1550  -  total flux cleaned = -0.000137785 Jy
! Component: 1600  -  total flux cleaned = -0.000158878 Jy
! Component: 1650  -  total flux cleaned = -0.000116965 Jy
! Component: 1700  -  total flux cleaned = -0.000137809 Jy
! Component: 1750  -  total flux cleaned = -0.000116822 Jy
! Component: 1800  -  total flux cleaned = -7.54088e-05 Jy
! Component: 1850  -  total flux cleaned = -3.43717e-05 Jy
! Component: 1900  -  total flux cleaned = 6.50032e-06 Jy
! Component: 1950  -  total flux cleaned = -1.38688e-05 Jy
! Component: 2000  -  total flux cleaned = 4.67493e-05 Jy
! Total flux subtracted in 2048 components = 6.44616e-06 Jy
! Clean residual min=-0.001243 max=0.001138 Jy/beam
! Clean residual mean=0.000005 rms=0.000376 Jy/beam
! Combined flux in latest and established models = 0.779097 Jy
keep
! Adding 153 model components to the UV plane model.
! The established model now contains 316 components and 0.779097 Jy
![Exited script file: muppet]
wmap "J1130+3815_S_2001_10_29_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.099 x 4.403 at -6.731 degrees (North through East)
! Clean map  min=-0.0014971  max=0.65597 Jy/beam
! Writing clean map to FITS file: J1130+3815_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.655968 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000375852 
device "J1130+3815_S_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J1130+3815_S_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.171892 0.171892 0.343784 0.687567 1.37513 2.75027 5.50054 11.0011 22.0022 44.0043 88.0086
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0011 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.655 
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.099 x 4.403 at -6.731 degrees (North through East)
! Clean map  min=-0.0014971  max=0.65597 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1130+3815_S_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J1130+3815_S_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1130+3815_S_2001_10_29_pus_uvs.log closed on Wed Feb 27 15:20:59 2008