! Started logfile: J2258-2758_S_1999_05_10_pus_uvs.log on Mon Jan 21 17:51:54 2008
obs J2258-2758_S_1999_05_10_pus_uva.fits
! Reading UV FITS file: J2258-2758_S_1999_05_10_pus_uva.fits
! AN table 1: 10 integrations on 153 of 153 possible baselines.
! AN table 2: 185 integrations on 153 of 153 possible baselines.
! AN table 3: 11 integrations on 153 of 153 possible baselines.
! AN table 4: 19 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.060915 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2258-2758
! 
! 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 8388 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 J2258-2758_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 180 telescope corrections were flagged in sub-array 1.
!  A total of 2946 telescope corrections were flagged in sub-array 2.
!  A total of 198 telescope corrections were flagged in sub-array 3.
!  A total of 189 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 180 telescope corrections were flagged in sub-array 1.
!  A total of 2925 telescope corrections were flagged in sub-array 2.
!  A total of 198 telescope corrections were flagged in sub-array 3.
!  A total of 189 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 180 telescope corrections were flagged in sub-array 1.
!  A total of 2925 telescope corrections were flagged in sub-array 2.
!  A total of 198 telescope corrections were flagged in sub-array 3.
!  A total of 189 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 180 telescope corrections were flagged in sub-array 1.
!  A total of 2976 telescope corrections were flagged in sub-array 2.
!  A total of 198 telescope corrections were flagged in sub-array 3.
!  A total of 189 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.564208Jy  sigma=0.004177
! Fit after  self-cal, rms=0.360533Jy  sigma=0.002807
! 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.415 mas, bmaj=4.827 mas, bpa=-0.5577 degrees
! Estimated noise=1770.39 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.813999 Jy
! Component: 100  -  total flux cleaned = 1.04243 Jy
! Total flux subtracted in 100 components = 1.04243 Jy
! Clean residual min=-0.041800 max=0.107360 Jy/beam
! Clean residual mean=0.000545 rms=0.015316 Jy/beam
! Combined flux in latest and established models = 1.04243 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 11 components and 1.04243 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.335749Jy  sigma=0.002605
! Fit after  self-cal, rms=0.335318Jy  sigma=0.002602
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.12717 Jy
! Component: 100  -  total flux cleaned = 0.203424 Jy
! Total flux subtracted in 100 components = 0.203424 Jy
! Clean residual min=-0.028682 max=0.056087 Jy/beam
! Clean residual mean=0.000013 rms=0.009430 Jy/beam
! Combined flux in latest and established models = 1.24585 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 20 components and 1.24585 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.257908Jy  sigma=0.001919
! Fit after  self-cal, rms=0.257390Jy  sigma=0.001917
! Inverting map 
! Added new window around map position (-3, -2.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0608921 Jy
! Component: 100  -  total flux cleaned = 0.100629 Jy
! Total flux subtracted in 100 components = 0.100629 Jy
! Clean residual min=-0.024791 max=0.043903 Jy/beam
! Clean residual mean=-0.000265 rms=0.007418 Jy/beam
! Combined flux in latest and established models = 1.34648 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 28 components and 1.34648 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.233126Jy  sigma=0.001716
! Fit after  self-cal, rms=0.232662Jy  sigma=0.001714
! 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.911 mas, bmaj=7.1 mas, bpa=-6.064 degrees
! Estimated noise=1048.65 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.0487723 Jy
! Component: 100  -  total flux cleaned = 0.0733603 Jy
! Component: 150  -  total flux cleaned = 0.0876669 Jy
! Component: 200  -  total flux cleaned = 0.0963435 Jy
! Total flux subtracted in 200 components = 0.0963435 Jy
! Clean residual min=-0.019648 max=0.026837 Jy/beam
! Clean residual mean=-0.000698 rms=0.005737 Jy/beam
! Combined flux in latest and established models = 1.44282 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 53 components and 1.44282 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.221875Jy  sigma=0.001647
! Fit after  self-cal, rms=0.221492Jy  sigma=0.001644
! 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        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 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.99     GC        1.00*    HH        1.03     
!   HN        1.08     KK        1.03     KP        0.95     LA        1.00     
!   MC        1.01     MK        1.09     NL        0.96     NY        1.00*    
!   ON        1.00*    OV        1.01     PT        1.00     SC        0.97     
!   WF        1.01     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   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*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.93     GC        1.00*    HH        1.00*    
!   HN        1.03     KK        1.00*    KP        0.97     LA        0.95     
!   MC        1.00*    MK        1.00*    NL        1.03     NY        1.00*    
!   ON        1.00*    OV        1.04     PT        0.98     SC        0.99     
!   WF        0.98     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  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 78 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.20     FD        1.02     GC        1.00*    HH        0.97     
!   HN        1.01     KK        1.01     KP        0.99     LA        1.05     
!   MC        1.06     MK        1.06     NL        0.96     NY        1.00*    
!   ON        1.00*    OV        1.05     PT        1.06     SC        0.99     
!   WF        1.03     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   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*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.99     GC        1.00*    HH        1.00*    
!   HN        1.01     KK        1.00*    KP        0.96     LA        0.93     
!   MC        1.00*    MK        1.00*    NL        1.05     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        0.95     SC        0.99     
!   WF        0.99     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  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 78 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.17     FD        0.98     GC        1.00*    HH        0.94     
!   HN        1.03     KK        0.96     KP        0.97     LA        1.06     
!   MC        1.60     MK        0.96     NL        0.95     NY        1.00*    
!   ON        1.00*    OV        1.04     PT        1.02     SC        0.97     
!   WF        1.02     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   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*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.95     GC        1.00*    HH        1.00*    
!   HN        1.01     KK        1.00*    KP        0.94     LA        0.94     
!   MC        1.00*    MK        1.00*    NL        1.04     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        0.94     SC        0.97     
!   WF        0.97     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  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 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.08     FD        0.95     GC        1.00*    HH        0.99     
!   HN        1.01     KK        0.95     KP        0.96     LA        1.04     
!   MC        1.97     MK        0.97     NL        0.96     NY        1.00*    
!   ON        1.00*    OV        0.96     PT        1.05     SC        0.97     
!   WF        1.01     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   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*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.93     GC        1.00*    HH        1.00*    
!   HN        0.98     KK        1.00*    KP        0.95     LA        0.93     
!   MC        1.00*    MK        1.00*    NL        1.13     NY        1.00*    
!   ON        1.00*    OV        0.94     PT        1.04     SC        0.97     
!   WF        0.95     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.221492Jy  sigma=0.001644
! Fit after  self-cal, rms=0.212657Jy  sigma=0.001458
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.94 mas, bmaj=7.97 mas, bpa=-6.668 degrees
! Estimated noise=1053.9 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 (-11.5, -6.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0146781 Jy
! Component: 100  -  total flux cleaned = 0.0194139 Jy
! Component: 150  -  total flux cleaned = 0.0222078 Jy
! Component: 200  -  total flux cleaned = 0.0243305 Jy
! Total flux subtracted in 200 components = 0.0243305 Jy
! Clean residual min=-0.010086 max=0.008000 Jy/beam
! Clean residual mean=0.000155 rms=0.002264 Jy/beam
! Combined flux in latest and established models = 1.46715 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 76 components and 1.46715 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.211193Jy  sigma=0.001450
! Fit after  self-cal, rms=0.211307Jy  sigma=0.001449
! 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.211307Jy  sigma=0.001449
! Fit after  self-cal, rms=0.210168Jy  sigma=0.001447
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.939 mas, bmaj=7.947 mas, bpa=-6.638 degrees
! Estimated noise=1056.39 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0082937 Jy
! Component: 100  -  total flux cleaned = 0.0120904 Jy
! Component: 150  -  total flux cleaned = 0.0130064 Jy
! Component: 200  -  total flux cleaned = 0.0138253 Jy
! Total flux subtracted in 200 components = 0.0138253 Jy
! Clean residual min=-0.010177 max=0.006920 Jy/beam
! Clean residual mean=-0.000087 rms=0.002107 Jy/beam
! Combined flux in latest and established models = 1.48098 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 93 components and 1.48098 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209532Jy  sigma=0.001445
! Fit after  self-cal, rms=0.209403Jy  sigma=0.001445
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.00149822 Jy
! Component: 100  -  total flux cleaned = 0.00257222 Jy
! Component: 150  -  total flux cleaned = 0.00311519 Jy
! Component: 200  -  total flux cleaned = 0.00374092 Jy
! Total flux subtracted in 200 components = 0.00374092 Jy
! Clean residual min=-0.009588 max=0.006509 Jy/beam
! Clean residual mean=-0.000135 rms=0.002016 Jy/beam
! Combined flux in latest and established models = 1.48472 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 100 components and 1.48472 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209154Jy  sigma=0.001444
! Fit after  self-cal, rms=0.209116Jy  sigma=0.001443
! 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.209116Jy  sigma=0.001443
! Fit after  self-cal, rms=0.210100Jy  sigma=0.001442
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.941 mas, bmaj=7.949 mas, bpa=-6.588 degrees
! Estimated noise=1060.77 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00604211 Jy
! Component: 100  -  total flux cleaned = 0.00766514 Jy
! Component: 150  -  total flux cleaned = 0.0092794 Jy
! Component: 200  -  total flux cleaned = 0.00986653 Jy
! Total flux subtracted in 200 components = 0.00986653 Jy
! Clean residual min=-0.009608 max=0.006397 Jy/beam
! Clean residual mean=-0.000257 rms=0.001961 Jy/beam
! Combined flux in latest and established models = 1.49459 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 105 components and 1.49459 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209682Jy  sigma=0.001442
! Fit after  self-cal, rms=0.209642Jy  sigma=0.001441
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.000675981 Jy
! Component: 100  -  total flux cleaned = 0.00159471 Jy
! Component: 150  -  total flux cleaned = 0.00189437 Jy
! Component: 200  -  total flux cleaned = 0.00226188 Jy
! Total flux subtracted in 200 components = 0.00226188 Jy
! Clean residual min=-0.009180 max=0.005879 Jy/beam
! Clean residual mean=-0.000285 rms=0.001908 Jy/beam
! Combined flux in latest and established models = 1.49685 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 111 components and 1.49685 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209495Jy  sigma=0.001441
! Fit after  self-cal, rms=0.209472Jy  sigma=0.001440
! 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.209472Jy  sigma=0.001440
! Fit after  self-cal, rms=0.210688Jy  sigma=0.001440
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.175 mas, bmaj=16.91 mas, bpa=-3.84 degrees
! Estimated noise=1341.51 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00675716 Jy
! Component: 100  -  total flux cleaned = 0.00868527 Jy
! Component: 150  -  total flux cleaned = 0.00860994 Jy
! Component: 200  -  total flux cleaned = 0.00868037 Jy
! Total flux subtracted in 200 components = 0.00868037 Jy
! Clean residual min=-0.008183 max=0.006032 Jy/beam
! Clean residual mean=-0.000765 rms=0.002301 Jy/beam
! Combined flux in latest and established models = 1.50553 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 132 components and 1.50553 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.210484Jy  sigma=0.001440
! Fit after  self-cal, rms=0.210445Jy  sigma=0.001440
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.000161952 Jy
! Component: 100  -  total flux cleaned = 0.000362518 Jy
! Component: 150  -  total flux cleaned = 0.000508286 Jy
! Component: 200  -  total flux cleaned = 0.000450541 Jy
! Total flux subtracted in 200 components = 0.000450541 Jy
! Clean residual min=-0.008083 max=0.006017 Jy/beam
! Clean residual mean=-0.000777 rms=0.002288 Jy/beam
! Combined flux in latest and established models = 1.50598 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 142 components and 1.50598 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.210384Jy  sigma=0.001440
! Fit after  self-cal, rms=0.210362Jy  sigma=0.001439
! 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.943 mas, bmaj=7.947 mas, bpa=-6.526 degrees
! Estimated noise=1065.7 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.943 x 7.947 at -6.526 degrees (North through East)
! Clean map  min=-0.0092015  max=1.0986 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.210362Jy  sigma=0.001439
! Fit after  self-cal, rms=0.183847Jy  sigma=0.001131
! Inverting map and beam 
! Estimated beam: bmin=2.942 mas, bmaj=7.949 mas, bpa=-6.622 degrees
! Estimated noise=1063.61 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00229221 Jy
! Component: 100  -  total flux cleaned = -0.00171494 Jy
! Component: 150  -  total flux cleaned = -0.00147555 Jy
! Component: 200  -  total flux cleaned = -0.0014021 Jy
! Total flux subtracted in 200 components = -0.0014021 Jy
! Clean residual min=-0.007235 max=0.005101 Jy/beam
! Clean residual mean=-0.000219 rms=0.001518 Jy/beam
! Combined flux in latest and established models = 1.50458 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 151 components and 1.50458 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.183720Jy  sigma=0.001130
! Fit after  self-cal, rms=0.183698Jy  sigma=0.001130
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000266861 Jy
! Component: 100  -  total flux cleaned = 0.000276384 Jy
! Component: 150  -  total flux cleaned = 0.00027637 Jy
! Component: 200  -  total flux cleaned = 0.00027736 Jy
! Total flux subtracted in 200 components = 0.00027736 Jy
! Clean residual min=-0.007128 max=0.005021 Jy/beam
! Clean residual mean=-0.000224 rms=0.001478 Jy/beam
! Combined flux in latest and established models = 1.50485 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 159 components and 1.50485 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.183616Jy  sigma=0.001130
! Fit after  self-cal, rms=0.183602Jy  sigma=0.001129
! 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.183602Jy  sigma=0.001129
! Fit after  self-cal, rms=0.183952Jy  sigma=0.001129
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.398 mas, bmaj=5.566 mas, bpa=-1.101 degrees
! Estimated noise=1677.97 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.840526 Jy
! Component: 100  -  total flux cleaned = 1.0732 Jy
! Component: 150  -  total flux cleaned = 1.19672 Jy
! Component: 200  -  total flux cleaned = 1.27651 Jy
! Total flux subtracted in 200 components = 1.27651 Jy
! Clean residual min=-0.021866 max=0.043478 Jy/beam
! Clean residual mean=0.000296 rms=0.007159 Jy/beam
! Combined flux in latest and established models = 1.27651 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 25 model components to the UV plane model.
! The established model now contains 25 components and 1.27651 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.945 mas, bmaj=7.956 mas, bpa=-6.582 degrees
! Estimated noise=1063.55 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.0812227 Jy
! Component: 100  -  total flux cleaned = 0.12674 Jy
! Component: 150  -  total flux cleaned = 0.155024 Jy
! Component: 200  -  total flux cleaned = 0.174555 Jy
! Total flux subtracted in 200 components = 0.174555 Jy
! Clean residual min=-0.006997 max=0.014010 Jy/beam
! Clean residual mean=0.000439 rms=0.002844 Jy/beam
! Combined flux in latest and established models = 1.45107 Jy
! Adding 76 model components to the UV plane model.
! The established model now contains 89 components and 1.45107 Jy
! Inverting map 
! Added new window around map position (-1, 10).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.014913 Jy
! Component: 100  -  total flux cleaned = 0.0255466 Jy
! Component: 150  -  total flux cleaned = 0.0334637 Jy
! Component: 200  -  total flux cleaned = 0.0388115 Jy
! Total flux subtracted in 200 components = 0.0388115 Jy
! Clean residual min=-0.006800 max=0.006404 Jy/beam
! Clean residual mean=-0.000035 rms=0.001718 Jy/beam
! Combined flux in latest and established models = 1.48988 Jy
! Adding 33 model components to the UV plane model.
! The established model now contains 111 components and 1.48988 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.184 mas, bmaj=16.92 mas, bpa=-3.821 degrees
! Estimated noise=1337.07 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00719976 Jy
! Component: 100  -  total flux cleaned = 0.00878807 Jy
! Component: 150  -  total flux cleaned = 0.0094636 Jy
! Component: 200  -  total flux cleaned = 0.00964163 Jy
! Total flux subtracted in 200 components = 0.00964163 Jy
! Clean residual min=-0.005840 max=0.004384 Jy/beam
! Clean residual mean=-0.000330 rms=0.001616 Jy/beam
! Combined flux in latest and established models = 1.49952 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 = -4.47824e-07 Jy
! Component: 100  -  total flux cleaned = 6.64805e-05 Jy
! Component: 150  -  total flux cleaned = 6.70509e-05 Jy
! Component: 200  -  total flux cleaned = 0.00012344 Jy
! Total flux subtracted in 200 components = 0.00012344 Jy
! Clean residual min=-0.005814 max=0.004357 Jy/beam
! Clean residual mean=-0.000330 rms=0.001556 Jy/beam
! Combined flux in latest and established models = 1.49964 Jy
! Adding 39 model components to the UV plane model.
! The established model now contains 145 components and 1.49964 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.945 mas, bmaj=7.956 mas, bpa=-6.582 degrees
! Estimated noise=1063.55 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000929135 Jy
! Component: 100  -  total flux cleaned = -0.000770587 Jy
! Component: 150  -  total flux cleaned = -0.000779625 Jy
! Component: 200  -  total flux cleaned = -0.000908343 Jy
! Total flux subtracted in 200 components = -0.000908343 Jy
! Clean residual min=-0.006089 max=0.004822 Jy/beam
! Clean residual mean=-0.000139 rms=0.001420 Jy/beam
! Combined flux in latest and established models = 1.49874 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 153 components and 1.49874 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.184019Jy  sigma=0.001128
! Fit after  self-cal, rms=0.183915Jy  sigma=0.001127
wmodel J2258-2758_S_1999_05_10_pus_map.mod
! Writing 153 model components to file: J2258-2758_S_1999_05_10_pus_map.mod
wobs J2258-2758_S_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J2258-2758_S_1999_05_10_pus_uvs.fits
wwins J2258-2758_S_1999_05_10_pus_map.win
! wwins: Wrote 4 windows to J2258-2758_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.00263014 Jy
! Component: 100  -  total flux cleaned = -0.00355062 Jy
! Component: 150  -  total flux cleaned = -0.00406073 Jy
! Component: 200  -  total flux cleaned = -0.00422187 Jy
! Component: 250  -  total flux cleaned = -0.00460529 Jy
! Component: 300  -  total flux cleaned = -0.00526774 Jy
! Component: 350  -  total flux cleaned = -0.00590712 Jy
! Component: 400  -  total flux cleaned = -0.00638953 Jy
! Component: 450  -  total flux cleaned = -0.00679132 Jy
! Component: 500  -  total flux cleaned = -0.00711811 Jy
! Component: 550  -  total flux cleaned = -0.00749838 Jy
! Component: 600  -  total flux cleaned = -0.00774381 Jy
! Component: 650  -  total flux cleaned = -0.00798318 Jy
! Component: 700  -  total flux cleaned = -0.00821818 Jy
! Component: 750  -  total flux cleaned = -0.00856105 Jy
! Component: 800  -  total flux cleaned = -0.00872791 Jy
! Component: 850  -  total flux cleaned = -0.00900184 Jy
! Component: 900  -  total flux cleaned = -0.0092704 Jy
! Component: 950  -  total flux cleaned = -0.00937542 Jy
! Component: 1000  -  total flux cleaned = -0.00942695 Jy
! Component: 1050  -  total flux cleaned = -0.00957899 Jy
! Component: 1100  -  total flux cleaned = -0.00972818 Jy
! Component: 1150  -  total flux cleaned = -0.0099245 Jy
! Component: 1200  -  total flux cleaned = -0.0100692 Jy
! Component: 1250  -  total flux cleaned = -0.0101646 Jy
! Component: 1300  -  total flux cleaned = -0.0103979 Jy
! Component: 1350  -  total flux cleaned = -0.0104893 Jy
! Component: 1400  -  total flux cleaned = -0.0106695 Jy
! Component: 1450  -  total flux cleaned = -0.0107133 Jy
! Component: 1500  -  total flux cleaned = -0.0108008 Jy
! Component: 1550  -  total flux cleaned = -0.0109305 Jy
! Component: 1600  -  total flux cleaned = -0.0110152 Jy
! Component: 1650  -  total flux cleaned = -0.0110994 Jy
! Component: 1700  -  total flux cleaned = -0.0111413 Jy
! Component: 1750  -  total flux cleaned = -0.011265 Jy
! Component: 1800  -  total flux cleaned = -0.0113463 Jy
! Component: 1850  -  total flux cleaned = -0.0114266 Jy
! Component: 1900  -  total flux cleaned = -0.011466 Jy
! Component: 1950  -  total flux cleaned = -0.0116226 Jy
! Component: 2000  -  total flux cleaned = -0.0116224 Jy
! Total flux subtracted in 2048 components = -0.0116609 Jy
! Clean residual min=-0.002265 max=0.002587 Jy/beam
! Clean residual mean=0.000005 rms=0.000754 Jy/beam
! Combined flux in latest and established models = 1.48708 Jy
keep
! Adding 128 model components to the UV plane model.
! The established model now contains 281 components and 1.48708 Jy
![Exited script file: muppet]
wmap "J2258-2758_S_1999_05_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.945 x 7.956 at -6.582 degrees (North through East)
! Clean map  min=-0.0044308  max=1.0999 Jy/beam
! Writing clean map to FITS file: J2258-2758_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 1.0999 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000751594 
device "J2258-2758_S_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J2258-2758_S_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.205 0.205 0.41 0.819999 1.64 3.28 6.55999 13.12 26.24 52.4799
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0022 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.099 
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.945 x 7.956 at -6.582 degrees (North through East)
! Clean map  min=-0.0044308  max=1.0999 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2258-2758_S_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J2258-2758_S_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2258-2758_S_1999_05_10_pus_uvs.log closed on Mon Jan 21 17:52:02 2008