! Started logfile: J2348-1631_S_1999_12_20_pus_uvs.log on Wed Dec 19 18:13:12 2007
obs J2348-1631_S_1999_12_20_pus_uva.fits
! Reading UV FITS file: J2348-1631_S_1999_12_20_pus_uva.fits
! AN table 1: 14 integrations on 190 of 190 possible baselines.
! AN table 2: 53 integrations on 190 of 190 possible baselines.
! AN table 3: 148 integrations on 190 of 190 possible baselines.
! AN table 4: 36 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0898511 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2348-1631
! 
! 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.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2283 lines of history.
! 
! Reading 17140 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 J2348-1631_S_1999_12_20_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 244 telescope corrections were flagged in sub-array 1.
!  A total of 890 telescope corrections were flagged in sub-array 2.
!  A total of 1993 telescope corrections were flagged in sub-array 3.
!  A total of 466 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 244 telescope corrections were flagged in sub-array 1.
!  A total of 890 telescope corrections were flagged in sub-array 2.
!  A total of 1993 telescope corrections were flagged in sub-array 3.
!  A total of 466 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 244 telescope corrections were flagged in sub-array 1.
!  A total of 890 telescope corrections were flagged in sub-array 2.
!  A total of 1993 telescope corrections were flagged in sub-array 3.
!  A total of 466 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 244 telescope corrections were flagged in sub-array 1.
!  A total of 890 telescope corrections were flagged in sub-array 2.
!  A total of 1993 telescope corrections were flagged in sub-array 3.
!  A total of 466 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.570839Jy  sigma=0.010236
! Fit after  self-cal, rms=1.176337Jy  sigma=0.006772
! 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.033 mas, bmaj=5.018 mas, bpa=4.292 degrees
! Estimated noise=1430.54 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.20868 Jy
! Component: 100  -  total flux cleaned = 1.70188 Jy
! Total flux subtracted in 100 components = 1.70188 Jy
! Clean residual min=-0.100033 max=0.225201 Jy/beam
! Clean residual mean=0.001632 rms=0.029884 Jy/beam
! Combined flux in latest and established models = 1.70188 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 17 components and 1.70188 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.876002Jy  sigma=0.004291
! Fit after  self-cal, rms=0.870082Jy  sigma=0.004252
! Inverting map 
! Added new window around map position (2, -1).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.268916 Jy
! Component: 100  -  total flux cleaned = 0.408946 Jy
! Total flux subtracted in 100 components = 0.408946 Jy
! Clean residual min=-0.051673 max=0.086378 Jy/beam
! Clean residual mean=0.000118 rms=0.014383 Jy/beam
! Combined flux in latest and established models = 2.11082 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 31 components and 2.11082 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.785952Jy  sigma=0.003446
! Fit after  self-cal, rms=0.784643Jy  sigma=0.003432
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0919175 Jy
! Component: 100  -  total flux cleaned = 0.142738 Jy
! Total flux subtracted in 100 components = 0.142738 Jy
! Clean residual min=-0.044447 max=0.051586 Jy/beam
! Clean residual mean=-0.000395 rms=0.010653 Jy/beam
! Combined flux in latest and established models = 2.25356 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 52 components and 2.25356 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.772572Jy  sigma=0.003325
! Fit after  self-cal, rms=0.772133Jy  sigma=0.003322
! 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.223 mas, bmaj=3.831 mas, bpa=10.04 degrees
! Estimated noise=977.902 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.0625049 Jy
! Component: 100  -  total flux cleaned = 0.0973131 Jy
! Component: 150  -  total flux cleaned = 0.11749 Jy
! Component: 200  -  total flux cleaned = 0.121175 Jy
! Total flux subtracted in 200 components = 0.121175 Jy
! Clean residual min=-0.099936 max=0.047039 Jy/beam
! Clean residual mean=-0.008595 rms=0.023179 Jy/beam
! Combined flux in latest and established models = 2.37473 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 69 components and 2.37473 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.766543Jy  sigma=0.003289
! Fit after  self-cal, rms=0.766395Jy  sigma=0.003288
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        1.04     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.01     KP        1.04     LA        1.01     
!   MC        1.00*    MK        1.04     NY        1.00*    ON        1.00*    
!   OV        1.06     PT        1.06     SC        1.00*    TS        1.01     
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.02     
!   HN        1.11     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.16     MK        1.00*    NY        1.00*    ON        1.07     
!   OV        1.00*    PT        1.00*    SC        1.02     TS        1.00*    
!   WF        0.97     WZ        1.03     GN        1.00*    NL        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        0.97     GC        1.00*    HH        1.00*    
!   HN        1.00     KK        1.00*    KP        0.97     LA        0.98     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.99     PT        1.02     SC        0.99     TS        1.00*    
!   WF        1.00     WZ        1.00*    GN        0.94     NL        0.97     
! 
! 
! Correcting IF 2.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        1.09     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        0.92     KP        1.03     LA        1.01     
!   MC        1.00*    MK        1.02     NY        1.00*    ON        1.00*    
!   OV        1.02     PT        1.04     SC        1.00*    TS        1.01     
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.02     
!   HN        1.17     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.13     MK        1.00*    NY        1.00*    ON        1.08     
!   OV        1.00*    PT        1.00*    SC        1.02     TS        1.00*    
!   WF        0.99     WZ        1.09     GN        1.00*    NL        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.03     GC        1.00*    HH        1.00*    
!   HN        1.00     KK        1.00*    KP        0.99     LA        0.95     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.98     PT        0.98     SC        0.97     TS        1.00*    
!   WF        0.98     WZ        1.00*    GN        0.82     NL        1.22     
! 
! 
! Correcting IF 3.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        1.06     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        0.96     KP        1.12     LA        1.05     
!   MC        1.00*    MK        1.03     NY        1.00*    ON        1.00*    
!   OV        1.07     PT        1.04     SC        1.00*    TS        0.96     
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.06     
!   HN        1.18     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.36     MK        1.00*    NY        1.00*    ON        1.11     
!   OV        1.00*    PT        1.00*    SC        1.08     TS        1.00*    
!   WF        0.96     WZ        1.14     GN        1.00*    NL        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.02     GC        1.00*    HH        1.00*    
!   HN        0.98     KK        1.00*    KP        1.03     LA        1.00     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.02     PT        0.98     SC        0.97     TS        1.00*    
!   WF        1.01     WZ        1.00*    GN        0.92     NL        0.96     
! 
! 
! Correcting IF 4.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.04     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        0.95     KP        1.03     LA        1.05     
!   MC        1.00*    MK        1.06     NY        1.00*    ON        1.00*    
!   OV        1.01     PT        1.15     SC        1.00*    TS        0.99     
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.04     
!   HN        1.14     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.19     MK        1.00*    NY        1.00*    ON        1.09     
!   OV        1.00*    PT        1.00*    SC        1.05     TS        1.00*    
!   WF        1.00     WZ        1.13     GN        1.00*    NL        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        1.01     GC        1.00*    HH        1.00*    
!   HN        1.00     KK        1.00*    KP        1.00     LA        1.00     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.95     PT        0.99     SC        0.99     TS        1.00*    
!   WF        1.03     WZ        1.00*    GN        0.93     NL        0.96     
! 
! 
! Fit before self-cal, rms=0.766395Jy  sigma=0.003288
! Fit after  self-cal, rms=0.437939Jy  sigma=0.002192
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.242 mas, bmaj=3.791 mas, bpa=8.809 degrees
! Estimated noise=991.842 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 (5.5, -0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0144052 Jy
! Component: 100  -  total flux cleaned = 0.0143966 Jy
! Component: 150  -  total flux cleaned = 0.0140581 Jy
! Component: 200  -  total flux cleaned = 0.0137571 Jy
! Total flux subtracted in 200 components = 0.0137571 Jy
! Clean residual min=-0.010873 max=0.009197 Jy/beam
! Clean residual mean=-0.000129 rms=0.002588 Jy/beam
! Combined flux in latest and established models = 2.38849 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 81 components and 2.38849 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.437070Jy  sigma=0.002186
! Fit after  self-cal, rms=0.457046Jy  sigma=0.002155
! 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.457046Jy  sigma=0.002155
! Fit after  self-cal, rms=0.465177Jy  sigma=0.002152
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.245 mas, bmaj=3.788 mas, bpa=8.826 degrees
! Estimated noise=993.949 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0103511 Jy
! Component: 100  -  total flux cleaned = 0.010075 Jy
! Component: 150  -  total flux cleaned = 0.00984429 Jy
! Component: 200  -  total flux cleaned = 0.00963839 Jy
! Total flux subtracted in 200 components = 0.00963839 Jy
! Clean residual min=-0.010073 max=0.008553 Jy/beam
! Clean residual mean=-0.000192 rms=0.002480 Jy/beam
! Combined flux in latest and established models = 2.39813 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 92 components and 2.39813 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.464823Jy  sigma=0.002149
! Fit after  self-cal, rms=0.467241Jy  sigma=0.002148
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.00193113 Jy
! Component: 100  -  total flux cleaned = 0.00153915 Jy
! Component: 150  -  total flux cleaned = 0.00136754 Jy
! Component: 200  -  total flux cleaned = 0.00120832 Jy
! Total flux subtracted in 200 components = 0.00120832 Jy
! Clean residual min=-0.009657 max=0.008232 Jy/beam
! Clean residual mean=-0.000282 rms=0.002432 Jy/beam
! Combined flux in latest and established models = 2.39934 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 100 components and 2.39934 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.467120Jy  sigma=0.002147
! Fit after  self-cal, rms=0.467092Jy  sigma=0.002147
! 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.467092Jy  sigma=0.002147
! Fit after  self-cal, rms=0.469102Jy  sigma=0.002143
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.246 mas, bmaj=3.771 mas, bpa=9.203 degrees
! Estimated noise=995.502 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00840646 Jy
! Component: 100  -  total flux cleaned = 0.00880494 Jy
! Component: 150  -  total flux cleaned = 0.00880078 Jy
! Component: 200  -  total flux cleaned = 0.00866 Jy
! Total flux subtracted in 200 components = 0.00866 Jy
! Clean residual min=-0.008480 max=0.007920 Jy/beam
! Clean residual mean=-0.000194 rms=0.002303 Jy/beam
! Combined flux in latest and established models = 2.408 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 103 components and 2.408 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.468904Jy  sigma=0.002142
! Fit after  self-cal, rms=0.469047Jy  sigma=0.002142
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.0019799 Jy
! Component: 100  -  total flux cleaned = 0.00198388 Jy
! Component: 150  -  total flux cleaned = 0.00210517 Jy
! Component: 200  -  total flux cleaned = 0.0019928 Jy
! Total flux subtracted in 200 components = 0.0019928 Jy
! Clean residual min=-0.008626 max=0.007849 Jy/beam
! Clean residual mean=-0.000251 rms=0.002263 Jy/beam
! Combined flux in latest and established models = 2.40999 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 107 components and 2.40999 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.468982Jy  sigma=0.002141
! Fit after  self-cal, rms=0.468967Jy  sigma=0.002141
! 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.468967Jy  sigma=0.002141
! Fit after  self-cal, rms=0.469107Jy  sigma=0.002138
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=9.801 mas, bmaj=14.14 mas, bpa=-10.75 degrees
! Estimated noise=1354.72 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00689219 Jy
! Component: 100  -  total flux cleaned = 0.00701905 Jy
! Component: 150  -  total flux cleaned = 0.00684064 Jy
! Component: 200  -  total flux cleaned = 0.00676464 Jy
! Total flux subtracted in 200 components = 0.00676464 Jy
! Clean residual min=-0.007586 max=0.007194 Jy/beam
! Clean residual mean=-0.000521 rms=0.002577 Jy/beam
! Combined flux in latest and established models = 2.41676 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 127 components and 2.41676 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.469049Jy  sigma=0.002137
! Fit after  self-cal, rms=0.468978Jy  sigma=0.002137
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.000888639 Jy
! Component: 100  -  total flux cleaned = 0.00109506 Jy
! Component: 150  -  total flux cleaned = 0.00109619 Jy
! Component: 200  -  total flux cleaned = 0.00102948 Jy
! Total flux subtracted in 200 components = 0.00102948 Jy
! Clean residual min=-0.007558 max=0.007454 Jy/beam
! Clean residual mean=-0.000579 rms=0.002597 Jy/beam
! Combined flux in latest and established models = 2.41779 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 134 components and 2.41779 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.468962Jy  sigma=0.002137
! Fit after  self-cal, rms=0.468968Jy  sigma=0.002137
! 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.245 mas, bmaj=3.757 mas, bpa=9.509 degrees
! Estimated noise=996.24 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.245 x 3.757 at 9.509 degrees (North through East)
! Clean map  min=-0.0075189  max=1.3981 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.468968Jy  sigma=0.002137
! Fit after  self-cal, rms=0.672377Jy  sigma=0.001438
! Inverting map and beam 
! Estimated beam: bmin=2.245 mas, bmaj=3.77 mas, bpa=9.185 degrees
! Estimated noise=996.152 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0033668 Jy
! Component: 100  -  total flux cleaned = 0.00319198 Jy
! Component: 150  -  total flux cleaned = 0.00304391 Jy
! Component: 200  -  total flux cleaned = 0.00304367 Jy
! Total flux subtracted in 200 components = 0.00304367 Jy
! Clean residual min=-0.007291 max=0.010708 Jy/beam
! Clean residual mean=0.000295 rms=0.002416 Jy/beam
! Combined flux in latest and established models = 2.42083 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 143 components and 2.42083 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.672218Jy  sigma=0.001437
! Fit after  self-cal, rms=0.672075Jy  sigma=0.001437
! Inverting map 
! Added new window around map position (15, -49).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00907298 Jy
! Component: 100  -  total flux cleaned = 0.0112004 Jy
! Component: 150  -  total flux cleaned = 0.011491 Jy
! Component: 200  -  total flux cleaned = 0.0116123 Jy
! Total flux subtracted in 200 components = 0.0116123 Jy
! Clean residual min=-0.006827 max=0.008272 Jy/beam
! Clean residual mean=-0.000054 rms=0.001987 Jy/beam
! Combined flux in latest and established models = 2.43244 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 155 components and 2.43244 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.671673Jy  sigma=0.001436
! Fit after  self-cal, rms=0.671378Jy  sigma=0.001436
! Inverting map 
! Added new window around map position (-22, -35.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00617761 Jy
! Component: 100  -  total flux cleaned = 0.00701143 Jy
! Component: 150  -  total flux cleaned = 0.00677534 Jy
! Component: 200  -  total flux cleaned = 0.00677772 Jy
! Total flux subtracted in 200 components = 0.00677772 Jy
! Clean residual min=-0.006695 max=0.007003 Jy/beam
! Clean residual mean=-0.000186 rms=0.001777 Jy/beam
! Combined flux in latest and established models = 2.43922 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 171 components and 2.43922 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.670962Jy  sigma=0.001436
! Fit after  self-cal, rms=0.670750Jy  sigma=0.001436
! 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.670750Jy  sigma=0.001436
! Fit after  self-cal, rms=0.715866Jy  sigma=0.001434
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.097 mas, bmaj=5.073 mas, bpa=2.764 degrees
! Estimated noise=1474.94 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.25339 Jy
! Component: 100  -  total flux cleaned = 1.76508 Jy
! Component: 150  -  total flux cleaned = 2.01329 Jy
! Component: 200  -  total flux cleaned = 2.1406 Jy
! Total flux subtracted in 200 components = 2.1406 Jy
! Clean residual min=-0.027179 max=0.062923 Jy/beam
! Clean residual mean=0.000884 rms=0.009210 Jy/beam
! Combined flux in latest and established models = 2.1406 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 24 model components to the UV plane model.
! The established model now contains 24 components and 2.1406 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.247 mas, bmaj=3.775 mas, bpa=9.082 degrees
! Estimated noise=997.823 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.1138 Jy
! Component: 100  -  total flux cleaned = 0.177664 Jy
! Component: 150  -  total flux cleaned = 0.215074 Jy
! Component: 200  -  total flux cleaned = 0.238152 Jy
! Total flux subtracted in 200 components = 0.238152 Jy
! Clean residual min=-0.009805 max=0.014315 Jy/beam
! Clean residual mean=0.001864 rms=0.003326 Jy/beam
! Combined flux in latest and established models = 2.37875 Jy
! Adding 50 model components to the UV plane model.
! The established model now contains 72 components and 2.37875 Jy
! Inverting map 
! Added new window around map position (-2.5, -5.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.016379 Jy
! Component: 100  -  total flux cleaned = 0.0284571 Jy
! Component: 150  -  total flux cleaned = 0.0379376 Jy
! Component: 200  -  total flux cleaned = 0.0454395 Jy
! Total flux subtracted in 200 components = 0.0454395 Jy
! Clean residual min=-0.007671 max=0.008581 Jy/beam
! Clean residual mean=0.000597 rms=0.002305 Jy/beam
! Combined flux in latest and established models = 2.42419 Jy
! Adding 25 model components to the UV plane model.
! The established model now contains 89 components and 2.42419 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=9.783 mas, bmaj=14.18 mas, bpa=-10.45 degrees
! Estimated noise=1358.5 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0101408 Jy
! Component: 100  -  total flux cleaned = 0.0158801 Jy
! Component: 150  -  total flux cleaned = 0.0195881 Jy
! Component: 200  -  total flux cleaned = 0.0220765 Jy
! Total flux subtracted in 200 components = 0.0220765 Jy
! Clean residual min=-0.007017 max=0.007553 Jy/beam
! Clean residual mean=-0.000028 rms=0.002436 Jy/beam
! Combined flux in latest and established models = 2.44626 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.00120279 Jy
! Component: 100  -  total flux cleaned = 0.00137113 Jy
! Component: 150  -  total flux cleaned = 0.00147255 Jy
! Component: 200  -  total flux cleaned = 0.00151991 Jy
! Total flux subtracted in 200 components = 0.00151991 Jy
! Clean residual min=-0.006975 max=0.007382 Jy/beam
! Clean residual mean=-0.000133 rms=0.002398 Jy/beam
! Combined flux in latest and established models = 2.44778 Jy
! Adding 26 model components to the UV plane model.
! The established model now contains 111 components and 2.44778 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.247 mas, bmaj=3.775 mas, bpa=9.082 degrees
! Estimated noise=997.823 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00205765 Jy
! Component: 100  -  total flux cleaned = -0.00239534 Jy
! Component: 150  -  total flux cleaned = -0.00297067 Jy
! Component: 200  -  total flux cleaned = -0.00322196 Jy
! Total flux subtracted in 200 components = -0.00322196 Jy
! Clean residual min=-0.007017 max=0.007145 Jy/beam
! Clean residual mean=0.000040 rms=0.001945 Jy/beam
! Combined flux in latest and established models = 2.44456 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 124 components and 2.44456 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.715122Jy  sigma=0.001435
! Fit after  self-cal, rms=0.714710Jy  sigma=0.001434
wmodel J2348-1631_S_1999_12_20_pus_map.mod
! Writing 124 model components to file: J2348-1631_S_1999_12_20_pus_map.mod
wobs J2348-1631_S_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J2348-1631_S_1999_12_20_pus_uvs.fits
wwins J2348-1631_S_1999_12_20_pus_map.win
! wwins: Wrote 6 windows to J2348-1631_S_1999_12_20_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.000293662 Jy
! Component: 100  -  total flux cleaned = 0.000414928 Jy
! Component: 150  -  total flux cleaned = 0.000629181 Jy
! Component: 200  -  total flux cleaned = 0.000729321 Jy
! Component: 250  -  total flux cleaned = 0.000924226 Jy
! Component: 300  -  total flux cleaned = 0.00111008 Jy
! Component: 350  -  total flux cleaned = 0.00128947 Jy
! Component: 400  -  total flux cleaned = 0.00129022 Jy
! Component: 450  -  total flux cleaned = 0.00137218 Jy
! Component: 500  -  total flux cleaned = 0.00129142 Jy
! Component: 550  -  total flux cleaned = 0.001214 Jy
! Component: 600  -  total flux cleaned = 0.00121366 Jy
! Component: 650  -  total flux cleaned = 0.00113947 Jy
! Component: 700  -  total flux cleaned = 0.00121081 Jy
! Component: 750  -  total flux cleaned = 0.00128086 Jy
! Component: 800  -  total flux cleaned = 0.00128069 Jy
! Component: 850  -  total flux cleaned = 0.00141479 Jy
! Component: 900  -  total flux cleaned = 0.00141484 Jy
! Component: 950  -  total flux cleaned = 0.00154394 Jy
! Component: 1000  -  total flux cleaned = 0.00154393 Jy
! Component: 1050  -  total flux cleaned = 0.0016681 Jy
! Component: 1100  -  total flux cleaned = 0.00166792 Jy
! Component: 1150  -  total flux cleaned = 0.00184764 Jy
! Component: 1200  -  total flux cleaned = 0.00184753 Jy
! Component: 1250  -  total flux cleaned = 0.00196345 Jy
! Component: 1300  -  total flux cleaned = 0.00213364 Jy
! Component: 1350  -  total flux cleaned = 0.00218918 Jy
! Component: 1400  -  total flux cleaned = 0.00224456 Jy
! Component: 1450  -  total flux cleaned = 0.0024073 Jy
! Component: 1500  -  total flux cleaned = 0.00246064 Jy
! Component: 1550  -  total flux cleaned = 0.00256664 Jy
! Component: 1600  -  total flux cleaned = 0.00267088 Jy
! Component: 1650  -  total flux cleaned = 0.00282472 Jy
! Component: 1700  -  total flux cleaned = 0.00287536 Jy
! Component: 1750  -  total flux cleaned = 0.00302505 Jy
! Component: 1800  -  total flux cleaned = 0.00312312 Jy
! Component: 1850  -  total flux cleaned = 0.00317126 Jy
! Component: 1900  -  total flux cleaned = 0.00321936 Jy
! Component: 1950  -  total flux cleaned = 0.00331434 Jy
! Component: 2000  -  total flux cleaned = 0.00336147 Jy
! Total flux subtracted in 2048 components = 0.00340821 Jy
! Clean residual min=-0.002718 max=0.002868 Jy/beam
! Clean residual mean=-0.000018 rms=0.000898 Jy/beam
! Combined flux in latest and established models = 2.44797 Jy
keep
! Adding 144 model components to the UV plane model.
! The established model now contains 268 components and 2.44797 Jy
![Exited script file: muppet]
wmap "J2348-1631_S_1999_12_20_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.247 x 3.775 at 9.082 degrees (North through East)
! Clean map  min=-0.005869  max=1.4089 Jy/beam
! Writing clean map to FITS file: J2348-1631_S_1999_12_20_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.40886 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000894211 
device "J2348-1631_S_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J2348-1631_S_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.190412 0.190412 0.380824 0.761647 1.52329 3.04659 6.09318 12.1864 24.3727 48.7454 97.4908
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0026 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.408 
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.247 x 3.775 at 9.082 degrees (North through East)
! Clean map  min=-0.005869  max=1.4089 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2348-1631_S_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J2348-1631_S_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2348-1631_S_1999_12_20_pus_uvs.log closed on Wed Dec 19 18:13:24 2007