! Started logfile: J0339-0146_S_2001_07_05_pus_uvs.log on Fri Aug 10 00:08:33 2007
obs J0339-0146_S_2001_07_05_pus_uva.fits
! Reading UV FITS file: J0339-0146_S_2001_07_05_pus_uva.fits
! AN table 1: 277 integrations on 171 of 171 possible baselines.
! AN table 2: 67 integrations on 171 of 171 possible baselines.
! AN table 3: 22 integrations on 171 of 171 possible baselines.
! AN table 4: 34 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.0694737 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0339-0146
! 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.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 1774 lines of history.
! 
! Reading 19008 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 4217 telescope corrections were flagged in sub-array 1.
!  A total of 894 telescope corrections were flagged in sub-array 2.
!  A total of 333 telescope corrections were flagged in sub-array 3.
!  A total of 380 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 4217 telescope corrections were flagged in sub-array 1.
!  A total of 894 telescope corrections were flagged in sub-array 2.
!  A total of 333 telescope corrections were flagged in sub-array 3.
!  A total of 380 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 4217 telescope corrections were flagged in sub-array 1.
!  A total of 894 telescope corrections were flagged in sub-array 2.
!  A total of 333 telescope corrections were flagged in sub-array 3.
!  A total of 380 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 4245 telescope corrections were flagged in sub-array 1.
!  A total of 894 telescope corrections were flagged in sub-array 2.
!  A total of 333 telescope corrections were flagged in sub-array 3.
!  A total of 380 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.283569Jy  sigma=0.011077
! Fit after  self-cal, rms=0.520150Jy  sigma=0.004227
! 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.197 mas, bmaj=4.352 mas, bpa=-2.632 degrees
! Estimated noise=1184.4 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.853161 Jy
! Component: 100  -  total flux cleaned = 1.1614 Jy
! Total flux subtracted in 100 components = 1.1614 Jy
! Clean residual min=-0.042729 max=0.139627 Jy/beam
! Clean residual mean=0.001162 rms=0.013714 Jy/beam
! Combined flux in latest and established models = 1.1614 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 14 components and 1.1614 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.414513Jy  sigma=0.003244
! Fit after  self-cal, rms=0.411051Jy  sigma=0.003215
! Inverting map 
! Added new window around map position (2, 1.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.166736 Jy
! Component: 100  -  total flux cleaned = 0.265428 Jy
! Total flux subtracted in 100 components = 0.265428 Jy
! Clean residual min=-0.027313 max=0.058322 Jy/beam
! Clean residual mean=0.000449 rms=0.007587 Jy/beam
! Combined flux in latest and established models = 1.42683 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 31 components and 1.42683 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.302824Jy  sigma=0.002067
! Fit after  self-cal, rms=0.300533Jy  sigma=0.002044
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0671703 Jy
! Component: 100  -  total flux cleaned = 0.108884 Jy
! Total flux subtracted in 100 components = 0.108884 Jy
! Clean residual min=-0.021034 max=0.029144 Jy/beam
! Clean residual mean=0.000155 rms=0.005875 Jy/beam
! Combined flux in latest and established models = 1.53572 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 43 components and 1.53572 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.277888Jy  sigma=0.001780
! Fit after  self-cal, rms=0.277060Jy  sigma=0.001771
! 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.689 mas, bmaj=6.257 mas, bpa=-1.834 degrees
! Estimated noise=627.362 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.0478621 Jy
! Component: 100  -  total flux cleaned = 0.0719639 Jy
! Component: 150  -  total flux cleaned = 0.0850106 Jy
! Component: 200  -  total flux cleaned = 0.0889569 Jy
! Total flux subtracted in 200 components = 0.0889569 Jy
! Clean residual min=-0.015249 max=0.018173 Jy/beam
! Clean residual mean=-0.000166 rms=0.004282 Jy/beam
! Combined flux in latest and established models = 1.62467 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 52 components and 1.62467 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.269498Jy  sigma=0.001684
! Fit after  self-cal, rms=0.269287Jy  sigma=0.001682
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 468 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.00     GC        1.10     GG        1.00*    
!   HH        1.55     HN        0.94     KK        1.09     KP        0.92     
!   LA        1.01     MC        0.94     MK        1.02     NL        1.00     
!   NY        1.03     OV        0.97     PT        0.96     SC        0.98     
!   TS        1.04     WF        0.99     WZ        0.91     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.91     KK        1.00*    KP        1.01     
!   LA        1.00     MC        1.00*    MK        1.00*    NL        0.99     
!   NY        1.00*    OV        1.00*    PT        0.98     SC        0.94     
!   TS        1.00*    WF        0.96     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.25     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MC        0.97     MK        1.00*    NL        1.00*    
!   NY        1.00     OV        1.00*    PT        1.00*    SC        0.97     
!   TS        1.00*    WF        1.00*    WZ        0.80     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        0.98     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.00     KP        1.00     
!   LA        1.00     MC        1.00*    MK        0.96     NL        1.02     
!   NY        1.00*    OV        0.99     PT        0.98     SC        1.00     
!   TS        1.00*    WF        1.02     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 468 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.01     GC        1.06     GG        1.00*    
!   HH        1.75     HN        0.94     KK        1.10     KP        0.85     
!   LA        0.97     MC        0.91     MK        0.98     NL        0.99     
!   NY        1.07     OV        1.01     PT        0.99     SC        1.00     
!   TS        0.99     WF        0.97     WZ        0.88     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.03     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.93     KK        1.00*    KP        1.06     
!   LA        0.97     MC        1.00*    MK        1.00*    NL        0.96     
!   NY        1.00*    OV        1.00*    PT        1.02     SC        0.93     
!   TS        1.00*    WF        0.97     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        0.99     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MC        0.86     MK        1.00*    NL        1.00*    
!   NY        1.04     OV        1.00*    PT        1.00*    SC        1.03     
!   TS        1.00*    WF        1.00*    WZ        0.94     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.01     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        0.98     KP        0.96     
!   LA        0.97     MC        1.00*    MK        0.97     NL        1.00     
!   NY        1.00*    OV        1.01     PT        1.01     SC        1.00     
!   TS        1.00*    WF        1.02     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 468 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.96     GC        1.13     GG        1.00*    
!   HH        1.47     HN        1.02     KK        1.11     KP        0.99     
!   LA        1.03     MC        1.01     MK        1.00     NL        1.06     
!   NY        1.02     OV        1.06     PT        1.01     SC        1.01     
!   TS        0.99     WF        1.06     WZ        0.96     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.09     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.00*    KP        1.03     
!   LA        0.98     MC        1.00*    MK        1.00*    NL        1.03     
!   NY        1.00*    OV        1.00*    PT        0.96     SC        0.96     
!   TS        1.00*    WF        0.95     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        0.85     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MC        0.90     MK        1.00*    NL        1.00*    
!   NY        1.07     OV        1.00*    PT        1.00*    SC        1.02     
!   TS        1.00*    WF        1.00*    WZ        0.99     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.07     FD        1.00     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.12     KK        1.00     KP        1.03     
!   LA        1.02     MC        1.00*    MK        0.99     NL        1.12     
!   NY        1.00*    OV        1.05     PT        1.02     SC        1.02     
!   TS        1.00*    WF        1.28     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 477 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.02     GC        1.10     GG        1.00*    
!   HH        1.68     HN        0.92     KK        1.09     KP        0.98     
!   LA        1.01     MC        0.75     MK        1.00     NL        1.03     
!   NY        1.78     OV        0.98     PT        1.03     SC        0.98     
!   TS        1.01     WF        1.03     WZ        1.04     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.02     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.90     KK        1.00*    KP        1.14     
!   LA        1.01     MC        1.00*    MK        1.00*    NL        1.00     
!   NY        1.00*    OV        1.00*    PT        1.07     SC        0.96     
!   TS        1.00*    WF        1.04     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.20     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MC        1.47     MK        1.00*    NL        1.00*    
!   NY        1.03     OV        1.00*    PT        1.00*    SC        0.91     
!   TS        1.00*    WF        1.00*    WZ        1.12     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        0.99     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.00     KP        1.05     
!   LA        1.02     MC        1.00*    MK        0.99     NL        1.02     
!   NY        1.00*    OV        1.00     PT        1.16     SC        1.01     
!   TS        1.00*    WF        1.04     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.269287Jy  sigma=0.001682
! Fit after  self-cal, rms=0.279086Jy  sigma=0.001491
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.645 mas, bmaj=6.554 mas, bpa=-2.913 degrees
! Estimated noise=667.917 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.0045602 Jy
! Component: 100  -  total flux cleaned = 0.00421771 Jy
! Component: 150  -  total flux cleaned = 0.00421036 Jy
! Component: 200  -  total flux cleaned = 0.00408006 Jy
! Total flux subtracted in 200 components = 0.00408006 Jy
! Clean residual min=-0.009472 max=0.008358 Jy/beam
! Clean residual mean=0.000143 rms=0.002409 Jy/beam
! Combined flux in latest and established models = 1.62875 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 60 components and 1.62875 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.278762Jy  sigma=0.001488
! Fit after  self-cal, rms=0.280208Jy  sigma=0.001487
! 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.280208Jy  sigma=0.001487
! Fit after  self-cal, rms=0.300045Jy  sigma=0.001407
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.652 mas, bmaj=6.474 mas, bpa=-3.242 degrees
! Estimated noise=667.117 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00517118 Jy
! Component: 100  -  total flux cleaned = 0.00502715 Jy
! Component: 150  -  total flux cleaned = 0.00489759 Jy
! Component: 200  -  total flux cleaned = 0.00498366 Jy
! Total flux subtracted in 200 components = 0.00498366 Jy
! Clean residual min=-0.004406 max=0.007218 Jy/beam
! Clean residual mean=0.000260 rms=0.001397 Jy/beam
! Combined flux in latest and established models = 1.63374 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 68 components and 1.63374 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.299879Jy  sigma=0.001404
! Fit after  self-cal, rms=0.299833Jy  sigma=0.001404
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 (5.5, 3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00631312 Jy
! Component: 100  -  total flux cleaned = 0.00687847 Jy
! Component: 150  -  total flux cleaned = 0.00722307 Jy
! Component: 200  -  total flux cleaned = 0.0073192 Jy
! Total flux subtracted in 200 components = 0.0073192 Jy
! Clean residual min=-0.004510 max=0.005203 Jy/beam
! Clean residual mean=0.000181 rms=0.001238 Jy/beam
! Combined flux in latest and established models = 1.64106 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 81 components and 1.64106 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.299612Jy  sigma=0.001401
! Fit after  self-cal, rms=0.299604Jy  sigma=0.001401
! 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.299604Jy  sigma=0.001401
! Fit after  self-cal, rms=0.300922Jy  sigma=0.001400
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.651 mas, bmaj=6.466 mas, bpa=-3.252 degrees
! Estimated noise=667.204 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00453751 Jy
! Component: 100  -  total flux cleaned = 0.00710627 Jy
! Component: 150  -  total flux cleaned = 0.00743227 Jy
! Component: 200  -  total flux cleaned = 0.00743272 Jy
! Total flux subtracted in 200 components = 0.00743272 Jy
! Clean residual min=-0.004011 max=0.004566 Jy/beam
! Clean residual mean=0.000106 rms=0.001139 Jy/beam
! Combined flux in latest and established models = 1.64849 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 89 components and 1.64849 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.300824Jy  sigma=0.001399
! Fit after  self-cal, rms=0.300768Jy  sigma=0.001399
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.000960393 Jy
! Component: 100  -  total flux cleaned = 0.000960437 Jy
! Component: 150  -  total flux cleaned = 0.000961742 Jy
! Component: 200  -  total flux cleaned = 0.000961633 Jy
! Total flux subtracted in 200 components = 0.000961633 Jy
! Clean residual min=-0.004019 max=0.004463 Jy/beam
! Clean residual mean=0.000095 rms=0.001133 Jy/beam
! Combined flux in latest and established models = 1.64945 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 93 components and 1.64945 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.300724Jy  sigma=0.001398
! Fit after  self-cal, rms=0.300728Jy  sigma=0.001398
! 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.300728Jy  sigma=0.001398
! Fit after  self-cal, rms=0.300356Jy  sigma=0.001398
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.699 mas, bmaj=11.83 mas, bpa=-2.363 degrees
! Estimated noise=863.641 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00406033 Jy
! Component: 100  -  total flux cleaned = 0.00484477 Jy
! Component: 150  -  total flux cleaned = 0.00507314 Jy
! Component: 200  -  total flux cleaned = 0.00524551 Jy
! Total flux subtracted in 200 components = 0.00524551 Jy
! Clean residual min=-0.004065 max=0.005510 Jy/beam
! Clean residual mean=0.000171 rms=0.001499 Jy/beam
! Combined flux in latest and established models = 1.6547 Jy
selfcal
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 120 components and 1.6547 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.300364Jy  sigma=0.001397
! Fit after  self-cal, rms=0.300337Jy  sigma=0.001397
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.000487827 Jy
! Component: 100  -  total flux cleaned = 0.000633671 Jy
! Component: 150  -  total flux cleaned = 0.000742998 Jy
! Component: 200  -  total flux cleaned = 0.000829384 Jy
! Total flux subtracted in 200 components = 0.000829384 Jy
! Clean residual min=-0.004013 max=0.005384 Jy/beam
! Clean residual mean=0.000150 rms=0.001491 Jy/beam
! Combined flux in latest and established models = 1.65553 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 127 components and 1.65553 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.300344Jy  sigma=0.001397
! Fit after  self-cal, rms=0.300335Jy  sigma=0.001397
! 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.65 mas, bmaj=6.461 mas, bpa=-3.252 degrees
! Estimated noise=667.571 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.65 x 6.461 at -3.252 degrees (North through East)
! Clean map  min=-0.0036458  max=1.182 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.300335Jy  sigma=0.001397
! Fit after  self-cal, rms=0.698968Jy  sigma=0.001180
! Inverting map and beam 
! Estimated beam: bmin=2.653 mas, bmaj=6.469 mas, bpa=-3.217 degrees
! Estimated noise=667.722 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00174859 Jy
! Component: 100  -  total flux cleaned = 0.00190228 Jy
! Component: 150  -  total flux cleaned = 0.00177726 Jy
! Component: 200  -  total flux cleaned = 0.00165998 Jy
! Total flux subtracted in 200 components = 0.00165998 Jy
! Clean residual min=-0.003639 max=0.004257 Jy/beam
! Clean residual mean=0.000101 rms=0.001003 Jy/beam
! Combined flux in latest and established models = 1.65719 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 135 components and 1.65719 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.698941Jy  sigma=0.001180
! Fit after  self-cal, rms=0.699050Jy  sigma=0.001180
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000210965 Jy
! Component: 100  -  total flux cleaned = 0.000100327 Jy
! Component: 150  -  total flux cleaned = -3.44806e-06 Jy
! Component: 200  -  total flux cleaned = -5.07363e-05 Jy
! Total flux subtracted in 200 components = -5.07363e-05 Jy
! Clean residual min=-0.003627 max=0.004229 Jy/beam
! Clean residual mean=0.000100 rms=0.000997 Jy/beam
! Combined flux in latest and established models = 1.65713 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 136 components and 1.65713 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.699033Jy  sigma=0.001179
! Fit after  self-cal, rms=0.699049Jy  sigma=0.001179
! 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.699049Jy  sigma=0.001179
! Fit after  self-cal, rms=1.166021Jy  sigma=0.001179
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.213 mas, bmaj=4.592 mas, bpa=-4.332 degrees
! Estimated noise=1221.16 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.873337 Jy
! Component: 100  -  total flux cleaned = 1.20023 Jy
! Component: 150  -  total flux cleaned = 1.3591 Jy
! Component: 200  -  total flux cleaned = 1.45272 Jy
! Total flux subtracted in 200 components = 1.45272 Jy
! Clean residual min=-0.017201 max=0.049436 Jy/beam
! Clean residual mean=0.000568 rms=0.005087 Jy/beam
! Combined flux in latest and established models = 1.45272 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 20 model components to the UV plane model.
! The established model now contains 20 components and 1.45272 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.652 mas, bmaj=6.469 mas, bpa=-3.206 degrees
! Estimated noise=667.702 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.0892325 Jy
! Component: 100  -  total flux cleaned = 0.135423 Jy
! Component: 150  -  total flux cleaned = 0.16067 Jy
! Component: 200  -  total flux cleaned = 0.175767 Jy
! Total flux subtracted in 200 components = 0.175767 Jy
! Clean residual min=-0.005189 max=0.008725 Jy/beam
! Clean residual mean=0.000406 rms=0.001665 Jy/beam
! Combined flux in latest and established models = 1.62849 Jy
! Adding 46 model components to the UV plane model.
! The established model now contains 60 components and 1.62849 Jy
! Inverting map 
! Added new window around map position (-2.5, -1.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.010136 Jy
! Component: 100  -  total flux cleaned = 0.0170748 Jy
! Component: 150  -  total flux cleaned = 0.022016 Jy
! Component: 200  -  total flux cleaned = 0.0249275 Jy
! Total flux subtracted in 200 components = 0.0249275 Jy
! Clean residual min=-0.004012 max=0.004238 Jy/beam
! Clean residual mean=0.000145 rms=0.001025 Jy/beam
! Combined flux in latest and established models = 1.65341 Jy
! Adding 26 model components to the UV plane model.
! The established model now contains 79 components and 1.65341 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.691 mas, bmaj=11.83 mas, bpa=-2.4 degrees
! Estimated noise=863.858 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00332093 Jy
! Component: 100  -  total flux cleaned = 0.00416873 Jy
! Component: 150  -  total flux cleaned = 0.00421447 Jy
! Component: 200  -  total flux cleaned = 0.0042488 Jy
! Total flux subtracted in 200 components = 0.0042488 Jy
! Clean residual min=-0.002969 max=0.005677 Jy/beam
! Clean residual mean=0.000235 rms=0.001391 Jy/beam
! Combined flux in latest and established models = 1.65766 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 = -3.09464e-05 Jy
! Component: 100  -  total flux cleaned = -3.00984e-05 Jy
! Component: 150  -  total flux cleaned = -7.92325e-05 Jy
! Component: 200  -  total flux cleaned = -0.000102162 Jy
! Total flux subtracted in 200 components = -0.000102162 Jy
! Clean residual min=-0.002924 max=0.005693 Jy/beam
! Clean residual mean=0.000236 rms=0.001385 Jy/beam
! Combined flux in latest and established models = 1.65756 Jy
! Adding 36 model components to the UV plane model.
! The established model now contains 114 components and 1.65756 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.652 mas, bmaj=6.469 mas, bpa=-3.206 degrees
! Estimated noise=667.702 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000952797 Jy
! Component: 100  -  total flux cleaned = -0.0012038 Jy
! Component: 150  -  total flux cleaned = -0.00142656 Jy
! Component: 200  -  total flux cleaned = -0.00149557 Jy
! Total flux subtracted in 200 components = -0.00149557 Jy
! Clean residual min=-0.003646 max=0.004245 Jy/beam
! Clean residual mean=0.000114 rms=0.000975 Jy/beam
! Combined flux in latest and established models = 1.65607 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 122 components and 1.65607 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.165965Jy  sigma=0.001180
! Fit after  self-cal, rms=1.166052Jy  sigma=0.001179
wmodel J0339-0146_S_2001_07_05_pus_map.mod
! Writing 122 model components to file: J0339-0146_S_2001_07_05_pus_map.mod
wobs J0339-0146_S_2001_07_05_pus_uvs.fits
! Writing UV FITS file: J0339-0146_S_2001_07_05_pus_uvs.fits
wwins J0339-0146_S_2001_07_05_pus_map.win
! wwins: Wrote 4 windows to J0339-0146_S_2001_07_05_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.0013792 Jy
! Component: 100  -  total flux cleaned = 0.00213225 Jy
! Component: 150  -  total flux cleaned = 0.00272859 Jy
! Component: 200  -  total flux cleaned = 0.00335331 Jy
! Component: 250  -  total flux cleaned = 0.00411698 Jy
! Component: 300  -  total flux cleaned = 0.00474737 Jy
! Component: 350  -  total flux cleaned = 0.00530574 Jy
! Component: 400  -  total flux cleaned = 0.00564983 Jy
! Component: 450  -  total flux cleaned = 0.0060335 Jy
! Component: 500  -  total flux cleaned = 0.00636154 Jy
! Component: 550  -  total flux cleaned = 0.00672889 Jy
! Component: 600  -  total flux cleaned = 0.00708888 Jy
! Component: 650  -  total flux cleaned = 0.00744221 Jy
! Component: 700  -  total flux cleaned = 0.0077029 Jy
! Component: 750  -  total flux cleaned = 0.00800098 Jy
! Component: 800  -  total flux cleaned = 0.00816829 Jy
! Component: 850  -  total flux cleaned = 0.00841606 Jy
! Component: 900  -  total flux cleaned = 0.00866047 Jy
! Component: 950  -  total flux cleaned = 0.00890129 Jy
! Component: 1000  -  total flux cleaned = 0.00913928 Jy
! Component: 1050  -  total flux cleaned = 0.00949077 Jy
! Component: 1100  -  total flux cleaned = 0.00956817 Jy
! Component: 1150  -  total flux cleaned = 0.00979685 Jy
! Component: 1200  -  total flux cleaned = 0.00987226 Jy
! Component: 1250  -  total flux cleaned = 0.0100213 Jy
! Component: 1300  -  total flux cleaned = 0.0100954 Jy
! Component: 1350  -  total flux cleaned = 0.0102055 Jy
! Component: 1400  -  total flux cleaned = 0.0103865 Jy
! Component: 1450  -  total flux cleaned = 0.0105294 Jy
! Component: 1500  -  total flux cleaned = 0.0105296 Jy
! Component: 1550  -  total flux cleaned = 0.0105646 Jy
! Component: 1600  -  total flux cleaned = 0.0105997 Jy
! Component: 1650  -  total flux cleaned = 0.0106691 Jy
! Component: 1700  -  total flux cleaned = 0.010772 Jy
! Component: 1750  -  total flux cleaned = 0.0107379 Jy
! Component: 1800  -  total flux cleaned = 0.0107717 Jy
! Component: 1850  -  total flux cleaned = 0.0108391 Jy
! Component: 1900  -  total flux cleaned = 0.0109721 Jy
! Component: 1950  -  total flux cleaned = 0.0110049 Jy
! Component: 2000  -  total flux cleaned = 0.0110049 Jy
! Total flux subtracted in 2048 components = 0.011135 Jy
! Clean residual min=-0.001871 max=0.002267 Jy/beam
! Clean residual mean=0.000030 rms=0.000616 Jy/beam
! Combined flux in latest and established models = 1.6672 Jy
keep
! Adding 135 model components to the UV plane model.
! The established model now contains 257 components and 1.6672 Jy
wmap "J0339-0146_S_2001_07_05_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.652 x 6.469 at -3.206 degrees (North through East)
! Clean map  min=-0.0029698  max=1.1832 Jy/beam
! Writing clean map to FITS file: J0339-0146_S_2001_07_05_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.18321 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000616035 
device "J0339-0146_S_2001_07_05_pus\_map.eps/VPS"
! Attempting to open device: 'J0339-0146_S_2001_07_05_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.156195 0.156195 0.312389 0.624778 1.24956 2.49911 4.99823 9.99645 19.9929 39.9858 79.9716
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0018 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.183 
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.652 x 6.469 at -3.206 degrees (North through East)
! Clean map  min=-0.0029698  max=1.1832 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0339-0146_S_2001_07_05_pus\_map.gif/vgif"
! Attempting to open device: 'J0339-0146_S_2001_07_05_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0339-0146_S_2001_07_05_pus_uvs.log closed on Fri Aug 10 00:10:39 2007