! Started logfile: J0730-1141_S_2000_05_22_pus_uvs.log on Mon Nov 19 18:40:15 2007
obs J0730-1141_S_2000_05_22_pus_uva.fits
! Reading UV FITS file: J0730-1141_S_2000_05_22_pus_uva.fits
! AN table 1: 164 integrations on 190 of 190 possible baselines.
! AN table 2: 14 integrations on 190 of 190 possible baselines.
! AN table 3: 26 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.103947 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.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 2003 lines of history.
! 
! Reading 16116 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_2000_05_22_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 2376 telescope corrections were flagged in sub-array 1.
!  A total of 121 telescope corrections were flagged in sub-array 2.
!  A total of 457 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 2376 telescope corrections were flagged in sub-array 1.
!  A total of 121 telescope corrections were flagged in sub-array 2.
!  A total of 457 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 2376 telescope corrections were flagged in sub-array 1.
!  A total of 121 telescope corrections were flagged in sub-array 2.
!  A total of 457 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 2376 telescope corrections were flagged in sub-array 1.
!  A total of 121 telescope corrections were flagged in sub-array 2.
!  A total of 457 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.350220Jy  sigma=0.015309
! Fit after  self-cal, rms=0.731809Jy  sigma=0.008422
! 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.374 mas, bmaj=5.282 mas, bpa=-3.618 degrees
! Estimated noise=802.575 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.16484 Jy
! Component: 100  -  total flux cleaned = 1.47905 Jy
! Total flux subtracted in 100 components = 1.47905 Jy
! Clean residual min=-0.038221 max=0.138401 Jy/beam
! Clean residual mean=0.001823 rms=0.014128 Jy/beam
! Combined flux in latest and established models = 1.47905 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 1.47905 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.409620Jy  sigma=0.004184
! Fit after  self-cal, rms=0.408743Jy  sigma=0.004180
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.158303 Jy
! Component: 100  -  total flux cleaned = 0.248802 Jy
! Total flux subtracted in 100 components = 0.248802 Jy
! Clean residual min=-0.023820 max=0.057278 Jy/beam
! Clean residual mean=0.001004 rms=0.007028 Jy/beam
! Combined flux in latest and established models = 1.72785 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 23 components and 1.72785 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.321657Jy  sigma=0.002728
! Fit after  self-cal, rms=0.320888Jy  sigma=0.002720
! Inverting map 
! Added new window around map position (-3.5, 1.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0645796 Jy
! Component: 100  -  total flux cleaned = 0.106868 Jy
! Total flux subtracted in 100 components = 0.106868 Jy
! Clean residual min=-0.016742 max=0.025283 Jy/beam
! Clean residual mean=0.000651 rms=0.004725 Jy/beam
! Combined flux in latest and established models = 1.83472 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 40 components and 1.83472 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.304351Jy  sigma=0.002332
! Fit after  self-cal, rms=0.304063Jy  sigma=0.002328
! 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.896 mas, bmaj=7.263 mas, bpa=-12.73 degrees
! Estimated noise=501.16 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.5, 6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0503037 Jy
! Component: 100  -  total flux cleaned = 0.080982 Jy
! Component: 150  -  total flux cleaned = 0.101531 Jy
! Component: 200  -  total flux cleaned = 0.116207 Jy
! Total flux subtracted in 200 components = 0.116207 Jy
! Clean residual min=-0.014080 max=0.020621 Jy/beam
! Clean residual mean=0.000685 rms=0.004991 Jy/beam
! Combined flux in latest and established models = 1.95093 Jy
! Performing phase self-cal
! Adding 60 model components to the UV plane model.
! The established model now contains 89 components and 1.95093 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.299726Jy  sigma=0.002129
! Fit after  self-cal, rms=0.299408Jy  sigma=0.002125
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 96 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.97     GC        1.00*    GG        1.00*    
!   HH        0.78     HN        0.97     KK        0.98     KP        0.97     
!   MA        2.47     MC        1.06     MK        1.04     NL        1.00     
!   NY        1.00*    OV        1.04     PT        0.97     SC        1.00     
!   TS        1.00*    WF        1.00     WZ        1.13     LA        0.99     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00     KK        0.90     KP        1.02     
!   MA        1.00*    MC        1.00*    MK        1.02     NL        0.99     
!   NY        1.00*    OV        1.01     PT        0.97     SC        1.02     
!   TS        1.00*    WF        0.99     WZ        1.00*    LA        0.98     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        0.84     HN        1.00*    KK        1.00*    KP        1.00*    
!   MA        2.35     MC        1.29     MK        1.00*    NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00     LA        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 96 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        0.77     HN        1.04     KK        1.04     KP        0.96     
!   MA        0.75     MC        0.99     MK        0.98     NL        1.03     
!   NY        1.00*    OV        1.00     PT        0.97     SC        1.01     
!   TS        1.00*    WF        0.97     WZ        1.12     LA        0.94     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.07     KK        1.02     KP        0.98     
!   MA        1.00*    MC        1.00*    MK        0.98     NL        1.02     
!   NY        1.00*    OV        1.00     PT        0.97     SC        1.05     
!   TS        1.00*    WF        1.00     WZ        1.00*    LA        0.93     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        0.78     HN        1.00*    KK        1.00*    KP        1.00*    
!   MA        0.88     MC        1.09     MK        1.00*    NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.01     LA        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 96 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        0.68     HN        1.01     KK        1.01     KP        0.99     
!   MA        0.96     MC        1.80     MK        0.99     NL        0.99     
!   NY        1.00*    OV        1.03     PT        0.95     SC        0.99     
!   TS        1.00*    WF        0.98     WZ        1.22     LA        1.00     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.03     KK        0.95     KP        0.99     
!   MA        1.00*    MC        1.00*    MK        0.99     NL        0.97     
!   NY        1.00*    OV        1.04     PT        0.97     SC        1.03     
!   TS        1.00*    WF        1.00     WZ        1.00*    LA        0.99     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        0.74     HN        1.00*    KK        1.00*    KP        1.00*    
!   MA        1.03     MC        1.63     MK        1.00*    NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        0.99     LA        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 96 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        0.70     HN        1.02     KK        1.04     KP        1.01     
!   MA        1.36     MC        1.25     MK        1.03     NL        1.00     
!   NY        1.00*    OV        1.00     PT        0.93     SC        1.00     
!   TS        1.00*    WF        0.98     WZ        1.29     LA        0.98     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.03     KK        0.98     KP        1.00     
!   MA        1.00*    MC        1.00*    MK        1.03     NL        1.00     
!   NY        1.00*    OV        1.01     PT        0.92     SC        1.01     
!   TS        1.00*    WF        1.02     WZ        1.00*    LA        1.00     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        2.48     HN        1.00*    KK        1.00*    KP        1.00*    
!   MA        1.15     MC        1.29     MK        1.00*    NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.26     LA        1.00*    
! 
! 
! Fit before self-cal, rms=0.299408Jy  sigma=0.002125
! Fit after  self-cal, rms=0.274722Jy  sigma=0.001882
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.895 mas, bmaj=7.274 mas, bpa=-12.7 degrees
! Estimated noise=496.647 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 (-9.5, 12).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0177456 Jy
! Component: 100  -  total flux cleaned = 0.0285575 Jy
! Component: 150  -  total flux cleaned = 0.0357991 Jy
! Component: 200  -  total flux cleaned = 0.041078 Jy
! Total flux subtracted in 200 components = 0.041078 Jy
! Clean residual min=-0.006870 max=0.006500 Jy/beam
! Clean residual mean=0.000094 rms=0.001651 Jy/beam
! Combined flux in latest and established models = 1.992 Jy
! Performing phase self-cal
! Adding 43 model components to the UV plane model.
! The established model now contains 132 components and 1.992 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.273526Jy  sigma=0.001856
! Fit after  self-cal, rms=0.277384Jy  sigma=0.001853
! 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.277384Jy  sigma=0.001853
! Fit after  self-cal, rms=0.279750Jy  sigma=0.001845
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.895 mas, bmaj=7.26 mas, bpa=-12.66 degrees
! Estimated noise=497.082 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00741923 Jy
! Component: 100  -  total flux cleaned = 0.0120587 Jy
! Component: 150  -  total flux cleaned = 0.0146265 Jy
! Component: 200  -  total flux cleaned = 0.0163982 Jy
! Total flux subtracted in 200 components = 0.0163982 Jy
! Clean residual min=-0.005752 max=0.004980 Jy/beam
! Clean residual mean=0.000071 rms=0.001346 Jy/beam
! Combined flux in latest and established models = 2.0084 Jy
selfcal
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 162 components and 2.0084 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.279482Jy  sigma=0.001840
! Fit after  self-cal, rms=0.279786Jy  sigma=0.001839
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.00215197 Jy
! Component: 100  -  total flux cleaned = 0.00355344 Jy
! Component: 150  -  total flux cleaned = 0.00477229 Jy
! Component: 200  -  total flux cleaned = 0.00593051 Jy
! Total flux subtracted in 200 components = 0.00593051 Jy
! Clean residual min=-0.005274 max=0.004510 Jy/beam
! Clean residual mean=0.000015 rms=0.001277 Jy/beam
! Combined flux in latest and established models = 2.01433 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 169 components and 2.01433 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.279673Jy  sigma=0.001837
! Fit after  self-cal, rms=0.279684Jy  sigma=0.001837
! 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.279684Jy  sigma=0.001837
! Fit after  self-cal, rms=0.280217Jy  sigma=0.001834
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.895 mas, bmaj=7.259 mas, bpa=-12.65 degrees
! Estimated noise=497.602 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.003955 Jy
! Component: 100  -  total flux cleaned = 0.00579546 Jy
! Component: 150  -  total flux cleaned = 0.00726051 Jy
! Component: 200  -  total flux cleaned = 0.00837728 Jy
! Total flux subtracted in 200 components = 0.00837728 Jy
! Clean residual min=-0.005287 max=0.004052 Jy/beam
! Clean residual mean=0.000011 rms=0.001178 Jy/beam
! Combined flux in latest and established models = 2.02271 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 185 components and 2.02271 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.280118Jy  sigma=0.001833
! Fit after  self-cal, rms=0.280201Jy  sigma=0.001832
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.000634124 Jy
! Component: 100  -  total flux cleaned = 0.00153115 Jy
! Component: 150  -  total flux cleaned = 0.00224826 Jy
! Component: 200  -  total flux cleaned = 0.00269421 Jy
! Total flux subtracted in 200 components = 0.00269421 Jy
! Clean residual min=-0.005069 max=0.003822 Jy/beam
! Clean residual mean=-0.000013 rms=0.001141 Jy/beam
! Combined flux in latest and established models = 2.0254 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 197 components and 2.0254 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.280149Jy  sigma=0.001832
! Fit after  self-cal, rms=0.280159Jy  sigma=0.001832
! 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.280159Jy  sigma=0.001832
! Fit after  self-cal, rms=0.280548Jy  sigma=0.001831
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.318 mas, bmaj=14.15 mas, bpa=-8.331 degrees
! Estimated noise=666.896 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00425526 Jy
! Component: 100  -  total flux cleaned = 0.00675904 Jy
! Component: 150  -  total flux cleaned = 0.00747842 Jy
! Component: 200  -  total flux cleaned = 0.00787345 Jy
! Total flux subtracted in 200 components = 0.00787345 Jy
! Clean residual min=-0.006082 max=0.004858 Jy/beam
! Clean residual mean=-0.000127 rms=0.001661 Jy/beam
! Combined flux in latest and established models = 2.03328 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 213 components and 2.03328 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.280526Jy  sigma=0.001831
! Fit after  self-cal, rms=0.280487Jy  sigma=0.001831
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.000196606 Jy
! Component: 100  -  total flux cleaned = 0.000456624 Jy
! Component: 150  -  total flux cleaned = 0.000666164 Jy
! Component: 200  -  total flux cleaned = 0.000880459 Jy
! Total flux subtracted in 200 components = 0.000880459 Jy
! Clean residual min=-0.005996 max=0.004844 Jy/beam
! Clean residual mean=-0.000144 rms=0.001643 Jy/beam
! Combined flux in latest and established models = 2.03416 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 231 components and 2.03416 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.280478Jy  sigma=0.001831
! Fit after  self-cal, rms=0.280450Jy  sigma=0.001831
! 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.896 mas, bmaj=7.259 mas, bpa=-12.64 degrees
! Estimated noise=498.01 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.896 x 7.259 at -12.64 degrees (North through East)
! Clean map  min=-0.0048968  max=1.578 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.280450Jy  sigma=0.001831
! Fit after  self-cal, rms=0.802981Jy  sigma=0.001458
! Inverting map and beam 
! Estimated beam: bmin=2.895 mas, bmaj=7.254 mas, bpa=-12.62 degrees
! Estimated noise=497.899 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00128635 Jy
! Component: 100  -  total flux cleaned = 0.00202197 Jy
! Component: 150  -  total flux cleaned = 0.00248895 Jy
! Component: 200  -  total flux cleaned = 0.00262643 Jy
! Total flux subtracted in 200 components = 0.00262643 Jy
! Clean residual min=-0.003454 max=0.003640 Jy/beam
! Clean residual mean=0.000043 rms=0.000864 Jy/beam
! Combined flux in latest and established models = 2.03678 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 245 components and 2.03678 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.802971Jy  sigma=0.001456
! Fit after  self-cal, rms=0.802964Jy  sigma=0.001456
! Inverting map 
! Added new window around map position (-37.5, 57.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00293758 Jy
! Component: 100  -  total flux cleaned = 0.00286906 Jy
! Component: 150  -  total flux cleaned = 0.0029978 Jy
! Component: 200  -  total flux cleaned = 0.00305806 Jy
! Total flux subtracted in 200 components = 0.00305806 Jy
! Clean residual min=-0.003310 max=0.003097 Jy/beam
! Clean residual mean=0.000051 rms=0.000810 Jy/beam
! Combined flux in latest and established models = 2.03984 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 265 components and 2.03984 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.802963Jy  sigma=0.001455
! Fit after  self-cal, rms=0.802910Jy  sigma=0.001455
! 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.802910Jy  sigma=0.001455
! Fit after  self-cal, rms=0.931104Jy  sigma=0.001455
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.384 mas, bmaj=5.282 mas, bpa=-3.71 degrees
! Estimated noise=797.254 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.16042 Jy
! Component: 100  -  total flux cleaned = 1.47917 Jy
! Component: 150  -  total flux cleaned = 1.6389 Jy
! Component: 200  -  total flux cleaned = 1.72912 Jy
! Total flux subtracted in 200 components = 1.72912 Jy
! Clean residual min=-0.014669 max=0.047215 Jy/beam
! Clean residual mean=0.001039 rms=0.005706 Jy/beam
! Combined flux in latest and established models = 1.72912 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 23 model components to the UV plane model.
! The established model now contains 23 components and 1.72912 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.895 mas, bmaj=7.252 mas, bpa=-12.62 degrees
! Estimated noise=497.895 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.0914602 Jy
! Component: 100  -  total flux cleaned = 0.14385 Jy
! Component: 150  -  total flux cleaned = 0.178363 Jy
! Component: 200  -  total flux cleaned = 0.202987 Jy
! Total flux subtracted in 200 components = 0.202987 Jy
! Clean residual min=-0.006651 max=0.014208 Jy/beam
! Clean residual mean=0.001069 rms=0.003242 Jy/beam
! Combined flux in latest and established models = 1.93211 Jy
! Adding 73 model components to the UV plane model.
! The established model now contains 90 components and 1.93211 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0186412 Jy
! Component: 100  -  total flux cleaned = 0.0331466 Jy
! Component: 150  -  total flux cleaned = 0.0447325 Jy
! Component: 200  -  total flux cleaned = 0.0540785 Jy
! Total flux subtracted in 200 components = 0.0540785 Jy
! Clean residual min=-0.004309 max=0.005881 Jy/beam
! Clean residual mean=0.000528 rms=0.001631 Jy/beam
! Combined flux in latest and established models = 1.98618 Jy
! Adding 79 model components to the UV plane model.
! The established model now contains 160 components and 1.98618 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.315 mas, bmaj=14.15 mas, bpa=-8.311 degrees
! Estimated noise=667.051 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0151322 Jy
! Component: 100  -  total flux cleaned = 0.0253315 Jy
! Component: 150  -  total flux cleaned = 0.0327637 Jy
! Component: 200  -  total flux cleaned = 0.0383081 Jy
! Total flux subtracted in 200 components = 0.0383081 Jy
! Clean residual min=-0.003654 max=0.005438 Jy/beam
! Clean residual mean=0.000449 rms=0.001506 Jy/beam
! Combined flux in latest and established models = 2.02449 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.00421327 Jy
! Component: 100  -  total flux cleaned = 0.00744166 Jy
! Component: 150  -  total flux cleaned = 0.00992866 Jy
! Component: 200  -  total flux cleaned = 0.0118607 Jy
! Total flux subtracted in 200 components = 0.0118607 Jy
! Clean residual min=-0.003361 max=0.003949 Jy/beam
! Clean residual mean=0.000226 rms=0.001198 Jy/beam
! Combined flux in latest and established models = 2.03635 Jy
! Adding 115 model components to the UV plane model.
! The established model now contains 269 components and 2.03635 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.895 mas, bmaj=7.252 mas, bpa=-12.62 degrees
! Estimated noise=497.895 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.23175e-05 Jy
! Component: 100  -  total flux cleaned = 0.000169713 Jy
! Component: 150  -  total flux cleaned = 0.000627163 Jy
! Component: 200  -  total flux cleaned = 0.000866465 Jy
! Total flux subtracted in 200 components = 0.000866465 Jy
! Clean residual min=-0.003096 max=0.003594 Jy/beam
! Clean residual mean=0.000091 rms=0.000788 Jy/beam
! Combined flux in latest and established models = 2.03722 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 287 components and 2.03722 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.931038Jy  sigma=0.001454
! Fit after  self-cal, rms=0.930933Jy  sigma=0.001454
wmodel J0730-1141_S_2000_05_22_pus_map.mod
! Writing 287 model components to file: J0730-1141_S_2000_05_22_pus_map.mod
wobs J0730-1141_S_2000_05_22_pus_uvs.fits
! Writing UV FITS file: J0730-1141_S_2000_05_22_pus_uvs.fits
wwins J0730-1141_S_2000_05_22_pus_map.win
! wwins: Wrote 5 windows to J0730-1141_S_2000_05_22_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.000918252 Jy
! Component: 100  -  total flux cleaned = 0.00126327 Jy
! Component: 150  -  total flux cleaned = 0.00163378 Jy
! Component: 200  -  total flux cleaned = 0.00194255 Jy
! Component: 250  -  total flux cleaned = 0.00219897 Jy
! Component: 300  -  total flux cleaned = 0.00240643 Jy
! Component: 350  -  total flux cleaned = 0.00252723 Jy
! Component: 400  -  total flux cleaned = 0.00268494 Jy
! Component: 450  -  total flux cleaned = 0.00299173 Jy
! Component: 500  -  total flux cleaned = 0.00325352 Jy
! Component: 550  -  total flux cleaned = 0.00347311 Jy
! Component: 600  -  total flux cleaned = 0.0037955 Jy
! Component: 650  -  total flux cleaned = 0.00393603 Jy
! Component: 700  -  total flux cleaned = 0.00421177 Jy
! Component: 750  -  total flux cleaned = 0.00448218 Jy
! Component: 800  -  total flux cleaned = 0.0047143 Jy
! Component: 850  -  total flux cleaned = 0.0049424 Jy
! Component: 900  -  total flux cleaned = 0.00510268 Jy
! Component: 950  -  total flux cleaned = 0.00535464 Jy
! Component: 1000  -  total flux cleaned = 0.00554044 Jy
! Component: 1050  -  total flux cleaned = 0.00575433 Jy
! Component: 1100  -  total flux cleaned = 0.00590538 Jy
! Component: 1150  -  total flux cleaned = 0.0061433 Jy
! Component: 1200  -  total flux cleaned = 0.00637778 Jy
! Component: 1250  -  total flux cleaned = 0.00655104 Jy
! Component: 1300  -  total flux cleaned = 0.00672199 Jy
! Component: 1350  -  total flux cleaned = 0.00689076 Jy
! Component: 1400  -  total flux cleaned = 0.00711317 Jy
! Component: 1450  -  total flux cleaned = 0.00733306 Jy
! Component: 1500  -  total flux cleaned = 0.0074419 Jy
! Component: 1550  -  total flux cleaned = 0.0077109 Jy
! Component: 1600  -  total flux cleaned = 0.00787034 Jy
! Component: 1650  -  total flux cleaned = 0.0080807 Jy
! Component: 1700  -  total flux cleaned = 0.00826324 Jy
! Component: 1750  -  total flux cleaned = 0.00849501 Jy
! Component: 1800  -  total flux cleaned = 0.00864796 Jy
! Component: 1850  -  total flux cleaned = 0.00885034 Jy
! Component: 1900  -  total flux cleaned = 0.00900097 Jy
! Component: 1950  -  total flux cleaned = 0.00922454 Jy
! Component: 2000  -  total flux cleaned = 0.00939639 Jy
! Total flux subtracted in 2048 components = 0.00951838 Jy
! Clean residual min=-0.001229 max=0.001466 Jy/beam
! Clean residual mean=0.000038 rms=0.000479 Jy/beam
! Combined flux in latest and established models = 2.04674 Jy
keep
! Adding 131 model components to the UV plane model.
! The established model now contains 417 components and 2.04674 Jy
![Exited script file: muppet]
wmap "J0730-1141_S_2000_05_22_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.895 x 7.252 at -12.62 degrees (North through East)
! Clean map  min=-0.0021897  max=1.5787 Jy/beam
! Writing clean map to FITS file: J0730-1141_S_2000_05_22_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.57873 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000475706 
device "J0730-1141_S_2000_05_22_pus\_map.eps/VPS"
! Attempting to open device: 'J0730-1141_S_2000_05_22_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.0903964 0.0903964 0.180793 0.361585 0.723171 1.44634 2.89268 5.78537 11.5707 23.1415 46.2829 92.5659
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0014 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.578 
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 7.252 at -12.62 degrees (North through East)
! Clean map  min=-0.0021897  max=1.5787 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0730-1141_S_2000_05_22_pus\_map.gif/vgif"
! Attempting to open device: 'J0730-1141_S_2000_05_22_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0730-1141_S_2000_05_22_pus_uvs.log closed on Mon Nov 19 18:40:27 2007