! Started logfile: J0609-1542_S_1999_05_10_pus_uvs.log on Mon Jan 21 17:30:55 2008
obs J0609-1542_S_1999_05_10_pus_uva.fits
! Reading UV FITS file: J0609-1542_S_1999_05_10_pus_uva.fits
! AN table 1: 13 integrations on 153 of 153 possible baselines.
! AN table 2: 37 integrations on 153 of 153 possible baselines.
! AN table 3: 169 integrations on 153 of 153 possible baselines.
! AN table 4: 125 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.166306 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0609-1542
! 
! 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 1998 lines of history.
! 
! Reading 35012 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 J0609-1542_S_1999_05_10_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 198 telescope corrections were flagged in sub-array 1.
!  A total of 528 telescope corrections were flagged in sub-array 2.
!  A total of 1802 telescope corrections were flagged in sub-array 3.
!  A total of 1299 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 198 telescope corrections were flagged in sub-array 1.
!  A total of 528 telescope corrections were flagged in sub-array 2.
!  A total of 1802 telescope corrections were flagged in sub-array 3.
!  A total of 1299 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 198 telescope corrections were flagged in sub-array 1.
!  A total of 528 telescope corrections were flagged in sub-array 2.
!  A total of 1802 telescope corrections were flagged in sub-array 3.
!  A total of 1299 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 207 telescope corrections were flagged in sub-array 1.
!  A total of 528 telescope corrections were flagged in sub-array 2.
!  A total of 1802 telescope corrections were flagged in sub-array 3.
!  A total of 1299 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=2.460605Jy  sigma=0.019821
! Fit after  self-cal, rms=2.227346Jy  sigma=0.018144
! 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.06 mas, bmaj=4.468 mas, bpa=11.34 degrees
! Estimated noise=966.592 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 = 2.19196 Jy
! Component: 100  -  total flux cleaned = 2.78938 Jy
! Total flux subtracted in 100 components = 2.78938 Jy
! Clean residual min=-0.088804 max=0.279535 Jy/beam
! Clean residual mean=0.000819 rms=0.027513 Jy/beam
! Combined flux in latest and established models = 2.78938 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 12 components and 2.78938 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.730578Jy  sigma=0.006008
! Fit after  self-cal, rms=0.729536Jy  sigma=0.006002
! Inverting map 
! Added new window around map position (2, -0.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.321765 Jy
! Component: 100  -  total flux cleaned = 0.50671 Jy
! Total flux subtracted in 100 components = 0.50671 Jy
! Clean residual min=-0.071266 max=0.101275 Jy/beam
! Clean residual mean=0.000475 rms=0.017215 Jy/beam
! Combined flux in latest and established models = 3.29609 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 25 components and 3.29609 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.471378Jy  sigma=0.003770
! Fit after  self-cal, rms=0.468750Jy  sigma=0.003755
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.129274 Jy
! Component: 100  -  total flux cleaned = 0.211333 Jy
! Total flux subtracted in 100 components = 0.211333 Jy
! Clean residual min=-0.065994 max=0.091972 Jy/beam
! Clean residual mean=0.000330 rms=0.014512 Jy/beam
! Combined flux in latest and established models = 3.50742 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 31 components and 3.50742 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.406789Jy  sigma=0.003175
! Fit after  self-cal, rms=0.405484Jy  sigma=0.003167
! Inverting map 
! Added new window around map position (13, 12).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0864402 Jy
! Component: 100  -  total flux cleaned = 0.142643 Jy
! Total flux subtracted in 100 components = 0.142643 Jy
! Clean residual min=-0.061048 max=0.061317 Jy/beam
! Clean residual mean=0.000191 rms=0.013107 Jy/beam
! Combined flux in latest and established models = 3.65007 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 40 components and 3.65007 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.375704Jy  sigma=0.002875
! Fit after  self-cal, rms=0.373440Jy  sigma=0.002861
! 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.856 mas, bmaj=5.869 mas, bpa=10.93 degrees
! Estimated noise=489.272 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 (15.5, 10).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.106967 Jy
! Component: 100  -  total flux cleaned = 0.17278 Jy
! Component: 150  -  total flux cleaned = 0.21759 Jy
! Component: 200  -  total flux cleaned = 0.248427 Jy
! Total flux subtracted in 200 components = 0.248427 Jy
! Clean residual min=-0.041266 max=0.045000 Jy/beam
! Clean residual mean=0.000901 rms=0.010045 Jy/beam
! Combined flux in latest and established models = 3.89849 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 74 components and 3.89849 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.340581Jy  sigma=0.002548
! Fit after  self-cal, rms=0.337060Jy  sigma=0.002519
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.00     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.06     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.25     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.10     
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.99     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        0.96     KP        1.00     LA        1.00     
!   MC        1.00*    MK        0.95     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.02     PT        1.00     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.98     GC        1.00*    HH        1.01     
!   HN        1.04     KK        0.95     KP        1.13     LA        1.00     
!   MC        2.84     MK        0.96     NL        1.01     NY        1.00*    
!   ON        1.00*    OV        1.01     PT        1.00     SC        1.03     
!   WF        1.01     WZ        1.00*    
! 
!  A total of 126 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        0.98     GC        1.00*    HH        1.00*    
!   HN        1.01     KK        1.04     KP        1.02     LA        1.00     
!   MC        1.00*    MK        0.97     NL        1.00     NY        1.00*    
!   ON        1.00*    OV        1.04     PT        1.00     SC        1.00     
!   WF        1.00     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.96     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.04     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.22     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.12     
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.19     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        0.94     KP        1.09     LA        1.14     
!   MC        1.00*    MK        1.02     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.00     PT        0.99     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.04     GC        1.00*    HH        0.98     
!   HN        1.01     KK        0.94     KP        1.01     LA        0.96     
!   MC        0.92     MK        1.01     NL        1.02     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.98     SC        1.04     
!   WF        1.02     WZ        1.00*    
! 
!  A total of 126 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        1.01     GC        1.00*    HH        1.00*    
!   HN        1.00     KK        1.03     KP        1.02     LA        0.96     
!   MC        1.00*    MK        1.04     NL        1.00     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        0.96     SC        1.01     
!   WF        1.00     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.89     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.87     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.19     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.02     
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.16     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        0.94     KP        1.18     LA        1.18     
!   MC        1.00*    MK        0.95     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.97     PT        0.94     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.02     GC        1.00*    HH        0.95     
!   HN        1.01     KK        0.91     KP        1.00     LA        0.99     
!   MC        1.48     MK        0.93     NL        1.03     NY        1.00*    
!   ON        1.00*    OV        0.97     PT        0.96     SC        1.03     
!   WF        1.02     WZ        1.00*    
! 
!  A total of 126 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        0.98     GC        1.00*    HH        1.00*    
!   HN        1.00     KK        1.01     KP        0.99     LA        0.98     
!   MC        1.00*    MK        0.99     NL        1.01     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.95     SC        0.98     
!   WF        1.01     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 27 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.94     FD        1.13     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        0.95     KP        1.10     LA        1.16     
!   MC        1.00*    MK        0.97     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.94     PT        0.98     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.86     FD        1.00     GC        1.00*    HH        0.96     
!   HN        1.00     KK        0.91     KP        1.00     LA        0.98     
!   MC        1.01     MK        0.96     NL        1.04     NY        1.00*    
!   ON        1.00*    OV        0.93     PT        1.04     SC        1.03     
!   WF        1.02     WZ        1.00*    
! 
!  A total of 126 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.93     FD        0.96     GC        1.00*    HH        1.00*    
!   HN        0.99     KK        1.01     KP        1.00     LA        0.97     
!   MC        1.00*    MK        0.99     NL        1.02     NY        1.00*    
!   ON        1.00*    OV        0.95     PT        0.97     SC        0.98     
!   WF        1.01     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.337060Jy  sigma=0.002519
! Fit after  self-cal, rms=0.294652Jy  sigma=0.002053
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.84 mas, bmaj=5.884 mas, bpa=11.01 degrees
! Estimated noise=489.232 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.0324964 Jy
! Component: 100  -  total flux cleaned = 0.0396492 Jy
! Component: 150  -  total flux cleaned = 0.0444142 Jy
! Component: 200  -  total flux cleaned = 0.0476564 Jy
! Total flux subtracted in 200 components = 0.0476563 Jy
! Clean residual min=-0.025508 max=0.020805 Jy/beam
! Clean residual mean=0.001003 rms=0.005493 Jy/beam
! Combined flux in latest and established models = 3.94615 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 88 components and 3.94615 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.288163Jy  sigma=0.001996
! Fit after  self-cal, rms=0.287370Jy  sigma=0.001989
! 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.287370Jy  sigma=0.001989
! Fit after  self-cal, rms=0.277166Jy  sigma=0.001821
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.839 mas, bmaj=5.874 mas, bpa=11.07 degrees
! Estimated noise=489.359 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0187218 Jy
! Component: 100  -  total flux cleaned = 0.0228364 Jy
! Component: 150  -  total flux cleaned = 0.0251502 Jy
! Component: 200  -  total flux cleaned = 0.0255477 Jy
! Total flux subtracted in 200 components = 0.0255477 Jy
! Clean residual min=-0.015802 max=0.021852 Jy/beam
! Clean residual mean=-0.000125 rms=0.003493 Jy/beam
! Combined flux in latest and established models = 3.9717 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 98 components and 3.9717 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.274934Jy  sigma=0.001800
! Fit after  self-cal, rms=0.274600Jy  sigma=0.001796
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 (9, 4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0176267 Jy
! Component: 100  -  total flux cleaned = 0.0181516 Jy
! Component: 150  -  total flux cleaned = 0.017004 Jy
! Component: 200  -  total flux cleaned = 0.016662 Jy
! Total flux subtracted in 200 components = 0.016662 Jy
! Clean residual min=-0.014348 max=0.009890 Jy/beam
! Clean residual mean=-0.000369 rms=0.002897 Jy/beam
! Combined flux in latest and established models = 3.98836 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 109 components and 3.98836 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.272500Jy  sigma=0.001779
! Fit after  self-cal, rms=0.272224Jy  sigma=0.001777
! 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.272224Jy  sigma=0.001777
! Fit after  self-cal, rms=0.271993Jy  sigma=0.001765
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.84 mas, bmaj=5.875 mas, bpa=11.04 degrees
! Estimated noise=489.163 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0101068 Jy
! Component: 100  -  total flux cleaned = 0.0124934 Jy
! Component: 150  -  total flux cleaned = 0.0131486 Jy
! Component: 200  -  total flux cleaned = 0.0131532 Jy
! Total flux subtracted in 200 components = 0.0131532 Jy
! Clean residual min=-0.011505 max=0.007572 Jy/beam
! Clean residual mean=-0.000346 rms=0.002540 Jy/beam
! Combined flux in latest and established models = 4.00151 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 118 components and 4.00151 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.270779Jy  sigma=0.001756
! Fit after  self-cal, rms=0.270610Jy  sigma=0.001754
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.00316169 Jy
! Component: 100  -  total flux cleaned = 0.00438818 Jy
! Component: 150  -  total flux cleaned = 0.00466937 Jy
! Component: 200  -  total flux cleaned = 0.00440248 Jy
! Total flux subtracted in 200 components = 0.00440248 Jy
! Clean residual min=-0.011265 max=0.007188 Jy/beam
! Clean residual mean=-0.000409 rms=0.002369 Jy/beam
! Combined flux in latest and established models = 4.00591 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 123 components and 4.00591 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.269964Jy  sigma=0.001749
! Fit after  self-cal, rms=0.269888Jy  sigma=0.001748
! 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.269888Jy  sigma=0.001748
! Fit after  self-cal, rms=0.270473Jy  sigma=0.001747
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.705 mas, bmaj=13.55 mas, bpa=-2.074 degrees
! Estimated noise=610.868 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00575431 Jy
! Component: 100  -  total flux cleaned = 0.00581136 Jy
! Component: 150  -  total flux cleaned = 0.00530842 Jy
! Component: 200  -  total flux cleaned = 0.00489244 Jy
! Total flux subtracted in 200 components = 0.00489244 Jy
! Clean residual min=-0.007712 max=0.006372 Jy/beam
! Clean residual mean=-0.000736 rms=0.002315 Jy/beam
! Combined flux in latest and established models = 4.0108 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 143 components and 4.0108 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.270131Jy  sigma=0.001745
! Fit after  self-cal, rms=0.270042Jy  sigma=0.001744
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.00216271 Jy
! Component: 100  -  total flux cleaned = 0.00203317 Jy
! Component: 150  -  total flux cleaned = 0.00203436 Jy
! Component: 200  -  total flux cleaned = 0.00203566 Jy
! Total flux subtracted in 200 components = 0.00203566 Jy
! Clean residual min=-0.008214 max=0.005864 Jy/beam
! Clean residual mean=-0.000800 rms=0.002176 Jy/beam
! Combined flux in latest and established models = 4.01284 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 149 components and 4.01284 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.269874Jy  sigma=0.001743
! Fit after  self-cal, rms=0.269832Jy  sigma=0.001742
! 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.842 mas, bmaj=5.88 mas, bpa=11.02 degrees
! Estimated noise=489.284 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.842 x 5.88 at 11.02 degrees (North through East)
! Clean map  min=-0.0096289  max=2.9477 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.269832Jy  sigma=0.001742
! Fit after  self-cal, rms=0.187715Jy  sigma=0.001173
! Inverting map and beam 
! Estimated beam: bmin=2.842 mas, bmaj=5.881 mas, bpa=11 degrees
! Estimated noise=488.503 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 6.64953e-05 Jy
! Component: 100  -  total flux cleaned = 9.91907e-05 Jy
! Component: 150  -  total flux cleaned = -0.000586161 Jy
! Component: 200  -  total flux cleaned = -0.000791321 Jy
! Total flux subtracted in 200 components = -0.000791321 Jy
! Clean residual min=-0.008700 max=0.005443 Jy/beam
! Clean residual mean=-0.000378 rms=0.001870 Jy/beam
! Combined flux in latest and established models = 4.01205 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 159 components and 4.01205 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.187020Jy  sigma=0.001167
! Fit after  self-cal, rms=0.186950Jy  sigma=0.001166
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00124799 Jy
! Component: 100  -  total flux cleaned = 0.00146052 Jy
! Component: 150  -  total flux cleaned = 0.00107939 Jy
! Component: 200  -  total flux cleaned = 0.000895108 Jy
! Total flux subtracted in 200 components = 0.000895108 Jy
! Clean residual min=-0.008832 max=0.005408 Jy/beam
! Clean residual mean=-0.000390 rms=0.001790 Jy/beam
! Combined flux in latest and established models = 4.01294 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 164 components and 4.01294 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.186541Jy  sigma=0.001162
! Fit after  self-cal, rms=0.186494Jy  sigma=0.001162
! 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.186494Jy  sigma=0.001162
! Fit after  self-cal, rms=0.186508Jy  sigma=0.001161
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.094 mas, bmaj=4.557 mas, bpa=11.99 degrees
! Estimated noise=965.432 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.19204 Jy
! Component: 100  -  total flux cleaned = 2.7946 Jy
! Component: 150  -  total flux cleaned = 3.1052 Jy
! Component: 200  -  total flux cleaned = 3.29249 Jy
! Total flux subtracted in 200 components = 3.29249 Jy
! Clean residual min=-0.030087 max=0.102295 Jy/beam
! Clean residual mean=0.000537 rms=0.012577 Jy/beam
! Combined flux in latest and established models = 3.29249 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 19 model components to the UV plane model.
! The established model now contains 19 components and 3.29249 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.844 mas, bmaj=5.886 mas, bpa=11.02 degrees
! Estimated noise=488.382 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.233157 Jy
! Component: 100  -  total flux cleaned = 0.374866 Jy
! Component: 150  -  total flux cleaned = 0.469337 Jy
! Component: 200  -  total flux cleaned = 0.534212 Jy
! Total flux subtracted in 200 components = 0.534212 Jy
! Clean residual min=-0.013596 max=0.037465 Jy/beam
! Clean residual mean=0.002269 rms=0.007546 Jy/beam
! Combined flux in latest and established models = 3.8267 Jy
! Adding 74 model components to the UV plane model.
! The established model now contains 82 components and 3.8267 Jy
! Inverting map 
! Added new window around map position (4.5, -0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0461994 Jy
! Component: 100  -  total flux cleaned = 0.0797939 Jy
! Component: 150  -  total flux cleaned = 0.104701 Jy
! Component: 200  -  total flux cleaned = 0.123407 Jy
! Total flux subtracted in 200 components = 0.123407 Jy
! Clean residual min=-0.008128 max=0.011474 Jy/beam
! Clean residual mean=0.000533 rms=0.002781 Jy/beam
! Combined flux in latest and established models = 3.95011 Jy
! Adding 57 model components to the UV plane model.
! The established model now contains 130 components and 3.95011 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.704 mas, bmaj=13.55 mas, bpa=-2.042 degrees
! Estimated noise=609.231 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0222845 Jy
! Component: 100  -  total flux cleaned = 0.0350544 Jy
! Component: 150  -  total flux cleaned = 0.0429176 Jy
! Component: 200  -  total flux cleaned = 0.047867 Jy
! Total flux subtracted in 200 components = 0.047867 Jy
! Clean residual min=-0.006423 max=0.005234 Jy/beam
! Clean residual mean=-0.000306 rms=0.001857 Jy/beam
! Combined flux in latest and established models = 3.99797 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.00314962 Jy
! Component: 100  -  total flux cleaned = 0.00438918 Jy
! Component: 150  -  total flux cleaned = 0.00491266 Jy
! Component: 200  -  total flux cleaned = 0.00511785 Jy
! Total flux subtracted in 200 components = 0.00511785 Jy
! Clean residual min=-0.006341 max=0.004819 Jy/beam
! Clean residual mean=-0.000459 rms=0.001714 Jy/beam
! Combined flux in latest and established models = 4.00309 Jy
! Adding 80 model components to the UV plane model.
! The established model now contains 197 components and 4.00309 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.844 mas, bmaj=5.886 mas, bpa=11.02 degrees
! Estimated noise=488.382 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00217594 Jy
! Component: 100  -  total flux cleaned = -0.00257022 Jy
! Component: 150  -  total flux cleaned = -0.00241503 Jy
! Component: 200  -  total flux cleaned = -0.0022618 Jy
! Total flux subtracted in 200 components = -0.0022618 Jy
! Clean residual min=-0.006128 max=0.006184 Jy/beam
! Clean residual mean=-0.000182 rms=0.001442 Jy/beam
! Combined flux in latest and established models = 4.00083 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 212 components and 4.00083 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.185571Jy  sigma=0.001146
! Fit after  self-cal, rms=0.185035Jy  sigma=0.001143
wmodel J0609-1542_S_1999_05_10_pus_map.mod
! Writing 212 model components to file: J0609-1542_S_1999_05_10_pus_map.mod
wobs J0609-1542_S_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J0609-1542_S_1999_05_10_pus_uvs.fits
wwins J0609-1542_S_1999_05_10_pus_map.win
! wwins: Wrote 6 windows to J0609-1542_S_1999_05_10_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.00280504 Jy
! Component: 100  -  total flux cleaned = -0.00436951 Jy
! Component: 150  -  total flux cleaned = -0.00508072 Jy
! Component: 200  -  total flux cleaned = -0.00576141 Jy
! Component: 250  -  total flux cleaned = -0.00657985 Jy
! Component: 300  -  total flux cleaned = -0.00729235 Jy
! Component: 350  -  total flux cleaned = -0.00806339 Jy
! Component: 400  -  total flux cleaned = -0.0086642 Jy
! Component: 450  -  total flux cleaned = -0.00917762 Jy
! Component: 500  -  total flux cleaned = -0.00953575 Jy
! Component: 550  -  total flux cleaned = -0.0100955 Jy
! Component: 600  -  total flux cleaned = -0.0105065 Jy
! Component: 650  -  total flux cleaned = -0.0110435 Jy
! Component: 700  -  total flux cleaned = -0.0114388 Jy
! Component: 750  -  total flux cleaned = -0.0118914 Jy
! Component: 800  -  total flux cleaned = -0.0122724 Jy
! Component: 850  -  total flux cleaned = -0.0127722 Jy
! Component: 900  -  total flux cleaned = -0.0130799 Jy
! Component: 950  -  total flux cleaned = -0.0135035 Jy
! Component: 1000  -  total flux cleaned = -0.0138595 Jy
! Component: 1050  -  total flux cleaned = -0.0141513 Jy
! Component: 1100  -  total flux cleaned = -0.0143248 Jy
! Component: 1150  -  total flux cleaned = -0.0145526 Jy
! Component: 1200  -  total flux cleaned = -0.0147774 Jy
! Component: 1250  -  total flux cleaned = -0.0151089 Jy
! Component: 1300  -  total flux cleaned = -0.0152723 Jy
! Component: 1350  -  total flux cleaned = -0.0154339 Jy
! Component: 1400  -  total flux cleaned = -0.0156994 Jy
! Component: 1450  -  total flux cleaned = -0.0158563 Jy
! Component: 1500  -  total flux cleaned = -0.0160114 Jy
! Component: 1550  -  total flux cleaned = -0.0161147 Jy
! Component: 1600  -  total flux cleaned = -0.0163675 Jy
! Component: 1650  -  total flux cleaned = -0.0165169 Jy
! Component: 1700  -  total flux cleaned = -0.0166648 Jy
! Component: 1750  -  total flux cleaned = -0.0168591 Jy
! Component: 1800  -  total flux cleaned = -0.0170034 Jy
! Component: 1850  -  total flux cleaned = -0.0170991 Jy
! Component: 1900  -  total flux cleaned = -0.0172408 Jy
! Component: 1950  -  total flux cleaned = -0.0173808 Jy
! Component: 2000  -  total flux cleaned = -0.0175189 Jy
! Total flux subtracted in 2048 components = -0.0174737 Jy
! Clean residual min=-0.002614 max=0.002626 Jy/beam
! Clean residual mean=0.000005 rms=0.000863 Jy/beam
! Combined flux in latest and established models = 3.98336 Jy
keep
! Adding 114 model components to the UV plane model.
! The established model now contains 325 components and 3.98336 Jy
![Exited script file: muppet]
wmap "J0609-1542_S_1999_05_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.844 x 5.886 at 11.02 degrees (North through East)
! Clean map  min=-0.0047025  max=2.9519 Jy/beam
! Writing clean map to FITS file: J0609-1542_S_1999_05_10_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 2.95194 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000858454 
device "J0609-1542_S_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J0609-1542_S_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.0872431 0.0872431 0.174486 0.348972 0.697945 1.39589 2.79178 5.58356 11.1671 22.3342 44.6685 89.3369
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0025 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.951 
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.844 x 5.886 at 11.02 degrees (North through East)
! Clean map  min=-0.0047025  max=2.9519 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0609-1542_S_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J0609-1542_S_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0609-1542_S_1999_05_10_pus_uvs.log closed on Mon Jan 21 17:31:11 2008