! Started logfile: J0730-1141_S_2001_10_29_pus_uvs.log on Wed Feb 27 15:15:44 2008
obs J0730-1141_S_2001_10_29_pus_uva.fits
! Reading UV FITS file: J0730-1141_S_2001_10_29_pus_uva.fits
! AN table 1: 76 integrations on 153 of 153 possible baselines.
! AN table 2: 23 integrations on 153 of 153 possible baselines.
! AN table 3: 147 integrations on 153 of 153 possible baselines.
! AN table 4: 53 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.0584738 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0730-1141
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2604 lines of history.
! 
! Reading 10700 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 J0730-1141_S_2001_10_29_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 1160 telescope corrections were flagged in sub-array 1.
!  A total of 231 telescope corrections were flagged in sub-array 2.
!  A total of 2196 telescope corrections were flagged in sub-array 3.
!  A total of 836 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1160 telescope corrections were flagged in sub-array 1.
!  A total of 231 telescope corrections were flagged in sub-array 2.
!  A total of 2196 telescope corrections were flagged in sub-array 3.
!  A total of 836 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1160 telescope corrections were flagged in sub-array 1.
!  A total of 231 telescope corrections were flagged in sub-array 2.
!  A total of 2196 telescope corrections were flagged in sub-array 3.
!  A total of 836 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1300 telescope corrections were flagged in sub-array 1.
!  A total of 231 telescope corrections were flagged in sub-array 2.
!  A total of 2196 telescope corrections were flagged in sub-array 3.
!  A total of 954 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.710296Jy  sigma=0.013729
! Fit after  self-cal, rms=1.512223Jy  sigma=0.012119
! 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.035 mas, bmaj=4.821 mas, bpa=-1.535 degrees
! Estimated noise=1866.08 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 = 1.73509 Jy
! Component: 100  -  total flux cleaned = 2.16361 Jy
! Total flux subtracted in 100 components = 2.16361 Jy
! Clean residual min=-0.053862 max=0.183397 Jy/beam
! Clean residual mean=0.000986 rms=0.020383 Jy/beam
! Combined flux in latest and established models = 2.16361 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 2.16361 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.531315Jy  sigma=0.004055
! Fit after  self-cal, rms=0.531073Jy  sigma=0.004054
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.2048 Jy
! Component: 100  -  total flux cleaned = 0.318742 Jy
! Total flux subtracted in 100 components = 0.318742 Jy
! Clean residual min=-0.033329 max=0.081109 Jy/beam
! Clean residual mean=0.000447 rms=0.011238 Jy/beam
! Combined flux in latest and established models = 2.48235 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 35 components and 2.48235 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.372007Jy  sigma=0.002578
! Fit after  self-cal, rms=0.371699Jy  sigma=0.002576
! Inverting map 
! Added new window around map position (-2.5, 2.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0855445 Jy
! Component: 100  -  total flux cleaned = 0.139818 Jy
! Total flux subtracted in 100 components = 0.139818 Jy
! Clean residual min=-0.032328 max=0.052158 Jy/beam
! Clean residual mean=0.000212 rms=0.008492 Jy/beam
! Combined flux in latest and established models = 2.62217 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 47 components and 2.62217 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.330634Jy  sigma=0.002143
! Fit after  self-cal, rms=0.329767Jy  sigma=0.002136
! 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.91 mas, bmaj=6.534 mas, bpa=-0.8143 degrees
! Estimated noise=930.812 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.0924789 Jy
! Component: 100  -  total flux cleaned = 0.14132 Jy
! Component: 150  -  total flux cleaned = 0.169509 Jy
! Component: 200  -  total flux cleaned = 0.186052 Jy
! Total flux subtracted in 200 components = 0.186052 Jy
! Clean residual min=-0.026931 max=0.031924 Jy/beam
! Clean residual mean=-0.000242 rms=0.009147 Jy/beam
! Combined flux in latest and established models = 2.80822 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 65 components and 2.80822 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.308015Jy  sigma=0.001851
! Fit after  self-cal, rms=0.306861Jy  sigma=0.001842
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.02     
!   HN        1.07     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.21     MC        0.97     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.04     TS        1.00*    
!   WF        1.04     WZ        0.84     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.03     KK        1.03     KP        0.99     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        1.01     NL        1.02     
!   OV        1.01     PT        1.00     SC        1.00     TS        1.00*    
!   WF        1.06     WZ        1.00*    
! 
!  A total of 66 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.01     KK        1.00     KP        1.03     LA        0.94     
!   MA        1.00*    MC        1.00*    MK        1.05     NL        1.00     
!   OV        0.98     PT        0.97     SC        0.99     TS        1.04     
!   WF        1.02     WZ        1.00*    
! 
!  A total of 78 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.01     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.05     MC        1.07     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.02     
! 
! 
! Correcting IF 2.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.02     
!   HN        1.06     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.66     MC        0.90     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.04     TS        1.00*    
!   WF        0.98     WZ        0.86     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.01     KK        1.03     KP        0.94     LA        0.97     
!   MA        1.00*    MC        1.00*    MK        1.01     NL        1.04     
!   OV        1.05     PT        0.99     SC        0.99     TS        1.00*    
!   WF        1.01     WZ        1.00*    
! 
!  A total of 66 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.98     KK        1.04     KP        1.02     LA        0.97     
!   MA        1.00*    MC        1.00*    MK        1.04     NL        1.00     
!   OV        1.03     PT        0.99     SC        0.99     TS        1.03     
!   WF        1.02     WZ        1.00*    
! 
!  A total of 78 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.03     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.74     MC        0.91     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.09     
! 
! 
! Correcting IF 3.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.04     
!   HN        1.04     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.99     MC        0.93     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.01     TS        1.00*    
!   WF        0.97     WZ        0.89     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.01     KP        0.99     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        0.96     NL        1.08     
!   OV        1.02     PT        1.00     SC        0.98     TS        1.00*    
!   WF        0.79     WZ        1.00*    
! 
!  A total of 66 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.99     KK        1.05     KP        0.94     LA        0.93     
!   MA        1.00*    MC        1.00*    MK        1.00     NL        1.00     
!   OV        1.06     PT        0.99     SC        0.97     TS        1.03     
!   WF        0.99     WZ        1.00*    
! 
!  A total of 78 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.97     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.99     MC        0.94     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.09     
! 
! 
! Correcting IF 4.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.97     
!   HN        1.03     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.03     TS        1.00*    
!   WF        0.98     WZ        0.88     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        0.98     KP        1.00     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        0.99     NL        1.16     
!   OV        1.02     PT        0.99     SC        0.99     TS        1.00*    
!   WF        0.99     WZ        1.00*    
! 
!  A total of 66 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.98     KK        1.03     KP        1.00     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        1.03     NL        1.03     
!   OV        0.99     PT        1.00     SC        0.98     TS        1.02     
!   WF        1.00     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Fit before self-cal, rms=0.306861Jy  sigma=0.001842
! Fit after  self-cal, rms=0.233729Jy  sigma=0.001461
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.888 mas, bmaj=6.414 mas, bpa=-1.425 degrees
! Estimated noise=951.619 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 (-6, 7.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0236614 Jy
! Component: 100  -  total flux cleaned = 0.0317786 Jy
! Component: 150  -  total flux cleaned = 0.0336949 Jy
! Component: 200  -  total flux cleaned = 0.0347408 Jy
! Total flux subtracted in 200 components = 0.0347408 Jy
! Clean residual min=-0.010451 max=0.010733 Jy/beam
! Clean residual mean=-0.000094 rms=0.002861 Jy/beam
! Combined flux in latest and established models = 2.84296 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 89 components and 2.84296 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.231336Jy  sigma=0.001436
! Fit after  self-cal, rms=0.231779Jy  sigma=0.001433
! 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.231779Jy  sigma=0.001433
! Fit after  self-cal, rms=0.228769Jy  sigma=0.001402
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.891 mas, bmaj=6.406 mas, bpa=-1.394 degrees
! Estimated noise=951.354 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00810626 Jy
! Component: 100  -  total flux cleaned = 0.0109343 Jy
! Component: 150  -  total flux cleaned = 0.0122829 Jy
! Component: 200  -  total flux cleaned = 0.0132389 Jy
! Total flux subtracted in 200 components = 0.0132389 Jy
! Clean residual min=-0.008012 max=0.009899 Jy/beam
! Clean residual mean=0.000117 rms=0.002274 Jy/beam
! Combined flux in latest and established models = 2.8562 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 101 components and 2.8562 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.228108Jy  sigma=0.001396
! Fit after  self-cal, rms=0.228039Jy  sigma=0.001395
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (-15, 9.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00988729 Jy
! Component: 100  -  total flux cleaned = 0.0123856 Jy
! Component: 150  -  total flux cleaned = 0.014197 Jy
! Component: 200  -  total flux cleaned = 0.0148388 Jy
! Total flux subtracted in 200 components = 0.0148388 Jy
! Clean residual min=-0.008229 max=0.008470 Jy/beam
! Clean residual mean=-0.000065 rms=0.001984 Jy/beam
! Combined flux in latest and established models = 2.87104 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 118 components and 2.87104 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227566Jy  sigma=0.001390
! Fit after  self-cal, rms=0.227522Jy  sigma=0.001390
! Inverting map 
! Added new window around map position (16.5, 13.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00561251 Jy
! Component: 100  -  total flux cleaned = 0.00596347 Jy
! Component: 150  -  total flux cleaned = 0.00659214 Jy
! Component: 200  -  total flux cleaned = 0.00701292 Jy
! Total flux subtracted in 200 components = 0.00701292 Jy
! Clean residual min=-0.007803 max=0.006782 Jy/beam
! Clean residual mean=-0.000146 rms=0.001847 Jy/beam
! Combined flux in latest and established models = 2.87805 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 134 components and 2.87805 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227144Jy  sigma=0.001387
! Fit after  self-cal, rms=0.227137Jy  sigma=0.001387
! 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.227137Jy  sigma=0.001387
! Fit after  self-cal, rms=0.226671Jy  sigma=0.001384
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.892 mas, bmaj=6.401 mas, bpa=-1.385 degrees
! Estimated noise=950.564 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00324541 Jy
! Component: 100  -  total flux cleaned = 0.00467805 Jy
! Component: 150  -  total flux cleaned = 0.00624561 Jy
! Component: 200  -  total flux cleaned = 0.00735554 Jy
! Total flux subtracted in 200 components = 0.00735554 Jy
! Clean residual min=-0.006743 max=0.005649 Jy/beam
! Clean residual mean=-0.000091 rms=0.001592 Jy/beam
! Combined flux in latest and established models = 2.88541 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 141 components and 2.88541 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.226412Jy  sigma=0.001382
! Fit after  self-cal, rms=0.226400Jy  sigma=0.001382
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.00146216 Jy
! Component: 100  -  total flux cleaned = 0.00208098 Jy
! Component: 150  -  total flux cleaned = 0.00252727 Jy
! Component: 200  -  total flux cleaned = 0.00273711 Jy
! Total flux subtracted in 200 components = 0.00273711 Jy
! Clean residual min=-0.006526 max=0.005545 Jy/beam
! Clean residual mean=-0.000123 rms=0.001546 Jy/beam
! Combined flux in latest and established models = 2.88814 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 144 components and 2.88814 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.226269Jy  sigma=0.001381
! Fit after  self-cal, rms=0.226270Jy  sigma=0.001380
! 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.226270Jy  sigma=0.001380
! Fit after  self-cal, rms=0.226087Jy  sigma=0.001380
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.439 mas, bmaj=13.99 mas, bpa=-3.311 degrees
! Estimated noise=1230.6 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00263334 Jy
! Component: 100  -  total flux cleaned = 0.00313921 Jy
! Component: 150  -  total flux cleaned = 0.00314889 Jy
! Component: 200  -  total flux cleaned = 0.00298814 Jy
! Total flux subtracted in 200 components = 0.00298814 Jy
! Clean residual min=-0.006084 max=0.004786 Jy/beam
! Clean residual mean=-0.000244 rms=0.001659 Jy/beam
! Combined flux in latest and established models = 2.89113 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 160 components and 2.89113 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.226017Jy  sigma=0.001379
! Fit after  self-cal, rms=0.225999Jy  sigma=0.001379
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.000114184 Jy
! Component: 100  -  total flux cleaned = 0.000271614 Jy
! Component: 150  -  total flux cleaned = 6.67599e-05 Jy
! Component: 200  -  total flux cleaned = -5.30592e-05 Jy
! Total flux subtracted in 200 components = -5.30592e-05 Jy
! Clean residual min=-0.005994 max=0.004660 Jy/beam
! Clean residual mean=-0.000244 rms=0.001637 Jy/beam
! Combined flux in latest and established models = 2.89108 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 168 components and 2.89108 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.225969Jy  sigma=0.001379
! Fit after  self-cal, rms=0.225960Jy  sigma=0.001379
! 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.894 mas, bmaj=6.398 mas, bpa=-1.377 degrees
! Estimated noise=950.081 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.894 x 6.398 at -1.377 degrees (North through East)
! Clean map  min=-0.005803  max=2.3554 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.225960Jy  sigma=0.001379
! Fit after  self-cal, rms=0.202789Jy  sigma=0.001183
! Inverting map and beam 
! Estimated beam: bmin=2.894 mas, bmaj=6.395 mas, bpa=-1.373 degrees
! Estimated noise=949.504 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000668793 Jy
! Component: 100  -  total flux cleaned = 0.00119498 Jy
! Component: 150  -  total flux cleaned = 0.0014758 Jy
! Component: 200  -  total flux cleaned = 0.00164514 Jy
! Total flux subtracted in 200 components = 0.00164514 Jy
! Clean residual min=-0.005325 max=0.004941 Jy/beam
! Clean residual mean=0.000048 rms=0.001331 Jy/beam
! Combined flux in latest and established models = 2.89272 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 184 components and 2.89272 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.202677Jy  sigma=0.001182
! Fit after  self-cal, rms=0.202678Jy  sigma=0.001182
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000525081 Jy
! Component: 100  -  total flux cleaned = 0.000531037 Jy
! Component: 150  -  total flux cleaned = 0.000678136 Jy
! Component: 200  -  total flux cleaned = 0.000749365 Jy
! Total flux subtracted in 200 components = 0.000749365 Jy
! Clean residual min=-0.005272 max=0.004971 Jy/beam
! Clean residual mean=0.000039 rms=0.001317 Jy/beam
! Combined flux in latest and established models = 2.89347 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 191 components and 2.89347 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.202617Jy  sigma=0.001182
! Fit after  self-cal, rms=0.202616Jy  sigma=0.001182
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.202616Jy  sigma=0.001182
! Fit after  self-cal, rms=0.202549Jy  sigma=0.001181
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.809 mas, bpa=-1.582 degrees
! Estimated noise=1906.33 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.75156 Jy
! Component: 100  -  total flux cleaned = 2.18626 Jy
! Component: 150  -  total flux cleaned = 2.3905 Jy
! Component: 200  -  total flux cleaned = 2.5064 Jy
! Total flux subtracted in 200 components = 2.5064 Jy
! Clean residual min=-0.023046 max=0.061519 Jy/beam
! Clean residual mean=0.000694 rms=0.008619 Jy/beam
! Combined flux in latest and established models = 2.5064 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 26 model components to the UV plane model.
! The established model now contains 26 components and 2.5064 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.895 mas, bmaj=6.393 mas, bpa=-1.363 degrees
! Estimated noise=949.277 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.134848 Jy
! Component: 100  -  total flux cleaned = 0.208414 Jy
! Component: 150  -  total flux cleaned = 0.254016 Jy
! Component: 200  -  total flux cleaned = 0.284295 Jy
! Total flux subtracted in 200 components = 0.284295 Jy
! Clean residual min=-0.008993 max=0.017776 Jy/beam
! Clean residual mean=0.001187 rms=0.004727 Jy/beam
! Combined flux in latest and established models = 2.79069 Jy
! Adding 70 model components to the UV plane model.
! The established model now contains 89 components and 2.79069 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.437 mas, bmaj=13.99 mas, bpa=-3.315 degrees
! Estimated noise=1229.54 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0384538 Jy
! Component: 100  -  total flux cleaned = 0.0604163 Jy
! Component: 150  -  total flux cleaned = 0.0739745 Jy
! Component: 200  -  total flux cleaned = 0.0830881 Jy
! Total flux subtracted in 200 components = 0.0830881 Jy
! Clean residual min=-0.006111 max=0.006937 Jy/beam
! Clean residual mean=0.000621 rms=0.002319 Jy/beam
! Combined flux in latest and established models = 2.87378 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.00659093 Jy
! Component: 100  -  total flux cleaned = 0.0114174 Jy
! Component: 150  -  total flux cleaned = 0.0143308 Jy
! Component: 200  -  total flux cleaned = 0.0157086 Jy
! Total flux subtracted in 200 components = 0.0157086 Jy
! Clean residual min=-0.005132 max=0.004749 Jy/beam
! Clean residual mean=0.000214 rms=0.001576 Jy/beam
! Combined flux in latest and established models = 2.88949 Jy
! Adding 106 model components to the UV plane model.
! The established model now contains 189 components and 2.88949 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.895 mas, bmaj=6.393 mas, bpa=-1.363 degrees
! Estimated noise=949.277 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000878151 Jy
! Component: 100  -  total flux cleaned = 0.000215543 Jy
! Component: 150  -  total flux cleaned = 0.00102093 Jy
! Component: 200  -  total flux cleaned = 0.00136389 Jy
! Total flux subtracted in 200 components = 0.00136389 Jy
! Clean residual min=-0.004816 max=0.005001 Jy/beam
! Clean residual mean=0.000077 rms=0.001365 Jy/beam
! Combined flux in latest and established models = 2.89085 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 205 components and 2.89085 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.202729Jy  sigma=0.001183
! Fit after  self-cal, rms=0.202590Jy  sigma=0.001182
wmodel J0730-1141_S_2001_10_29_pus_map.mod
! Writing 205 model components to file: J0730-1141_S_2001_10_29_pus_map.mod
wobs J0730-1141_S_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J0730-1141_S_2001_10_29_pus_uvs.fits
wwins J0730-1141_S_2001_10_29_pus_map.win
! wwins: Wrote 5 windows to J0730-1141_S_2001_10_29_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.00029342 Jy
! Component: 100  -  total flux cleaned = -0.000209598 Jy
! Component: 150  -  total flux cleaned = 0.00034144 Jy
! Component: 200  -  total flux cleaned = 0.000643982 Jy
! Component: 250  -  total flux cleaned = 0.00115826 Jy
! Component: 300  -  total flux cleaned = 0.00151514 Jy
! Component: 350  -  total flux cleaned = 0.00186164 Jy
! Component: 400  -  total flux cleaned = 0.00192877 Jy
! Component: 450  -  total flux cleaned = 0.00225695 Jy
! Component: 500  -  total flux cleaned = 0.00244909 Jy
! Component: 550  -  total flux cleaned = 0.00257427 Jy
! Component: 600  -  total flux cleaned = 0.00275873 Jy
! Component: 650  -  total flux cleaned = 0.00287904 Jy
! Component: 700  -  total flux cleaned = 0.0030566 Jy
! Component: 750  -  total flux cleaned = 0.00311392 Jy
! Component: 800  -  total flux cleaned = 0.00322803 Jy
! Component: 850  -  total flux cleaned = 0.00317075 Jy
! Component: 900  -  total flux cleaned = 0.00322685 Jy
! Component: 950  -  total flux cleaned = 0.00333698 Jy
! Component: 1000  -  total flux cleaned = 0.00344599 Jy
! Component: 1050  -  total flux cleaned = 0.00355356 Jy
! Component: 1100  -  total flux cleaned = 0.00360667 Jy
! Component: 1150  -  total flux cleaned = 0.00376561 Jy
! Component: 1200  -  total flux cleaned = 0.00397447 Jy
! Component: 1250  -  total flux cleaned = 0.00412875 Jy
! Component: 1300  -  total flux cleaned = 0.00423061 Jy
! Component: 1350  -  total flux cleaned = 0.00428178 Jy
! Component: 1400  -  total flux cleaned = 0.00453088 Jy
! Component: 1450  -  total flux cleaned = 0.00448132 Jy
! Component: 1500  -  total flux cleaned = 0.00472625 Jy
! Component: 1550  -  total flux cleaned = 0.00472608 Jy
! Component: 1600  -  total flux cleaned = 0.00487034 Jy
! Component: 1650  -  total flux cleaned = 0.00491792 Jy
! Component: 1700  -  total flux cleaned = 0.00505949 Jy
! Component: 1750  -  total flux cleaned = 0.00505975 Jy
! Component: 1800  -  total flux cleaned = 0.00519903 Jy
! Component: 1850  -  total flux cleaned = 0.00538275 Jy
! Component: 1900  -  total flux cleaned = 0.00538256 Jy
! Component: 1950  -  total flux cleaned = 0.00542768 Jy
! Component: 2000  -  total flux cleaned = 0.00542758 Jy
! Total flux subtracted in 2048 components = 0.00551655 Jy
! Clean residual min=-0.002548 max=0.003229 Jy/beam
! Clean residual mean=0.000047 rms=0.000873 Jy/beam
! Combined flux in latest and established models = 2.89637 Jy
keep
! Adding 140 model components to the UV plane model.
! The established model now contains 345 components and 2.89637 Jy
![Exited script file: muppet]
wmap "J0730-1141_S_2001_10_29_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.895 x 6.393 at -1.363 degrees (North through East)
! Clean map  min=-0.0041797  max=2.3591 Jy/beam
! Writing clean map to FITS file: J0730-1141_S_2001_10_29_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 2.35906 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000869023 
device "J0730-1141_S_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J0730-1141_S_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.110513 0.110513 0.221026 0.442052 0.884104 1.76821 3.53642 7.07283 14.1457 28.2913 56.5827
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0026 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.359 
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.895 x 6.393 at -1.363 degrees (North through East)
! Clean map  min=-0.0041797  max=2.3591 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0730-1141_S_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J0730-1141_S_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0730-1141_S_2001_10_29_pus_uvs.log closed on Wed Feb 27 15:15:55 2008