! Started logfile: J0006-0623_S_2003_09_17_pus_uvs.log on Tue May 22 18:04:04 2007
obs J0006-0623_S_2003_09_17_pus_uva.fits
! Reading UV FITS file: J0006-0623_S_2003_09_17_pus_uva.fits
! AN table 1: 32 integrations on 120 of 120 possible baselines.
! AN table 2: 131 integrations on 120 of 120 possible baselines.
! AN table 3: 82 integrations on 120 of 120 possible baselines.
! AN table 4: 49 integrations on 120 of 120 possible baselines.
! AN table 5: 204 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.149331 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0006-0623
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1736 lines of history.
! 
! Reading 35696 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 
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 479 telescope corrections were flagged in sub-array 1.
!  A total of 1744 telescope corrections were flagged in sub-array 2.
!  A total of 929 telescope corrections were flagged in sub-array 3.
!  A total of 642 telescope corrections were flagged in sub-array 4.
!  A total of 1678 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 479 telescope corrections were flagged in sub-array 1.
!  A total of 1743 telescope corrections were flagged in sub-array 2.
!  A total of 929 telescope corrections were flagged in sub-array 3.
!  A total of 642 telescope corrections were flagged in sub-array 4.
!  A total of 1678 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 479 telescope corrections were flagged in sub-array 1.
!  A total of 1744 telescope corrections were flagged in sub-array 2.
!  A total of 935 telescope corrections were flagged in sub-array 3.
!  A total of 642 telescope corrections were flagged in sub-array 4.
!  A total of 1678 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 506 telescope corrections were flagged in sub-array 1.
!  A total of 1771 telescope corrections were flagged in sub-array 2.
!  A total of 932 telescope corrections were flagged in sub-array 3.
!  A total of 642 telescope corrections were flagged in sub-array 4.
!  A total of 1678 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=1.388610Jy  sigma=0.009578
! Fit after  self-cal, rms=1.064261Jy  sigma=0.007645
! 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.117 mas, bmaj=6.045 mas, bpa=0.1573 degrees
! Estimated noise=1168.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 = 1.11433 Jy
! Component: 100  -  total flux cleaned = 1.40802 Jy
! Total flux subtracted in 100 components = 1.40802 Jy
! Clean residual min=-0.086482 max=0.420035 Jy/beam
! Clean residual mean=0.000240 rms=0.030018 Jy/beam
! Combined flux in latest and established models = 1.40802 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 1.40802 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.850810Jy  sigma=0.005933
! Fit after  self-cal, rms=0.850611Jy  sigma=0.005932
! Inverting map 
! Added new window around map position (-6, 1).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.342339 Jy
! Component: 100  -  total flux cleaned = 0.501037 Jy
! Total flux subtracted in 100 components = 0.501037 Jy
! Clean residual min=-0.066038 max=0.183783 Jy/beam
! Clean residual mean=0.000101 rms=0.019502 Jy/beam
! Combined flux in latest and established models = 1.90906 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 18 components and 1.90906 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.602113Jy  sigma=0.004169
! Fit after  self-cal, rms=0.555640Jy  sigma=0.003876
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.164711 Jy
! Component: 100  -  total flux cleaned = 0.262412 Jy
! Total flux subtracted in 100 components = 0.262412 Jy
! Clean residual min=-0.042558 max=0.101839 Jy/beam
! Clean residual mean=0.000076 rms=0.012786 Jy/beam
! Combined flux in latest and established models = 2.17147 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 30 components and 2.17147 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.443228Jy  sigma=0.003014
! Fit after  self-cal, rms=0.434829Jy  sigma=0.002965
! Inverting map 
! Added new window around map position (-2.5, 1.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.111351 Jy
! Component: 100  -  total flux cleaned = 0.184118 Jy
! Total flux subtracted in 100 components = 0.184118 Jy
! Clean residual min=-0.034942 max=0.052436 Jy/beam
! Clean residual mean=0.000064 rms=0.009782 Jy/beam
! Combined flux in latest and established models = 2.35559 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 42 components and 2.35559 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.370285Jy  sigma=0.002433
! Fit after  self-cal, rms=0.367405Jy  sigma=0.002415
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0663006 Jy
! Component: 100  -  total flux cleaned = 0.116038 Jy
! Total flux subtracted in 100 components = 0.116038 Jy
! Clean residual min=-0.031661 max=0.039595 Jy/beam
! Clean residual mean=0.000056 rms=0.008410 Jy/beam
! Combined flux in latest and established models = 2.47163 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 51 components and 2.47163 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.336618Jy  sigma=0.002137
! Fit after  self-cal, rms=0.335368Jy  sigma=0.002130
! Inverting map 
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
win_mult = win_mult * 1.6
clean_niter = clean_niter * 2
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.849 mas, bmaj=7.409 mas, bpa=-5.463 degrees
! Estimated noise=570.352 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.107671 Jy
! Component: 100  -  total flux cleaned = 0.171926 Jy
! Component: 150  -  total flux cleaned = 0.2124 Jy
! Component: 200  -  total flux cleaned = 0.238096 Jy
! Total flux subtracted in 200 components = 0.238096 Jy
! Clean residual min=-0.024118 max=0.034778 Jy/beam
! Clean residual mean=-0.000777 rms=0.008181 Jy/beam
! Combined flux in latest and established models = 2.70973 Jy
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 77 components and 2.70973 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.305480Jy  sigma=0.001795
! Fit after  self-cal, rms=0.304182Jy  sigma=0.001787
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 102 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.05     GC        1.00*    HN        1.04     KP        1.02     
!   LA        1.06     MK        1.10     NL        1.05     NY        1.00*    
!   ON        1.00*    OV        0.91     PT        1.05     SC        1.05     
!   TS        1.00*    KK        0.97     WZ        1.00*    WF        0.98     
! 
!  A total of 36 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.01     GC        1.00*    HN        0.96     KP        1.04     
!   LA        1.00     MK        1.00*    NL        1.04     NY        1.00*    
!   ON        1.00*    OV        0.95     PT        1.02     SC        1.01     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00     
! 
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.97     GC        1.00*    HN        0.96     KP        0.98     
!   LA        0.98     MK        1.00*    NL        1.00     NY        1.00*    
!   ON        1.00*    OV        1.33     PT        0.97     SC        1.03     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00     
! 
!  A total of 24 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.99     GC        1.01     HN        1.09     KP        0.89     
!   LA        0.97     MK        1.06     NL        0.98     NY        1.00*    
!   ON        1.00*    OV        1.10     PT        0.98     SC        1.00     
!   TS        1.10     KK        1.05     WZ        1.00*    WF        1.17     
! 
! 
! Correcting IF 2.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 99 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.07     GC        1.00*    HN        1.06     KP        1.10     
!   LA        1.06     MK        1.15     NL        1.10     NY        1.00*    
!   ON        1.00*    OV        1.01     PT        1.03     SC        1.11     
!   TS        1.00*    KK        0.99     WZ        1.00*    WF        1.05     
! 
!  A total of 36 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.01     GC        1.00*    HN        1.01     KP        1.11     
!   LA        1.02     MK        1.00*    NL        1.08     NY        1.00*    
!   ON        1.00*    OV        1.03     PT        1.01     SC        1.08     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        0.99     
! 
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.98     GC        1.00*    HN        1.01     KP        1.05     
!   LA        1.00     MK        1.00*    NL        1.02     NY        1.00*    
!   ON        1.00*    OV        1.08     PT        0.96     SC        1.09     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.04     
! 
!  A total of 24 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.99     GC        0.95     HN        1.10     KP        0.95     
!   LA        0.97     MK        1.08     NL        0.99     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.96     SC        1.06     
!   TS        1.09     KK        0.97     WZ        1.00*    WF        1.13     
! 
! 
! Correcting IF 3.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 102 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.04     GC        1.00*    HN        1.05     KP        1.11     
!   LA        1.02     MK        1.10     NL        1.04     NY        1.00*    
!   ON        1.00*    OV        1.16     PT        1.10     SC        1.06     
!   TS        1.00*    KK        0.97     WZ        1.00*    WF        1.07     
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.99     GC        1.00*    HN        1.03     KP        1.09     
!   LA        0.97     MK        1.00*    NL        1.01     NY        1.00*    
!   ON        1.00*    OV        0.96     PT        1.06     SC        1.03     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        0.98     
! 
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.96     GC        1.00*    HN        1.00     KP        1.05     
!   LA        0.95     MK        1.00*    NL        0.96     NY        1.00*    
!   ON        1.00*    OV        1.13     PT        1.00     SC        1.07     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.03     
! 
!  A total of 24 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.98     GC        1.01     HN        1.11     KP        0.98     
!   LA        0.95     MK        1.04     NL        0.96     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        1.01     SC        1.06     
!   TS        1.12     KK        0.93     WZ        1.00*    WF        1.18     
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.04     GC        1.00*    HN        1.12     KP        1.10     
!   LA        1.06     MK        1.03     NL        1.04     NY        1.00*    
!   ON        1.00*    OV        1.23     PT        1.03     SC        1.00     
!   TS        1.00*    KK        1.04     WZ        1.00*    WF        1.05     
! 
!  A total of 33 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00     GC        1.00*    HN        1.04     KP        1.09     
!   LA        1.01     MK        1.00*    NL        1.04     NY        1.00*    
!   ON        1.00*    OV        0.91     PT        1.00     SC        0.96     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.03     
! 
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.94     GC        1.00*    HN        0.97     KP        1.04     
!   LA        0.97     MK        1.00*    NL        0.99     NY        1.00*    
!   ON        1.00*    OV        1.25     PT        0.95     SC        0.96     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00     
! 
!  A total of 24 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.96     GC        1.02     HN        1.16     KP        0.96     
!   LA        0.98     MK        0.98     NL        0.98     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        0.95     SC        1.01     
!   TS        1.11     KK        0.98     WZ        1.00*    WF        1.14     
! 
! 
! Fit before self-cal, rms=0.304182Jy  sigma=0.001787
! Fit after  self-cal, rms=0.272910Jy  sigma=0.001494
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.874 mas, bmaj=7.468 mas, bpa=-5.536 degrees
! Estimated noise=577.823 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.00761164 Jy
! Component: 100  -  total flux cleaned = 0.00764793 Jy
! Component: 150  -  total flux cleaned = 0.00764909 Jy
! Component: 200  -  total flux cleaned = 0.00789469 Jy
! Total flux subtracted in 200 components = 0.00789469 Jy
! Clean residual min=-0.012335 max=0.011513 Jy/beam
! Clean residual mean=0.000404 rms=0.003001 Jy/beam
! Combined flux in latest and established models = 2.71762 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 89 components and 2.71762 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.271564Jy  sigma=0.001487
! Fit after  self-cal, rms=0.271465Jy  sigma=0.001485
! 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.271465Jy  sigma=0.001485
! Fit after  self-cal, rms=0.262372Jy  sigma=0.001424
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.88 mas, bmaj=7.494 mas, bpa=-5.674 degrees
! Estimated noise=579.912 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00702391 Jy
! Component: 100  -  total flux cleaned = 0.00824532 Jy
! Component: 150  -  total flux cleaned = 0.00844402 Jy
! Component: 200  -  total flux cleaned = 0.00863226 Jy
! Total flux subtracted in 200 components = 0.00863226 Jy
! Clean residual min=-0.007253 max=0.007368 Jy/beam
! Clean residual mean=0.000223 rms=0.001775 Jy/beam
! Combined flux in latest and established models = 2.72625 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 98 components and 2.72625 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.261799Jy  sigma=0.001420
! Fit after  self-cal, rms=0.261737Jy  sigma=0.001420
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.00160395 Jy
! Component: 100  -  total flux cleaned = 0.00123445 Jy
! Component: 150  -  total flux cleaned = 0.00107049 Jy
! Component: 200  -  total flux cleaned = 0.000926921 Jy
! Total flux subtracted in 200 components = 0.000926921 Jy
! Clean residual min=-0.007010 max=0.006576 Jy/beam
! Clean residual mean=0.000216 rms=0.001707 Jy/beam
! Combined flux in latest and established models = 2.72718 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 106 components and 2.72718 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.261490Jy  sigma=0.001418
! Fit after  self-cal, rms=0.261444Jy  sigma=0.001418
! 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.261444Jy  sigma=0.001418
! Fit after  self-cal, rms=0.259845Jy  sigma=0.001411
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.881 mas, bmaj=7.503 mas, bpa=-5.734 degrees
! Estimated noise=580.343 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00358373 Jy
! Component: 100  -  total flux cleaned = 0.00414533 Jy
! Component: 150  -  total flux cleaned = 0.00430445 Jy
! Component: 200  -  total flux cleaned = 0.00445444 Jy
! Total flux subtracted in 200 components = 0.00445444 Jy
! Clean residual min=-0.006091 max=0.006265 Jy/beam
! Clean residual mean=0.000091 rms=0.001536 Jy/beam
! Combined flux in latest and established models = 2.73163 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 116 components and 2.73163 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.259582Jy  sigma=0.001410
! Fit after  self-cal, rms=0.259542Jy  sigma=0.001409
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.000807588 Jy
! Component: 100  -  total flux cleaned = 0.000666069 Jy
! Component: 150  -  total flux cleaned = 0.000663773 Jy
! Component: 200  -  total flux cleaned = 0.000663754 Jy
! Total flux subtracted in 200 components = 0.000663754 Jy
! Clean residual min=-0.005899 max=0.005845 Jy/beam
! Clean residual mean=0.000085 rms=0.001488 Jy/beam
! Combined flux in latest and established models = 2.7323 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 123 components and 2.7323 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.259405Jy  sigma=0.001408
! Fit after  self-cal, rms=0.259376Jy  sigma=0.001408
! 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.259376Jy  sigma=0.001408
! Fit after  self-cal, rms=0.259447Jy  sigma=0.001408
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8 mas, bmaj=12.95 mas, bpa=5.556 degrees
! Estimated noise=759.814 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00448127 Jy
! Component: 100  -  total flux cleaned = 0.00448752 Jy
! Component: 150  -  total flux cleaned = 0.00439197 Jy
! Component: 200  -  total flux cleaned = 0.00443436 Jy
! Total flux subtracted in 200 components = 0.00443436 Jy
! Clean residual min=-0.005380 max=0.005147 Jy/beam
! Clean residual mean=0.000119 rms=0.001743 Jy/beam
! Combined flux in latest and established models = 2.73673 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 129 components and 2.73673 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.259380Jy  sigma=0.001408
! Fit after  self-cal, rms=0.259338Jy  sigma=0.001408
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.000944436 Jy
! Component: 100  -  total flux cleaned = 0.00094549 Jy
! Component: 150  -  total flux cleaned = 0.000901675 Jy
! Component: 200  -  total flux cleaned = 0.000900586 Jy
! Total flux subtracted in 200 components = 0.000900586 Jy
! Clean residual min=-0.005147 max=0.004345 Jy/beam
! Clean residual mean=0.000104 rms=0.001679 Jy/beam
! Combined flux in latest and established models = 2.73763 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 143 components and 2.73763 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.259316Jy  sigma=0.001407
! Fit after  self-cal, rms=0.259307Jy  sigma=0.001407
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Estimated beam: bmin=2.882 mas, bmaj=7.509 mas, bpa=-5.765 degrees
! Estimated noise=581.142 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.882 x 7.509 at -5.765 degrees (North through East)
! Clean map  min=-0.0050383  max=1.4814 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.259307Jy  sigma=0.001407
! Fit after  self-cal, rms=0.329707Jy  sigma=0.001111
! Inverting map and beam 
! Estimated beam: bmin=2.883 mas, bmaj=7.512 mas, bpa=-5.772 degrees
! Estimated noise=581.078 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00269064 Jy
! Component: 100  -  total flux cleaned = -0.00269891 Jy
! Component: 150  -  total flux cleaned = -0.00270297 Jy
! Component: 200  -  total flux cleaned = -0.00269993 Jy
! Total flux subtracted in 200 components = -0.00269993 Jy
! Clean residual min=-0.004399 max=0.004573 Jy/beam
! Clean residual mean=0.000119 rms=0.001129 Jy/beam
! Combined flux in latest and established models = 2.73493 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 146 components and 2.73493 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.329626Jy  sigma=0.001110
! Fit after  self-cal, rms=0.329614Jy  sigma=0.001110
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -6.36448e-05 Jy
! Component: 100  -  total flux cleaned = -6.33592e-05 Jy
! Component: 150  -  total flux cleaned = -5.81589e-05 Jy
! Component: 200  -  total flux cleaned = -5.52587e-05 Jy
! Total flux subtracted in 200 components = -5.52587e-05 Jy
! Clean residual min=-0.004320 max=0.004371 Jy/beam
! Clean residual mean=0.000119 rms=0.001107 Jy/beam
! Combined flux in latest and established models = 2.73488 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 150 components and 2.73488 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.329560Jy  sigma=0.001109
! Fit after  self-cal, rms=0.329547Jy  sigma=0.001109
! 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.329547Jy  sigma=0.001109
! Fit after  self-cal, rms=0.330468Jy  sigma=0.001109
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.134 mas, bmaj=6.09 mas, bpa=-0.1337 degrees
! Estimated noise=1301.41 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.17699 Jy
! Component: 100  -  total flux cleaned = 1.64153 Jy
! Component: 150  -  total flux cleaned = 1.90161 Jy
! Component: 200  -  total flux cleaned = 2.07779 Jy
! Total flux subtracted in 200 components = 2.07779 Jy
! Clean residual min=-0.029365 max=0.099771 Jy/beam
! Clean residual mean=0.000167 rms=0.012066 Jy/beam
! Combined flux in latest and established models = 2.07779 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 15 model components to the UV plane model.
! The established model now contains 15 components and 2.07779 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.885 mas, bmaj=7.519 mas, bpa=-5.794 degrees
! Estimated noise=581.34 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.262887 Jy
! Component: 100  -  total flux cleaned = 0.412183 Jy
! Component: 150  -  total flux cleaned = 0.501974 Jy
! Component: 200  -  total flux cleaned = 0.557251 Jy
! Total flux subtracted in 200 components = 0.557251 Jy
! Clean residual min=-0.009870 max=0.028663 Jy/beam
! Clean residual mean=0.000739 rms=0.005419 Jy/beam
! Combined flux in latest and established models = 2.63504 Jy
! Adding 69 model components to the UV plane model.
! The established model now contains 78 components and 2.63504 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0345074 Jy
! Component: 100  -  total flux cleaned = 0.0563462 Jy
! Component: 150  -  total flux cleaned = 0.0703324 Jy
! Component: 200  -  total flux cleaned = 0.0793736 Jy
! Total flux subtracted in 200 components = 0.0793736 Jy
! Clean residual min=-0.004279 max=0.008681 Jy/beam
! Clean residual mean=0.000237 rms=0.001428 Jy/beam
! Combined flux in latest and established models = 2.71441 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 102 components and 2.71441 Jy
! Inverting map 
! Added new window around map position (3.5, -3.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00795967 Jy
! Component: 100  -  total flux cleaned = 0.0128879 Jy
! Component: 150  -  total flux cleaned = 0.0164041 Jy
! Component: 200  -  total flux cleaned = 0.0175134 Jy
! Total flux subtracted in 200 components = 0.0175134 Jy
! Clean residual min=-0.003479 max=0.004438 Jy/beam
! Clean residual mean=0.000120 rms=0.001009 Jy/beam
! Combined flux in latest and established models = 2.73192 Jy
! Adding 31 model components to the UV plane model.
! The established model now contains 125 components and 2.73193 Jy
! Inverting map 
! Added new window around map position (1.5, 13.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000910575 Jy
! Component: 100  -  total flux cleaned = 0.000664114 Jy
! Component: 150  -  total flux cleaned = 0.000561572 Jy
! Component: 200  -  total flux cleaned = 0.000564422 Jy
! Total flux subtracted in 200 components = 0.000564422 Jy
! Clean residual min=-0.003334 max=0.003933 Jy/beam
! Clean residual mean=0.000118 rms=0.000956 Jy/beam
! Combined flux in latest and established models = 2.73249 Jy
! Adding 21 model components to the UV plane model.
! The established model now contains 140 components and 2.73249 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.006 mas, bmaj=12.96 mas, bpa=5.559 degrees
! Estimated noise=758.807 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000510967 Jy
! Component: 100  -  total flux cleaned = 0.000645066 Jy
! Component: 150  -  total flux cleaned = 0.000767174 Jy
! Component: 200  -  total flux cleaned = 0.00093372 Jy
! Total flux subtracted in 200 components = 0.00093372 Jy
! Clean residual min=-0.002293 max=0.003139 Jy/beam
! Clean residual mean=0.000254 rms=0.000921 Jy/beam
! Combined flux in latest and established models = 2.73342 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.000151009 Jy
! Component: 100  -  total flux cleaned = 0.000287484 Jy
! Component: 150  -  total flux cleaned = 0.000370031 Jy
! Component: 200  -  total flux cleaned = 0.00040828 Jy
! Total flux subtracted in 200 components = 0.00040828 Jy
! Clean residual min=-0.002220 max=0.003135 Jy/beam
! Clean residual mean=0.000246 rms=0.000889 Jy/beam
! Combined flux in latest and established models = 2.73383 Jy
! Adding 18 model components to the UV plane model.
! The established model now contains 155 components and 2.73383 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.885 mas, bmaj=7.519 mas, bpa=-5.794 degrees
! Estimated noise=581.34 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000136219 Jy
! Component: 100  -  total flux cleaned = -0.000136383 Jy
! Component: 150  -  total flux cleaned = -0.000136222 Jy
! Component: 200  -  total flux cleaned = 1.06663e-05 Jy
! Total flux subtracted in 200 components = 1.06663e-05 Jy
! Clean residual min=-0.003459 max=0.003767 Jy/beam
! Clean residual mean=0.000107 rms=0.000920 Jy/beam
! Combined flux in latest and established models = 2.73384 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 169 components and 2.73384 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.330005Jy  sigma=0.001104
! Fit after  self-cal, rms=0.329895Jy  sigma=0.001104
wmodel J0006-0623_S_2003_09_17_pus_map.mod
! Writing 169 model components to file: J0006-0623_S_2003_09_17_pus_map.mod
wobs J0006-0623_S_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J0006-0623_S_2003_09_17_pus_uvs.fits
wwins J0006-0623_S_2003_09_17_pus_map.win
! wwins: Wrote 5 windows to J0006-0623_S_2003_09_17_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.000807893 Jy
! Component: 100  -  total flux cleaned = 0.00160729 Jy
! Component: 150  -  total flux cleaned = 0.00189615 Jy
! Component: 200  -  total flux cleaned = 0.00211908 Jy
! Component: 250  -  total flux cleaned = 0.00249827 Jy
! Component: 300  -  total flux cleaned = 0.0029714 Jy
! Component: 350  -  total flux cleaned = 0.00337922 Jy
! Component: 400  -  total flux cleaned = 0.00372699 Jy
! Component: 450  -  total flux cleaned = 0.00411545 Jy
! Component: 500  -  total flux cleaned = 0.00435287 Jy
! Component: 550  -  total flux cleaned = 0.00453998 Jy
! Component: 600  -  total flux cleaned = 0.00476988 Jy
! Component: 650  -  total flux cleaned = 0.00499635 Jy
! Component: 700  -  total flux cleaned = 0.00508519 Jy
! Component: 750  -  total flux cleaned = 0.00521719 Jy
! Component: 800  -  total flux cleaned = 0.00539145 Jy
! Component: 850  -  total flux cleaned = 0.00556355 Jy
! Component: 900  -  total flux cleaned = 0.00573299 Jy
! Component: 950  -  total flux cleaned = 0.00585828 Jy
! Component: 1000  -  total flux cleaned = 0.00602381 Jy
! Component: 1050  -  total flux cleaned = 0.00610575 Jy
! Component: 1100  -  total flux cleaned = 0.00622726 Jy
! Component: 1150  -  total flux cleaned = 0.00638679 Jy
! Component: 1200  -  total flux cleaned = 0.00634696 Jy
! Component: 1250  -  total flux cleaned = 0.00642531 Jy
! Component: 1300  -  total flux cleaned = 0.00638676 Jy
! Component: 1350  -  total flux cleaned = 0.00646343 Jy
! Component: 1400  -  total flux cleaned = 0.00638753 Jy
! Component: 1450  -  total flux cleaned = 0.00646325 Jy
! Component: 1500  -  total flux cleaned = 0.00650046 Jy
! Component: 1550  -  total flux cleaned = 0.0065375 Jy
! Component: 1600  -  total flux cleaned = 0.00653776 Jy
! Component: 1650  -  total flux cleaned = 0.00661091 Jy
! Component: 1700  -  total flux cleaned = 0.00664666 Jy
! Component: 1750  -  total flux cleaned = 0.00671831 Jy
! Component: 1800  -  total flux cleaned = 0.00671783 Jy
! Component: 1850  -  total flux cleaned = 0.00668229 Jy
! Component: 1900  -  total flux cleaned = 0.00668237 Jy
! Component: 1950  -  total flux cleaned = 0.00657836 Jy
! Component: 2000  -  total flux cleaned = 0.00675128 Jy
! Total flux subtracted in 2048 components = 0.00671674 Jy
! Clean residual min=-0.001711 max=0.001853 Jy/beam
! Clean residual mean=0.000053 rms=0.000665 Jy/beam
! Combined flux in latest and established models = 2.74056 Jy
keep
! Adding 122 model components to the UV plane model.
! The established model now contains 291 components and 2.74056 Jy
wmap "J0006-0623_S_2003_09_17_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.885 x 7.519 at -5.794 degrees (North through East)
! Clean map  min=-0.0046531  max=1.4828 Jy/beam
! Writing clean map to FITS file: J0006-0623_S_2003_09_17_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.48282 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00066782 
device "J0006-0623_S_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J0006-0623_S_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.135111 0.135111 0.270223 0.540446 1.08089 2.16178 4.32357 8.64713 17.2943 34.5885 69.1771
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.002 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.482 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.885 x 7.519 at -5.794 degrees (North through East)
! Clean map  min=-0.0046531  max=1.4828 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0006-0623_S_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J0006-0623_S_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0006-0623_S_2003_09_17_pus_uvs.log closed on Tue May 22 18:06:36 2007