! Started logfile: J0530+1331_S_2001_04_09_pus_uvs.log on Fri Oct  5 15:54:31 2007
obs J0530+1331_S_2001_04_09_pus_uva.fits
! Reading UV FITS file: J0530+1331_S_2001_04_09_pus_uva.fits
! AN table 1: 222 integrations on 190 of 190 possible baselines.
! AN table 2: 129 integrations on 190 of 190 possible baselines.
! AN table 3: 150 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0855237 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.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 1949 lines of history.
! 
! Reading 32564 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_2001_04_09_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 3270 telescope corrections were flagged in sub-array 1.
!  A total of 2054 telescope corrections were flagged in sub-array 2.
!  A total of 2367 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 3270 telescope corrections were flagged in sub-array 1.
!  A total of 2054 telescope corrections were flagged in sub-array 2.
!  A total of 2367 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 3270 telescope corrections were flagged in sub-array 1.
!  A total of 2054 telescope corrections were flagged in sub-array 2.
!  A total of 2367 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 3270 telescope corrections were flagged in sub-array 1.
!  A total of 2054 telescope corrections were flagged in sub-array 2.
!  A total of 2367 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.105245Jy  sigma=0.007818
! Fit after  self-cal, rms=0.604714Jy  sigma=0.004281
! 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.91 mas, bmaj=3.898 mas, bpa=-10.06 degrees
! Estimated noise=972.855 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.824152 Jy
! Component: 100  -  total flux cleaned = 1.16681 Jy
! Total flux subtracted in 100 components = 1.16681 Jy
! Clean residual min=-0.030357 max=0.159140 Jy/beam
! Clean residual mean=0.000347 rms=0.012332 Jy/beam
! Combined flux in latest and established models = 1.16681 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 1.16681 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.467113Jy  sigma=0.003275
! Fit after  self-cal, rms=0.463680Jy  sigma=0.003264
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.184899 Jy
! Component: 100  -  total flux cleaned = 0.296401 Jy
! Total flux subtracted in 100 components = 0.296401 Jy
! Clean residual min=-0.020439 max=0.066937 Jy/beam
! Clean residual mean=0.000216 rms=0.007012 Jy/beam
! Combined flux in latest and established models = 1.46321 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 29 components and 1.46321 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.373112Jy  sigma=0.002254
! Fit after  self-cal, rms=0.371135Jy  sigma=0.002246
! 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.0829909 Jy
! Component: 100  -  total flux cleaned = 0.142096 Jy
! Total flux subtracted in 100 components = 0.142096 Jy
! Clean residual min=-0.017373 max=0.033649 Jy/beam
! Clean residual mean=0.000154 rms=0.005070 Jy/beam
! Combined flux in latest and established models = 1.60531 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 39 components and 1.60531 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.348750Jy  sigma=0.001947
! Fit after  self-cal, rms=0.348142Jy  sigma=0.001943
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0453886 Jy
! Component: 100  -  total flux cleaned = 0.0789942 Jy
! Total flux subtracted in 100 components = 0.0789942 Jy
! Clean residual min=-0.015658 max=0.020050 Jy/beam
! Clean residual mean=0.000119 rms=0.004238 Jy/beam
! Combined flux in latest and established models = 1.6843 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 52 components and 1.6843 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.341640Jy  sigma=0.001840
! Fit after  self-cal, rms=0.341455Jy  sigma=0.001839
! 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.235 mas, bmaj=4.492 mas, bpa=-12.06 degrees
! Estimated noise=565.81 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, 4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0345818 Jy
! Component: 100  -  total flux cleaned = 0.0578082 Jy
! Component: 150  -  total flux cleaned = 0.0742811 Jy
! Component: 200  -  total flux cleaned = 0.0839373 Jy
! Total flux subtracted in 200 components = 0.0839373 Jy
! Clean residual min=-0.015124 max=0.013850 Jy/beam
! Clean residual mean=0.000864 rms=0.003696 Jy/beam
! Combined flux in latest and established models = 1.76824 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 82 components and 1.76824 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.338418Jy  sigma=0.001784
! Fit after  self-cal, rms=0.338289Jy  sigma=0.001783
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.94     GC        1.05     GG        1.00*    
!   HH        0.97     HN        0.95     KK        1.30     KP        1.00     
!   LA        0.96     MA        1.11     MC        1.12     MK        1.03     
!   NL        0.99     NY        0.99     OV        1.02     PT        0.94     
!   SC        1.00     TS        0.93     WF        1.04     WZ        1.10     
! 
!  A total of 132 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.00*    GC        1.00     GG        1.00*    
!   HH        1.27     HN        1.00*    KK        0.97     KP        1.02     
!   LA        1.01     MA        0.93     MC        0.87     MK        1.00     
!   NL        1.00*    NY        1.00     OV        1.02     PT        1.00     
!   SC        1.00*    TS        0.97     WF        1.00*    WZ        0.86     
! 
!  A total of 60 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.99     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        0.98     KP        1.01     
!   LA        0.96     MA        0.91     MC        1.32     MK        0.97     
!   NL        0.97     NY        1.10     OV        1.03     PT        0.95     
!   SC        1.02     TS        1.00*    WF        1.01     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.94     GC        1.01     GG        1.00*    
!   HH        1.13     HN        0.96     KK        1.65     KP        1.02     
!   LA        0.98     MA        0.96     MC        1.15     MK        1.04     
!   NL        0.99     NY        1.01     OV        0.98     PT        0.98     
!   SC        0.99     TS        0.98     WF        0.98     WZ        1.06     
! 
!  A total of 132 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.00*    GC        0.95     GG        1.00*    
!   HH        1.22     HN        1.00*    KK        0.96     KP        1.01     
!   LA        1.04     MA        0.69     MC        0.97     MK        0.99     
!   NL        1.00*    NY        1.03     OV        1.00     PT        1.02     
!   SC        1.00*    TS        0.99     WF        1.00*    WZ        0.83     
! 
!  A total of 60 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.99     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.95     KK        0.95     KP        1.00     
!   LA        0.96     MA        0.86     MC        0.98     MK        0.97     
!   NL        0.98     NY        1.11     OV        1.00     PT        0.99     
!   SC        1.01     TS        1.00*    WF        1.00     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.93     GC        0.98     GG        1.00*    
!   HH        1.07     HN        0.97     KK        1.51     KP        1.01     
!   LA        0.94     MA        1.15     MC        1.06     MK        1.00     
!   NL        0.98     NY        1.90     OV        0.99     PT        0.98     
!   SC        0.96     TS        0.67     WF        0.98     WZ        1.06     
! 
!  A total of 132 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.00*    GC        0.94     GG        1.00*    
!   HH        1.07     HN        1.00*    KK        0.96     KP        1.05     
!   LA        1.00     MA        0.99     MC        0.90     MK        0.95     
!   NL        1.00*    NY        1.00     OV        0.97     PT        1.04     
!   SC        1.00*    TS        1.00     WF        1.00*    WZ        0.86     
! 
!  A total of 60 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.98     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        0.96     KP        1.01     
!   LA        0.94     MA        0.90     MC        0.85     MK        0.91     
!   NL        0.98     NY        1.05     OV        0.99     PT        0.99     
!   SC        0.99     TS        1.00*    WF        1.00     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.93     GC        1.02     GG        1.00*    
!   HH        0.93     HN        0.98     KK        1.37     KP        1.00     
!   LA        0.97     MA        0.89     MC        1.62     MK        0.98     
!   NL        0.98     NY        1.04     OV        0.98     PT        1.04     
!   SC        0.95     TS        0.92     WF        0.99     WZ        1.10     
! 
!  A total of 132 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.00*    GC        0.98     GG        1.00*    
!   HH        0.69     HN        1.00*    KK        0.94     KP        1.02     
!   LA        1.04     MA        1.32     MC        1.26     MK        0.94     
!   NL        1.00*    NY        0.91     OV        0.99     PT        1.06     
!   SC        1.00*    TS        0.93     WF        1.00*    WZ        1.39     
! 
!  A total of 60 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.98     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        0.93     KP        1.00     
!   LA        0.96     MA        0.80     MC        1.50     MK        0.91     
!   NL        0.97     NY        1.13     OV        0.98     PT        1.07     
!   SC        0.99     TS        1.00*    WF        0.99     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.338289Jy  sigma=0.001783
! Fit after  self-cal, rms=0.370658Jy  sigma=0.001583
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.255 mas, bmaj=4.511 mas, bpa=-11.6 degrees
! Estimated noise=572.685 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.00943327 Jy
! Component: 100  -  total flux cleaned = 0.0117421 Jy
! Component: 150  -  total flux cleaned = 0.0123103 Jy
! Component: 200  -  total flux cleaned = 0.0125952 Jy
! Total flux subtracted in 200 components = 0.0125952 Jy
! Clean residual min=-0.005586 max=0.005802 Jy/beam
! Clean residual mean=0.000340 rms=0.001520 Jy/beam
! Combined flux in latest and established models = 1.78083 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 94 components and 1.78083 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.370311Jy  sigma=0.001579
! Fit after  self-cal, rms=0.371850Jy  sigma=0.001575
! 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.371850Jy  sigma=0.001575
! Fit after  self-cal, rms=0.380026Jy  sigma=0.001558
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.258 mas, bmaj=4.492 mas, bpa=-11.71 degrees
! Estimated noise=572.363 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00469188 Jy
! Component: 100  -  total flux cleaned = 0.00606865 Jy
! Component: 150  -  total flux cleaned = 0.00644306 Jy
! Component: 200  -  total flux cleaned = 0.00677709 Jy
! Total flux subtracted in 200 components = 0.00677709 Jy
! Clean residual min=-0.004709 max=0.005162 Jy/beam
! Clean residual mean=0.000215 rms=0.001273 Jy/beam
! Combined flux in latest and established models = 1.78761 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 102 components and 1.78761 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.379898Jy  sigma=0.001557
! Fit after  self-cal, rms=0.380133Jy  sigma=0.001556
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.00135852 Jy
! Component: 100  -  total flux cleaned = 0.00167695 Jy
! Component: 150  -  total flux cleaned = 0.00195822 Jy
! Component: 200  -  total flux cleaned = 0.00228726 Jy
! Total flux subtracted in 200 components = 0.00228726 Jy
! Clean residual min=-0.004664 max=0.005164 Jy/beam
! Clean residual mean=0.000200 rms=0.001240 Jy/beam
! Combined flux in latest and established models = 1.7899 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 107 components and 1.7899 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.380072Jy  sigma=0.001555
! Fit after  self-cal, rms=0.380081Jy  sigma=0.001555
! 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.380081Jy  sigma=0.001555
! Fit after  self-cal, rms=0.381645Jy  sigma=0.001555
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.259 mas, bmaj=4.482 mas, bpa=-11.75 degrees
! Estimated noise=572.323 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00301721 Jy
! Component: 100  -  total flux cleaned = 0.00375608 Jy
! Component: 150  -  total flux cleaned = 0.0040772 Jy
! Component: 200  -  total flux cleaned = 0.00428784 Jy
! Total flux subtracted in 200 components = 0.00428784 Jy
! Clean residual min=-0.004697 max=0.005037 Jy/beam
! Clean residual mean=0.000132 rms=0.001221 Jy/beam
! Combined flux in latest and established models = 1.79419 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 113 components and 1.79419 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.381593Jy  sigma=0.001554
! Fit after  self-cal, rms=0.381661Jy  sigma=0.001554
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.000674135 Jy
! Component: 100  -  total flux cleaned = 0.00067626 Jy
! Component: 150  -  total flux cleaned = 0.000805282 Jy
! Component: 200  -  total flux cleaned = 0.000803733 Jy
! Total flux subtracted in 200 components = 0.000803733 Jy
! Clean residual min=-0.004663 max=0.005087 Jy/beam
! Clean residual mean=0.000127 rms=0.001209 Jy/beam
! Combined flux in latest and established models = 1.79499 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 117 components and 1.79499 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.381633Jy  sigma=0.001554
! Fit after  self-cal, rms=0.381635Jy  sigma=0.001554
! 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.381635Jy  sigma=0.001554
! Fit after  self-cal, rms=0.382156Jy  sigma=0.001554
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=6.715 mas, bmaj=8.651 mas, bpa=-20.46 degrees
! Estimated noise=825.505 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00548356 Jy
! Component: 100  -  total flux cleaned = 0.00681311 Jy
! Component: 150  -  total flux cleaned = 0.00695894 Jy
! Component: 200  -  total flux cleaned = 0.00698777 Jy
! Total flux subtracted in 200 components = 0.00698777 Jy
! Clean residual min=-0.005532 max=0.005973 Jy/beam
! Clean residual mean=0.000263 rms=0.001951 Jy/beam
! Combined flux in latest and established models = 1.80198 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 123 components and 1.80198 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.382162Jy  sigma=0.001554
! Fit after  self-cal, rms=0.382177Jy  sigma=0.001554
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.000745532 Jy
! Component: 100  -  total flux cleaned = 0.000831976 Jy
! Component: 150  -  total flux cleaned = 0.000865335 Jy
! Component: 200  -  total flux cleaned = 0.000919196 Jy
! Total flux subtracted in 200 components = 0.000919196 Jy
! Clean residual min=-0.005384 max=0.005812 Jy/beam
! Clean residual mean=0.000242 rms=0.001940 Jy/beam
! Combined flux in latest and established models = 1.8029 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 128 components and 1.8029 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.382184Jy  sigma=0.001554
! Fit after  self-cal, rms=0.382183Jy  sigma=0.001554
! 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.259 mas, bmaj=4.474 mas, bpa=-11.77 degrees
! Estimated noise=572.446 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.259 x 4.474 at -11.77 degrees (North through East)
! Clean map  min=-0.0042608  max=1.0938 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.382183Jy  sigma=0.001554
! Fit after  self-cal, rms=1.716661Jy  sigma=0.001393
! Inverting map and beam 
! Estimated beam: bmin=2.257 mas, bmaj=4.49 mas, bpa=-11.79 degrees
! Estimated noise=572.354 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00228719 Jy
! Component: 100  -  total flux cleaned = -0.00254051 Jy
! Component: 150  -  total flux cleaned = -0.00260979 Jy
! Component: 200  -  total flux cleaned = -0.00273475 Jy
! Total flux subtracted in 200 components = -0.00273475 Jy
! Clean residual min=-0.003840 max=0.004227 Jy/beam
! Clean residual mean=0.000084 rms=0.001031 Jy/beam
! Combined flux in latest and established models = 1.80016 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 133 components and 1.80016 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.716631Jy  sigma=0.001393
! Fit after  self-cal, rms=1.716640Jy  sigma=0.001393
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -6.72621e-06 Jy
! Component: 100  -  total flux cleaned = -0.000115458 Jy
! Component: 150  -  total flux cleaned = -0.000162 Jy
! Component: 200  -  total flux cleaned = -0.000161865 Jy
! Total flux subtracted in 200 components = -0.000161865 Jy
! Clean residual min=-0.003842 max=0.004131 Jy/beam
! Clean residual mean=0.000085 rms=0.001027 Jy/beam
! Combined flux in latest and established models = 1.8 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 134 components and 1.8 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.716631Jy  sigma=0.001393
! Fit after  self-cal, rms=1.716628Jy  sigma=0.001393
! 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.716628Jy  sigma=0.001393
! Fit after  self-cal, rms=2.850272Jy  sigma=0.001392
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.935 mas, bmaj=3.909 mas, bpa=-9.773 degrees
! Estimated noise=983.725 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.829625 Jy
! Component: 100  -  total flux cleaned = 1.17096 Jy
! Component: 150  -  total flux cleaned = 1.35475 Jy
! Component: 200  -  total flux cleaned = 1.46682 Jy
! Total flux subtracted in 200 components = 1.46682 Jy
! Clean residual min=-0.015309 max=0.061547 Jy/beam
! Clean residual mean=0.000150 rms=0.005753 Jy/beam
! Combined flux in latest and established models = 1.46682 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 27 model components to the UV plane model.
! The established model now contains 27 components and 1.46682 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.257 mas, bmaj=4.489 mas, bpa=-11.8 degrees
! Estimated noise=572.246 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.109357 Jy
! Component: 100  -  total flux cleaned = 0.177251 Jy
! Component: 150  -  total flux cleaned = 0.221685 Jy
! Component: 200  -  total flux cleaned = 0.251995 Jy
! Total flux subtracted in 200 components = 0.251995 Jy
! Clean residual min=-0.005897 max=0.016806 Jy/beam
! Clean residual mean=0.000661 rms=0.002573 Jy/beam
! Combined flux in latest and established models = 1.71881 Jy
! Adding 41 model components to the UV plane model.
! The established model now contains 61 components and 1.71881 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0214601 Jy
! Component: 100  -  total flux cleaned = 0.0370965 Jy
! Component: 150  -  total flux cleaned = 0.0486959 Jy
! Component: 200  -  total flux cleaned = 0.0573995 Jy
! Total flux subtracted in 200 components = 0.0573995 Jy
! Clean residual min=-0.003878 max=0.006853 Jy/beam
! Clean residual mean=0.000256 rms=0.001234 Jy/beam
! Combined flux in latest and established models = 1.77621 Jy
! Adding 39 model components to the UV plane model.
! The established model now contains 86 components and 1.77621 Jy
! Inverting map 
! Added new window around map position (4, 8.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0074257 Jy
! Component: 100  -  total flux cleaned = 0.0129365 Jy
! Component: 150  -  total flux cleaned = 0.017267 Jy
! Component: 200  -  total flux cleaned = 0.0203455 Jy
! Total flux subtracted in 200 components = 0.0203455 Jy
! Clean residual min=-0.004020 max=0.004640 Jy/beam
! Clean residual mean=0.000116 rms=0.001027 Jy/beam
! Combined flux in latest and established models = 1.79656 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 105 components and 1.79656 Jy
! Inverting map 
! Added new window around map position (41, -49).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00393423 Jy
! Component: 100  -  total flux cleaned = 0.00534271 Jy
! Component: 150  -  total flux cleaned = 0.00619539 Jy
! Component: 200  -  total flux cleaned = 0.00679166 Jy
! Total flux subtracted in 200 components = 0.00679166 Jy
! Clean residual min=-0.003874 max=0.004213 Jy/beam
! Clean residual mean=0.000071 rms=0.000996 Jy/beam
! Combined flux in latest and established models = 1.80335 Jy
! Adding 26 model components to the UV plane model.
! The established model now contains 118 components and 1.80335 Jy
! Inverting map 
! Added new window around map position (21.5, 44.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00285647 Jy
! Component: 100  -  total flux cleaned = 0.00378235 Jy
! Component: 150  -  total flux cleaned = 0.00452537 Jy
! Component: 200  -  total flux cleaned = 0.00513195 Jy
! Total flux subtracted in 200 components = 0.00513195 Jy
! Clean residual min=-0.003641 max=0.003644 Jy/beam
! Clean residual mean=0.000038 rms=0.000954 Jy/beam
! Combined flux in latest and established models = 1.80848 Jy
! Adding 28 model components to the UV plane model.
! The established model now contains 133 components and 1.80848 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=6.714 mas, bmaj=8.645 mas, bpa=-20.67 degrees
! Estimated noise=825.387 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00338051 Jy
! Component: 100  -  total flux cleaned = 0.00514923 Jy
! Component: 150  -  total flux cleaned = 0.00595215 Jy
! Component: 200  -  total flux cleaned = 0.00663636 Jy
! Total flux subtracted in 200 components = 0.00663636 Jy
! Clean residual min=-0.003869 max=0.003627 Jy/beam
! Clean residual mean=-0.000012 rms=0.001210 Jy/beam
! Combined flux in latest and established models = 1.81512 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.00054751 Jy
! Component: 100  -  total flux cleaned = 0.00106324 Jy
! Component: 150  -  total flux cleaned = 0.00141528 Jy
! Component: 200  -  total flux cleaned = 0.00160887 Jy
! Total flux subtracted in 200 components = 0.00160887 Jy
! Clean residual min=-0.003760 max=0.003522 Jy/beam
! Clean residual mean=-0.000049 rms=0.001196 Jy/beam
! Combined flux in latest and established models = 1.81673 Jy
! Adding 34 model components to the UV plane model.
! The established model now contains 161 components and 1.81673 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.257 mas, bmaj=4.489 mas, bpa=-11.8 degrees
! Estimated noise=572.246 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00277439 Jy
! Component: 100  -  total flux cleaned = -0.00312619 Jy
! Component: 150  -  total flux cleaned = -0.0032066 Jy
! Component: 200  -  total flux cleaned = -0.00328304 Jy
! Total flux subtracted in 200 components = -0.00328304 Jy
! Clean residual min=-0.003544 max=0.003882 Jy/beam
! Clean residual mean=0.000006 rms=0.000937 Jy/beam
! Combined flux in latest and established models = 1.81344 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 168 components and 1.81344 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.850204Jy  sigma=0.001392
! Fit after  self-cal, rms=2.850175Jy  sigma=0.001392
wmodel J0530+1331_S_2001_04_09_pus_map.mod
! Writing 168 model components to file: J0530+1331_S_2001_04_09_pus_map.mod
wobs J0530+1331_S_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J0530+1331_S_2001_04_09_pus_uvs.fits
wwins J0530+1331_S_2001_04_09_pus_map.win
! wwins: Wrote 6 windows to J0530+1331_S_2001_04_09_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.00098045 Jy
! Component: 100  -  total flux cleaned = 0.00154032 Jy
! Component: 150  -  total flux cleaned = 0.00195738 Jy
! Component: 200  -  total flux cleaned = 0.00247539 Jy
! Component: 250  -  total flux cleaned = 0.00303357 Jy
! Component: 300  -  total flux cleaned = 0.00363214 Jy
! Component: 350  -  total flux cleaned = 0.00411246 Jy
! Component: 400  -  total flux cleaned = 0.00458425 Jy
! Component: 450  -  total flux cleaned = 0.00504786 Jy
! Component: 500  -  total flux cleaned = 0.00550347 Jy
! Component: 550  -  total flux cleaned = 0.00575256 Jy
! Component: 600  -  total flux cleaned = 0.00594926 Jy
! Component: 650  -  total flux cleaned = 0.00599768 Jy
! Component: 700  -  total flux cleaned = 0.00599795 Jy
! Component: 750  -  total flux cleaned = 0.00604562 Jy
! Component: 800  -  total flux cleaned = 0.00599842 Jy
! Component: 850  -  total flux cleaned = 0.00595146 Jy
! Component: 900  -  total flux cleaned = 0.00585925 Jy
! Component: 950  -  total flux cleaned = 0.00581339 Jy
! Component: 1000  -  total flux cleaned = 0.00572312 Jy
! Component: 1050  -  total flux cleaned = 0.00567782 Jy
! Component: 1100  -  total flux cleaned = 0.0056331 Jy
! Component: 1150  -  total flux cleaned = 0.00550096 Jy
! Component: 1200  -  total flux cleaned = 0.00545705 Jy
! Component: 1250  -  total flux cleaned = 0.00537033 Jy
! Component: 1300  -  total flux cleaned = 0.00537043 Jy
! Component: 1350  -  total flux cleaned = 0.00528484 Jy
! Component: 1400  -  total flux cleaned = 0.00528481 Jy
! Component: 1450  -  total flux cleaned = 0.005158 Jy
! Component: 1500  -  total flux cleaned = 0.0051165 Jy
! Component: 1550  -  total flux cleaned = 0.00511654 Jy
! Component: 1600  -  total flux cleaned = 0.00515771 Jy
! Component: 1650  -  total flux cleaned = 0.00507506 Jy
! Component: 1700  -  total flux cleaned = 0.00507499 Jy
! Component: 1750  -  total flux cleaned = 0.00491242 Jy
! Component: 1800  -  total flux cleaned = 0.00495264 Jy
! Component: 1850  -  total flux cleaned = 0.00487244 Jy
! Component: 1900  -  total flux cleaned = 0.00487226 Jy
! Component: 1950  -  total flux cleaned = 0.0047534 Jy
! Component: 2000  -  total flux cleaned = 0.00475338 Jy
! Total flux subtracted in 2048 components = 0.00471427 Jy
! Clean residual min=-0.002874 max=0.002212 Jy/beam
! Clean residual mean=-0.000025 rms=0.000754 Jy/beam
! Combined flux in latest and established models = 1.81816 Jy
keep
! Adding 159 model components to the UV plane model.
! The established model now contains 327 components and 1.81816 Jy
![Exited script file: muppet]
wmap "J0530+1331_S_2001_04_09_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.257 x 4.489 at -11.8 degrees (North through East)
! Clean map  min=-0.0032778  max=1.0956 Jy/beam
! Writing clean map to FITS file: J0530+1331_S_2001_04_09_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.09558 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000755027 
device "J0530+1331_S_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J0530+1331_S_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.206747 0.206747 0.413495 0.82699 1.65398 3.30796 6.61592 13.2318 26.4637 52.9274
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0022 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.095 
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.257 x 4.489 at -11.8 degrees (North through East)
! Clean map  min=-0.0032778  max=1.0956 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0530+1331_S_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J0530+1331_S_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0530+1331_S_2001_04_09_pus_uvs.log closed on Fri Oct  5 15:54:53 2007