! Started logfile: J0339-0146_S_2003_09_17_pus_uvs.log on Tue May 22 21:06:55 2007
obs J0339-0146_S_2003_09_17_pus_uva.fits
! Reading UV FITS file: J0339-0146_S_2003_09_17_pus_uva.fits
! AN table 1: 135 integrations on 120 of 120 possible baselines.
! AN table 2: 54 integrations on 120 of 120 possible baselines.
! AN table 3: 97 integrations on 120 of 120 possible baselines.
! AN table 4: 74 integrations on 120 of 120 possible baselines.
! AN table 5: 96 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.173995 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.
! 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 38084 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 1111 telescope corrections were flagged in sub-array 1.
!  A total of 822 telescope corrections were flagged in sub-array 2.
!  A total of 1151 telescope corrections were flagged in sub-array 3.
!  A total of 873 telescope corrections were flagged in sub-array 4.
!  A total of 871 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 1111 telescope corrections were flagged in sub-array 1.
!  A total of 828 telescope corrections were flagged in sub-array 2.
!  A total of 1151 telescope corrections were flagged in sub-array 3.
!  A total of 873 telescope corrections were flagged in sub-array 4.
!  A total of 871 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 1111 telescope corrections were flagged in sub-array 1.
!  A total of 822 telescope corrections were flagged in sub-array 2.
!  A total of 1151 telescope corrections were flagged in sub-array 3.
!  A total of 873 telescope corrections were flagged in sub-array 4.
!  A total of 871 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 1164 telescope corrections were flagged in sub-array 1.
!  A total of 822 telescope corrections were flagged in sub-array 2.
!  A total of 1152 telescope corrections were flagged in sub-array 3.
!  A total of 873 telescope corrections were flagged in sub-array 4.
!  A total of 871 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=2.067528Jy  sigma=0.014842
! Fit after  self-cal, rms=1.523046Jy  sigma=0.010892
! 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=1.888 mas, bmaj=5.796 mas, bpa=-0.5508 degrees
! Estimated noise=1219.94 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.62356 Jy
! Component: 100  -  total flux cleaned = 2.12909 Jy
! Total flux subtracted in 100 components = 2.12909 Jy
! Clean residual min=-0.071153 max=0.231676 Jy/beam
! Clean residual mean=0.000858 rms=0.019968 Jy/beam
! Combined flux in latest and established models = 2.12909 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 2.12909 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.671832Jy  sigma=0.004693
! Fit after  self-cal, rms=0.670396Jy  sigma=0.004684
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.262182 Jy
! Component: 100  -  total flux cleaned = 0.40473 Jy
! Total flux subtracted in 100 components = 0.40473 Jy
! Clean residual min=-0.047645 max=0.084280 Jy/beam
! Clean residual mean=0.000559 rms=0.011540 Jy/beam
! Combined flux in latest and established models = 2.53382 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 19 components and 2.53382 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.469182Jy  sigma=0.003049
! Fit after  self-cal, rms=0.467619Jy  sigma=0.003040
! 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.102564 Jy
! Component: 100  -  total flux cleaned = 0.171357 Jy
! Total flux subtracted in 100 components = 0.171357 Jy
! Clean residual min=-0.040747 max=0.046768 Jy/beam
! Clean residual mean=0.000426 rms=0.009344 Jy/beam
! Combined flux in latest and established models = 2.70518 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 32 components and 2.70518 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.415460Jy  sigma=0.002559
! Fit after  self-cal, rms=0.414412Jy  sigma=0.002553
! 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.403 mas, bmaj=7.13 mas, bpa=-1.221 degrees
! Estimated noise=542.889 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.133521 Jy
! Component: 100  -  total flux cleaned = 0.212217 Jy
! Component: 150  -  total flux cleaned = 0.261609 Jy
! Component: 200  -  total flux cleaned = 0.292865 Jy
! Total flux subtracted in 200 components = 0.292865 Jy
! Clean residual min=-0.034594 max=0.044506 Jy/beam
! Clean residual mean=0.000847 rms=0.009194 Jy/beam
! Combined flux in latest and established models = 2.99804 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 55 components and 2.99804 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.374250Jy  sigma=0.002119
! Fit after  self-cal, rms=0.373149Jy  sigma=0.002111
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00     GC        0.98     HN        1.09     KP        0.96     
!   LA        0.98     MK        0.96     NL        1.03     NY        1.00*    
!   ON        1.00*    OV        0.96     PT        0.99     SC        1.01     
!   TS        1.13     KK        0.96     WZ        1.00*    WF        1.25     
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   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 69 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.97     GC        0.95     HN        1.00*    KP        0.95     
!   LA        0.99     MK        1.04     NL        1.02     NY        1.02     
!   ON        1.08     OV        0.90     PT        0.99     SC        1.00*    
!   TS        0.95     KK        0.88     WZ        1.03     WF        0.94     
! 
!  A total of 96 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.01     GC        1.00*    HN        1.02     KP        1.03     
!   LA        1.01     MK        1.00*    NL        0.96     NY        1.00*    
!   ON        1.07     OV        1.00*    PT        1.03     SC        0.92     
!   TS        1.00*    KK        1.00*    WZ        1.01     WF        1.00     
! 
!  A total of 15 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.98     GC        1.14     HN        1.00*    KP        0.93     
!   LA        0.96     MK        1.03     NL        0.99     NY        1.00*    
!   ON        1.00*    OV        0.94     PT        0.97     SC        0.95     
!   TS        1.00*    KK        1.04     WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.98     GC        0.94     HN        1.02     KP        1.04     
!   LA        0.98     MK        1.01     NL        1.06     NY        1.00*    
!   ON        1.00*    OV        0.94     PT        0.98     SC        1.06     
!   TS        1.11     KK        0.93     WZ        1.00*    WF        1.04     
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   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 69 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00     GC        0.91     HN        1.00*    KP        1.04     
!   LA        1.00     MK        1.06     NL        1.07     NY        1.08     
!   ON        1.02     OV        0.97     PT        0.98     SC        1.00*    
!   TS        0.94     KK        1.01     WZ        0.98     WF        0.98     
! 
!  A total of 96 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.01     GC        1.00*    HN        1.05     KP        1.13     
!   LA        1.03     MK        1.00*    NL        1.02     NY        1.00*    
!   ON        1.02     OV        1.00*    PT        0.99     SC        0.93     
!   TS        1.00*    KK        1.00*    WZ        0.97     WF        0.98     
! 
!  A total of 15 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.98     GC        1.11     HN        1.00*    KP        1.05     
!   LA        0.99     MK        1.09     NL        1.03     NY        1.00*    
!   ON        1.00*    OV        0.89     PT        0.96     SC        1.00     
!   TS        1.00*    KK        1.04     WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.98     GC        1.01     HN        0.99     KP        1.03     
!   LA        0.96     MK        0.98     NL        1.00     NY        1.00*    
!   ON        1.00*    OV        0.94     PT        1.01     SC        1.09     
!   TS        1.13     KK        0.92     WZ        1.00*    WF        1.06     
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   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 69 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.98     GC        0.98     HN        1.00*    KP        1.05     
!   LA        0.97     MK        1.04     NL        1.02     NY        1.00     
!   ON        1.04     OV        1.03     PT        1.02     SC        1.00*    
!   TS        0.96     KK        1.03     WZ        1.00     WF        0.97     
! 
!  A total of 96 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00     GC        1.00*    HN        1.06     KP        1.12     
!   LA        0.97     MK        1.00*    NL        0.96     NY        1.00*    
!   ON        1.04     OV        1.00*    PT        1.04     SC        0.97     
!   TS        1.00*    KK        1.00*    WZ        0.95     WF        1.01     
! 
!  A total of 15 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.97     GC        1.16     HN        1.00*    KP        1.03     
!   LA        0.94     MK        1.05     NL        0.97     NY        1.00*    
!   ON        1.00*    OV        0.93     PT        1.00     SC        1.02     
!   TS        1.00*    KK        1.04     WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.97     GC        1.03     HN        2.04     KP        1.03     
!   LA        0.99     MK        0.92     NL        1.03     NY        1.00*    
!   ON        1.00*    OV        0.94     PT        0.96     SC        1.03     
!   TS        1.12     KK        0.99     WZ        1.00*    WF        1.05     
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   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 72 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.04     GC        0.98     HN        1.00*    KP        1.05     
!   LA        1.01     MK        0.98     NL        1.04     NY        1.03     
!   ON        1.05     OV        1.04     PT        0.97     SC        1.00*    
!   TS        0.95     KK        1.09     WZ        1.02     WF        0.94     
! 
!  A total of 96 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00     GC        1.00*    HN        1.10     KP        1.12     
!   LA        1.05     MK        1.00*    NL        0.95     NY        1.00*    
!   ON        1.07     OV        1.00*    PT        0.99     SC        1.00     
!   TS        1.00*    KK        1.00*    WZ        0.98     WF        1.03     
! 
!  A total of 15 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.95     GC        1.16     HN        1.00*    KP        1.03     
!   LA        0.98     MK        0.98     NL        1.00     NY        1.00*    
!   ON        1.00*    OV        0.96     PT        0.95     SC        0.98     
!   TS        1.00*    KK        1.12     WZ        1.00*    WF        1.00*    
! 
! 
! Fit before self-cal, rms=0.373149Jy  sigma=0.002111
! Fit after  self-cal, rms=0.331424Jy  sigma=0.001774
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.465 mas, bmaj=7.157 mas, bpa=-1.119 degrees
! Estimated noise=547.935 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.00360077 Jy
! Component: 100  -  total flux cleaned = -0.00570021 Jy
! Component: 150  -  total flux cleaned = -0.00795274 Jy
! Component: 200  -  total flux cleaned = -0.00984993 Jy
! Total flux subtracted in 200 components = -0.00984993 Jy
! Clean residual min=-0.017229 max=0.016236 Jy/beam
! Clean residual mean=0.000236 rms=0.003806 Jy/beam
! Combined flux in latest and established models = 2.98819 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 61 components and 2.98819 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.328378Jy  sigma=0.001749
! Fit after  self-cal, rms=0.328209Jy  sigma=0.001747
! 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.328209Jy  sigma=0.001747
! Fit after  self-cal, rms=0.316059Jy  sigma=0.001614
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.473 mas, bmaj=7.161 mas, bpa=-1.07 degrees
! Estimated noise=548.387 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00323008 Jy
! Component: 100  -  total flux cleaned = -0.00514906 Jy
! Component: 150  -  total flux cleaned = -0.00593585 Jy
! Component: 200  -  total flux cleaned = -0.00731694 Jy
! Total flux subtracted in 200 components = -0.00731694 Jy
! Clean residual min=-0.011607 max=0.010618 Jy/beam
! Clean residual mean=0.000086 rms=0.002673 Jy/beam
! Combined flux in latest and established models = 2.98087 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 67 components and 2.98087 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.314611Jy  sigma=0.001603
! Fit after  self-cal, rms=0.314479Jy  sigma=0.001602
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.000409626 Jy
! Component: 100  -  total flux cleaned = -0.000161323 Jy
! Component: 150  -  total flux cleaned = -0.000902338 Jy
! Component: 200  -  total flux cleaned = -0.00134548 Jy
! Total flux subtracted in 200 components = -0.00134548 Jy
! Clean residual min=-0.011777 max=0.010561 Jy/beam
! Clean residual mean=0.000094 rms=0.002582 Jy/beam
! Combined flux in latest and established models = 2.97953 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 71 components and 2.97953 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.313906Jy  sigma=0.001598
! Fit after  self-cal, rms=0.313847Jy  sigma=0.001598
! 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.313847Jy  sigma=0.001598
! Fit after  self-cal, rms=0.311807Jy  sigma=0.001571
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.483 mas, bmaj=7.167 mas, bpa=-1.086 degrees
! Estimated noise=549.63 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00303629 Jy
! Component: 100  -  total flux cleaned = -0.00397694 Jy
! Component: 150  -  total flux cleaned = -0.00505584 Jy
! Component: 200  -  total flux cleaned = -0.00576141 Jy
! Total flux subtracted in 200 components = -0.00576141 Jy
! Clean residual min=-0.010510 max=0.009129 Jy/beam
! Clean residual mean=0.000046 rms=0.002341 Jy/beam
! Combined flux in latest and established models = 2.97377 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 72 components and 2.97377 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.311137Jy  sigma=0.001567
! Fit after  self-cal, rms=0.311112Jy  sigma=0.001567
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.85485e-05 Jy
! Component: 100  -  total flux cleaned = -0.000127486 Jy
! Component: 150  -  total flux cleaned = -0.000494135 Jy
! Component: 200  -  total flux cleaned = -0.000818667 Jy
! Total flux subtracted in 200 components = -0.000818667 Jy
! Clean residual min=-0.009943 max=0.009538 Jy/beam
! Clean residual mean=0.000051 rms=0.002294 Jy/beam
! Combined flux in latest and established models = 2.97295 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 73 components and 2.97295 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.310796Jy  sigma=0.001565
! Fit after  self-cal, rms=0.310779Jy  sigma=0.001565
! 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.310779Jy  sigma=0.001565
! Fit after  self-cal, rms=0.311365Jy  sigma=0.001563
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.351 mas, bmaj=12.72 mas, bpa=-2.664 degrees
! Estimated noise=728.505 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00242158 Jy
! Component: 100  -  total flux cleaned = -0.00271913 Jy
! Component: 150  -  total flux cleaned = -0.00307688 Jy
! Component: 200  -  total flux cleaned = -0.00327473 Jy
! Total flux subtracted in 200 components = -0.00327473 Jy
! Clean residual min=-0.010353 max=0.009924 Jy/beam
! Clean residual mean=0.000071 rms=0.003167 Jy/beam
! Combined flux in latest and established models = 2.96967 Jy
selfcal
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 78 components and 2.96967 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.311271Jy  sigma=0.001562
! Fit after  self-cal, rms=0.311229Jy  sigma=0.001562
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.000570686 Jy
! Component: 100  -  total flux cleaned = 0.000248039 Jy
! Component: 150  -  total flux cleaned = 7.16864e-05 Jy
! Component: 200  -  total flux cleaned = -8.12374e-05 Jy
! Total flux subtracted in 200 components = -8.12374e-05 Jy
! Clean residual min=-0.010244 max=0.010135 Jy/beam
! Clean residual mean=0.000072 rms=0.003163 Jy/beam
! Combined flux in latest and established models = 2.96959 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 81 components and 2.96959 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.311184Jy  sigma=0.001562
! Fit after  self-cal, rms=0.311159Jy  sigma=0.001562
! 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.489 mas, bmaj=7.175 mas, bpa=-1.108 degrees
! Estimated noise=550.705 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.489 x 7.175 at -1.108 degrees (North through East)
! Clean map  min=-0.0088656  max=2.2849 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.311159Jy  sigma=0.001562
! Fit after  self-cal, rms=0.253130Jy  sigma=0.001179
! Inverting map and beam 
! Estimated beam: bmin=2.49 mas, bmaj=7.178 mas, bpa=-1.108 degrees
! Estimated noise=550.134 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00629613 Jy
! Component: 100  -  total flux cleaned = -0.00671908 Jy
! Component: 150  -  total flux cleaned = -0.00707823 Jy
! Component: 200  -  total flux cleaned = -0.00740006 Jy
! Total flux subtracted in 200 components = -0.00740006 Jy
! Clean residual min=-0.007545 max=0.006278 Jy/beam
! Clean residual mean=0.000163 rms=0.001569 Jy/beam
! Combined flux in latest and established models = 2.96219 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 85 components and 2.96219 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.252733Jy  sigma=0.001176
! Fit after  self-cal, rms=0.252714Jy  sigma=0.001175
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00018413 Jy
! Component: 100  -  total flux cleaned = -0.000184921 Jy
! Component: 150  -  total flux cleaned = -0.000437478 Jy
! Component: 200  -  total flux cleaned = -0.000554713 Jy
! Total flux subtracted in 200 components = -0.000554713 Jy
! Clean residual min=-0.006651 max=0.006012 Jy/beam
! Clean residual mean=0.000166 rms=0.001538 Jy/beam
! Combined flux in latest and established models = 2.96164 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 86 components and 2.96164 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.252562Jy  sigma=0.001174
! Fit after  self-cal, rms=0.252550Jy  sigma=0.001174
! 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.252550Jy  sigma=0.001174
! Fit after  self-cal, rms=0.252563Jy  sigma=0.001173
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=1.948 mas, bmaj=5.797 mas, bpa=-1.005 degrees
! Estimated noise=1242.23 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.65789 Jy
! Component: 100  -  total flux cleaned = 2.17016 Jy
! Component: 150  -  total flux cleaned = 2.42234 Jy
! Component: 200  -  total flux cleaned = 2.56109 Jy
! Total flux subtracted in 200 components = 2.56109 Jy
! Clean residual min=-0.022907 max=0.072901 Jy/beam
! Clean residual mean=0.000382 rms=0.007626 Jy/beam
! Combined flux in latest and established models = 2.56109 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 17 model components to the UV plane model.
! The established model now contains 17 components and 2.56109 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.495 mas, bmaj=7.185 mas, bpa=-1.129 degrees
! Estimated noise=550.373 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.172997 Jy
! Component: 100  -  total flux cleaned = 0.264004 Jy
! Component: 150  -  total flux cleaned = 0.314947 Jy
! Component: 200  -  total flux cleaned = 0.34465 Jy
! Total flux subtracted in 200 components = 0.34465 Jy
! Clean residual min=-0.008053 max=0.015814 Jy/beam
! Clean residual mean=0.000497 rms=0.003063 Jy/beam
! Combined flux in latest and established models = 2.90574 Jy
! Adding 63 model components to the UV plane model.
! The established model now contains 71 components and 2.90574 Jy
! Inverting map 
! Added new window around map position (2, -6.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0183668 Jy
! Component: 100  -  total flux cleaned = 0.0299631 Jy
! Component: 150  -  total flux cleaned = 0.034401 Jy
! Component: 200  -  total flux cleaned = 0.0369708 Jy
! Total flux subtracted in 200 components = 0.0369708 Jy
! Clean residual min=-0.005267 max=0.006697 Jy/beam
! Clean residual mean=0.000240 rms=0.001568 Jy/beam
! Combined flux in latest and established models = 2.94271 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 98 components and 2.94271 Jy
! Inverting map 
! Added new window around map position (6.5, 5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0056017 Jy
! Component: 100  -  total flux cleaned = 0.00703088 Jy
! Component: 150  -  total flux cleaned = 0.00822814 Jy
! Component: 200  -  total flux cleaned = 0.00862538 Jy
! Total flux subtracted in 200 components = 0.00862538 Jy
! Clean residual min=-0.004703 max=0.005591 Jy/beam
! Clean residual mean=0.000182 rms=0.001306 Jy/beam
! Combined flux in latest and established models = 2.95134 Jy
! Adding 28 model components to the UV plane model.
! The established model now contains 120 components and 2.95134 Jy
! Inverting map 
! Added new window around map position (-2, 7.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000821495 Jy
! Component: 100  -  total flux cleaned = 0.000182787 Jy
! Component: 150  -  total flux cleaned = -0.000240359 Jy
! Component: 200  -  total flux cleaned = -0.000239342 Jy
! Total flux subtracted in 200 components = -0.000239342 Jy
! Clean residual min=-0.004302 max=0.004964 Jy/beam
! Clean residual mean=0.000184 rms=0.001238 Jy/beam
! Combined flux in latest and established models = 2.9511 Jy
! Adding 24 model components to the UV plane model.
! The established model now contains 140 components and 2.9511 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.361 mas, bmaj=12.75 mas, bpa=-2.616 degrees
! Estimated noise=725.436 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000700334 Jy
! Component: 100  -  total flux cleaned = 0.000639603 Jy
! Component: 150  -  total flux cleaned = 0.000410534 Jy
! Component: 200  -  total flux cleaned = 0.000201492 Jy
! Total flux subtracted in 200 components = 0.000201492 Jy
! Clean residual min=-0.004122 max=0.005147 Jy/beam
! Clean residual mean=0.000426 rms=0.001769 Jy/beam
! Combined flux in latest and established models = 2.9513 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.000192479 Jy
! Component: 100  -  total flux cleaned = -0.000327113 Jy
! Component: 150  -  total flux cleaned = -0.000495482 Jy
! Component: 200  -  total flux cleaned = -0.000656046 Jy
! Total flux subtracted in 200 components = -0.000656046 Jy
! Clean residual min=-0.004071 max=0.005115 Jy/beam
! Clean residual mean=0.000436 rms=0.001777 Jy/beam
! Combined flux in latest and established models = 2.95064 Jy
! Adding 29 model components to the UV plane model.
! The established model now contains 169 components and 2.95064 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.495 mas, bmaj=7.185 mas, bpa=-1.129 degrees
! Estimated noise=550.373 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000688844 Jy
! Component: 100  -  total flux cleaned = -0.000685627 Jy
! Component: 150  -  total flux cleaned = -0.000684017 Jy
! Component: 200  -  total flux cleaned = -0.000775524 Jy
! Total flux subtracted in 200 components = -0.000775524 Jy
! Clean residual min=-0.004098 max=0.005082 Jy/beam
! Clean residual mean=0.000192 rms=0.001201 Jy/beam
! Combined flux in latest and established models = 2.94987 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 179 components and 2.94987 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.251679Jy  sigma=0.001166
! Fit after  self-cal, rms=0.251603Jy  sigma=0.001165
wmodel J0339-0146_S_2003_09_17_pus_map.mod
! Writing 179 model components to file: J0339-0146_S_2003_09_17_pus_map.mod
wobs J0339-0146_S_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J0339-0146_S_2003_09_17_pus_uvs.fits
wwins J0339-0146_S_2003_09_17_pus_map.win
! wwins: Wrote 5 windows to J0339-0146_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.00170377 Jy
! Component: 100  -  total flux cleaned = 0.00299008 Jy
! Component: 150  -  total flux cleaned = 0.00374003 Jy
! Component: 200  -  total flux cleaned = 0.00451595 Jy
! Component: 250  -  total flux cleaned = 0.00538576 Jy
! Component: 300  -  total flux cleaned = 0.00608638 Jy
! Component: 350  -  total flux cleaned = 0.00675921 Jy
! Component: 400  -  total flux cleaned = 0.00735152 Jy
! Component: 450  -  total flux cleaned = 0.0076977 Jy
! Component: 500  -  total flux cleaned = 0.00803535 Jy
! Component: 550  -  total flux cleaned = 0.00841875 Jy
! Component: 600  -  total flux cleaned = 0.00857951 Jy
! Component: 650  -  total flux cleaned = 0.00884203 Jy
! Component: 700  -  total flux cleaned = 0.00904732 Jy
! Component: 750  -  total flux cleaned = 0.00935069 Jy
! Component: 800  -  total flux cleaned = 0.00974672 Jy
! Component: 850  -  total flux cleaned = 0.00999024 Jy
! Component: 900  -  total flux cleaned = 0.0102785 Jy
! Component: 950  -  total flux cleaned = 0.0106094 Jy
! Component: 1000  -  total flux cleaned = 0.0107026 Jy
! Component: 1050  -  total flux cleaned = 0.0109786 Jy
! Component: 1100  -  total flux cleaned = 0.0111148 Jy
! Component: 1150  -  total flux cleaned = 0.0111596 Jy
! Component: 1200  -  total flux cleaned = 0.0113814 Jy
! Component: 1250  -  total flux cleaned = 0.0115567 Jy
! Component: 1300  -  total flux cleaned = 0.0116866 Jy
! Component: 1350  -  total flux cleaned = 0.0118145 Jy
! Component: 1400  -  total flux cleaned = 0.0118993 Jy
! Component: 1450  -  total flux cleaned = 0.0121081 Jy
! Component: 1500  -  total flux cleaned = 0.0122732 Jy
! Component: 1550  -  total flux cleaned = 0.012477 Jy
! Component: 1600  -  total flux cleaned = 0.0125583 Jy
! Component: 1650  -  total flux cleaned = 0.0127184 Jy
! Component: 1700  -  total flux cleaned = 0.0128371 Jy
! Component: 1750  -  total flux cleaned = 0.0129549 Jy
! Component: 1800  -  total flux cleaned = 0.0131104 Jy
! Component: 1850  -  total flux cleaned = 0.0133797 Jy
! Component: 1900  -  total flux cleaned = 0.0135698 Jy
! Component: 1950  -  total flux cleaned = 0.0136453 Jy
! Component: 2000  -  total flux cleaned = 0.0138698 Jy
! Total flux subtracted in 2048 components = 0.0139811 Jy
! Clean residual min=-0.001932 max=0.002170 Jy/beam
! Clean residual mean=0.000092 rms=0.000728 Jy/beam
! Combined flux in latest and established models = 2.96385 Jy
keep
! Adding 123 model components to the UV plane model.
! The established model now contains 302 components and 2.96385 Jy
wmap "J0339-0146_S_2003_09_17_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.495 x 7.185 at -1.129 degrees (North through East)
! Clean map  min=-0.0068985  max=2.2898 Jy/beam
! Writing clean map to FITS file: J0339-0146_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 2.28978 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000726171 
device "J0339-0146_S_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J0339-0146_S_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.0951409 0.0951409 0.190282 0.380564 0.761127 1.52225 3.04451 6.08902 12.178 24.3561 48.7122 97.4243
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0021 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.289 
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.495 x 7.185 at -1.129 degrees (North through East)
! Clean map  min=-0.0068985  max=2.2898 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0339-0146_S_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J0339-0146_S_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0339-0146_S_2003_09_17_pus_uvs.log closed on Tue May 22 21:09:02 2007