! Started logfile: J2056-4714_S_2003_05_07_pus_uvs.log on Sun Dec 24 20:33:35 2006
obs J2056-4714_S_2003_05_07_pus_uva.fits
! Reading UV FITS file: J2056-4714_S_2003_05_07_pus_uva.fits
! AN table 1: 22 integrations on 171 of 171 possible baselines.
! AN table 2: 8 integrations on 171 of 171 possible baselines.
! AN table 3: 11 integrations on 171 of 171 possible baselines.
! AN table 4: Unused.
! AN table 5: Unused.
! AN table 6: 122 integrations on 171 of 171 possible baselines.
! AN table 7: Unused.
! AN table 8: Unused.
! AN table 9: Unused.
! Apparent sampling: 0.024217 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2056-4714
! 
! 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.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1676 lines of history.
! 
! Reading 2700 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
float field_size
field_size = 1024
float field_cell
field_cell = 0.5
float taper_size
taper_size = 20.
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 = 1024x1024 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 418 telescope corrections were flagged in sub-array 1.
!  A total of 152 telescope corrections were flagged in sub-array 2.
!  A total of 209 telescope corrections were flagged in sub-array 3.
!  A total of 1961 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 418 telescope corrections were flagged in sub-array 1.
!  A total of 152 telescope corrections were flagged in sub-array 2.
!  A total of 209 telescope corrections were flagged in sub-array 3.
!  A total of 1961 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 418 telescope corrections were flagged in sub-array 1.
!  A total of 152 telescope corrections were flagged in sub-array 2.
!  A total of 209 telescope corrections were flagged in sub-array 3.
!  A total of 1961 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 418 telescope corrections were flagged in sub-array 1.
!  A total of 152 telescope corrections were flagged in sub-array 2.
!  A total of 209 telescope corrections were flagged in sub-array 3.
!  A total of 1963 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.725046Jy  sigma=0.004487
! Fit after  self-cal, rms=0.552253Jy  sigma=0.003010
! 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.764 mas, bmaj=41.54 mas, bpa=-16.4 degrees
! Estimated noise=3979.75 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.443677 Jy
! Component: 100  -  total flux cleaned = 0.567812 Jy
! Total flux subtracted in 100 components = 0.567812 Jy
! Clean residual min=-0.037037 max=0.055834 Jy/beam
! Clean residual mean=-0.001478 rms=0.013597 Jy/beam
! Combined flux in latest and established models = 0.567812 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 12 components and 0.567812 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.409293Jy  sigma=0.001799
! Fit after  self-cal, rms=0.408873Jy  sigma=0.001798
! 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=3.239 mas, bmaj=45.41 mas, bpa=-16 degrees
! Estimated noise=2436.18 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.0976834 Jy
! Component: 100  -  total flux cleaned = 0.141261 Jy
! Component: 150  -  total flux cleaned = 0.162003 Jy
! Component: 200  -  total flux cleaned = 0.164564 Jy
! Total flux subtracted in 200 components = 0.164564 Jy
! Clean residual min=-0.030184 max=0.029898 Jy/beam
! Clean residual mean=-0.001655 rms=0.010077 Jy/beam
! Combined flux in latest and established models = 0.732376 Jy
! Performing phase self-cal
! Adding 77 model components to the UV plane model.
! The established model now contains 89 components and 0.732376 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.384548Jy  sigma=0.001631
! Fit after  self-cal, rms=0.383952Jy  sigma=0.001630
! 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*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 108 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.07     GG        1.00*    HN        1.00*    
!   KK        0.93     KP        0.98     LA        1.00     MA        1.00*    
!   MC        1.00*    MK        0.86     NL        1.00*    ON        1.00*    
!   OV        1.06     PT        1.02     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 108 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.11     GG        1.00*    HN        1.00*    
!   KK        1.00     KP        1.01     LA        0.97     MA        1.00*    
!   MC        1.00*    MK        0.94     NL        1.00*    ON        1.00*    
!   OV        1.01     PT        0.96     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 108 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.05     GG        1.00*    HN        1.00*    
!   KK        0.98     KP        1.03     LA        0.96     MA        1.00*    
!   MC        1.00*    MK        0.93     NL        1.00*    ON        1.00*    
!   OV        0.92     PT        1.02     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 108 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.05     GG        1.00*    HN        1.00*    
!   KK        0.97     KP        1.00     LA        0.98     MA        1.00*    
!   MC        1.00*    MK        0.96     NL        1.00*    ON        1.00*    
!   OV        0.93     PT        0.96     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.383952Jy  sigma=0.001630
! Fit after  self-cal, rms=0.376787Jy  sigma=0.001595
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.882 mas, bmaj=50.38 mas, bpa=-16.16 degrees
! Estimated noise=2725.55 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.017581 Jy
! Component: 100  -  total flux cleaned = 0.0164164 Jy
! Component: 150  -  total flux cleaned = 0.0154879 Jy
! Component: 200  -  total flux cleaned = 0.0152564 Jy
! Total flux subtracted in 200 components = 0.0152564 Jy
! Clean residual min=-0.013713 max=0.016668 Jy/beam
! Clean residual mean=-0.000364 rms=0.004878 Jy/beam
! Combined flux in latest and established models = 0.747632 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 112 components and 0.747633 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.375939Jy  sigma=0.001588
! Fit after  self-cal, rms=0.375735Jy  sigma=0.001588
! 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.375735Jy  sigma=0.001588
! Fit after  self-cal, rms=0.377573Jy  sigma=0.001587
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.868 mas, bmaj=50.48 mas, bpa=-16.17 degrees
! Estimated noise=2722.79 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0051547 Jy
! Component: 100  -  total flux cleaned = 0.00493414 Jy
! Component: 150  -  total flux cleaned = 0.00484889 Jy
! Component: 200  -  total flux cleaned = 0.00484878 Jy
! Total flux subtracted in 200 components = 0.00484878 Jy
! Clean residual min=-0.012185 max=0.014170 Jy/beam
! Clean residual mean=-0.000424 rms=0.004547 Jy/beam
! Combined flux in latest and established models = 0.752481 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 124 components and 0.752481 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.377397Jy  sigma=0.001586
! Fit after  self-cal, rms=0.377387Jy  sigma=0.001586
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.000190842 Jy
! Component: 100  -  total flux cleaned = 0.000116952 Jy
! Component: 150  -  total flux cleaned = 5.08039e-05 Jy
! Component: 200  -  total flux cleaned = -1.34799e-05 Jy
! Total flux subtracted in 200 components = -1.34799e-05 Jy
! Clean residual min=-0.012263 max=0.014040 Jy/beam
! Clean residual mean=-0.000424 rms=0.004529 Jy/beam
! Combined flux in latest and established models = 0.752468 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 131 components and 0.752468 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.377336Jy  sigma=0.001586
! Fit after  self-cal, rms=0.377344Jy  sigma=0.001586
! 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.377344Jy  sigma=0.001586
! Fit after  self-cal, rms=0.382507Jy  sigma=0.001583
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.861 mas, bmaj=50.57 mas, bpa=-16.17 degrees
! Estimated noise=2723.9 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00306182 Jy
! Component: 100  -  total flux cleaned = 0.00408379 Jy
! Component: 150  -  total flux cleaned = 0.00433853 Jy
! Component: 200  -  total flux cleaned = 0.00449399 Jy
! Total flux subtracted in 200 components = 0.00449399 Jy
! Clean residual min=-0.011557 max=0.013359 Jy/beam
! Clean residual mean=-0.000260 rms=0.004358 Jy/beam
! Combined flux in latest and established models = 0.756962 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 144 components and 0.756962 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.382368Jy  sigma=0.001583
! Fit after  self-cal, rms=0.382453Jy  sigma=0.001583
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.000765275 Jy
! Component: 100  -  total flux cleaned = 0.000767086 Jy
! Component: 150  -  total flux cleaned = 0.000969158 Jy
! Component: 200  -  total flux cleaned = 0.00109982 Jy
! Total flux subtracted in 200 components = 0.00109982 Jy
! Clean residual min=-0.011374 max=0.013298 Jy/beam
! Clean residual mean=-0.000234 rms=0.004330 Jy/beam
! Combined flux in latest and established models = 0.758062 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 153 components and 0.758062 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.382388Jy  sigma=0.001583
! Fit after  self-cal, rms=0.382380Jy  sigma=0.001583
! 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.382380Jy  sigma=0.001583
! Fit after  self-cal, rms=0.384316Jy  sigma=0.001583
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=11.23 mas, bmaj=55.8 mas, bpa=-8.836 degrees
! Estimated noise=3694.34 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00191984 Jy
! Component: 100  -  total flux cleaned = 0.00230443 Jy
! Component: 150  -  total flux cleaned = 0.00268822 Jy
! Component: 200  -  total flux cleaned = 0.00290649 Jy
! Total flux subtracted in 200 components = 0.00290649 Jy
! Clean residual min=-0.013144 max=0.016178 Jy/beam
! Clean residual mean=-0.000457 rms=0.005909 Jy/beam
! Combined flux in latest and established models = 0.760968 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 176 components and 0.760968 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.384216Jy  sigma=0.001583
! Fit after  self-cal, rms=0.384209Jy  sigma=0.001583
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.000829731 Jy
! Component: 100  -  total flux cleaned = 0.000720379 Jy
! Component: 150  -  total flux cleaned = 0.000584397 Jy
! Component: 200  -  total flux cleaned = 0.000509524 Jy
! Total flux subtracted in 200 components = 0.000509524 Jy
! Clean residual min=-0.013127 max=0.016506 Jy/beam
! Clean residual mean=-0.000429 rms=0.005878 Jy/beam
! Combined flux in latest and established models = 0.761478 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 183 components and 0.761478 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.384157Jy  sigma=0.001583
! Fit after  self-cal, rms=0.384147Jy  sigma=0.001583
! 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.858 mas, bmaj=50.64 mas, bpa=-16.17 degrees
! Estimated noise=2727.68 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.858 x 50.64 at -16.17 degrees (North through East)
! Clean map  min=-0.010636  max=0.54188 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.384147Jy  sigma=0.001583
! Fit after  self-cal, rms=0.579231Jy  sigma=0.001268
! Inverting map and beam 
! Estimated beam: bmin=2.838 mas, bmaj=50.08 mas, bpa=-16.22 degrees
! Estimated noise=2706.31 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0100739 Jy
! Component: 100  -  total flux cleaned = 0.0127595 Jy
! Component: 150  -  total flux cleaned = 0.0136652 Jy
! Component: 200  -  total flux cleaned = 0.0144058 Jy
! Total flux subtracted in 200 components = 0.0144058 Jy
! Clean residual min=-0.012952 max=0.013780 Jy/beam
! Clean residual mean=-0.000353 rms=0.004170 Jy/beam
! Combined flux in latest and established models = 0.775883 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 203 components and 0.775883 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.578582Jy  sigma=0.001267
! Fit after  self-cal, rms=0.578750Jy  sigma=0.001266
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0010401 Jy
! Component: 100  -  total flux cleaned = 0.00140894 Jy
! Component: 150  -  total flux cleaned = 0.00162483 Jy
! Component: 200  -  total flux cleaned = 0.00201046 Jy
! Total flux subtracted in 200 components = 0.00201046 Jy
! Clean residual min=-0.012767 max=0.013581 Jy/beam
! Clean residual mean=-0.000313 rms=0.004074 Jy/beam
! Combined flux in latest and established models = 0.777894 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 215 components and 0.777894 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.578529Jy  sigma=0.001267
! Fit after  self-cal, rms=0.578558Jy  sigma=0.001267
! 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.578558Jy  sigma=0.001267
! Fit after  self-cal, rms=0.882397Jy  sigma=0.001263
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.392 mas, bmaj=53.27 mas, bpa=-16.71 degrees
! Estimated noise=4453.04 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.393442 Jy
! Component: 100  -  total flux cleaned = 0.527943 Jy
! Component: 150  -  total flux cleaned = 0.612376 Jy
! Component: 200  -  total flux cleaned = 0.665744 Jy
! Total flux subtracted in 200 components = 0.665744 Jy
! Clean residual min=-0.025413 max=0.027926 Jy/beam
! Clean residual mean=-0.001213 rms=0.008615 Jy/beam
! Combined flux in latest and established models = 0.665744 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 42 model components to the UV plane model.
! The established model now contains 42 components and 0.665744 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.832 mas, bmaj=49.63 mas, bpa=-16.24 degrees
! Estimated noise=2700.4 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.0523926 Jy
! Component: 100  -  total flux cleaned = 0.0778162 Jy
! Component: 150  -  total flux cleaned = 0.0926741 Jy
! Component: 200  -  total flux cleaned = 0.102901 Jy
! Total flux subtracted in 200 components = 0.102901 Jy
! Clean residual min=-0.014130 max=0.012515 Jy/beam
! Clean residual mean=-0.000810 rms=0.004667 Jy/beam
! Combined flux in latest and established models = 0.768645 Jy
! Adding 82 model components to the UV plane model.
! The established model now contains 121 components and 0.768645 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=10.95 mas, bmaj=54.28 mas, bpa=-9.061 degrees
! Estimated noise=3740.45 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0108726 Jy
! Component: 100  -  total flux cleaned = 0.0168997 Jy
! Component: 150  -  total flux cleaned = 0.0203313 Jy
! Component: 200  -  total flux cleaned = 0.0221082 Jy
! Total flux subtracted in 200 components = 0.0221082 Jy
! Clean residual min=-0.012469 max=0.015548 Jy/beam
! Clean residual mean=-0.000649 rms=0.005555 Jy/beam
! Combined flux in latest and established models = 0.790753 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.000347675 Jy
! Component: 100  -  total flux cleaned = 0.000646188 Jy
! Component: 150  -  total flux cleaned = 0.000903658 Jy
! Component: 200  -  total flux cleaned = 0.00112538 Jy
! Total flux subtracted in 200 components = 0.00112538 Jy
! Clean residual min=-0.012443 max=0.015663 Jy/beam
! Clean residual mean=-0.000597 rms=0.005494 Jy/beam
! Combined flux in latest and established models = 0.791879 Jy
! Adding 31 model components to the UV plane model.
! The established model now contains 148 components and 0.791879 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.832 mas, bmaj=49.63 mas, bpa=-16.24 degrees
! Estimated noise=2700.4 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 3.36768e-05 Jy
! Component: 100  -  total flux cleaned = 4.5051e-05 Jy
! Component: 150  -  total flux cleaned = 4.44648e-05 Jy
! Component: 200  -  total flux cleaned = 0.000128478 Jy
! Total flux subtracted in 200 components = 0.000128478 Jy
! Clean residual min=-0.011471 max=0.013247 Jy/beam
! Clean residual mean=-0.000298 rms=0.003899 Jy/beam
! Combined flux in latest and established models = 0.792007 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 163 components and 0.792007 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.882072Jy  sigma=0.001265
! Fit after  self-cal, rms=0.882102Jy  sigma=0.001264
wmodel J2056-4714_S_2003_05_07_pus_map.mod
! Writing 163 model components to file: J2056-4714_S_2003_05_07_pus_map.mod
wobs J2056-4714_S_2003_05_07_pus_uvs.fits
! Writing UV FITS file: J2056-4714_S_2003_05_07_pus_uvs.fits
wwins J2056-4714_S_2003_05_07_pus_map.win
! wwins: Wrote 1 windows to J2056-4714_S_2003_05_07_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=4096  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000390253 Jy
! Component: 100  -  total flux cleaned = 0.000957857 Jy
! Component: 150  -  total flux cleaned = 0.00148631 Jy
! Component: 200  -  total flux cleaned = 0.001663 Jy
! Component: 250  -  total flux cleaned = 0.00229427 Jy
! Component: 300  -  total flux cleaned = 0.00274133 Jy
! Component: 350  -  total flux cleaned = 0.00302513 Jy
! Component: 400  -  total flux cleaned = 0.00342538 Jy
! Component: 450  -  total flux cleaned = 0.00392449 Jy
! Component: 500  -  total flux cleaned = 0.00451219 Jy
! Component: 550  -  total flux cleaned = 0.00540469 Jy
! Component: 600  -  total flux cleaned = 0.00604042 Jy
! Component: 650  -  total flux cleaned = 0.00634848 Jy
! Component: 700  -  total flux cleaned = 0.00644687 Jy
! Component: 750  -  total flux cleaned = 0.00682536 Jy
! Component: 800  -  total flux cleaned = 0.00709576 Jy
! Component: 850  -  total flux cleaned = 0.00727338 Jy
! Component: 900  -  total flux cleaned = 0.00753181 Jy
! Component: 950  -  total flux cleaned = 0.00753266 Jy
! Component: 1000  -  total flux cleaned = 0.00737076 Jy
! Component: 1050  -  total flux cleaned = 0.0072911 Jy
! Component: 1100  -  total flux cleaned = 0.00713506 Jy
! Component: 1150  -  total flux cleaned = 0.00698419 Jy
! Component: 1200  -  total flux cleaned = 0.00690948 Jy
! Component: 1250  -  total flux cleaned = 0.00661907 Jy
! Component: 1300  -  total flux cleaned = 0.00633401 Jy
! Component: 1350  -  total flux cleaned = 0.00598384 Jy
! Component: 1400  -  total flux cleaned = 0.0057073 Jy
! Component: 1450  -  total flux cleaned = 0.00536528 Jy
! Component: 1500  -  total flux cleaned = 0.00509405 Jy
! Component: 1550  -  total flux cleaned = 0.00489289 Jy
! Component: 1600  -  total flux cleaned = 0.00469304 Jy
! Component: 1650  -  total flux cleaned = 0.00442903 Jy
! Component: 1700  -  total flux cleaned = 0.00423175 Jy
! Component: 1750  -  total flux cleaned = 0.00403509 Jy
! Component: 1800  -  total flux cleaned = 0.00383904 Jy
! Component: 1850  -  total flux cleaned = 0.00364251 Jy
! Component: 1900  -  total flux cleaned = 0.00344649 Jy
! Component: 1950  -  total flux cleaned = 0.00318562 Jy
! Component: 2000  -  total flux cleaned = 0.00292485 Jy
! Component: 2050  -  total flux cleaned = 0.00285985 Jy
! Component: 2100  -  total flux cleaned = 0.00279348 Jy
! Component: 2150  -  total flux cleaned = 0.00272629 Jy
! Component: 2200  -  total flux cleaned = 0.00265868 Jy
! Component: 2250  -  total flux cleaned = 0.0026574 Jy
! Component: 2300  -  total flux cleaned = 0.00265586 Jy
! Component: 2350  -  total flux cleaned = 0.00257994 Jy
! Component: 2400  -  total flux cleaned = 0.00257912 Jy
! Component: 2450  -  total flux cleaned = 0.00249801 Jy
! Component: 2500  -  total flux cleaned = 0.00249637 Jy
! Component: 2550  -  total flux cleaned = 0.00240951 Jy
! Component: 2600  -  total flux cleaned = 0.00240716 Jy
! Component: 2650  -  total flux cleaned = 0.00231469 Jy
! Component: 2700  -  total flux cleaned = 0.00231389 Jy
! Component: 2750  -  total flux cleaned = 0.00221573 Jy
! Component: 2800  -  total flux cleaned = 0.0022152 Jy
! Component: 2850  -  total flux cleaned = 0.00210863 Jy
! Component: 2900  -  total flux cleaned = 0.00210868 Jy
! Component: 2950  -  total flux cleaned = 0.00199425 Jy
! Component: 3000  -  total flux cleaned = 0.00199493 Jy
! Component: 3050  -  total flux cleaned = 0.00199643 Jy
! Component: 3100  -  total flux cleaned = 0.00199969 Jy
! Component: 3150  -  total flux cleaned = 0.00200274 Jy
! Component: 3200  -  total flux cleaned = 0.00200403 Jy
! Component: 3250  -  total flux cleaned = 0.00200415 Jy
! Component: 3300  -  total flux cleaned = 0.0020009 Jy
! Component: 3350  -  total flux cleaned = 0.00199675 Jy
! Component: 3400  -  total flux cleaned = 0.00199546 Jy
! Component: 3450  -  total flux cleaned = 0.00199724 Jy
! Component: 3500  -  total flux cleaned = 0.00199931 Jy
! Component: 3550  -  total flux cleaned = 0.00218783 Jy
! Component: 3600  -  total flux cleaned = 0.00218856 Jy
! Component: 3650  -  total flux cleaned = 0.00219124 Jy
! Component: 3700  -  total flux cleaned = 0.00219757 Jy
! Component: 3750  -  total flux cleaned = 0.00220357 Jy
! Component: 3800  -  total flux cleaned = 0.00220851 Jy
! Component: 3850  -  total flux cleaned = 0.0022006 Jy
! Component: 3900  -  total flux cleaned = 0.0021984 Jy
! Component: 3950  -  total flux cleaned = 0.00219969 Jy
! Component: 4000  -  total flux cleaned = 0.00219956 Jy
! Component: 4050  -  total flux cleaned = 0.00248491 Jy
! Total flux subtracted in 4096 components = 0.00248357 Jy
! Clean residual min=-0.016499 max=0.015999 Jy/beam
! Clean residual mean=-0.000061 rms=0.003485 Jy/beam
! Combined flux in latest and established models = 0.794491 Jy
keep
! Adding 238 model components to the UV plane model.
! The established model now contains 401 components and 0.794491 Jy
wmap "J2056-4714_S_2003_05_07_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.832 x 49.63 at -16.24 degrees (North through East)
! Clean map  min=-0.017455  max=0.5683 Jy/beam
! Writing clean map to FITS file: J2056-4714_S_2003_05_07_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.568297 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00412725 
device "J2056-4714_S_2003_05_07_pus\_map.eps/VPS"
! Attempting to open device: 'J2056-4714_S_2003_05_07_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -2.17875 2.17875 4.35749 8.71498 17.43 34.8599 69.7199
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0123 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.568 
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.832 x 49.63 at -16.24 degrees (North through East)
! Clean map  min=-0.017455  max=0.5683 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2056-4714_S_2003_05_07_pus\_map.gif/vgif"
! Attempting to open device: 'J2056-4714_S_2003_05_07_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2056-4714_S_2003_05_07_pus_uvs.log closed on Sun Dec 24 20:41:35 2006