! Started logfile: J0921-2618_S_2001_04_09_pus_uvs.log on Fri Oct  5 15:58:55 2007
obs J0921-2618_S_2001_04_09_pus_uva.fits
! Reading UV FITS file: J0921-2618_S_2001_04_09_pus_uva.fits
! AN table 1: 10 integrations on 190 of 190 possible baselines.
! AN table 2: 45 integrations on 190 of 190 possible baselines.
! AN table 3: 180 integrations on 190 of 190 possible baselines.
! AN table 4: 29 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0586722 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  2.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1949 lines of history.
! 
! Reading 11772 visibilities.
select I
! Polarization I is unavailable.
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
print "field_size =",field_size
! field_size = 512 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
![@muppet J0921-2618_S_2001_04_09_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 200 telescope corrections were flagged in sub-array 1.
!  A total of 870 telescope corrections were flagged in sub-array 2.
!  A total of 2808 telescope corrections were flagged in sub-array 3.
!  A total of 509 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 200 telescope corrections were flagged in sub-array 1.
!  A total of 870 telescope corrections were flagged in sub-array 2.
!  A total of 2808 telescope corrections were flagged in sub-array 3.
!  A total of 509 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 200 telescope corrections were flagged in sub-array 1.
!  A total of 870 telescope corrections were flagged in sub-array 2.
!  A total of 2808 telescope corrections were flagged in sub-array 3.
!  A total of 509 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 200 telescope corrections were flagged in sub-array 1.
!  A total of 870 telescope corrections were flagged in sub-array 2.
!  A total of 2808 telescope corrections were flagged in sub-array 3.
!  A total of 509 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.004286Jy  sigma=0.007983
! Fit after  self-cal, rms=0.426194Jy  sigma=0.003106
! 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.369 mas, bmaj=5.68 mas, bpa=-3.111 degrees
! Estimated noise=1433.36 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.483829 Jy
! Component: 100  -  total flux cleaned = 0.677104 Jy
! Total flux subtracted in 100 components = 0.677104 Jy
! Clean residual min=-0.033109 max=0.096530 Jy/beam
! Clean residual mean=0.000763 rms=0.011532 Jy/beam
! Combined flux in latest and established models = 0.677104 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 19 components and 0.677104 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.352571Jy  sigma=0.002731
! Fit after  self-cal, rms=0.352238Jy  sigma=0.002730
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.115534 Jy
! Component: 100  -  total flux cleaned = 0.188723 Jy
! Total flux subtracted in 100 components = 0.188723 Jy
! Clean residual min=-0.021296 max=0.046568 Jy/beam
! Clean residual mean=0.000391 rms=0.006611 Jy/beam
! Combined flux in latest and established models = 0.865827 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 35 components and 0.865827 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266736Jy  sigma=0.001961
! Fit after  self-cal, rms=0.266347Jy  sigma=0.001959
! Inverting map 
! Added new window around map position (-3.5, 1.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0531336 Jy
! Component: 100  -  total flux cleaned = 0.0905721 Jy
! Total flux subtracted in 100 components = 0.0905721 Jy
! Clean residual min=-0.016484 max=0.023397 Jy/beam
! Clean residual mean=0.000207 rms=0.005028 Jy/beam
! Combined flux in latest and established models = 0.956399 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 53 components and 0.9564 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.241236Jy  sigma=0.001715
! Fit after  self-cal, rms=0.240729Jy  sigma=0.001713
! 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.22 mas, bmaj=7.571 mas, bpa=-6.434 degrees
! Estimated noise=875.424 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.0674091 Jy
! Component: 100  -  total flux cleaned = 0.104446 Jy
! Component: 150  -  total flux cleaned = 0.125983 Jy
! Component: 200  -  total flux cleaned = 0.13879 Jy
! Total flux subtracted in 200 components = 0.13879 Jy
! Clean residual min=-0.013651 max=0.018874 Jy/beam
! Clean residual mean=0.000302 rms=0.004172 Jy/beam
! Combined flux in latest and established models = 1.09519 Jy
! Performing phase self-cal
! Adding 54 model components to the UV plane model.
! The established model now contains 95 components and 1.09519 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224219Jy  sigma=0.001531
! Fit after  self-cal, rms=0.223212Jy  sigma=0.001524
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        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*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        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*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 87 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.05     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.04     HN        1.09     KK        1.03     KP        0.90     
!   LA        0.95     MA        1.12     MC        0.99     MK        1.03     
!   NL        1.02     NY        1.00*    OV        1.02     PT        0.95     
!   SC        1.02     TS        1.00*    WF        1.02     WZ        0.98     
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.90     KP        1.33     
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        0.91     
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.16     WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        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*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        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*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 87 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        0.96     GC        1.00*    GG        1.00*    
!   HH        0.93     HN        1.05     KK        1.03     KP        1.20     
!   LA        0.97     MA        1.73     MC        1.03     MK        1.03     
!   NL        1.03     NY        1.00*    OV        0.99     PT        0.97     
!   SC        1.01     TS        1.00*    WF        1.05     WZ        1.24     
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.97     KP        1.09     
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        0.90     
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.29     WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        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*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        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*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 87 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.06     FD        0.94     GC        1.00*    GG        1.00*    
!   HH        0.82     HN        1.07     KK        0.96     KP        0.97     
!   LA        0.92     MA        1.02     MC        1.09     MK        0.93     
!   NL        1.02     NY        1.00*    OV        0.97     PT        1.01     
!   SC        0.92     TS        1.00*    WF        0.95     WZ        1.04     
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.91     KP        1.24     
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        0.91     
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.04     WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        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*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        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*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 87 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.95     GC        1.00*    GG        1.00*    
!   HH        1.34     HN        1.04     KK        0.95     KP        0.95     
!   LA        0.95     MA        1.30     MC        0.65     MK        0.89     
!   NL        1.01     NY        1.00*    OV        0.99     PT        1.12     
!   SC        0.93     TS        1.00*    WF        0.95     WZ        2.06     
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.03     KP        1.23     
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        0.80     
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        0.98     WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.223212Jy  sigma=0.001524
! Fit after  self-cal, rms=0.206935Jy  sigma=0.001374
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.233 mas, bmaj=9.333 mas, bpa=-7.488 degrees
! Estimated noise=876.473 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.00632631 Jy
! Component: 100  -  total flux cleaned = 0.00674199 Jy
! Component: 150  -  total flux cleaned = 0.00708402 Jy
! Component: 200  -  total flux cleaned = 0.00728563 Jy
! Total flux subtracted in 200 components = 0.00728563 Jy
! Clean residual min=-0.009898 max=0.010004 Jy/beam
! Clean residual mean=0.000390 rms=0.002920 Jy/beam
! Combined flux in latest and established models = 1.10248 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 102 components and 1.10248 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206668Jy  sigma=0.001372
! Fit after  self-cal, rms=0.208609Jy  sigma=0.001371
! 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.208609Jy  sigma=0.001371
! Fit after  self-cal, rms=0.217061Jy  sigma=0.001304
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.244 mas, bmaj=9.365 mas, bpa=-7.36 degrees
! Estimated noise=879.469 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00405285 Jy
! Component: 100  -  total flux cleaned = 0.00427283 Jy
! Component: 150  -  total flux cleaned = 0.00435302 Jy
! Component: 200  -  total flux cleaned = 0.00449213 Jy
! Total flux subtracted in 200 components = 0.00449213 Jy
! Clean residual min=-0.004431 max=0.010161 Jy/beam
! Clean residual mean=0.000360 rms=0.001749 Jy/beam
! Combined flux in latest and established models = 1.10697 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 110 components and 1.10697 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.216968Jy  sigma=0.001303
! Fit after  self-cal, rms=0.218330Jy  sigma=0.001302
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 (-8, 4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00965491 Jy
! Component: 100  -  total flux cleaned = 0.0123081 Jy
! Component: 150  -  total flux cleaned = 0.0127352 Jy
! Component: 200  -  total flux cleaned = 0.0126272 Jy
! Total flux subtracted in 200 components = 0.0126272 Jy
! Clean residual min=-0.005172 max=0.004627 Jy/beam
! Clean residual mean=0.000112 rms=0.001342 Jy/beam
! Combined flux in latest and established models = 1.11959 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 135 components and 1.11959 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.217924Jy  sigma=0.001298
! Fit after  self-cal, rms=0.217882Jy  sigma=0.001297
! 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.217882Jy  sigma=0.001297
! Fit after  self-cal, rms=0.233077Jy  sigma=0.001296
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.246 mas, bmaj=9.372 mas, bpa=-7.254 degrees
! Estimated noise=879.281 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00444587 Jy
! Component: 100  -  total flux cleaned = 0.00532339 Jy
! Component: 150  -  total flux cleaned = 0.00566875 Jy
! Component: 200  -  total flux cleaned = 0.00566776 Jy
! Total flux subtracted in 200 components = 0.00566776 Jy
! Clean residual min=-0.004478 max=0.004295 Jy/beam
! Clean residual mean=0.000126 rms=0.001204 Jy/beam
! Combined flux in latest and established models = 1.12526 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 151 components and 1.12526 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232949Jy  sigma=0.001295
! Fit after  self-cal, rms=0.233840Jy  sigma=0.001295
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.00117205 Jy
! Component: 100  -  total flux cleaned = 0.00117185 Jy
! Component: 150  -  total flux cleaned = 0.00111378 Jy
! Component: 200  -  total flux cleaned = 0.00111423 Jy
! Total flux subtracted in 200 components = 0.00111423 Jy
! Clean residual min=-0.004538 max=0.004130 Jy/beam
! Clean residual mean=0.000106 rms=0.001188 Jy/beam
! Combined flux in latest and established models = 1.12638 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 160 components and 1.12638 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.233798Jy  sigma=0.001295
! Fit after  self-cal, rms=0.233803Jy  sigma=0.001295
! 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.233803Jy  sigma=0.001295
! Fit after  self-cal, rms=0.250010Jy  sigma=0.001294
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.024 mas, bmaj=18.08 mas, bpa=4.632 degrees
! Estimated noise=1066.2 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00214962 Jy
! Component: 100  -  total flux cleaned = 0.00252659 Jy
! Component: 150  -  total flux cleaned = 0.00283245 Jy
! Component: 200  -  total flux cleaned = 0.0030478 Jy
! Total flux subtracted in 200 components = 0.0030478 Jy
! Clean residual min=-0.003860 max=0.003815 Jy/beam
! Clean residual mean=0.000220 rms=0.001296 Jy/beam
! Combined flux in latest and established models = 1.12942 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 171 components and 1.12942 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.250016Jy  sigma=0.001294
! Fit after  self-cal, rms=0.250611Jy  sigma=0.001294
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.000350482 Jy
! Component: 100  -  total flux cleaned = 0.000535522 Jy
! Component: 150  -  total flux cleaned = 0.00068912 Jy
! Component: 200  -  total flux cleaned = 0.000798543 Jy
! Total flux subtracted in 200 components = 0.000798543 Jy
! Clean residual min=-0.003835 max=0.003813 Jy/beam
! Clean residual mean=0.000191 rms=0.001293 Jy/beam
! Combined flux in latest and established models = 1.13022 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 184 components and 1.13022 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.250613Jy  sigma=0.001294
! Fit after  self-cal, rms=0.250613Jy  sigma=0.001294
! 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=3.246 mas, bmaj=9.386 mas, bpa=-7.211 degrees
! Estimated noise=879.203 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.246 x 9.386 at -7.211 degrees (North through East)
! Clean map  min=-0.004265  max=0.75025 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.250613Jy  sigma=0.001294
! Fit after  self-cal, rms=0.291685Jy  sigma=0.001136
! Inverting map and beam 
! Estimated beam: bmin=3.24 mas, bmaj=9.359 mas, bpa=-7.256 degrees
! Estimated noise=878.354 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000267247 Jy
! Component: 100  -  total flux cleaned = 0.000264075 Jy
! Component: 150  -  total flux cleaned = 0.000260339 Jy
! Component: 200  -  total flux cleaned = 0.000307427 Jy
! Total flux subtracted in 200 components = 0.000307427 Jy
! Clean residual min=-0.004149 max=0.003919 Jy/beam
! Clean residual mean=0.000189 rms=0.001031 Jy/beam
! Combined flux in latest and established models = 1.13053 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 194 components and 1.13053 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.291651Jy  sigma=0.001136
! Fit after  self-cal, rms=0.291669Jy  sigma=0.001136
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -5.49834e-05 Jy
! Component: 100  -  total flux cleaned = -5.5543e-05 Jy
! Component: 150  -  total flux cleaned = -5.56698e-05 Jy
! Component: 200  -  total flux cleaned = -9.13488e-05 Jy
! Total flux subtracted in 200 components = -9.13488e-05 Jy
! Clean residual min=-0.004170 max=0.003816 Jy/beam
! Clean residual mean=0.000191 rms=0.001028 Jy/beam
! Combined flux in latest and established models = 1.13044 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 201 components and 1.13044 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.291648Jy  sigma=0.001136
! Fit after  self-cal, rms=0.291654Jy  sigma=0.001136
! 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.291654Jy  sigma=0.001136
! Fit after  self-cal, rms=0.348217Jy  sigma=0.001136
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.385 mas, bmaj=6.854 mas, bpa=-5.748 degrees
! Estimated noise=1419.54 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.491232 Jy
! Component: 100  -  total flux cleaned = 0.687742 Jy
! Component: 150  -  total flux cleaned = 0.803181 Jy
! Component: 200  -  total flux cleaned = 0.878168 Jy
! Total flux subtracted in 200 components = 0.878168 Jy
! Clean residual min=-0.016179 max=0.040749 Jy/beam
! Clean residual mean=0.000486 rms=0.005960 Jy/beam
! Combined flux in latest and established models = 0.878168 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 34 model components to the UV plane model.
! The established model now contains 34 components and 0.878168 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.238 mas, bmaj=9.364 mas, bpa=-7.257 degrees
! Estimated noise=878.082 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.101689 Jy
! Component: 100  -  total flux cleaned = 0.157161 Jy
! Component: 150  -  total flux cleaned = 0.189764 Jy
! Component: 200  -  total flux cleaned = 0.209791 Jy
! Total flux subtracted in 200 components = 0.209791 Jy
! Clean residual min=-0.005478 max=0.012695 Jy/beam
! Clean residual mean=0.000983 rms=0.002466 Jy/beam
! Combined flux in latest and established models = 1.08796 Jy
! Adding 63 model components to the UV plane model.
! The established model now contains 89 components and 1.08796 Jy
! Inverting map 
! Added new window around map position (3, -1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0138321 Jy
! Component: 100  -  total flux cleaned = 0.0231714 Jy
! Component: 150  -  total flux cleaned = 0.0298449 Jy
! Component: 200  -  total flux cleaned = 0.0346828 Jy
! Total flux subtracted in 200 components = 0.0346828 Jy
! Clean residual min=-0.004284 max=0.003989 Jy/beam
! Clean residual mean=0.000356 rms=0.001156 Jy/beam
! Combined flux in latest and established models = 1.12264 Jy
! Adding 55 model components to the UV plane model.
! The established model now contains 136 components and 1.12264 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=8.021 mas, bmaj=18.07 mas, bpa=4.643 degrees
! Estimated noise=1066.73 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00532715 Jy
! Component: 100  -  total flux cleaned = 0.008486 Jy
! Component: 150  -  total flux cleaned = 0.0102948 Jy
! Component: 200  -  total flux cleaned = 0.0107274 Jy
! Total flux subtracted in 200 components = 0.0107274 Jy
! Clean residual min=-0.003364 max=0.003887 Jy/beam
! Clean residual mean=0.000301 rms=0.001124 Jy/beam
! Combined flux in latest and established models = 1.13337 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.000418065 Jy
! Component: 100  -  total flux cleaned = 0.000728144 Jy
! Component: 150  -  total flux cleaned = 0.000993971 Jy
! Component: 200  -  total flux cleaned = 0.00122393 Jy
! Total flux subtracted in 200 components = 0.00122393 Jy
! Clean residual min=-0.003225 max=0.003843 Jy/beam
! Clean residual mean=0.000257 rms=0.001108 Jy/beam
! Combined flux in latest and established models = 1.13459 Jy
! Adding 67 model components to the UV plane model.
! The established model now contains 189 components and 1.13459 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.238 mas, bmaj=9.364 mas, bpa=-7.257 degrees
! Estimated noise=878.082 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000270015 Jy
! Component: 100  -  total flux cleaned = -0.000158915 Jy
! Component: 150  -  total flux cleaned = -0.000156971 Jy
! Component: 200  -  total flux cleaned = -0.000157706 Jy
! Total flux subtracted in 200 components = -0.000157706 Jy
! Clean residual min=-0.004010 max=0.003711 Jy/beam
! Clean residual mean=0.000139 rms=0.001011 Jy/beam
! Combined flux in latest and established models = 1.13443 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 206 components and 1.13443 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.348146Jy  sigma=0.001136
! Fit after  self-cal, rms=0.348162Jy  sigma=0.001135
wmodel J0921-2618_S_2001_04_09_pus_map.mod
! Writing 206 model components to file: J0921-2618_S_2001_04_09_pus_map.mod
wobs J0921-2618_S_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J0921-2618_S_2001_04_09_pus_uvs.fits
wwins J0921-2618_S_2001_04_09_pus_map.win
! wwins: Wrote 4 windows to J0921-2618_S_2001_04_09_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.000815654 Jy
! Component: 100  -  total flux cleaned = -0.00100776 Jy
! Component: 150  -  total flux cleaned = -0.00106721 Jy
! Component: 200  -  total flux cleaned = -0.00112418 Jy
! Component: 250  -  total flux cleaned = -0.00106932 Jy
! Component: 300  -  total flux cleaned = -0.000962237 Jy
! Component: 350  -  total flux cleaned = -0.000858891 Jy
! Component: 400  -  total flux cleaned = -0.000758814 Jy
! Component: 450  -  total flux cleaned = -0.000514115 Jy
! Component: 500  -  total flux cleaned = -0.00041918 Jy
! Component: 550  -  total flux cleaned = -0.000232313 Jy
! Component: 600  -  total flux cleaned = -9.47383e-05 Jy
! Component: 650  -  total flux cleaned = 8.55694e-05 Jy
! Component: 700  -  total flux cleaned = 0.000129648 Jy
! Component: 750  -  total flux cleaned = 0.000217142 Jy
! Component: 800  -  total flux cleaned = 0.000216951 Jy
! Component: 850  -  total flux cleaned = 0.000344484 Jy
! Component: 900  -  total flux cleaned = 0.000386075 Jy
! Component: 950  -  total flux cleaned = 0.000469149 Jy
! Component: 1000  -  total flux cleaned = 0.000631843 Jy
! Component: 1050  -  total flux cleaned = 0.000792308 Jy
! Component: 1100  -  total flux cleaned = 0.000831534 Jy
! Component: 1150  -  total flux cleaned = 0.00094873 Jy
! Component: 1200  -  total flux cleaned = 0.0010262 Jy
! Component: 1250  -  total flux cleaned = 0.00117897 Jy
! Component: 1300  -  total flux cleaned = 0.00121654 Jy
! Component: 1350  -  total flux cleaned = 0.00132865 Jy
! Component: 1400  -  total flux cleaned = 0.00136571 Jy
! Component: 1450  -  total flux cleaned = 0.00151185 Jy
! Component: 1500  -  total flux cleaned = 0.00165628 Jy
! Component: 1550  -  total flux cleaned = 0.00169172 Jy
! Component: 1600  -  total flux cleaned = 0.00176254 Jy
! Component: 1650  -  total flux cleaned = 0.00183218 Jy
! Component: 1700  -  total flux cleaned = 0.00186666 Jy
! Component: 1750  -  total flux cleaned = 0.00200385 Jy
! Component: 1800  -  total flux cleaned = 0.00200355 Jy
! Component: 1850  -  total flux cleaned = 0.00203743 Jy
! Component: 1900  -  total flux cleaned = 0.00213729 Jy
! Component: 1950  -  total flux cleaned = 0.00217021 Jy
! Component: 2000  -  total flux cleaned = 0.00220297 Jy
! Total flux subtracted in 2048 components = 0.0023002 Jy
! Clean residual min=-0.002010 max=0.002414 Jy/beam
! Clean residual mean=0.000074 rms=0.000649 Jy/beam
! Combined flux in latest and established models = 1.13674 Jy
keep
! Adding 109 model components to the UV plane model.
! The established model now contains 315 components and 1.13673 Jy
![Exited script file: muppet]
wmap "J0921-2618_S_2001_04_09_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.238 x 9.364 at -7.257 degrees (North through East)
! Clean map  min=-0.0036822  max=0.74933 Jy/beam
! Writing clean map to FITS file: J0921-2618_S_2001_04_09_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.749328 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000648947 
device "J0921-2618_S_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J0921-2618_S_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.259811 0.259811 0.519623 1.03925 2.07849 4.15698 8.31397 16.6279 33.2559 66.5117
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0019 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.749 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.238 x 9.364 at -7.257 degrees (North through East)
! Clean map  min=-0.0036822  max=0.74933 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0921-2618_S_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J0921-2618_S_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0921-2618_S_2001_04_09_pus_uvs.log closed on Fri Oct  5 15:59:06 2007