! Started logfile: J1130+3815_X_2000_12_04_pus_uvs.log on Fri Oct 12 15:22:26 2007
obs J1130+3815_X_2000_12_04_pus_uva.fits
! Reading UV FITS file: J1130+3815_X_2000_12_04_pus_uva.fits
! AN table 1: 93 integrations on 190 of 190 possible baselines.
! AN table 2: 183 integrations on 190 of 190 possible baselines.
! AN table 3: 106 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.172348 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  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2126 lines of history.
! 
! Reading 50036 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 = 256 
print "field_cell =",field_cell
! field_cell = 0.2 
print "taper_size =",taper_size
! taper_size = 70 
![@muppet J1130+3815_X_2000_12_04_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 256x256 pixels with 0.200x0.200 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 1412 telescope corrections were flagged in sub-array 1.
!  A total of 2299 telescope corrections were flagged in sub-array 2.
!  A total of 1522 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1412 telescope corrections were flagged in sub-array 1.
!  A total of 2299 telescope corrections were flagged in sub-array 2.
!  A total of 1522 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1412 telescope corrections were flagged in sub-array 1.
!  A total of 2299 telescope corrections were flagged in sub-array 2.
!  A total of 1522 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1412 telescope corrections were flagged in sub-array 1.
!  A total of 2298 telescope corrections were flagged in sub-array 2.
!  A total of 1522 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.615913Jy  sigma=0.005617
! Fit after  self-cal, rms=0.373317Jy  sigma=0.003106
! 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 
! Your choice of large map pixels excluded 3.15% of the data.
!  The x-axis pixel size should ideally be below 0.1566 milli-arcsec
! Estimated beam: bmin=0.5517 mas, bmaj=0.7741 mas, bpa=-15.03 degrees
! Estimated noise=611.965 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.540437 Jy
! Component: 100  -  total flux cleaned = 0.665966 Jy
! Total flux subtracted in 100 components = 0.665966 Jy
! Clean residual min=-0.011239 max=0.049338 Jy/beam
! Clean residual mean=0.000225 rms=0.004106 Jy/beam
! Combined flux in latest and established models = 0.665966 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.665966 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.230629Jy  sigma=0.001855
! Fit after  self-cal, rms=0.230498Jy  sigma=0.001855
! Inverting map 
! Your choice of large map pixels excluded 3.15% of the data.
!  The x-axis pixel size should ideally be below 0.1566 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.055545 Jy
! Component: 100  -  total flux cleaned = 0.0880668 Jy
! Total flux subtracted in 100 components = 0.0880668 Jy
! Clean residual min=-0.009266 max=0.017563 Jy/beam
! Clean residual mean=0.000124 rms=0.002732 Jy/beam
! Combined flux in latest and established models = 0.754033 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 13 components and 0.754033 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.215422Jy  sigma=0.001568
! Fit after  self-cal, rms=0.215190Jy  sigma=0.001567
! Inverting map 
! Your choice of large map pixels excluded 3.15% of the data.
!  The x-axis pixel size should ideally be below 0.1566 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0226107 Jy
! Component: 100  -  total flux cleaned = 0.0379445 Jy
! Total flux subtracted in 100 components = 0.0379445 Jy
! Clean residual min=-0.009031 max=0.009243 Jy/beam
! Clean residual mean=0.000080 rms=0.002390 Jy/beam
! Combined flux in latest and established models = 0.791977 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 19 components and 0.791977 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.212395Jy  sigma=0.001498
! Fit after  self-cal, rms=0.212291Jy  sigma=0.001497
! Inverting map 
! Your choice of large map pixels excluded 3.15% of the data.
!  The x-axis pixel size should ideally be below 0.1566 milli-arcsec
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 
! Your choice of large map pixels excluded 3.15% of the data.
!  The x-axis pixel size should ideally be below 0.1566 milli-arcsec
! Estimated beam: bmin=0.6295 mas, bmaj=0.9522 mas, bpa=-15.79 degrees
! Estimated noise=349.802 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.2, -0.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0213773 Jy
! Component: 100  -  total flux cleaned = 0.034834 Jy
! Component: 150  -  total flux cleaned = 0.0442274 Jy
! Component: 200  -  total flux cleaned = 0.0509367 Jy
! Total flux subtracted in 200 components = 0.0509367 Jy
! Clean residual min=-0.007147 max=0.010445 Jy/beam
! Clean residual mean=-0.000118 rms=0.002259 Jy/beam
! Combined flux in latest and established models = 0.842914 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 46 components and 0.842914 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.210519Jy  sigma=0.001456
! Fit after  self-cal, rms=0.210332Jy  sigma=0.001455
! Inverting map 
! Your choice of large map pixels excluded 3.15% of the data.
!  The x-axis pixel size should ideally be below 0.1566 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 27 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.02     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.57     KK        1.00*    KP        1.00     
!   LA        1.03     MA        1.00*    MC        1.00*    MK        0.98     
!   NL        1.02     NY        0.98     OV        1.01     PT        1.00     
!   SC        1.00*    TS        0.97     WF        1.06     WZ        1.00*    
! 
!  A total of 102 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.98     GC        1.12     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.01     KP        1.00     
!   LA        0.98     MA        0.99     MC        1.00     MK        1.00     
!   NL        1.01     NY        0.99     OV        0.97     PT        1.01     
!   SC        1.11     TS        0.94     WF        1.03     WZ        0.97     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.99     GC        1.14     GG        1.00*    
!   HH        1.00*    HN        0.86     KK        0.76     KP        0.97     
!   LA        0.96     MA        1.00*    MC        1.00*    MK        0.99     
!   NL        0.96     NY        1.00     OV        1.00*    PT        0.97     
!   SC        1.15     TS        1.03     WF        1.33     WZ        1.09     
! 
! 
! Correcting IF 2.
!  A total of 27 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.57     KK        1.00*    KP        0.98     
!   LA        1.03     MA        1.00*    MC        1.00*    MK        0.98     
!   NL        0.97     NY        0.98     OV        1.01     PT        1.01     
!   SC        1.00*    TS        0.99     WF        1.04     WZ        1.00*    
! 
!  A total of 102 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.99     GC        1.13     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        0.95     KP        1.01     
!   LA        0.98     MA        1.01     MC        0.99     MK        1.00     
!   NL        0.95     NY        0.98     OV        0.97     PT        1.01     
!   SC        1.10     TS        0.94     WF        1.01     WZ        0.97     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        0.99     GC        1.08     GG        1.00*    
!   HH        1.00*    HN        0.86     KK        0.99     KP        0.97     
!   LA        0.93     MA        1.00*    MC        1.00*    MK        0.98     
!   NL        0.93     NY        0.98     OV        1.00*    PT        0.99     
!   SC        1.15     TS        1.02     WF        0.99     WZ        1.11     
! 
! 
! Correcting IF 3.
!  A total of 27 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.06     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.62     KK        1.00*    KP        0.98     
!   LA        1.03     MA        1.00*    MC        1.00*    MK        0.96     
!   NL        0.97     NY        1.00     OV        0.97     PT        0.97     
!   SC        1.00*    TS        1.04     WF        1.00     WZ        1.00*    
! 
!  A total of 102 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.01     GC        1.10     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        0.94     KP        1.00     
!   LA        0.98     MA        1.00     MC        1.01     MK        1.00     
!   NL        0.94     NY        0.99     OV        0.93     PT        0.97     
!   SC        1.13     TS        0.98     WF        1.01     WZ        1.00     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.93     FD        1.01     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        0.86     KK        0.97     KP        0.96     
!   LA        0.94     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        0.91     NY        0.99     OV        1.00*    PT        0.95     
!   SC        1.16     TS        1.07     WF        1.06     WZ        1.11     
! 
! 
! Correcting IF 4.
!  A total of 27 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.06     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.51     KK        1.00*    KP        0.99     
!   LA        1.03     MA        1.00*    MC        1.00*    MK        0.95     
!   NL        0.98     NY        0.99     OV        0.99     PT        0.95     
!   SC        1.00*    TS        1.05     WF        1.03     WZ        1.00*    
! 
!  A total of 102 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.01     GC        1.13     GG        1.00*    
!   HH        1.00*    HN        0.95     KK        0.96     KP        1.00     
!   LA        0.97     MA        1.00     MC        1.02     MK        0.97     
!   NL        0.96     NY        0.98     OV        0.96     PT        0.96     
!   SC        1.10     TS        0.98     WF        1.03     WZ        1.01     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.00     GC        1.07     GG        1.00*    
!   HH        1.00*    HN        0.82     KK        0.97     KP        0.98     
!   LA        0.93     MA        1.00*    MC        1.00*    MK        0.96     
!   NL        0.92     NY        0.99     OV        1.00*    PT        0.94     
!   SC        1.14     TS        1.05     WF        1.01     WZ        1.10     
! 
! 
! Fit before self-cal, rms=0.210332Jy  sigma=0.001455
! Fit after  self-cal, rms=0.212468Jy  sigma=0.001333
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 3.17% of the data.
!  The x-axis pixel size should ideally be below 0.1566 milli-arcsec
! Estimated beam: bmin=0.6301 mas, bmaj=0.972 mas, bpa=-15.7 degrees
! Estimated noise=349.602 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.00371395 Jy
! Component: 100  -  total flux cleaned = -0.00499226 Jy
! Component: 150  -  total flux cleaned = -0.00480553 Jy
! Component: 200  -  total flux cleaned = -0.00448869 Jy
! Total flux subtracted in 200 components = -0.00448869 Jy
! Clean residual min=-0.003489 max=0.004809 Jy/beam
! Clean residual mean=0.000039 rms=0.000917 Jy/beam
! Combined flux in latest and established models = 0.838426 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 52 components and 0.838426 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.211945Jy  sigma=0.001326
! Fit after  self-cal, rms=0.212168Jy  sigma=0.001325
! Inverting map 
! Your choice of large map pixels excluded 3.17% of the data.
!  The x-axis pixel size should ideally be below 0.1566 milli-arcsec
! Added new window around map position (-1, -1.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00323271 Jy
! Component: 100  -  total flux cleaned = 0.003669 Jy
! Component: 150  -  total flux cleaned = 0.00379562 Jy
! Component: 200  -  total flux cleaned = 0.00390736 Jy
! Total flux subtracted in 200 components = 0.00390736 Jy
! Clean residual min=-0.003096 max=0.002949 Jy/beam
! Clean residual mean=-0.000006 rms=0.000814 Jy/beam
! Combined flux in latest and established models = 0.842333 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 63 components and 0.842333 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.211997Jy  sigma=0.001322
! Fit after  self-cal, rms=0.211973Jy  sigma=0.001322
! Inverting map 
! Your choice of large map pixels excluded 3.17% of the data.
!  The x-axis pixel size should ideally be below 0.1566 milli-arcsec
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.211973Jy  sigma=0.001322
! Fit after  self-cal, rms=0.212445Jy  sigma=0.001309
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.17% of the data.
!  The x-axis pixel size should ideally be below 0.1566 milli-arcsec
! Estimated beam: bmin=0.6299 mas, bmaj=0.9727 mas, bpa=-15.76 degrees
! Estimated noise=349.151 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00104983 Jy
! Component: 100  -  total flux cleaned = -0.00132022 Jy
! Component: 150  -  total flux cleaned = -0.00146949 Jy
! Component: 200  -  total flux cleaned = -0.00146779 Jy
! Total flux subtracted in 200 components = -0.00146779 Jy
! Clean residual min=-0.001979 max=0.001818 Jy/beam
! Clean residual mean=-0.000080 rms=0.000507 Jy/beam
! Combined flux in latest and established models = 0.840865 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 66 components and 0.840865 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.212375Jy  sigma=0.001308
! Fit after  self-cal, rms=0.212391Jy  sigma=0.001308
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.17% of the data.
!  The x-axis pixel size should ideally be below 0.1566 milli-arcsec
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 = 5.30715e-05 Jy
! Component: 100  -  total flux cleaned = -8.13921e-06 Jy
! Component: 150  -  total flux cleaned = -0.000117081 Jy
! Component: 200  -  total flux cleaned = -0.000167842 Jy
! Total flux subtracted in 200 components = -0.000167842 Jy
! Clean residual min=-0.001981 max=0.001791 Jy/beam
! Clean residual mean=-0.000079 rms=0.000494 Jy/beam
! Combined flux in latest and established models = 0.840697 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 69 components and 0.840697 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.212358Jy  sigma=0.001307
! Fit after  self-cal, rms=0.212355Jy  sigma=0.001307
! Inverting map 
! Your choice of large map pixels excluded 3.17% of the data.
!  The x-axis pixel size should ideally be below 0.1566 milli-arcsec
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.212355Jy  sigma=0.001307
! Fit after  self-cal, rms=0.212756Jy  sigma=0.001307
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.17% of the data.
!  The x-axis pixel size should ideally be below 0.1566 milli-arcsec
! Estimated beam: bmin=0.6297 mas, bmaj=0.9737 mas, bpa=-15.76 degrees
! Estimated noise=349.145 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000689133 Jy
! Component: 100  -  total flux cleaned = -0.000800175 Jy
! Component: 150  -  total flux cleaned = -0.000800062 Jy
! Component: 200  -  total flux cleaned = -0.000891689 Jy
! Total flux subtracted in 200 components = -0.000891689 Jy
! Clean residual min=-0.001898 max=0.001767 Jy/beam
! Clean residual mean=-0.000085 rms=0.000475 Jy/beam
! Combined flux in latest and established models = 0.839806 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 73 components and 0.839806 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.212726Jy  sigma=0.001307
! Fit after  self-cal, rms=0.212729Jy  sigma=0.001307
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.17% of the data.
!  The x-axis pixel size should ideally be below 0.1566 milli-arcsec
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 = 9.73575e-05 Jy
! Component: 100  -  total flux cleaned = -3.07785e-05 Jy
! Component: 150  -  total flux cleaned = -0.000108467 Jy
! Component: 200  -  total flux cleaned = -0.000144797 Jy
! Total flux subtracted in 200 components = -0.000144797 Jy
! Clean residual min=-0.001871 max=0.001712 Jy/beam
! Clean residual mean=-0.000083 rms=0.000469 Jy/beam
! Combined flux in latest and established models = 0.839661 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 76 components and 0.839661 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.212712Jy  sigma=0.001306
! Fit after  self-cal, rms=0.212711Jy  sigma=0.001306
! Inverting map 
! Your choice of large map pixels excluded 3.17% of the data.
!  The x-axis pixel size should ideally be below 0.1566 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 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.212711Jy  sigma=0.001306
! Fit after  self-cal, rms=0.212929Jy  sigma=0.001306
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.17% of the data.
!  The x-axis pixel size should ideally be below 0.1566 milli-arcsec
! Estimated beam: bmin=2.273 mas, bmaj=2.474 mas, bpa=15.87 degrees
! Estimated noise=514.901 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000123771 Jy
! Component: 100  -  total flux cleaned = 6.64235e-05 Jy
! Component: 150  -  total flux cleaned = 4.48258e-05 Jy
! Component: 200  -  total flux cleaned = 4.45911e-05 Jy
! Total flux subtracted in 200 components = 4.45911e-05 Jy
! Clean residual min=-0.002475 max=0.002483 Jy/beam
! Clean residual mean=-0.000343 rms=0.000682 Jy/beam
! Combined flux in latest and established models = 0.839705 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 85 components and 0.839705 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.212930Jy  sigma=0.001306
! Fit after  self-cal, rms=0.212932Jy  sigma=0.001306
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.17% of the data.
!  The x-axis pixel size should ideally be below 0.1566 milli-arcsec
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.73619e-05 Jy
! Component: 100  -  total flux cleaned = 4.80367e-05 Jy
! Component: 150  -  total flux cleaned = 4.78414e-05 Jy
! Component: 200  -  total flux cleaned = 4.79757e-05 Jy
! Total flux subtracted in 200 components = 4.79757e-05 Jy
! Clean residual min=-0.002484 max=0.002494 Jy/beam
! Clean residual mean=-0.000344 rms=0.000681 Jy/beam
! Combined flux in latest and established models = 0.839753 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 87 components and 0.839754 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.212932Jy  sigma=0.001306
! Fit after  self-cal, rms=0.212932Jy  sigma=0.001306
! Inverting map 
! Your choice of large map pixels excluded 3.17% of the data.
!  The x-axis pixel size should ideally be below 0.1566 milli-arcsec
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 
! Your choice of large map pixels excluded 3.17% of the data.
!  The x-axis pixel size should ideally be below 0.1566 milli-arcsec
! Estimated beam: bmin=0.6296 mas, bmaj=0.9746 mas, bpa=-15.77 degrees
! Estimated noise=349.212 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6296 x 0.9746 at -15.77 degrees (North through East)
! Clean map  min=-0.0015608  max=0.70967 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.212932Jy  sigma=0.001306
! Fit after  self-cal, rms=0.211242Jy  sigma=0.001237
! Inverting map and beam 
! Your choice of large map pixels excluded 3.17% of the data.
!  The x-axis pixel size should ideally be below 0.1566 milli-arcsec
! Estimated beam: bmin=0.63 mas, bmaj=0.9742 mas, bpa=-15.75 degrees
! Estimated noise=349.154 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000470953 Jy
! Component: 100  -  total flux cleaned = -0.000575948 Jy
! Component: 150  -  total flux cleaned = -0.000575703 Jy
! Component: 200  -  total flux cleaned = -0.000574491 Jy
! Total flux subtracted in 200 components = -0.000574491 Jy
! Clean residual min=-0.001736 max=0.001764 Jy/beam
! Clean residual mean=-0.000078 rms=0.000444 Jy/beam
! Combined flux in latest and established models = 0.839179 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 91 components and 0.839179 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.211229Jy  sigma=0.001237
! Fit after  self-cal, rms=0.211232Jy  sigma=0.001237
! Inverting map 
! Your choice of large map pixels excluded 3.17% of the data.
!  The x-axis pixel size should ideally be below 0.1566 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 3.86893e-06 Jy
! Component: 100  -  total flux cleaned = -2.37015e-05 Jy
! Component: 150  -  total flux cleaned = -2.3905e-05 Jy
! Component: 200  -  total flux cleaned = -4.91969e-05 Jy
! Total flux subtracted in 200 components = -4.91969e-05 Jy
! Clean residual min=-0.001747 max=0.001738 Jy/beam
! Clean residual mean=-0.000077 rms=0.000441 Jy/beam
! Combined flux in latest and established models = 0.83913 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 94 components and 0.83913 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.211223Jy  sigma=0.001237
! Fit after  self-cal, rms=0.211222Jy  sigma=0.001237
! Inverting map 
! Your choice of large map pixels excluded 3.17% of the data.
!  The x-axis pixel size should ideally be below 0.1566 milli-arcsec
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.211222Jy  sigma=0.001237
! Fit after  self-cal, rms=0.211366Jy  sigma=0.001237
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 
! Your choice of large map pixels excluded 3.17% of the data.
!  The x-axis pixel size should ideally be below 0.1566 milli-arcsec
! Estimated beam: bmin=0.5518 mas, bmaj=0.7861 mas, bpa=-14.76 degrees
! Estimated noise=613.794 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.541329 Jy
! Component: 100  -  total flux cleaned = 0.666995 Jy
! Component: 150  -  total flux cleaned = 0.719803 Jy
! Component: 200  -  total flux cleaned = 0.75012 Jy
! Total flux subtracted in 200 components = 0.75012 Jy
! Clean residual min=-0.004561 max=0.016228 Jy/beam
! Clean residual mean=0.000101 rms=0.001614 Jy/beam
! Combined flux in latest and established models = 0.75012 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 15 model components to the UV plane model.
! The established model now contains 15 components and 0.75012 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 3.17% of the data.
!  The x-axis pixel size should ideally be below 0.1566 milli-arcsec
! Estimated beam: bmin=0.6299 mas, bmaj=0.9748 mas, bpa=-15.76 degrees
! Estimated noise=349.187 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.0320346 Jy
! Component: 100  -  total flux cleaned = 0.05096 Jy
! Component: 150  -  total flux cleaned = 0.0630092 Jy
! Component: 200  -  total flux cleaned = 0.0710134 Jy
! Total flux subtracted in 200 components = 0.0710134 Jy
! Clean residual min=-0.001804 max=0.004347 Jy/beam
! Clean residual mean=0.000089 rms=0.000733 Jy/beam
! Combined flux in latest and established models = 0.821134 Jy
! Adding 39 model components to the UV plane model.
! The established model now contains 43 components and 0.821133 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.17% of the data.
!  The x-axis pixel size should ideally be below 0.1566 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00546936 Jy
! Component: 100  -  total flux cleaned = 0.00927696 Jy
! Component: 150  -  total flux cleaned = 0.0119615 Jy
! Component: 200  -  total flux cleaned = 0.0138894 Jy
! Total flux subtracted in 200 components = 0.0138894 Jy
! Clean residual min=-0.001658 max=0.001832 Jy/beam
! Clean residual mean=-0.000043 rms=0.000464 Jy/beam
! Combined flux in latest and established models = 0.835023 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 63 components and 0.835023 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.17% of the data.
!  The x-axis pixel size should ideally be below 0.1566 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.17% of the data.
!  The x-axis pixel size should ideally be below 0.1566 milli-arcsec
! Estimated beam: bmin=2.274 mas, bmaj=2.474 mas, bpa=15.88 degrees
! Estimated noise=514.712 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00273817 Jy
! Component: 100  -  total flux cleaned = 0.00384993 Jy
! Component: 150  -  total flux cleaned = 0.00436361 Jy
! Component: 200  -  total flux cleaned = 0.00443021 Jy
! Total flux subtracted in 200 components = 0.00443021 Jy
! Clean residual min=-0.002329 max=0.002590 Jy/beam
! Clean residual mean=-0.000313 rms=0.000669 Jy/beam
! Combined flux in latest and established models = 0.839453 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 = 5.28768e-05 Jy
! Component: 100  -  total flux cleaned = 7.07062e-05 Jy
! Component: 150  -  total flux cleaned = 8.67647e-05 Jy
! Component: 200  -  total flux cleaned = 9.42763e-05 Jy
! Total flux subtracted in 200 components = 9.42763e-05 Jy
! Clean residual min=-0.002339 max=0.002577 Jy/beam
! Clean residual mean=-0.000316 rms=0.000667 Jy/beam
! Combined flux in latest and established models = 0.839547 Jy
! Adding 30 model components to the UV plane model.
! The established model now contains 83 components and 0.839547 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.17% of the data.
!  The x-axis pixel size should ideally be below 0.1566 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 3.17% of the data.
!  The x-axis pixel size should ideally be below 0.1566 milli-arcsec
! Estimated beam: bmin=0.6299 mas, bmaj=0.9748 mas, bpa=-15.76 degrees
! Estimated noise=349.187 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000971723 Jy
! Component: 100  -  total flux cleaned = -0.000939409 Jy
! Component: 150  -  total flux cleaned = -0.000879709 Jy
! Component: 200  -  total flux cleaned = -0.000823834 Jy
! Total flux subtracted in 200 components = -0.000823834 Jy
! Clean residual min=-0.001729 max=0.001668 Jy/beam
! Clean residual mean=-0.000078 rms=0.000442 Jy/beam
! Combined flux in latest and established models = 0.838723 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 92 components and 0.838723 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.211406Jy  sigma=0.001237
! Fit after  self-cal, rms=0.211381Jy  sigma=0.001237
wmodel J1130+3815_X_2000_12_04_pus_map.mod
! Writing 92 model components to file: J1130+3815_X_2000_12_04_pus_map.mod
wobs J1130+3815_X_2000_12_04_pus_uvs.fits
! Writing UV FITS file: J1130+3815_X_2000_12_04_pus_uvs.fits
wwins J1130+3815_X_2000_12_04_pus_map.win
! wwins: Wrote 3 windows to J1130+3815_X_2000_12_04_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! Your choice of large map pixels excluded 3.17% of the data.
!  The x-axis pixel size should ideally be below 0.1566 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000195485 Jy
! Component: 100  -  total flux cleaned = -0.000279579 Jy
! Component: 150  -  total flux cleaned = -0.00036098 Jy
! Component: 200  -  total flux cleaned = -0.00046652 Jy
! Component: 250  -  total flux cleaned = -0.000568708 Jy
! Component: 300  -  total flux cleaned = -0.00059356 Jy
! Component: 350  -  total flux cleaned = -0.000715186 Jy
! Component: 400  -  total flux cleaned = -0.000834168 Jy
! Component: 450  -  total flux cleaned = -0.000927474 Jy
! Component: 500  -  total flux cleaned = -0.00101945 Jy
! Component: 550  -  total flux cleaned = -0.00119987 Jy
! Component: 600  -  total flux cleaned = -0.00137723 Jy
! Component: 650  -  total flux cleaned = -0.00152985 Jy
! Component: 700  -  total flux cleaned = -0.00163746 Jy
! Component: 750  -  total flux cleaned = -0.00178617 Jy
! Component: 800  -  total flux cleaned = -0.0018492 Jy
! Component: 850  -  total flux cleaned = -0.00195317 Jy
! Component: 900  -  total flux cleaned = -0.00199455 Jy
! Component: 950  -  total flux cleaned = -0.00213733 Jy
! Component: 1000  -  total flux cleaned = -0.00225809 Jy
! Total flux subtracted in 1024 components = -0.00229808 Jy
! Clean residual min=-0.001086 max=0.001117 Jy/beam
! Clean residual mean=-0.000062 rms=0.000378 Jy/beam
! Combined flux in latest and established models = 0.836425 Jy
keep
! Adding 83 model components to the UV plane model.
! The established model now contains 175 components and 0.836425 Jy
![Exited script file: muppet]
wmap "J1130+3815_X_2000_12_04_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 3.17% of the data.
!  The x-axis pixel size should ideally be below 0.1566 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6299 x 0.9748 at -15.76 degrees (North through East)
! Clean map  min=-0.0014646  max=0.71073 Jy/beam
! Writing clean map to FITS file: J1130+3815_X_2000_12_04_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.710732 
invert
! Inverting map 
! Your choice of large map pixels excluded 3.17% of the data.
!  The x-axis pixel size should ideally be below 0.1566 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000378643 
device "J1130+3815_X_2000_12_04_pus\_map.eps/VPS"
! Attempting to open device: 'J1130+3815_X_2000_12_04_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.159825 0.159825 0.319651 0.639302 1.2786 2.55721 5.11441 10.2288 20.4576 40.9153 81.8306
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0011 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.71 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6299 x 0.9748 at -15.76 degrees (North through East)
! Clean map  min=-0.0014646  max=0.71073 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1130+3815_X_2000_12_04_pus\_map.gif/vgif"
! Attempting to open device: 'J1130+3815_X_2000_12_04_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1130+3815_X_2000_12_04_pus_uvs.log closed on Fri Oct 12 15:22:42 2007