! Started logfile: J0538-4405_X_2003_05_07_pus_uvs.log on Thu Dec 14 14:58:53 2006
obs J0538-4405_X_2003_05_07_pus_uva.fits
! Reading UV FITS file: J0538-4405_X_2003_05_07_pus_uva.fits
! AN table 1: 12 integrations on 171 of 171 possible baselines.
! AN table 2: 34 integrations on 171 of 171 possible baselines.
! AN table 3: 43 integrations on 171 of 171 possible baselines.
! AN table 4: 10 integrations on 171 of 171 possible baselines.
! AN table 5: 101 integrations on 171 of 171 possible baselines.
! AN table 6: 11 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.0368615 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0538-4405
! 
! 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  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1739 lines of history.
! 
! Reading 5320 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 = 256
float field_cell
field_cell = 0.2
float taper_size
taper_size = 70.
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 = 256x256 pixels with 0.200x0.200 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 228 telescope corrections were flagged in sub-array 1.
!  A total of 646 telescope corrections were flagged in sub-array 2.
!  A total of 787 telescope corrections were flagged in sub-array 3.
!  A total of 190 telescope corrections were flagged in sub-array 4.
!  A total of 1550 telescope corrections were flagged in sub-array 5.
!  A total of 209 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 2.
!  A total of 228 telescope corrections were flagged in sub-array 1.
!  A total of 646 telescope corrections were flagged in sub-array 2.
!  A total of 787 telescope corrections were flagged in sub-array 3.
!  A total of 190 telescope corrections were flagged in sub-array 4.
!  A total of 1523 telescope corrections were flagged in sub-array 5.
!  A total of 209 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 3.
!  A total of 228 telescope corrections were flagged in sub-array 1.
!  A total of 646 telescope corrections were flagged in sub-array 2.
!  A total of 787 telescope corrections were flagged in sub-array 3.
!  A total of 190 telescope corrections were flagged in sub-array 4.
!  A total of 1523 telescope corrections were flagged in sub-array 5.
!  A total of 209 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 4.
!  A total of 228 telescope corrections were flagged in sub-array 1.
!  A total of 646 telescope corrections were flagged in sub-array 2.
!  A total of 787 telescope corrections were flagged in sub-array 3.
!  A total of 190 telescope corrections were flagged in sub-array 4.
!  A total of 1523 telescope corrections were flagged in sub-array 5.
!  A total of 209 telescope corrections were flagged in sub-array 6.
! 
! Fit before self-cal, rms=2.349879Jy  sigma=0.018613
! Fit after  self-cal, rms=2.308491Jy  sigma=0.018878
! 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 
! Your choice of large map pixels excluded 0.847% of the data.
!  The y-axis pixel size should ideally be below 0.1937 milli-arcsec
! Estimated beam: bmin=0.5685 mas, bmaj=0.9709 mas, bpa=3.502 degrees
! Estimated noise=3719.95 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.18435 Jy
! Component: 100  -  total flux cleaned = 2.82239 Jy
! Total flux subtracted in 100 components = 2.82239 Jy
! Clean residual min=-0.207493 max=0.346040 Jy/beam
! Clean residual mean=0.001576 rms=0.085622 Jy/beam
! Combined flux in latest and established models = 2.82239 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 2.82239 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.923649Jy  sigma=0.007417
! Fit after  self-cal, rms=0.922765Jy  sigma=0.007409
! Inverting map 
! Your choice of large map pixels excluded 0.847% of the data.
!  The y-axis pixel size should ideally be below 0.1937 milli-arcsec
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 
! Your choice of large map pixels excluded 0.847% of the data.
!  The y-axis pixel size should ideally be below 0.1937 milli-arcsec
! Estimated beam: bmin=0.8382 mas, bmaj=1.359 mas, bpa=10.25 degrees
! Estimated noise=1595.29 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.72224 Jy
! Component: 100  -  total flux cleaned = 1.01629 Jy
! Component: 150  -  total flux cleaned = 1.1436 Jy
! Component: 200  -  total flux cleaned = 1.19873 Jy
! Total flux subtracted in 200 components = 1.19873 Jy
! Clean residual min=-0.054729 max=0.079780 Jy/beam
! Clean residual mean=0.007454 rms=0.022775 Jy/beam
! Combined flux in latest and established models = 4.02112 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 25 components and 4.02112 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.427719Jy  sigma=0.002262
! Fit after  self-cal, rms=0.426656Jy  sigma=0.002255
! Inverting map 
! Your choice of large map pixels excluded 0.847% of the data.
!  The y-axis pixel size should ideally be below 0.1937 milli-arcsec
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*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  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*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   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 3 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        0.96     GG        1.00*    HN        1.00*    
!   KK        1.13     KP        1.08     LA        0.97     MA        1.00*    
!   MC        1.00*    MK        0.97     NL        1.00*    ON        1.00*    
!   OV        1.00     PT        0.99     SC        1.01     TC        0.98     
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 6:
!   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*    
! 
! 
! 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*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  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*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   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 30 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        0.96     GG        1.00*    HN        1.00*    
!   KK        1.12     KP        1.01     LA        0.97     MA        1.00*    
!   MC        1.00*    MK        0.97     NL        1.00*    ON        1.00*    
!   OV        0.99     PT        1.03     SC        0.97     TC        1.04     
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 6:
!   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*    
! 
! 
! 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*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  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*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   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 30 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        0.95     GG        1.00*    HN        1.00*    
!   KK        1.19     KP        0.94     LA        0.98     MA        1.00*    
!   MC        1.00*    MK        0.96     NL        1.00*    ON        1.00*    
!   OV        1.03     PT        1.06     SC        0.98     TC        1.00     
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 6:
!   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*    
! 
! 
! 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*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  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*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   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 30 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        0.93     GG        1.00*    HN        1.00*    
!   KK        1.14     KP        1.01     LA        0.96     MA        1.00*    
!   MC        1.00*    MK        0.98     NL        1.00*    ON        1.00*    
!   OV        1.03     PT        1.06     SC        1.02     TC        1.02     
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 6:
!   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*    
! 
! 
! Fit before self-cal, rms=0.426656Jy  sigma=0.002255
! Fit after  self-cal, rms=0.367960Jy  sigma=0.001537
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.8578 mas, bmaj=1.378 mas, bpa=9.492 degrees
! Estimated noise=1604.96 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 (2.6, 0.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0458163 Jy
! Component: 100  -  total flux cleaned = 0.0447581 Jy
! Component: 150  -  total flux cleaned = 0.0425635 Jy
! Component: 200  -  total flux cleaned = 0.0419471 Jy
! Total flux subtracted in 200 components = 0.0419471 Jy
! Clean residual min=-0.036401 max=0.023514 Jy/beam
! Clean residual mean=-0.001404 rms=0.007289 Jy/beam
! Combined flux in latest and established models = 4.06307 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 38 components and 4.06307 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.360311Jy  sigma=0.001434
! Fit after  self-cal, rms=0.359774Jy  sigma=0.001428
! 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.359774Jy  sigma=0.001428
! Fit after  self-cal, rms=0.359248Jy  sigma=0.001415
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=0.8552 mas, bmaj=1.38 mas, bpa=9.411 degrees
! Estimated noise=1600.36 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0164447 Jy
! Component: 100  -  total flux cleaned = 0.0153869 Jy
! Component: 150  -  total flux cleaned = 0.0140313 Jy
! Component: 200  -  total flux cleaned = 0.0136252 Jy
! Total flux subtracted in 200 components = 0.0136252 Jy
! Clean residual min=-0.028200 max=0.018568 Jy/beam
! Clean residual mean=-0.000938 rms=0.005888 Jy/beam
! Combined flux in latest and established models = 4.0767 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 44 components and 4.0767 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.357340Jy  sigma=0.001389
! Fit after  self-cal, rms=0.357147Jy  sigma=0.001388
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.00288774 Jy
! Component: 100  -  total flux cleaned = 0.00183824 Jy
! Component: 150  -  total flux cleaned = 0.00118948 Jy
! Component: 200  -  total flux cleaned = 0.000860546 Jy
! Total flux subtracted in 200 components = 0.000860546 Jy
! Clean residual min=-0.027695 max=0.015283 Jy/beam
! Clean residual mean=-0.000947 rms=0.005690 Jy/beam
! Combined flux in latest and established models = 4.07756 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 52 components and 4.07756 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356514Jy  sigma=0.001380
! Fit after  self-cal, rms=0.356446Jy  sigma=0.001380
! 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.356446Jy  sigma=0.001380
! Fit after  self-cal, rms=0.355505Jy  sigma=0.001330
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=0.8553 mas, bmaj=1.385 mas, bpa=9.566 degrees
! Estimated noise=1599.32 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00388144 Jy
! Component: 100  -  total flux cleaned = -0.00390769 Jy
! Component: 150  -  total flux cleaned = -0.00353736 Jy
! Component: 200  -  total flux cleaned = -0.00352645 Jy
! Total flux subtracted in 200 components = -0.00352645 Jy
! Clean residual min=-0.020757 max=0.015094 Jy/beam
! Clean residual mean=-0.000459 rms=0.004947 Jy/beam
! Combined flux in latest and established models = 4.07403 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 55 components and 4.07403 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.354406Jy  sigma=0.001320
! Fit after  self-cal, rms=0.354384Jy  sigma=0.001320
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.000750872 Jy
! Component: 100  -  total flux cleaned = 0.000454401 Jy
! Component: 150  -  total flux cleaned = 0.000179994 Jy
! Component: 200  -  total flux cleaned = 0.000186308 Jy
! Total flux subtracted in 200 components = 0.000186308 Jy
! Clean residual min=-0.020178 max=0.013733 Jy/beam
! Clean residual mean=-0.000460 rms=0.004819 Jy/beam
! Combined flux in latest and established models = 4.07422 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 59 components and 4.07422 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.353833Jy  sigma=0.001316
! Fit after  self-cal, rms=0.353815Jy  sigma=0.001315
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 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.353815Jy  sigma=0.001315
! Fit after  self-cal, rms=0.354136Jy  sigma=0.001312
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.284 mas, bmaj=12.75 mas, bpa=-3.415 degrees
! Estimated noise=1826.65 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00234072 Jy
! Component: 100  -  total flux cleaned = -0.00259837 Jy
! Component: 150  -  total flux cleaned = -0.00271442 Jy
! Component: 200  -  total flux cleaned = -0.00269494 Jy
! Total flux subtracted in 200 components = -0.00269494 Jy
! Clean residual min=-0.013355 max=0.011789 Jy/beam
! Clean residual mean=-0.000702 rms=0.005421 Jy/beam
! Combined flux in latest and established models = 4.07152 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 65 components and 4.07152 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.353931Jy  sigma=0.001310
! Fit after  self-cal, rms=0.353885Jy  sigma=0.001310
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.00101018 Jy
! Component: 100  -  total flux cleaned = 0.000366043 Jy
! Component: 150  -  total flux cleaned = 2.09952e-05 Jy
! Component: 200  -  total flux cleaned = 2.55136e-05 Jy
! Total flux subtracted in 200 components = 2.55136e-05 Jy
! Clean residual min=-0.013193 max=0.011763 Jy/beam
! Clean residual mean=-0.000698 rms=0.005381 Jy/beam
! Combined flux in latest and established models = 4.07155 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 68 components and 4.07155 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.353809Jy  sigma=0.001309
! Fit after  self-cal, rms=0.353796Jy  sigma=0.001309
! 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=0.8554 mas, bmaj=1.388 mas, bpa=9.653 degrees
! Estimated noise=1598.44 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8554 x 1.388 at 9.653 degrees (North through East)
! Clean map  min=-0.015842  max=3.2866 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.353796Jy  sigma=0.001309
! Fit after  self-cal, rms=0.334805Jy  sigma=0.001112
! Inverting map and beam 
! Estimated beam: bmin=0.8555 mas, bmaj=1.389 mas, bpa=9.63 degrees
! Estimated noise=1597.44 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0031635 Jy
! Component: 100  -  total flux cleaned = -0.00316967 Jy
! Component: 150  -  total flux cleaned = -0.00343356 Jy
! Component: 200  -  total flux cleaned = -0.00390498 Jy
! Total flux subtracted in 200 components = -0.00390498 Jy
! Clean residual min=-0.017265 max=0.012248 Jy/beam
! Clean residual mean=-0.000235 rms=0.004290 Jy/beam
! Combined flux in latest and established models = 4.06764 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 71 components and 4.06764 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.334208Jy  sigma=0.001106
! Fit after  self-cal, rms=0.334209Jy  sigma=0.001106
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000345056 Jy
! Component: 100  -  total flux cleaned = 0.000115118 Jy
! Component: 150  -  total flux cleaned = -9.38002e-05 Jy
! Component: 200  -  total flux cleaned = -0.000295832 Jy
! Total flux subtracted in 200 components = -0.000295832 Jy
! Clean residual min=-0.017046 max=0.012161 Jy/beam
! Clean residual mean=-0.000222 rms=0.004224 Jy/beam
! Combined flux in latest and established models = 4.06735 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 73 components and 4.06735 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.333886Jy  sigma=0.001103
! Fit after  self-cal, rms=0.333883Jy  sigma=0.001103
! 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.333883Jy  sigma=0.001103
! Fit after  self-cal, rms=0.334118Jy  sigma=0.001101
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=0.5823 mas, bmaj=0.9897 mas, bpa=-0.5548 degrees
! Estimated noise=3239.44 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.25409 Jy
! Component: 100  -  total flux cleaned = 2.87364 Jy
! Component: 150  -  total flux cleaned = 3.20942 Jy
! Component: 200  -  total flux cleaned = 3.42807 Jy
! Total flux subtracted in 200 components = 3.42807 Jy
! Clean residual min=-0.098844 max=0.134221 Jy/beam
! Clean residual mean=0.001476 rms=0.036945 Jy/beam
! Combined flux in latest and established models = 3.42807 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 20 model components to the UV plane model.
! The established model now contains 20 components and 3.42808 Jy
! Inverting map and beam 
! Estimated beam: bmin=0.8557 mas, bmaj=1.391 mas, bpa=9.705 degrees
! Estimated noise=1596.88 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.328113 Jy
! Component: 100  -  total flux cleaned = 0.478812 Jy
! Component: 150  -  total flux cleaned = 0.553673 Jy
! Component: 200  -  total flux cleaned = 0.594074 Jy
! Total flux subtracted in 200 components = 0.594074 Jy
! Clean residual min=-0.017200 max=0.027403 Jy/beam
! Clean residual mean=0.001019 rms=0.008249 Jy/beam
! Combined flux in latest and established models = 4.02215 Jy
! Adding 19 model components to the UV plane model.
! The established model now contains 30 components and 4.02215 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.284 mas, bmaj=12.76 mas, bpa=-3.379 degrees
! Estimated noise=1823.36 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0273492 Jy
! Component: 100  -  total flux cleaned = 0.0363608 Jy
! Component: 150  -  total flux cleaned = 0.040734 Jy
! Component: 200  -  total flux cleaned = 0.0415926 Jy
! Total flux subtracted in 200 components = 0.0415926 Jy
! Clean residual min=-0.011957 max=0.012122 Jy/beam
! Clean residual mean=-0.000256 rms=0.004586 Jy/beam
! Combined flux in latest and established models = 4.06374 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.0001821 Jy
! Component: 100  -  total flux cleaned = 0.000351354 Jy
! Component: 150  -  total flux cleaned = 0.000331408 Jy
! Component: 200  -  total flux cleaned = 0.000388038 Jy
! Total flux subtracted in 200 components = 0.000388038 Jy
! Clean residual min=-0.011670 max=0.011413 Jy/beam
! Clean residual mean=-0.000285 rms=0.004473 Jy/beam
! Combined flux in latest and established models = 4.06413 Jy
! Adding 12 model components to the UV plane model.
! The established model now contains 38 components and 4.06413 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=0.8557 mas, bmaj=1.391 mas, bpa=9.705 degrees
! Estimated noise=1596.88 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00228204 Jy
! Component: 100  -  total flux cleaned = -0.00269784 Jy
! Component: 150  -  total flux cleaned = -0.00304092 Jy
! Component: 200  -  total flux cleaned = -0.00334318 Jy
! Total flux subtracted in 200 components = -0.00334318 Jy
! Clean residual min=-0.015240 max=0.014620 Jy/beam
! Clean residual mean=-0.000059 rms=0.003941 Jy/beam
! Combined flux in latest and established models = 4.06079 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 48 components and 4.06079 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.335289Jy  sigma=0.001093
! Fit after  self-cal, rms=0.335018Jy  sigma=0.001089
wmodel J0538-4405_X_2003_05_07_pus_map.mod
! Writing 48 model components to file: J0538-4405_X_2003_05_07_pus_map.mod
wobs J0538-4405_X_2003_05_07_pus_uvs.fits
! Writing UV FITS file: J0538-4405_X_2003_05_07_pus_uvs.fits
wwins J0538-4405_X_2003_05_07_pus_map.win
! wwins: Wrote 2 windows to J0538-4405_X_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=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.00467785 Jy
! Component: 100  -  total flux cleaned = -0.00282081 Jy
! Component: 150  -  total flux cleaned = -0.00242779 Jy
! Component: 200  -  total flux cleaned = -0.00348206 Jy
! Component: 250  -  total flux cleaned = -0.00414095 Jy
! Component: 300  -  total flux cleaned = -0.00445481 Jy
! Component: 350  -  total flux cleaned = -0.00475369 Jy
! Component: 400  -  total flux cleaned = -0.00518161 Jy
! Component: 450  -  total flux cleaned = -0.00572378 Jy
! Component: 500  -  total flux cleaned = -0.00598294 Jy
! Component: 550  -  total flux cleaned = -0.00623226 Jy
! Component: 600  -  total flux cleaned = -0.00623168 Jy
! Component: 650  -  total flux cleaned = -0.00646726 Jy
! Component: 700  -  total flux cleaned = -0.00680539 Jy
! Component: 750  -  total flux cleaned = -0.00724554 Jy
! Component: 800  -  total flux cleaned = -0.00788929 Jy
! Component: 850  -  total flux cleaned = -0.00841182 Jy
! Component: 900  -  total flux cleaned = -0.00892182 Jy
! Component: 950  -  total flux cleaned = -0.00951953 Jy
! Component: 1000  -  total flux cleaned = -0.0101054 Jy
! Total flux subtracted in 1024 components = -0.0104894 Jy
! Clean residual min=-0.004954 max=0.005703 Jy/beam
! Clean residual mean=-0.000029 rms=0.001882 Jy/beam
! Combined flux in latest and established models = 4.0503 Jy
keep
! Adding 48 model components to the UV plane model.
! The established model now contains 96 components and 4.0503 Jy
wmap "J0538-4405_X_2003_05_07_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8557 x 1.391 at 9.705 degrees (North through East)
! Clean map  min=-0.012769  max=3.243 Jy/beam
! Writing clean map to FITS file: J0538-4405_X_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 3.24297 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00189697 
device "J0538-4405_X_2003_05_07_pus\_map.eps/VPS"
! Attempting to open device: 'J0538-4405_X_2003_05_07_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.175485 0.175485 0.350969 0.701938 1.40388 2.80775 5.61551 11.231 22.462 44.9241 89.8481
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0056 
print "peak=",int(1000*peak_flux)/1000
! peak= 3.242 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8557 x 1.391 at 9.705 degrees (North through East)
! Clean map  min=-0.012769  max=3.243 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0538-4405_X_2003_05_07_pus\_map.gif/vgif"
! Attempting to open device: 'J0538-4405_X_2003_05_07_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0538-4405_X_2003_05_07_pus_uvs.log closed on Thu Dec 14 14:59:46 2006