! Started logfile: J0921-2618_X_2003_05_07_pus_uvs.log on Tue Dec 12 14:45:16 2006
obs J0921-2618_X_2003_05_07_pus_uva.fits
! Reading UV FITS file: J0921-2618_X_2003_05_07_pus_uva.fits
! AN table 1: 70 integrations on 171 of 171 possible baselines.
! AN table 2: Unused.
! AN table 3: 10 integrations on 171 of 171 possible baselines.
! AN table 4: 59 integrations on 171 of 171 possible baselines.
! AN table 5: 55 integrations on 171 of 171 possible baselines.
! AN table 6: Unused.
! AN table 7: 11 integrations on 171 of 171 possible baselines.
! AN table 8: Unused.
! AN table 9: Unused.
! Apparent sampling: 0.0658109 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0921-2618
! 
! 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 1735 lines of history.
! 
! Reading 9228 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 = 512
float field_cell
field_cell = 0.16
float taper_size
taper_size = 90.
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.160x0.160 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 1064 telescope corrections were flagged in sub-array 1.
!  A total of 190 telescope corrections were flagged in sub-array 2.
!  A total of 971 telescope corrections were flagged in sub-array 3.
!  A total of 812 telescope corrections were flagged in sub-array 4.
!  A total of 188 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 1064 telescope corrections were flagged in sub-array 1.
!  A total of 190 telescope corrections were flagged in sub-array 2.
!  A total of 971 telescope corrections were flagged in sub-array 3.
!  A total of 812 telescope corrections were flagged in sub-array 4.
!  A total of 188 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 1064 telescope corrections were flagged in sub-array 1.
!  A total of 190 telescope corrections were flagged in sub-array 2.
!  A total of 971 telescope corrections were flagged in sub-array 3.
!  A total of 812 telescope corrections were flagged in sub-array 4.
!  A total of 188 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 1064 telescope corrections were flagged in sub-array 1.
!  A total of 190 telescope corrections were flagged in sub-array 2.
!  A total of 971 telescope corrections were flagged in sub-array 3.
!  A total of 812 telescope corrections were flagged in sub-array 4.
!  A total of 188 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.906317Jy  sigma=0.007148
! Fit after  self-cal, rms=0.453542Jy  sigma=0.003850
! 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=0.6699 mas, bmaj=2.181 mas, bpa=-12.78 degrees
! Estimated noise=1222.69 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.903812 Jy
! Component: 100  -  total flux cleaned = 1.20258 Jy
! Total flux subtracted in 100 components = 1.20258 Jy
! Clean residual min=-0.031893 max=0.136635 Jy/beam
! Clean residual mean=0.002100 rms=0.015860 Jy/beam
! Combined flux in latest and established models = 1.20258 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 1.20258 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.327690Jy  sigma=0.002651
! Fit after  self-cal, rms=0.327550Jy  sigma=0.002649
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.150585 Jy
! Component: 100  -  total flux cleaned = 0.227949 Jy
! Total flux subtracted in 100 components = 0.227949 Jy
! Clean residual min=-0.021579 max=0.041927 Jy/beam
! Clean residual mean=0.000875 rms=0.006994 Jy/beam
! Combined flux in latest and established models = 1.43053 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 11 components and 1.43052 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.245023Jy  sigma=0.001671
! Fit after  self-cal, rms=0.244847Jy  sigma=0.001669
! Inverting map 
! Added new window around map position (-1.12, -1.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0454399 Jy
! Component: 100  -  total flux cleaned = 0.0745409 Jy
! Total flux subtracted in 100 components = 0.0745409 Jy
! Clean residual min=-0.018330 max=0.026018 Jy/beam
! Clean residual mean=0.000495 rms=0.005208 Jy/beam
! Combined flux in latest and established models = 1.50507 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 30 components and 1.50507 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.234574Jy  sigma=0.001508
! Fit after  self-cal, rms=0.234333Jy  sigma=0.001506
! 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=0.8067 mas, bmaj=2.447 mas, bpa=-11.91 degrees
! Estimated noise=924.122 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.0339222 Jy
! Component: 100  -  total flux cleaned = 0.0542567 Jy
! Component: 150  -  total flux cleaned = 0.0670509 Jy
! Component: 200  -  total flux cleaned = 0.0752609 Jy
! Total flux subtracted in 200 components = 0.0752609 Jy
! Clean residual min=-0.017782 max=0.016314 Jy/beam
! Clean residual mean=-0.000469 rms=0.005212 Jy/beam
! Combined flux in latest and established models = 1.58033 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 64 components and 1.58033 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.230945Jy  sigma=0.001432
! Fit after  self-cal, rms=0.230676Jy  sigma=0.001429
! 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.97     FD        0.97     GG        1.00*    HN        1.02     
!   KK        1.16     KP        1.07     LA        0.95     MA        1.00*    
!   MC        1.00*    MK        0.97     NL        1.01     ON        1.00*    
!   OV        0.95     PT        0.98     SC        1.02     TC        1.00*    
!   TS        1.00*    WF        1.05     WZ        1.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 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.87     GG        1.00*    HN        1.06     
!   KK        1.00*    KP        1.13     LA        1.00*    MA        1.08     
!   MC        1.16     MK        1.00*    NL        1.20     ON        1.04     
!   OV        1.00*    PT        1.01     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        0.94     WZ        0.94     
! 
!  A total of 42 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        0.98     GG        1.00*    HN        1.00*    
!   KK        1.02     KP        1.04     LA        0.96     MA        1.00*    
!   MC        1.00*    MK        0.96     NL        1.07     ON        1.00*    
!   OV        0.95     PT        0.97     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   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        1.00     FD        0.98     GG        1.00*    HN        1.03     
!   KK        1.14     KP        1.00     LA        0.96     MA        1.00*    
!   MC        1.00*    MK        0.99     NL        0.98     ON        1.00*    
!   OV        0.95     PT        1.01     SC        0.98     TC        1.00*    
!   TS        1.00*    WF        1.07     WZ        1.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 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.88     GG        1.00*    HN        1.07     
!   KK        1.00*    KP        1.04     LA        1.00*    MA        1.17     
!   MC        1.12     MK        1.00*    NL        1.15     ON        1.14     
!   OV        1.00*    PT        1.03     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        0.99     WZ        0.91     
! 
!  A total of 42 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        0.98     GG        1.00*    HN        1.00*    
!   KK        1.00     KP        0.98     LA        0.98     MA        1.00*    
!   MC        1.00*    MK        0.95     NL        1.03     ON        1.00*    
!   OV        0.95     PT        1.01     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   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        1.04     FD        0.97     GG        1.00*    HN        1.04     
!   KK        1.24     KP        0.94     LA        0.98     MA        1.00*    
!   MC        1.00*    MK        0.98     NL        0.97     ON        1.00*    
!   OV        1.00     PT        1.05     SC        1.00     TC        1.00*    
!   TS        1.00*    WF        1.05     WZ        1.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 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.88     GG        1.00*    HN        1.08     
!   KK        1.00*    KP        0.93     LA        1.00*    MA        1.23     
!   MC        1.02     MK        1.00*    NL        1.13     ON        1.10     
!   OV        1.00*    PT        1.10     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        0.92     WZ        0.99     
! 
!  A total of 42 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        0.98     GG        1.00*    HN        1.00*    
!   KK        1.10     KP        0.93     LA        1.00     MA        1.00*    
!   MC        1.00*    MK        0.99     NL        1.00     ON        1.00*    
!   OV        1.00     PT        1.04     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   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        1.02     FD        0.96     GG        1.00*    HN        1.07     
!   KK        1.20     KP        1.00     LA        0.95     MA        1.00*    
!   MC        1.00*    MK        1.03     NL        0.97     ON        1.00*    
!   OV        1.00     PT        1.05     SC        1.06     TC        1.00*    
!   TS        1.00*    WF        1.03     WZ        1.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 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.86     GG        1.00*    HN        1.11     
!   KK        1.00*    KP        1.00     LA        1.00*    MA        1.28     
!   MC        1.06     MK        1.00*    NL        1.15     ON        1.06     
!   OV        1.00*    PT        1.10     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        0.92     WZ        0.98     
! 
!  A total of 42 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        0.96     GG        1.00*    HN        1.00*    
!   KK        1.06     KP        0.99     LA        0.99     MA        1.00*    
!   MC        1.00*    MK        1.01     NL        1.02     ON        1.00*    
!   OV        0.99     PT        1.05     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   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.230676Jy  sigma=0.001429
! Fit after  self-cal, rms=0.213490Jy  sigma=0.001257
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.8022 mas, bmaj=2.429 mas, bpa=-11.85 degrees
! Estimated noise=941.15 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.00478269 Jy
! Component: 100  -  total flux cleaned = -0.00501974 Jy
! Component: 150  -  total flux cleaned = -0.00503485 Jy
! Component: 200  -  total flux cleaned = -0.00503503 Jy
! Total flux subtracted in 200 components = -0.00503503 Jy
! Clean residual min=-0.008168 max=0.010634 Jy/beam
! Clean residual mean=-0.000148 rms=0.002480 Jy/beam
! Combined flux in latest and established models = 1.57529 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 76 components and 1.57529 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.212826Jy  sigma=0.001251
! Fit after  self-cal, rms=0.213062Jy  sigma=0.001250
! 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.213062Jy  sigma=0.001250
! Fit after  self-cal, rms=0.213252Jy  sigma=0.001249
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=0.8028 mas, bmaj=2.428 mas, bpa=-11.82 degrees
! Estimated noise=940.546 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00310488 Jy
! Component: 100  -  total flux cleaned = -0.00310701 Jy
! Component: 150  -  total flux cleaned = -0.00311127 Jy
! Component: 200  -  total flux cleaned = -0.00296889 Jy
! Total flux subtracted in 200 components = -0.00296889 Jy
! Clean residual min=-0.006902 max=0.009722 Jy/beam
! Clean residual mean=-0.000045 rms=0.002247 Jy/beam
! Combined flux in latest and established models = 1.57232 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 77 components and 1.57232 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.212899Jy  sigma=0.001246
! Fit after  self-cal, rms=0.212871Jy  sigma=0.001245
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (-2.56, 2.72).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00945032 Jy
! Component: 100  -  total flux cleaned = 0.0105827 Jy
! Component: 150  -  total flux cleaned = 0.0113446 Jy
! Component: 200  -  total flux cleaned = 0.011726 Jy
! Total flux subtracted in 200 components = 0.011726 Jy
! Clean residual min=-0.005844 max=0.007176 Jy/beam
! Clean residual mean=-0.000171 rms=0.001908 Jy/beam
! Combined flux in latest and established models = 1.58405 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 106 components and 1.58405 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.212455Jy  sigma=0.001239
! Fit after  self-cal, rms=0.212448Jy  sigma=0.001239
! 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.212448Jy  sigma=0.001239
! Fit after  self-cal, rms=0.212130Jy  sigma=0.001231
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=0.8034 mas, bmaj=2.424 mas, bpa=-11.81 degrees
! Estimated noise=939.898 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000616903 Jy
! Component: 100  -  total flux cleaned = -0.00074953 Jy
! Component: 150  -  total flux cleaned = -0.000515586 Jy
! Component: 200  -  total flux cleaned = -0.000412912 Jy
! Total flux subtracted in 200 components = -0.000412912 Jy
! Clean residual min=-0.005106 max=0.007307 Jy/beam
! Clean residual mean=-0.000087 rms=0.001564 Jy/beam
! Combined flux in latest and established models = 1.58364 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 119 components and 1.58364 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.211947Jy  sigma=0.001230
! Fit after  self-cal, rms=0.211941Jy  sigma=0.001230
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (-6.24, 4.48).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00650388 Jy
! Component: 100  -  total flux cleaned = 0.00796173 Jy
! Component: 150  -  total flux cleaned = 0.00818218 Jy
! Component: 200  -  total flux cleaned = 0.00818698 Jy
! Total flux subtracted in 200 components = 0.00818698 Jy
! Clean residual min=-0.004730 max=0.005217 Jy/beam
! Clean residual mean=-0.000158 rms=0.001313 Jy/beam
! Combined flux in latest and established models = 1.59182 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 142 components and 1.59182 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.211726Jy  sigma=0.001227
! Fit after  self-cal, rms=0.211715Jy  sigma=0.001227
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 90 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.211715Jy  sigma=0.001227
! Fit after  self-cal, rms=0.211931Jy  sigma=0.001226
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=1.707 mas, bmaj=4.27 mas, bpa=-6.778 degrees
! Estimated noise=1104.59 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000649264 Jy
! Component: 100  -  total flux cleaned = 0.00134736 Jy
! Component: 150  -  total flux cleaned = 0.00159825 Jy
! Component: 200  -  total flux cleaned = 0.00159614 Jy
! Total flux subtracted in 200 components = 0.00159614 Jy
! Clean residual min=-0.004063 max=0.004049 Jy/beam
! Clean residual mean=-0.000217 rms=0.001388 Jy/beam
! Combined flux in latest and established models = 1.59342 Jy
selfcal
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 165 components and 1.59342 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.211839Jy  sigma=0.001225
! Fit after  self-cal, rms=0.211838Jy  sigma=0.001225
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 = 8.68106e-05 Jy
! Component: 100  -  total flux cleaned = 0.000501306 Jy
! Component: 150  -  total flux cleaned = 0.000742693 Jy
! Component: 200  -  total flux cleaned = 0.000904257 Jy
! Total flux subtracted in 200 components = 0.000904257 Jy
! Clean residual min=-0.004009 max=0.003605 Jy/beam
! Clean residual mean=-0.000238 rms=0.001319 Jy/beam
! Combined flux in latest and established models = 1.59432 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 181 components and 1.59432 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.211809Jy  sigma=0.001225
! Fit after  self-cal, rms=0.211813Jy  sigma=0.001225
! 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.8036 mas, bmaj=2.423 mas, bpa=-11.78 degrees
! Estimated noise=939.218 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8036 x 2.423 at -11.78 degrees (North through East)
! Clean map  min=-0.0072695  max=1.2036 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.211813Jy  sigma=0.001225
! Fit after  self-cal, rms=0.214201Jy  sigma=0.001112
! Inverting map and beam 
! Estimated beam: bmin=0.8032 mas, bmaj=2.422 mas, bpa=-11.78 degrees
! Estimated noise=938.166 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00063345 Jy
! Component: 100  -  total flux cleaned = -0.000544728 Jy
! Component: 150  -  total flux cleaned = -0.000463667 Jy
! Component: 200  -  total flux cleaned = -0.000459941 Jy
! Total flux subtracted in 200 components = -0.000459941 Jy
! Clean residual min=-0.003606 max=0.004994 Jy/beam
! Clean residual mean=-0.000069 rms=0.001022 Jy/beam
! Combined flux in latest and established models = 1.59386 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 196 components and 1.59386 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.214099Jy  sigma=0.001111
! Fit after  self-cal, rms=0.214097Jy  sigma=0.001111
! Inverting map 
! Added new window around map position (11.04, -20.32).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00165845 Jy
! Component: 100  -  total flux cleaned = 0.00186004 Jy
! Component: 150  -  total flux cleaned = 0.00185893 Jy
! Component: 200  -  total flux cleaned = 0.00192356 Jy
! Total flux subtracted in 200 components = 0.00192356 Jy
! Clean residual min=-0.003554 max=0.003597 Jy/beam
! Clean residual mean=-0.000075 rms=0.000955 Jy/beam
! Combined flux in latest and established models = 1.59579 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 215 components and 1.59579 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.213918Jy  sigma=0.001110
! Fit after  self-cal, rms=0.213926Jy  sigma=0.001110
! 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.213926Jy  sigma=0.001110
! Fit after  self-cal, rms=0.214100Jy  sigma=0.001110
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.6717 mas, bmaj=2.163 mas, bpa=-12.68 degrees
! Estimated noise=1257.56 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.900125 Jy
! Component: 100  -  total flux cleaned = 1.19092 Jy
! Component: 150  -  total flux cleaned = 1.33869 Jy
! Component: 200  -  total flux cleaned = 1.41561 Jy
! Total flux subtracted in 200 components = 1.41561 Jy
! Clean residual min=-0.011832 max=0.036327 Jy/beam
! Clean residual mean=0.000882 rms=0.005277 Jy/beam
! Combined flux in latest and established models = 1.41561 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 13 model components to the UV plane model.
! The established model now contains 13 components and 1.41562 Jy
! Inverting map and beam 
! Estimated beam: bmin=0.8036 mas, bmaj=2.421 mas, bpa=-11.76 degrees
! Estimated noise=938.258 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.0586676 Jy
! Component: 100  -  total flux cleaned = 0.0927266 Jy
! Component: 150  -  total flux cleaned = 0.113934 Jy
! Component: 200  -  total flux cleaned = 0.127993 Jy
! Total flux subtracted in 200 components = 0.127993 Jy
! Clean residual min=-0.004869 max=0.009603 Jy/beam
! Clean residual mean=0.000499 rms=0.002141 Jy/beam
! Combined flux in latest and established models = 1.54361 Jy
! Adding 47 model components to the UV plane model.
! The established model now contains 55 components and 1.54361 Jy
! Inverting map 
! Added new window around map position (1.12, 0.64).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0108258 Jy
! Component: 100  -  total flux cleaned = 0.0192934 Jy
! Component: 150  -  total flux cleaned = 0.0262873 Jy
! Component: 200  -  total flux cleaned = 0.0321167 Jy
! Total flux subtracted in 200 components = 0.0321167 Jy
! Clean residual min=-0.003841 max=0.004602 Jy/beam
! Clean residual mean=0.000190 rms=0.001292 Jy/beam
! Combined flux in latest and established models = 1.57573 Jy
! Adding 51 model components to the UV plane model.
! The established model now contains 99 components and 1.57573 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 90 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=1.708 mas, bmaj=4.271 mas, bpa=-6.752 degrees
! Estimated noise=1103.03 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00741606 Jy
! Component: 100  -  total flux cleaned = 0.0123819 Jy
! Component: 150  -  total flux cleaned = 0.0159014 Jy
! Component: 200  -  total flux cleaned = 0.0176283 Jy
! Total flux subtracted in 200 components = 0.0176283 Jy
! Clean residual min=-0.003575 max=0.003450 Jy/beam
! Clean residual mean=0.000027 rms=0.001135 Jy/beam
! Combined flux in latest and established models = 1.59335 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.00132256 Jy
! Component: 100  -  total flux cleaned = 0.00235727 Jy
! Component: 150  -  total flux cleaned = 0.00292167 Jy
! Component: 200  -  total flux cleaned = 0.00336274 Jy
! Total flux subtracted in 200 components = 0.00336274 Jy
! Clean residual min=-0.003286 max=0.003462 Jy/beam
! Clean residual mean=-0.000040 rms=0.001046 Jy/beam
! Combined flux in latest and established models = 1.59672 Jy
! Adding 110 model components to the UV plane model.
! The established model now contains 188 components and 1.59672 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=0.8036 mas, bmaj=2.421 mas, bpa=-11.76 degrees
! Estimated noise=938.258 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -9.32531e-05 Jy
! Component: 100  -  total flux cleaned = -0.00045688 Jy
! Component: 150  -  total flux cleaned = -0.000380428 Jy
! Component: 200  -  total flux cleaned = -0.000241826 Jy
! Total flux subtracted in 200 components = -0.000241826 Jy
! Clean residual min=-0.003426 max=0.003355 Jy/beam
! Clean residual mean=-0.000024 rms=0.000911 Jy/beam
! Combined flux in latest and established models = 1.59647 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 209 components and 1.59647 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.213977Jy  sigma=0.001109
! Fit after  self-cal, rms=0.213937Jy  sigma=0.001109
wmodel J0921-2618_X_2003_05_07_pus_map.mod
! Writing 209 model components to file: J0921-2618_X_2003_05_07_pus_map.mod
wobs J0921-2618_X_2003_05_07_pus_uvs.fits
! Writing UV FITS file: J0921-2618_X_2003_05_07_pus_uvs.fits
wwins J0921-2618_X_2003_05_07_pus_map.win
! wwins: Wrote 6 windows to J0921-2618_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=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000989397 Jy
! Component: 100  -  total flux cleaned = 0.000991741 Jy
! Component: 150  -  total flux cleaned = 0.000714637 Jy
! Component: 200  -  total flux cleaned = 0.000504335 Jy
! Component: 250  -  total flux cleaned = 0.000303141 Jy
! Component: 300  -  total flux cleaned = -4.02413e-05 Jy
! Component: 350  -  total flux cleaned = -0.000326009 Jy
! Component: 400  -  total flux cleaned = -0.000650816 Jy
! Component: 450  -  total flux cleaned = -0.000922224 Jy
! Component: 500  -  total flux cleaned = -0.00105523 Jy
! Component: 550  -  total flux cleaned = -0.00131523 Jy
! Component: 600  -  total flux cleaned = -0.00140027 Jy
! Component: 650  -  total flux cleaned = -0.00148355 Jy
! Component: 700  -  total flux cleaned = -0.00156538 Jy
! Component: 750  -  total flux cleaned = -0.00164545 Jy
! Component: 800  -  total flux cleaned = -0.00160542 Jy
! Component: 850  -  total flux cleaned = -0.00160431 Jy
! Component: 900  -  total flux cleaned = -0.00148863 Jy
! Component: 950  -  total flux cleaned = -0.0014512 Jy
! Component: 1000  -  total flux cleaned = -0.00156334 Jy
! Component: 1050  -  total flux cleaned = -0.0015635 Jy
! Component: 1100  -  total flux cleaned = -0.00167193 Jy
! Component: 1150  -  total flux cleaned = -0.00156434 Jy
! Component: 1200  -  total flux cleaned = -0.00167043 Jy
! Component: 1250  -  total flux cleaned = -0.00167014 Jy
! Component: 1300  -  total flux cleaned = -0.0016704 Jy
! Component: 1350  -  total flux cleaned = -0.00173865 Jy
! Component: 1400  -  total flux cleaned = -0.00177189 Jy
! Component: 1450  -  total flux cleaned = -0.00177139 Jy
! Component: 1500  -  total flux cleaned = -0.0017381 Jy
! Component: 1550  -  total flux cleaned = -0.00170531 Jy
! Component: 1600  -  total flux cleaned = -0.00160815 Jy
! Component: 1650  -  total flux cleaned = -0.0016722 Jy
! Component: 1700  -  total flux cleaned = -0.0016402 Jy
! Component: 1750  -  total flux cleaned = -0.0016399 Jy
! Component: 1800  -  total flux cleaned = -0.00160874 Jy
! Component: 1850  -  total flux cleaned = -0.00154716 Jy
! Component: 1900  -  total flux cleaned = -0.0015776 Jy
! Component: 1950  -  total flux cleaned = -0.00148716 Jy
! Component: 2000  -  total flux cleaned = -0.00145734 Jy
! Total flux subtracted in 2048 components = -0.0013984 Jy
! Clean residual min=-0.002191 max=0.001808 Jy/beam
! Clean residual mean=-0.000027 rms=0.000576 Jy/beam
! Combined flux in latest and established models = 1.59508 Jy
keep
! Adding 116 model components to the UV plane model.
! The established model now contains 325 components and 1.59508 Jy
wmap "J0921-2618_X_2003_05_07_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8036 x 2.421 at -11.76 degrees (North through East)
! Clean map  min=-0.0028915  max=1.2131 Jy/beam
! Writing clean map to FITS file: J0921-2618_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 1.21307 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00057446 
device "J0921-2618_X_2003_05_07_pus\_map.eps/VPS"
! Attempting to open device: 'J0921-2618_X_2003_05_07_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.142068 0.142068 0.284135 0.568271 1.13654 2.27308 4.54617 9.09233 18.1847 36.3693 72.7387
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0017 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.213 
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.8036 x 2.421 at -11.76 degrees (North through East)
! Clean map  min=-0.0028915  max=1.2131 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0921-2618_X_2003_05_07_pus\_map.gif/vgif"
! Attempting to open device: 'J0921-2618_X_2003_05_07_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0921-2618_X_2003_05_07_pus_uvs.log closed on Tue Dec 12 14:46:41 2006