! Started logfile: J0530+1331_S_2000_12_04_pus_uvs.log on Wed Oct 17 16:58:03 2007
obs J0530+1331_S_2000_12_04_pus_uva.fits
! Reading UV FITS file: J0530+1331_S_2000_12_04_pus_uva.fits
! AN table 1: 106 integrations on 190 of 190 possible baselines.
! AN table 2: 66 integrations on 190 of 190 possible baselines.
! AN table 3: 10 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.190833 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0530+1331
! 
! 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 2169 lines of history.
! 
! Reading 26396 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 J0530+1331_S_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 = 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 1459 telescope corrections were flagged in sub-array 1.
!  A total of 737 telescope corrections were flagged in sub-array 2.
!  A total of 200 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1459 telescope corrections were flagged in sub-array 1.
!  A total of 737 telescope corrections were flagged in sub-array 2.
!  A total of 200 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1459 telescope corrections were flagged in sub-array 1.
!  A total of 737 telescope corrections were flagged in sub-array 2.
!  A total of 200 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1459 telescope corrections were flagged in sub-array 1.
!  A total of 737 telescope corrections were flagged in sub-array 2.
!  A total of 200 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.391692Jy  sigma=0.011162
! Fit after  self-cal, rms=0.671721Jy  sigma=0.005609
! 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.034 mas, bmaj=4.733 mas, bpa=-6.344 degrees
! Estimated noise=1041.88 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.816238 Jy
! Component: 100  -  total flux cleaned = 1.13831 Jy
! Total flux subtracted in 100 components = 1.13831 Jy
! Clean residual min=-0.035020 max=0.147994 Jy/beam
! Clean residual mean=0.001137 rms=0.014292 Jy/beam
! Combined flux in latest and established models = 1.13831 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 1.13831 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.575813Jy  sigma=0.004925
! Fit after  self-cal, rms=0.573489Jy  sigma=0.004916
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.171915 Jy
! Component: 100  -  total flux cleaned = 0.279557 Jy
! Total flux subtracted in 100 components = 0.279557 Jy
! Clean residual min=-0.027574 max=0.059544 Jy/beam
! Clean residual mean=0.000771 rms=0.009073 Jy/beam
! Combined flux in latest and established models = 1.41787 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 26 components and 1.41787 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.502076Jy  sigma=0.004269
! Fit after  self-cal, rms=0.501461Jy  sigma=0.004265
! Inverting map 
! Added new window around map position (2, 3.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0761893 Jy
! Component: 100  -  total flux cleaned = 0.131587 Jy
! Total flux subtracted in 100 components = 0.131587 Jy
! Clean residual min=-0.026019 max=0.038838 Jy/beam
! Clean residual mean=0.000600 rms=0.007541 Jy/beam
! Combined flux in latest and established models = 1.54945 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 40 components and 1.54945 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.483989Jy  sigma=0.004121
! Fit after  self-cal, rms=0.483868Jy  sigma=0.004119
! 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.469 mas, bmaj=5.31 mas, bpa=-7.672 degrees
! Estimated noise=559.645 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.0607865 Jy
! Component: 100  -  total flux cleaned = 0.0988147 Jy
! Component: 150  -  total flux cleaned = 0.123855 Jy
! Component: 200  -  total flux cleaned = 0.140627 Jy
! Total flux subtracted in 200 components = 0.140627 Jy
! Clean residual min=-0.027879 max=0.025798 Jy/beam
! Clean residual mean=0.001313 rms=0.007590 Jy/beam
! Combined flux in latest and established models = 1.69008 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 65 components and 1.69008 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.474654Jy  sigma=0.004065
! Fit after  self-cal, rms=0.474696Jy  sigma=0.004064
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.93     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.00*    KP        0.91     
!   LA        0.99     MA        1.67     MC        1.01     MK        0.94     
!   NL        0.95     NY        1.01     OV        0.98     PT        0.97     
!   SC        1.01     TS        1.02     WF        0.99     WZ        0.92     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.97     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        1.02     KP        1.11     
!   LA        1.04     MA        1.00*    MC        1.00*    MK        0.98     
!   NL        1.00     NY        1.04     OV        0.96     PT        0.97     
!   SC        1.02     TS        1.00*    WF        0.72     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.95     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.00*    KP        0.89     
!   LA        0.96     MA        1.14     MC        1.38     MK        0.95     
!   NL        0.92     NY        1.02     OV        0.96     PT        0.98     
!   SC        0.97     TS        1.01     WF        0.98     WZ        0.92     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.98     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.00     KP        1.00     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        0.98     
!   NL        0.97     NY        1.03     OV        0.93     PT        0.99     
!   SC        0.99     TS        1.00*    WF        0.98     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.92     FD        0.77     GC        0.96     GG        1.00*    
!   HH        1.00*    HN        1.14     KK        1.00*    KP        0.86     
!   LA        1.03     MA        1.22     MC        1.23     MK        0.93     
!   NL        1.03     NY        1.01     OV        1.02     PT        0.94     
!   SC        0.96     TS        0.96     WF        0.85     WZ        0.79     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.12     FD        1.29     GC        1.08     GG        1.00*    
!   HH        1.00*    HN        0.83     KK        0.97     KP        1.52     
!   LA        1.09     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        1.50     NY        1.08     OV        4.12     PT        1.00     
!   SC        1.14     TS        1.00*    WF        1.18     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.96     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.00*    KP        0.93     
!   LA        0.99     MA        1.26     MC        1.40     MK        0.94     
!   NL        0.97     NY        1.02     OV        1.00     PT        0.93     
!   SC        1.01     TS        0.99     WF        0.98     WZ        0.93     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.98     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        1.00     KP        1.00     
!   LA        1.00     MA        1.00*    MC        1.00*    MK        0.97     
!   NL        1.00     NY        1.01     OV        0.97     PT        1.02     
!   SC        1.03     TS        1.00*    WF        0.98     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Fit before self-cal, rms=0.474696Jy  sigma=0.004064
! Fit after  self-cal, rms=0.569446Jy  sigma=0.003494
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.472 mas, bmaj=5.373 mas, bpa=-7.955 degrees
! Estimated noise=561.645 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.0115306 Jy
! Component: 100  -  total flux cleaned = 0.0115285 Jy
! Component: 150  -  total flux cleaned = 0.0115084 Jy
! Component: 200  -  total flux cleaned = 0.0115001 Jy
! Total flux subtracted in 200 components = 0.0115001 Jy
! Clean residual min=-0.009912 max=0.012547 Jy/beam
! Clean residual mean=0.000036 rms=0.002930 Jy/beam
! Combined flux in latest and established models = 1.70158 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 78 components and 1.70158 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.569150Jy  sigma=0.003491
! Fit after  self-cal, rms=0.574688Jy  sigma=0.003480
! 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.574688Jy  sigma=0.003480
! Fit after  self-cal, rms=0.586564Jy  sigma=0.003447
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.472 mas, bmaj=5.384 mas, bpa=-8.043 degrees
! Estimated noise=562.892 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -7.73065e-05 Jy
! Component: 100  -  total flux cleaned = -6.97422e-05 Jy
! Component: 150  -  total flux cleaned = -6.8248e-05 Jy
! Component: 200  -  total flux cleaned = -0.000194702 Jy
! Total flux subtracted in 200 components = -0.000194702 Jy
! Clean residual min=-0.008354 max=0.010306 Jy/beam
! Clean residual mean=-0.000190 rms=0.002281 Jy/beam
! Combined flux in latest and established models = 1.70139 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 84 components and 1.70139 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.586487Jy  sigma=0.003446
! Fit after  self-cal, rms=0.587221Jy  sigma=0.003446
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 (-2, 14).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00825657 Jy
! Component: 100  -  total flux cleaned = 0.00865093 Jy
! Component: 150  -  total flux cleaned = 0.00834822 Jy
! Component: 200  -  total flux cleaned = 0.00793168 Jy
! Total flux subtracted in 200 components = 0.00793168 Jy
! Clean residual min=-0.007798 max=0.009920 Jy/beam
! Clean residual mean=-0.000251 rms=0.002230 Jy/beam
! Combined flux in latest and established models = 1.70932 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 107 components and 1.70932 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.586979Jy  sigma=0.003444
! Fit after  self-cal, rms=0.587045Jy  sigma=0.003444
! Inverting map 
! Added new window around map position (50.5, 35.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00709712 Jy
! Component: 100  -  total flux cleaned = 0.00957635 Jy
! Component: 150  -  total flux cleaned = 0.0118153 Jy
! Component: 200  -  total flux cleaned = 0.0122518 Jy
! Total flux subtracted in 200 components = 0.0122518 Jy
! Clean residual min=-0.007855 max=0.009023 Jy/beam
! Clean residual mean=-0.000339 rms=0.002133 Jy/beam
! Combined flux in latest and established models = 1.72157 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 130 components and 1.72157 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.586797Jy  sigma=0.003442
! Fit after  self-cal, rms=0.586885Jy  sigma=0.003442
! Inverting map 
! Added new window around map position (-13.5, 61.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00780948 Jy
! Component: 100  -  total flux cleaned = 0.00921449 Jy
! Component: 150  -  total flux cleaned = 0.0101191 Jy
! Component: 200  -  total flux cleaned = 0.0102543 Jy
! Total flux subtracted in 200 components = 0.0102543 Jy
! Clean residual min=-0.007861 max=0.006854 Jy/beam
! Clean residual mean=-0.000421 rms=0.002027 Jy/beam
! Combined flux in latest and established models = 1.73182 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 148 components and 1.73182 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.586679Jy  sigma=0.003441
! Fit after  self-cal, rms=0.586727Jy  sigma=0.003441
! 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.586727Jy  sigma=0.003441
! Fit after  self-cal, rms=0.586183Jy  sigma=0.003441
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.476 mas, bmaj=5.384 mas, bpa=-8.049 degrees
! Estimated noise=563.753 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00377355 Jy
! Component: 100  -  total flux cleaned = 0.00463323 Jy
! Component: 150  -  total flux cleaned = 0.00488865 Jy
! Component: 200  -  total flux cleaned = 0.00512924 Jy
! Total flux subtracted in 200 components = 0.00512924 Jy
! Clean residual min=-0.008329 max=0.006697 Jy/beam
! Clean residual mean=-0.000387 rms=0.001997 Jy/beam
! Combined flux in latest and established models = 1.73695 Jy
selfcal
! Performing phase self-cal
! Adding 41 model components to the UV plane model.
! The established model now contains 158 components and 1.73695 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.586074Jy  sigma=0.003440
! Fit after  self-cal, rms=0.586358Jy  sigma=0.003440
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.00128289 Jy
! Component: 100  -  total flux cleaned = 0.00128674 Jy
! Component: 150  -  total flux cleaned = 0.0012894 Jy
! Component: 200  -  total flux cleaned = 0.00118858 Jy
! Total flux subtracted in 200 components = 0.00118858 Jy
! Clean residual min=-0.008389 max=0.006623 Jy/beam
! Clean residual mean=-0.000391 rms=0.001983 Jy/beam
! Combined flux in latest and established models = 1.73814 Jy
! Performing phase self-cal
! Adding 43 model components to the UV plane model.
! The established model now contains 165 components and 1.73814 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.586296Jy  sigma=0.003440
! Fit after  self-cal, rms=0.586327Jy  sigma=0.003440
! 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.586327Jy  sigma=0.003440
! Fit after  self-cal, rms=0.586263Jy  sigma=0.003440
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.391 mas, bmaj=9.648 mas, bpa=-2.188 degrees
! Estimated noise=748.026 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000249228 Jy
! Component: 100  -  total flux cleaned = 0.000124754 Jy
! Component: 150  -  total flux cleaned = 2.10832e-05 Jy
! Component: 200  -  total flux cleaned = -0.000160911 Jy
! Total flux subtracted in 200 components = -0.000160911 Jy
! Clean residual min=-0.012542 max=0.009289 Jy/beam
! Clean residual mean=-0.001032 rms=0.002890 Jy/beam
! Combined flux in latest and established models = 1.73798 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 181 components and 1.73798 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.586250Jy  sigma=0.003440
! Fit after  self-cal, rms=0.586349Jy  sigma=0.003440
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 3.39417e-05 Jy
! Component: 100  -  total flux cleaned = -0.000211474 Jy
! Component: 150  -  total flux cleaned = -0.000286837 Jy
! Component: 200  -  total flux cleaned = -0.000357908 Jy
! Total flux subtracted in 200 components = -0.000357908 Jy
! Clean residual min=-0.012755 max=0.009288 Jy/beam
! Clean residual mean=-0.001016 rms=0.002866 Jy/beam
! Combined flux in latest and established models = 1.73762 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 189 components and 1.73762 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.586344Jy  sigma=0.003440
! Fit after  self-cal, rms=0.586367Jy  sigma=0.003440
! 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.478 mas, bmaj=5.386 mas, bpa=-8.047 degrees
! Estimated noise=564.147 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.478 x 5.386 at -8.047 degrees (North through East)
! Clean map  min=-0.0083058  max=1.1081 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.586367Jy  sigma=0.003440
! Fit after  self-cal, rms=1.520877Jy  sigma=0.003051
! Inverting map and beam 
! Estimated beam: bmin=2.479 mas, bmaj=5.407 mas, bpa=-8.069 degrees
! Estimated noise=566.298 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00395976 Jy
! Component: 100  -  total flux cleaned = -0.00499173 Jy
! Component: 150  -  total flux cleaned = -0.00621473 Jy
! Component: 200  -  total flux cleaned = -0.00742675 Jy
! Total flux subtracted in 200 components = -0.00742675 Jy
! Clean residual min=-0.007583 max=0.008216 Jy/beam
! Clean residual mean=-0.000354 rms=0.001943 Jy/beam
! Combined flux in latest and established models = 1.7302 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 197 components and 1.7302 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.520728Jy  sigma=0.003050
! Fit after  self-cal, rms=1.521303Jy  sigma=0.003050
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00121284 Jy
! Component: 100  -  total flux cleaned = -0.00180021 Jy
! Component: 150  -  total flux cleaned = -0.00212463 Jy
! Component: 200  -  total flux cleaned = -0.00243436 Jy
! Total flux subtracted in 200 components = -0.00243436 Jy
! Clean residual min=-0.007498 max=0.008242 Jy/beam
! Clean residual mean=-0.000331 rms=0.001921 Jy/beam
! Combined flux in latest and established models = 1.72776 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 210 components and 1.72776 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.521235Jy  sigma=0.003050
! Fit after  self-cal, rms=1.521329Jy  sigma=0.003050
! 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.521329Jy  sigma=0.003050
! Fit after  self-cal, rms=1.637212Jy  sigma=0.003049
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.046 mas, bmaj=4.785 mas, bpa=-6.796 degrees
! Estimated noise=1058.26 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.824775 Jy
! Component: 100  -  total flux cleaned = 1.14961 Jy
! Component: 150  -  total flux cleaned = 1.31534 Jy
! Component: 200  -  total flux cleaned = 1.41446 Jy
! Total flux subtracted in 200 components = 1.41446 Jy
! Clean residual min=-0.016178 max=0.053059 Jy/beam
! Clean residual mean=0.000424 rms=0.006166 Jy/beam
! Combined flux in latest and established models = 1.41446 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 25 model components to the UV plane model.
! The established model now contains 25 components and 1.41446 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.481 mas, bmaj=5.421 mas, bpa=-8.089 degrees
! Estimated noise=567.198 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.10022 Jy
! Component: 100  -  total flux cleaned = 0.159847 Jy
! Component: 150  -  total flux cleaned = 0.198164 Jy
! Component: 200  -  total flux cleaned = 0.223392 Jy
! Total flux subtracted in 200 components = 0.223392 Jy
! Clean residual min=-0.009921 max=0.018476 Jy/beam
! Clean residual mean=0.000454 rms=0.003052 Jy/beam
! Combined flux in latest and established models = 1.63786 Jy
! Adding 48 model components to the UV plane model.
! The established model now contains 67 components and 1.63786 Jy
! Inverting map 
! Added new window around map position (-2.5, 0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.019094 Jy
! Component: 100  -  total flux cleaned = 0.0332204 Jy
! Component: 150  -  total flux cleaned = 0.0447076 Jy
! Component: 200  -  total flux cleaned = 0.0531629 Jy
! Total flux subtracted in 200 components = 0.0531629 Jy
! Clean residual min=-0.008651 max=0.009551 Jy/beam
! Clean residual mean=-0.000037 rms=0.002274 Jy/beam
! Combined flux in latest and established models = 1.69102 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 99 components and 1.69102 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.393 mas, bmaj=9.686 mas, bpa=-2.486 degrees
! Estimated noise=747.475 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0142698 Jy
! Component: 100  -  total flux cleaned = 0.0229002 Jy
! Component: 150  -  total flux cleaned = 0.028909 Jy
! Component: 200  -  total flux cleaned = 0.0309409 Jy
! Total flux subtracted in 200 components = 0.0309409 Jy
! Clean residual min=-0.010537 max=0.009180 Jy/beam
! Clean residual mean=-0.000871 rms=0.002973 Jy/beam
! Combined flux in latest and established models = 1.72196 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.00014959 Jy
! Component: 100  -  total flux cleaned = 0.000150636 Jy
! Component: 150  -  total flux cleaned = 0.000411136 Jy
! Component: 200  -  total flux cleaned = 0.000287959 Jy
! Total flux subtracted in 200 components = 0.000287959 Jy
! Clean residual min=-0.010132 max=0.009097 Jy/beam
! Clean residual mean=-0.000877 rms=0.002898 Jy/beam
! Combined flux in latest and established models = 1.72225 Jy
! Adding 49 model components to the UV plane model.
! The established model now contains 136 components and 1.72225 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.481 mas, bmaj=5.421 mas, bpa=-8.089 degrees
! Estimated noise=567.198 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00145407 Jy
! Component: 100  -  total flux cleaned = -0.00100324 Jy
! Component: 150  -  total flux cleaned = -0.000812247 Jy
! Component: 200  -  total flux cleaned = -0.000456354 Jy
! Total flux subtracted in 200 components = -0.000456354 Jy
! Clean residual min=-0.007099 max=0.008339 Jy/beam
! Clean residual mean=-0.000301 rms=0.001978 Jy/beam
! Combined flux in latest and established models = 1.72179 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 156 components and 1.72179 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.637070Jy  sigma=0.003052
! Fit after  self-cal, rms=1.636967Jy  sigma=0.003051
wmodel J0530+1331_S_2000_12_04_pus_map.mod
! Writing 156 model components to file: J0530+1331_S_2000_12_04_pus_map.mod
wobs J0530+1331_S_2000_12_04_pus_uvs.fits
! Writing UV FITS file: J0530+1331_S_2000_12_04_pus_uvs.fits
wwins J0530+1331_S_2000_12_04_pus_map.win
! wwins: Wrote 6 windows to J0530+1331_S_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 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00226824 Jy
! Component: 100  -  total flux cleaned = 0.00264787 Jy
! Component: 150  -  total flux cleaned = 0.00325548 Jy
! Component: 200  -  total flux cleaned = 0.00325557 Jy
! Component: 250  -  total flux cleaned = 0.0032556 Jy
! Component: 300  -  total flux cleaned = 0.00303527 Jy
! Component: 350  -  total flux cleaned = 0.0030346 Jy
! Component: 400  -  total flux cleaned = 0.00303309 Jy
! Component: 450  -  total flux cleaned = 0.00283007 Jy
! Component: 500  -  total flux cleaned = 0.00303294 Jy
! Component: 550  -  total flux cleaned = 0.0032316 Jy
! Component: 600  -  total flux cleaned = 0.00323374 Jy
! Component: 650  -  total flux cleaned = 0.00333077 Jy
! Component: 700  -  total flux cleaned = 0.00333169 Jy
! Component: 750  -  total flux cleaned = 0.00323975 Jy
! Component: 800  -  total flux cleaned = 0.0033318 Jy
! Component: 850  -  total flux cleaned = 0.00315025 Jy
! Component: 900  -  total flux cleaned = 0.0033293 Jy
! Component: 950  -  total flux cleaned = 0.00306285 Jy
! Component: 1000  -  total flux cleaned = 0.0028001 Jy
! Component: 1050  -  total flux cleaned = 0.00253984 Jy
! Component: 1100  -  total flux cleaned = 0.00236843 Jy
! Component: 1150  -  total flux cleaned = 0.00228284 Jy
! Component: 1200  -  total flux cleaned = 0.00194616 Jy
! Component: 1250  -  total flux cleaned = 0.00186202 Jy
! Component: 1300  -  total flux cleaned = 0.00169632 Jy
! Component: 1350  -  total flux cleaned = 0.0014512 Jy
! Component: 1400  -  total flux cleaned = 0.00137014 Jy
! Component: 1450  -  total flux cleaned = 0.00128998 Jy
! Component: 1500  -  total flux cleaned = 0.00112981 Jy
! Component: 1550  -  total flux cleaned = 0.000971625 Jy
! Component: 1600  -  total flux cleaned = 0.000971275 Jy
! Component: 1650  -  total flux cleaned = 0.000737572 Jy
! Component: 1700  -  total flux cleaned = 0.000660856 Jy
! Component: 1750  -  total flux cleaned = 0.000507452 Jy
! Component: 1800  -  total flux cleaned = 0.000507619 Jy
! Component: 1850  -  total flux cleaned = 0.000281107 Jy
! Component: 1900  -  total flux cleaned = 0.000131684 Jy
! Component: 1950  -  total flux cleaned = 0.000131903 Jy
! Component: 2000  -  total flux cleaned = -0.000236339 Jy
! Total flux subtracted in 2048 components = 5.65207e-05 Jy
! Clean residual min=-0.004814 max=0.004633 Jy/beam
! Clean residual mean=-0.000293 rms=0.001458 Jy/beam
! Combined flux in latest and established models = 1.72185 Jy
keep
! Adding 154 model components to the UV plane model.
! The established model now contains 310 components and 1.72185 Jy
![Exited script file: muppet]
wmap "J0530+1331_S_2000_12_04_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.481 x 5.421 at -8.089 degrees (North through East)
! Clean map  min=-0.0065287  max=1.1148 Jy/beam
! Writing clean map to FITS file: J0530+1331_S_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 1.1148 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00145294 
device "J0530+1331_S_2000_12_04_pus\_map.eps/VPS"
! Attempting to open device: 'J0530+1331_S_2000_12_04_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.390996 0.390996 0.781992 1.56398 3.12797 6.25593 12.5119 25.0237 50.0475
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0043 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.114 
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.481 x 5.421 at -8.089 degrees (North through East)
! Clean map  min=-0.0065287  max=1.1148 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0530+1331_S_2000_12_04_pus\_map.gif/vgif"
! Attempting to open device: 'J0530+1331_S_2000_12_04_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0530+1331_S_2000_12_04_pus_uvs.log closed on Wed Oct 17 16:58:16 2007