! Started logfile: J0006-0623_S_1998_10_01_pus_uvs.log on Thu Feb  7 16:50:49 2008
obs J0006-0623_S_1998_10_01_pus_uva.fits
! Reading UV FITS file: J0006-0623_S_1998_10_01_pus_uva.fits
! AN table 1: 100 integrations on 136 of 136 possible baselines.
! AN table 2: 111 integrations on 136 of 136 possible baselines.
! AN table 3: 19 integrations on 136 of 136 possible baselines.
! AN table 4: 32 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.178828 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0006-0623
! 
! 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.22298e+09        4e+06          1        4e+06
!  02        2  2.24298e+09        4e+06          1        4e+06
!  03        3  2.33298e+09        4e+06          1        4e+06
!  04        4  2.36298e+09        4e+06          1        4e+06
! 
! Polarization(s): RR
! 
! Read 1537 lines of history.
! 
! Reading 25488 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 J0006-0623_S_1998_10_01_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 1281 telescope corrections were flagged in sub-array 1.
!  A total of 981 telescope corrections were flagged in sub-array 2.
!  A total of 269 telescope corrections were flagged in sub-array 3.
!  A total of 355 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1281 telescope corrections were flagged in sub-array 1.
!  A total of 981 telescope corrections were flagged in sub-array 2.
!  A total of 269 telescope corrections were flagged in sub-array 3.
!  A total of 355 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1281 telescope corrections were flagged in sub-array 1.
!  A total of 981 telescope corrections were flagged in sub-array 2.
!  A total of 269 telescope corrections were flagged in sub-array 3.
!  A total of 355 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1281 telescope corrections were flagged in sub-array 1.
!  A total of 981 telescope corrections were flagged in sub-array 2.
!  A total of 269 telescope corrections were flagged in sub-array 3.
!  A total of 355 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.936148Jy  sigma=0.006226
! Fit after  self-cal, rms=0.872721Jy  sigma=0.005832
! 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.192 mas, bmaj=7.109 mas, bpa=-6.207 degrees
! Estimated noise=1050.24 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.970107 Jy
! Component: 100  -  total flux cleaned = 1.31824 Jy
! Total flux subtracted in 100 components = 1.31824 Jy
! Clean residual min=-0.055960 max=0.163806 Jy/beam
! Clean residual mean=0.001598 rms=0.019650 Jy/beam
! Combined flux in latest and established models = 1.31824 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 1.31824 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.711939Jy  sigma=0.004379
! Fit after  self-cal, rms=0.708567Jy  sigma=0.004364
! Inverting map 
! Added new window around map position (-3, 1.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.206898 Jy
! Component: 100  -  total flux cleaned = 0.341475 Jy
! Total flux subtracted in 100 components = 0.341475 Jy
! Clean residual min=-0.032929 max=0.079256 Jy/beam
! Clean residual mean=0.000848 rms=0.011918 Jy/beam
! Combined flux in latest and established models = 1.65971 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 22 components and 1.65971 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.599732Jy  sigma=0.003212
! Fit after  self-cal, rms=0.595731Jy  sigma=0.003183
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.106711 Jy
! Component: 100  -  total flux cleaned = 0.178066 Jy
! Total flux subtracted in 100 components = 0.178066 Jy
! Clean residual min=-0.027173 max=0.050079 Jy/beam
! Clean residual mean=0.000449 rms=0.008347 Jy/beam
! Combined flux in latest and established models = 1.83778 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 30 components and 1.83778 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.563051Jy  sigma=0.002782
! Fit after  self-cal, rms=0.561539Jy  sigma=0.002772
! Inverting map 
! Added new window around map position (-6, 0.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.062153 Jy
! Component: 100  -  total flux cleaned = 0.106551 Jy
! Total flux subtracted in 100 components = 0.106551 Jy
! Clean residual min=-0.023853 max=0.032058 Jy/beam
! Clean residual mean=0.000207 rms=0.006724 Jy/beam
! Combined flux in latest and established models = 1.94433 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 47 components and 1.94433 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.550466Jy  sigma=0.002629
! Fit after  self-cal, rms=0.549826Jy  sigma=0.002625
! 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.94 mas, bmaj=9.265 mas, bpa=-8.134 degrees
! Estimated noise=622.465 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.054525 Jy
! Component: 100  -  total flux cleaned = 0.0850287 Jy
! Component: 150  -  total flux cleaned = 0.103959 Jy
! Component: 200  -  total flux cleaned = 0.111251 Jy
! Total flux subtracted in 200 components = 0.111251 Jy
! Clean residual min=-0.024721 max=0.017947 Jy/beam
! Clean residual mean=-0.000118 rms=0.004645 Jy/beam
! Combined flux in latest and established models = 2.05558 Jy
! Performing phase self-cal
! Adding 43 model components to the UV plane model.
! The established model now contains 80 components and 2.05558 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.544967Jy  sigma=0.002554
! Fit after  self-cal, rms=0.544649Jy  sigma=0.002551
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 45 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        1.00     GC        1.00*    HN        1.00     
!   KK        1.02     KP        0.97     LA        0.91     MK        0.96     
!   NL        0.92     NY        1.00*    ON        1.00*    OV        0.99     
!   PT        0.99     SC        1.00     WF        1.00     MC        1.00*    
!   GN        0.97     
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.01     GC        1.00*    HN        0.98     
!   KK        1.00*    KP        1.00     LA        0.98     MK        1.00*    
!   NL        1.00     NY        1.00*    ON        1.02     OV        1.00     
!   PT        1.05     SC        1.02     WF        0.99     MC        1.00     
!   GN        0.97     
! 
!  A total of 54 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        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*    WF        0.00*    MC        0.00*    
!   GN        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.04     GC        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00     LA        0.96     MK        0.93     
!   NL        1.00*    NY        1.00*    ON        1.00*    OV        1.03     
!   PT        1.05     SC        1.00*    WF        1.00*    MC        1.00*    
!   GN        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 45 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.99     GC        1.00*    HN        1.07     
!   KK        1.03     KP        0.94     LA        0.98     MK        1.01     
!   NL        0.91     NY        1.00*    ON        1.00*    OV        0.98     
!   PT        0.97     SC        1.02     WF        1.03     MC        1.00*    
!   GN        0.98     
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.01     GC        1.00*    HN        1.05     
!   KK        1.00*    KP        0.99     LA        1.02     MK        1.00*    
!   NL        0.98     NY        1.00*    ON        1.01     OV        0.99     
!   PT        1.03     SC        1.04     WF        1.02     MC        0.82     
!   GN        0.97     
! 
!  A total of 54 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        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*    WF        0.00*    MC        0.00*    
!   GN        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.05     GC        1.00*    HN        1.00*    
!   KK        1.00*    KP        0.97     LA        1.05     MK        1.00     
!   NL        1.00*    NY        1.00*    ON        1.00*    OV        1.01     
!   PT        1.02     SC        1.00*    WF        1.00*    MC        1.00*    
!   GN        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 45 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.03     GC        1.00*    HN        1.00     
!   KK        0.98     KP        0.97     LA        0.97     MK        0.94     
!   NL        0.93     NY        1.00*    ON        1.00*    OV        0.97     
!   PT        0.96     SC        1.01     WF        1.01     MC        1.00*    
!   GN        0.99     
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.04     GC        1.00*    HN        0.99     
!   KK        1.00*    KP        1.03     LA        1.01     MK        1.00*    
!   NL        0.99     NY        1.00*    ON        0.90     OV        0.97     
!   PT        1.03     SC        1.01     WF        1.03     MC        1.74     
!   GN        0.99     
! 
!  A total of 54 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        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*    WF        0.00*    MC        0.00*    
!   GN        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.07     GC        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.06     LA        1.01     MK        0.94     
!   NL        1.00*    NY        1.00*    ON        1.00*    OV        1.01     
!   PT        1.03     SC        1.00*    WF        1.00*    MC        1.00*    
!   GN        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 45 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00     GC        1.00*    HN        1.03     
!   KK        1.03     KP        0.96     LA        0.95     MK        0.97     
!   NL        0.93     NY        1.00*    ON        1.00*    OV        1.00     
!   PT        0.98     SC        0.99     WF        1.00     MC        1.00*    
!   GN        0.97     
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.01     GC        1.00*    HN        1.01     
!   KK        1.00*    KP        1.03     LA        1.01     MK        1.00*    
!   NL        0.98     NY        1.00*    ON        0.94     OV        1.01     
!   PT        1.05     SC        0.99     WF        1.00     MC        1.98     
!   GN        0.96     
! 
!  A total of 54 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        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*    WF        0.00*    MC        0.00*    
!   GN        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.04     GC        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.03     LA        1.02     MK        0.95     
!   NL        1.00*    NY        1.00*    ON        1.00*    OV        1.02     
!   PT        1.01     SC        1.00*    WF        1.00*    MC        1.00*    
!   GN        1.00*    
! 
! 
! Fit before self-cal, rms=0.544649Jy  sigma=0.002551
! Fit after  self-cal, rms=0.590914Jy  sigma=0.002457
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.023 mas, bmaj=9.353 mas, bpa=-7.928 degrees
! Estimated noise=625.873 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.011681 Jy
! Component: 100  -  total flux cleaned = 0.0136985 Jy
! Component: 150  -  total flux cleaned = 0.0145907 Jy
! Component: 200  -  total flux cleaned = 0.0152669 Jy
! Total flux subtracted in 200 components = 0.0152669 Jy
! Clean residual min=-0.008481 max=0.007453 Jy/beam
! Clean residual mean=0.000110 rms=0.002203 Jy/beam
! Combined flux in latest and established models = 2.07085 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 106 components and 2.07085 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.590442Jy  sigma=0.002450
! Fit after  self-cal, rms=0.590768Jy  sigma=0.002449
! 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.590768Jy  sigma=0.002449
! Fit after  self-cal, rms=0.596372Jy  sigma=0.002442
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.03 mas, bmaj=9.352 mas, bpa=-7.996 degrees
! Estimated noise=625.985 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00415833 Jy
! Component: 100  -  total flux cleaned = 0.00442171 Jy
! Component: 150  -  total flux cleaned = 0.00462935 Jy
! Component: 200  -  total flux cleaned = 0.00498766 Jy
! Total flux subtracted in 200 components = 0.00498766 Jy
! Clean residual min=-0.007505 max=0.006845 Jy/beam
! Clean residual mean=-0.000018 rms=0.001803 Jy/beam
! Combined flux in latest and established models = 2.07584 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 114 components and 2.07584 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.596196Jy  sigma=0.002440
! Fit after  self-cal, rms=0.596175Jy  sigma=0.002439
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.000146406 Jy
! Component: 100  -  total flux cleaned = 0.000150797 Jy
! Component: 150  -  total flux cleaned = 0.000303181 Jy
! Component: 200  -  total flux cleaned = 0.000306239 Jy
! Total flux subtracted in 200 components = 0.000306239 Jy
! Clean residual min=-0.006978 max=0.005964 Jy/beam
! Clean residual mean=-0.000021 rms=0.001749 Jy/beam
! Combined flux in latest and established models = 2.07614 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 122 components and 2.07614 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.596086Jy  sigma=0.002438
! Fit after  self-cal, rms=0.596068Jy  sigma=0.002438
! 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.596068Jy  sigma=0.002438
! Fit after  self-cal, rms=0.601106Jy  sigma=0.002436
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.036 mas, bmaj=9.348 mas, bpa=-8.03 degrees
! Estimated noise=625.999 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000507817 Jy
! Component: 100  -  total flux cleaned = 0.000822009 Jy
! Component: 150  -  total flux cleaned = 0.000956696 Jy
! Component: 200  -  total flux cleaned = 0.000956197 Jy
! Total flux subtracted in 200 components = 0.000956197 Jy
! Clean residual min=-0.006774 max=0.005793 Jy/beam
! Clean residual mean=-0.000065 rms=0.001633 Jy/beam
! Combined flux in latest and established models = 2.0771 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 124 components and 2.0771 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.601023Jy  sigma=0.002435
! Fit after  self-cal, rms=0.601032Jy  sigma=0.002435
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 = -7.18906e-05 Jy
! Component: 100  -  total flux cleaned = -6.58879e-05 Jy
! Component: 150  -  total flux cleaned = 4.92217e-05 Jy
! Component: 200  -  total flux cleaned = 4.7454e-05 Jy
! Total flux subtracted in 200 components = 4.7454e-05 Jy
! Clean residual min=-0.006772 max=0.005208 Jy/beam
! Clean residual mean=-0.000065 rms=0.001606 Jy/beam
! Combined flux in latest and established models = 2.07715 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 126 components and 2.07715 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.600974Jy  sigma=0.002435
! Fit after  self-cal, rms=0.600966Jy  sigma=0.002435
! 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.600966Jy  sigma=0.002435
! Fit after  self-cal, rms=0.604416Jy  sigma=0.002435
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.343 mas, bmaj=13.57 mas, bpa=-11.54 degrees
! Estimated noise=763.172 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000365791 Jy
! Component: 100  -  total flux cleaned = 0.000181704 Jy
! Component: 150  -  total flux cleaned = 0.000181712 Jy
! Component: 200  -  total flux cleaned = 0.000136238 Jy
! Total flux subtracted in 200 components = 0.000136238 Jy
! Clean residual min=-0.006694 max=0.005065 Jy/beam
! Clean residual mean=-0.000168 rms=0.001743 Jy/beam
! Combined flux in latest and established models = 2.07728 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 141 components and 2.07728 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.604391Jy  sigma=0.002434
! Fit after  self-cal, rms=0.604406Jy  sigma=0.002434
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.000182087 Jy
! Component: 100  -  total flux cleaned = 0.000228683 Jy
! Component: 150  -  total flux cleaned = 0.000226984 Jy
! Component: 200  -  total flux cleaned = 0.000226687 Jy
! Total flux subtracted in 200 components = 0.000226687 Jy
! Clean residual min=-0.006630 max=0.005081 Jy/beam
! Clean residual mean=-0.000173 rms=0.001737 Jy/beam
! Combined flux in latest and established models = 2.07751 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 150 components and 2.07751 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.604388Jy  sigma=0.002434
! Fit after  self-cal, rms=0.604384Jy  sigma=0.002434
! 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.041 mas, bmaj=9.347 mas, bpa=-8.047 degrees
! Estimated noise=626.221 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.041 x 9.347 at -8.047 degrees (North through East)
! Clean map  min=-0.0063654  max=1.3737 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.604384Jy  sigma=0.002434
! Fit after  self-cal, rms=0.987901Jy  sigma=0.002277
! Inverting map and beam 
! Estimated beam: bmin=3.038 mas, bmaj=9.349 mas, bpa=-8.069 degrees
! Estimated noise=625.492 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00164681 Jy
! Component: 100  -  total flux cleaned = -0.00142362 Jy
! Component: 150  -  total flux cleaned = -0.00142561 Jy
! Component: 200  -  total flux cleaned = -0.00142577 Jy
! Total flux subtracted in 200 components = -0.00142577 Jy
! Clean residual min=-0.006317 max=0.004959 Jy/beam
! Clean residual mean=-0.000075 rms=0.001536 Jy/beam
! Combined flux in latest and established models = 2.07608 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 155 components and 2.07608 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.987842Jy  sigma=0.002276
! Fit after  self-cal, rms=0.987851Jy  sigma=0.002276
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000143499 Jy
! Component: 100  -  total flux cleaned = -0.000234152 Jy
! Component: 150  -  total flux cleaned = -0.000152179 Jy
! Component: 200  -  total flux cleaned = -0.000152648 Jy
! Total flux subtracted in 200 components = -0.000152648 Jy
! Clean residual min=-0.006239 max=0.004619 Jy/beam
! Clean residual mean=-0.000074 rms=0.001523 Jy/beam
! Combined flux in latest and established models = 2.07593 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 157 components and 2.07593 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.987820Jy  sigma=0.002276
! Fit after  self-cal, rms=0.987825Jy  sigma=0.002276
! 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.987825Jy  sigma=0.002276
! Fit after  self-cal, rms=0.972848Jy  sigma=0.002276
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.281 mas, bmaj=7.257 mas, bpa=-5.656 degrees
! Estimated noise=1072.1 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.977183 Jy
! Component: 100  -  total flux cleaned = 1.3426 Jy
! Component: 150  -  total flux cleaned = 1.55664 Jy
! Component: 200  -  total flux cleaned = 1.69296 Jy
! Total flux subtracted in 200 components = 1.69296 Jy
! Clean residual min=-0.023875 max=0.072992 Jy/beam
! Clean residual mean=0.000850 rms=0.008879 Jy/beam
! Combined flux in latest and established models = 1.69296 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 16 model components to the UV plane model.
! The established model now contains 16 components and 1.69296 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.041 mas, bmaj=9.344 mas, bpa=-8.068 degrees
! Estimated noise=625.43 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.159645 Jy
! Component: 100  -  total flux cleaned = 0.245909 Jy
! Component: 150  -  total flux cleaned = 0.295922 Jy
! Component: 200  -  total flux cleaned = 0.326509 Jy
! Total flux subtracted in 200 components = 0.326509 Jy
! Clean residual min=-0.007876 max=0.016677 Jy/beam
! Clean residual mean=0.000509 rms=0.002904 Jy/beam
! Combined flux in latest and established models = 2.01946 Jy
! Adding 66 model components to the UV plane model.
! The established model now contains 72 components and 2.01946 Jy
! Inverting map 
! Added new window around map position (3, 0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.019883 Jy
! Component: 100  -  total flux cleaned = 0.0330588 Jy
! Component: 150  -  total flux cleaned = 0.0419666 Jy
! Component: 200  -  total flux cleaned = 0.0480692 Jy
! Total flux subtracted in 200 components = 0.0480692 Jy
! Clean residual min=-0.006528 max=0.005161 Jy/beam
! Clean residual mean=-0.000001 rms=0.001590 Jy/beam
! Combined flux in latest and established models = 2.06753 Jy
! Adding 45 model components to the UV plane model.
! The established model now contains 113 components and 2.06753 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=7.342 mas, bmaj=13.56 mas, bpa=-11.53 degrees
! Estimated noise=762.462 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00485932 Jy
! Component: 100  -  total flux cleaned = 0.00563991 Jy
! Component: 150  -  total flux cleaned = 0.00589394 Jy
! Component: 200  -  total flux cleaned = 0.00596829 Jy
! Total flux subtracted in 200 components = 0.00596829 Jy
! Clean residual min=-0.006173 max=0.004888 Jy/beam
! Clean residual mean=-0.000117 rms=0.001666 Jy/beam
! Combined flux in latest and established models = 2.0735 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 = 2.80359e-06 Jy
! Component: 100  -  total flux cleaned = 3.84394e-06 Jy
! Component: 150  -  total flux cleaned = 4.32435e-06 Jy
! Component: 200  -  total flux cleaned = 2.04548e-06 Jy
! Total flux subtracted in 200 components = 2.04548e-06 Jy
! Clean residual min=-0.006073 max=0.004647 Jy/beam
! Clean residual mean=-0.000117 rms=0.001649 Jy/beam
! Combined flux in latest and established models = 2.0735 Jy
! Adding 41 model components to the UV plane model.
! The established model now contains 150 components and 2.0735 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.041 mas, bmaj=9.344 mas, bpa=-8.068 degrees
! Estimated noise=625.43 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000489199 Jy
! Component: 100  -  total flux cleaned = -0.00023317 Jy
! Component: 150  -  total flux cleaned = 0.000107629 Jy
! Component: 200  -  total flux cleaned = 0.000412901 Jy
! Total flux subtracted in 200 components = 0.000412901 Jy
! Clean residual min=-0.006292 max=0.004745 Jy/beam
! Clean residual mean=-0.000065 rms=0.001494 Jy/beam
! Combined flux in latest and established models = 2.07392 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 164 components and 2.07392 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.972762Jy  sigma=0.002275
! Fit after  self-cal, rms=0.972772Jy  sigma=0.002275
wmodel J0006-0623_S_1998_10_01_pus_map.mod
! Writing 164 model components to file: J0006-0623_S_1998_10_01_pus_map.mod
wobs J0006-0623_S_1998_10_01_pus_uvs.fits
! Writing UV FITS file: J0006-0623_S_1998_10_01_pus_uvs.fits
wwins J0006-0623_S_1998_10_01_pus_map.win
! wwins: Wrote 4 windows to J0006-0623_S_1998_10_01_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.00267353 Jy
! Component: 100  -  total flux cleaned = -0.00475888 Jy
! Component: 150  -  total flux cleaned = -0.00633471 Jy
! Component: 200  -  total flux cleaned = -0.00724887 Jy
! Component: 250  -  total flux cleaned = -0.00797082 Jy
! Component: 300  -  total flux cleaned = -0.0087489 Jy
! Component: 350  -  total flux cleaned = -0.00943151 Jy
! Component: 400  -  total flux cleaned = -0.0101744 Jy
! Component: 450  -  total flux cleaned = -0.0106111 Jy
! Component: 500  -  total flux cleaned = -0.010969 Jy
! Component: 550  -  total flux cleaned = -0.0113211 Jy
! Component: 600  -  total flux cleaned = -0.0115978 Jy
! Component: 650  -  total flux cleaned = -0.0117345 Jy
! Component: 700  -  total flux cleaned = -0.0119366 Jy
! Component: 750  -  total flux cleaned = -0.0121355 Jy
! Component: 800  -  total flux cleaned = -0.0122012 Jy
! Component: 850  -  total flux cleaned = -0.0122664 Jy
! Component: 900  -  total flux cleaned = -0.0123304 Jy
! Component: 950  -  total flux cleaned = -0.0122681 Jy
! Component: 1000  -  total flux cleaned = -0.0123307 Jy
! Component: 1050  -  total flux cleaned = -0.0124528 Jy
! Component: 1100  -  total flux cleaned = -0.0124525 Jy
! Component: 1150  -  total flux cleaned = -0.0124522 Jy
! Component: 1200  -  total flux cleaned = -0.0124523 Jy
! Component: 1250  -  total flux cleaned = -0.0123345 Jy
! Component: 1300  -  total flux cleaned = -0.0122766 Jy
! Component: 1350  -  total flux cleaned = -0.0122192 Jy
! Component: 1400  -  total flux cleaned = -0.0122179 Jy
! Component: 1450  -  total flux cleaned = -0.0119911 Jy
! Component: 1500  -  total flux cleaned = -0.0118785 Jy
! Component: 1550  -  total flux cleaned = -0.0117671 Jy
! Component: 1600  -  total flux cleaned = -0.0116018 Jy
! Component: 1650  -  total flux cleaned = -0.0116564 Jy
! Component: 1700  -  total flux cleaned = -0.0115474 Jy
! Component: 1750  -  total flux cleaned = -0.0113859 Jy
! Component: 1800  -  total flux cleaned = -0.0113863 Jy
! Component: 1850  -  total flux cleaned = -0.0112273 Jy
! Component: 1900  -  total flux cleaned = -0.01128 Jy
! Component: 1950  -  total flux cleaned = -0.0111753 Jy
! Component: 2000  -  total flux cleaned = -0.0110196 Jy
! Total flux subtracted in 2048 components = -0.0110198 Jy
! Clean residual min=-0.003451 max=0.002740 Jy/beam
! Clean residual mean=0.000064 rms=0.001084 Jy/beam
! Combined flux in latest and established models = 2.0629 Jy
keep
! Adding 139 model components to the UV plane model.
! The established model now contains 303 components and 2.0629 Jy
![Exited script file: muppet]
wmap "J0006-0623_S_1998_10_01_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.041 x 9.344 at -8.068 degrees (North through East)
! Clean map  min=-0.005253  max=1.3783 Jy/beam
! Writing clean map to FITS file: J0006-0623_S_1998_10_01_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.37825 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00108248 
device "J0006-0623_S_1998_10_01_pus\_map.eps/VPS"
! Attempting to open device: 'J0006-0623_S_1998_10_01_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.235619 0.235619 0.471238 0.942476 1.88495 3.7699 7.53981 15.0796 30.1592 60.3184
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0032 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.378 
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.041 x 9.344 at -8.068 degrees (North through East)
! Clean map  min=-0.005253  max=1.3783 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0006-0623_S_1998_10_01_pus\_map.gif/vgif"
! Attempting to open device: 'J0006-0623_S_1998_10_01_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0006-0623_S_1998_10_01_pus_uvs.log closed on Thu Feb  7 16:51:01 2008