! Started logfile: J0339-0146_S_2000_12_04_pus_uvs.log on Thu Oct 18 15:51:09 2007
obs J0339-0146_S_2000_12_04_pus_uva.fits
! Reading UV FITS file: J0339-0146_S_2000_12_04_pus_uva.fits
! AN table 1: 13 integrations on 190 of 190 possible baselines.
! AN table 2: 84 integrations on 190 of 190 possible baselines.
! AN table 3: 150 integrations on 190 of 190 possible baselines.
! AN table 4: 166 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.122722 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0339-0146
! 
! 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 2172 lines of history.
! 
! Reading 38520 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 J0339-0146_S_2000_12_04_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 227 telescope corrections were flagged in sub-array 1.
!  A total of 986 telescope corrections were flagged in sub-array 2.
!  A total of 2072 telescope corrections were flagged in sub-array 3.
!  A total of 2450 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 227 telescope corrections were flagged in sub-array 1.
!  A total of 986 telescope corrections were flagged in sub-array 2.
!  A total of 2073 telescope corrections were flagged in sub-array 3.
!  A total of 2450 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 227 telescope corrections were flagged in sub-array 1.
!  A total of 986 telescope corrections were flagged in sub-array 2.
!  A total of 2042 telescope corrections were flagged in sub-array 3.
!  A total of 2450 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 227 telescope corrections were flagged in sub-array 1.
!  A total of 986 telescope corrections were flagged in sub-array 2.
!  A total of 2073 telescope corrections were flagged in sub-array 3.
!  A total of 2462 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.259510Jy  sigma=0.011456
! Fit after  self-cal, rms=0.620314Jy  sigma=0.005779
! 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.918 mas, bmaj=4.43 mas, bpa=3.763 degrees
! Estimated noise=1156.51 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.879404 Jy
! Component: 100  -  total flux cleaned = 1.21276 Jy
! Total flux subtracted in 100 components = 1.21276 Jy
! Clean residual min=-0.040322 max=0.157328 Jy/beam
! Clean residual mean=0.001834 rms=0.015014 Jy/beam
! Combined flux in latest and established models = 1.21276 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 16 components and 1.21276 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.478716Jy  sigma=0.004441
! Fit after  self-cal, rms=0.477025Jy  sigma=0.004429
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.184134 Jy
! Component: 100  -  total flux cleaned = 0.285835 Jy
! Total flux subtracted in 100 components = 0.285835 Jy
! Clean residual min=-0.029403 max=0.076592 Jy/beam
! Clean residual mean=0.000779 rms=0.008342 Jy/beam
! Combined flux in latest and established models = 1.4986 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 23 components and 1.4986 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.342053Jy  sigma=0.003079
! Fit after  self-cal, rms=0.340988Jy  sigma=0.003071
! Inverting map 
! Added new window around map position (2.5, 0.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0801848 Jy
! Component: 100  -  total flux cleaned = 0.128329 Jy
! Total flux subtracted in 100 components = 0.128329 Jy
! Clean residual min=-0.023632 max=0.026967 Jy/beam
! Clean residual mean=0.000295 rms=0.006186 Jy/beam
! Combined flux in latest and established models = 1.62693 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 34 components and 1.62693 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.312360Jy  sigma=0.002759
! Fit after  self-cal, rms=0.311260Jy  sigma=0.002750
! 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=3.035 mas, bmaj=7.728 mas, bpa=-4.538 degrees
! Estimated noise=421.335 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.0524738 Jy
! Component: 100  -  total flux cleaned = 0.0757808 Jy
! Component: 150  -  total flux cleaned = 0.0870768 Jy
! Component: 200  -  total flux cleaned = 0.0928612 Jy
! Total flux subtracted in 200 components = 0.0928612 Jy
! Clean residual min=-0.018110 max=0.018009 Jy/beam
! Clean residual mean=-0.000186 rms=0.004358 Jy/beam
! Combined flux in latest and established models = 1.71979 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 53 components and 1.71979 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.304852Jy  sigma=0.002665
! Fit after  self-cal, rms=0.304516Jy  sigma=0.002661
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.96     GC        0.95     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.04     KP        0.92     
!   LA        1.01     MA        1.00*    MC        1.00*    MK        1.04     
!   NL        0.98     NY        1.00*    OV        0.96     PT        0.98     
!   SC        0.95     TS        1.00*    WF        1.00     WZ        1.00*    
! 
!  A total of 81 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00     GC        1.00*    GG        1.00*    
!   HH        1.09     HN        1.00     KK        1.00*    KP        1.08     
!   LA        1.03     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        0.99     NY        1.53     OV        1.00*    PT        1.01     
!   SC        1.01     TS        1.00*    WF        1.16     WZ        0.96     
! 
!  A total of 33 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.95     FD        0.97     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        0.94     KP        0.99     
!   LA        1.03     MA        1.00*    MC        1.00*    MK        0.95     
!   NL        0.95     NY        1.00*    OV        0.97     PT        0.98     
!   SC        1.05     TS        1.47     WF        0.96     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.97     GC        0.96     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.08     KP        0.95     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        1.04     
!   NL        0.95     NY        1.00*    OV        0.94     PT        0.99     
!   SC        0.93     TS        1.00*    WF        1.01     WZ        1.00*    
! 
!  A total of 81 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.02     GC        1.00*    GG        1.00*    
!   HH        1.03     HN        0.99     KK        1.00*    KP        1.04     
!   LA        1.01     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        0.96     NY        1.43     OV        1.00*    PT        1.03     
!   SC        0.98     TS        1.00*    WF        1.01     WZ        0.96     
! 
!  A total of 33 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.95     FD        0.98     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        1.03     KK        1.05     KP        0.98     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        0.96     
!   NL        0.92     NY        1.00*    OV        0.94     PT        0.99     
!   SC        1.02     TS        1.81     WF        1.02     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.13     GC        0.90     GG        1.00*    
!   HH        1.00*    HN        0.95     KK        1.02     KP        1.01     
!   LA        1.04     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        1.06     NY        1.00*    OV        0.96     PT        1.00     
!   SC        0.88     TS        1.00*    WF        0.88     WZ        1.00*    
! 
!  A total of 81 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.07     GC        1.00*    GG        1.00*    
!   HH        1.03     HN        0.95     KK        1.00*    KP        1.07     
!   LA        1.07     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.16     NY        2.08     OV        1.00*    PT        1.08     
!   SC        0.98     TS        1.00*    WF        0.97     WZ        0.78     
! 
!  A total of 33 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.90     FD        0.99     GC        1.10     GG        1.00*    
!   HH        1.00*    HN        3.18     KK        0.98     KP        0.98     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        0.94     
!   NL        1.62     NY        1.00*    OV        1.04     PT        1.00     
!   SC        1.05     TS        1.12     WF        1.25     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.98     GC        0.94     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.07     KP        0.97     
!   LA        1.00     MA        1.00*    MC        1.00*    MK        1.03     
!   NL        0.99     NY        1.00*    OV        0.98     PT        1.01     
!   SC        1.00     TS        1.00*    WF        1.02     WZ        1.00*    
! 
!  A total of 81 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.02     GC        1.00*    GG        1.00*    
!   HH        0.97     HN        1.01     KK        1.00*    KP        1.03     
!   LA        1.02     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.01     NY        2.32     OV        1.00*    PT        1.00     
!   SC        1.03     TS        1.00*    WF        1.03     WZ        0.95     
! 
!  A total of 27 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.94     FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.03     KK        1.04     KP        0.99     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        0.96     
!   NL        0.97     NY        1.00*    OV        0.99     PT        0.99     
!   SC        1.07     TS        1.12     WF        1.00     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.304516Jy  sigma=0.002661
! Fit after  self-cal, rms=0.338205Jy  sigma=0.002457
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.075 mas, bmaj=7.85 mas, bpa=-5.059 degrees
! Estimated noise=425.001 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.00447422 Jy
! Component: 100  -  total flux cleaned = 0.00427866 Jy
! Component: 150  -  total flux cleaned = 0.00382578 Jy
! Component: 200  -  total flux cleaned = 0.00348279 Jy
! Total flux subtracted in 200 components = 0.00348279 Jy
! Clean residual min=-0.005022 max=0.007436 Jy/beam
! Clean residual mean=0.000384 rms=0.001524 Jy/beam
! Combined flux in latest and established models = 1.72327 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 58 components and 1.72327 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.337944Jy  sigma=0.002455
! Fit after  self-cal, rms=0.340730Jy  sigma=0.002453
! 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.340730Jy  sigma=0.002453
! Fit after  self-cal, rms=0.341428Jy  sigma=0.002453
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.075 mas, bmaj=7.832 mas, bpa=-5.045 degrees
! Estimated noise=425.1 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00512126 Jy
! Component: 100  -  total flux cleaned = 0.00527101 Jy
! Component: 150  -  total flux cleaned = 0.005603 Jy
! Component: 200  -  total flux cleaned = 0.0056023 Jy
! Total flux subtracted in 200 components = 0.0056023 Jy
! Clean residual min=-0.004973 max=0.007502 Jy/beam
! Clean residual mean=0.000376 rms=0.001490 Jy/beam
! Combined flux in latest and established models = 1.72887 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 60 components and 1.72887 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.341283Jy  sigma=0.002452
! Fit after  self-cal, rms=0.341263Jy  sigma=0.002451
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 (6.5, 7.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00716616 Jy
! Component: 100  -  total flux cleaned = 0.0088608 Jy
! Component: 150  -  total flux cleaned = 0.00886621 Jy
! Component: 200  -  total flux cleaned = 0.00875549 Jy
! Total flux subtracted in 200 components = 0.00875549 Jy
! Clean residual min=-0.004697 max=0.005418 Jy/beam
! Clean residual mean=0.000277 rms=0.001331 Jy/beam
! Combined flux in latest and established models = 1.73763 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 81 components and 1.73763 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.341087Jy  sigma=0.002449
! Fit after  self-cal, rms=0.341072Jy  sigma=0.002449
! 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.341072Jy  sigma=0.002449
! Fit after  self-cal, rms=0.341057Jy  sigma=0.002448
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.077 mas, bmaj=7.826 mas, bpa=-5.032 degrees
! Estimated noise=425.288 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00455135 Jy
! Component: 100  -  total flux cleaned = 0.00543596 Jy
! Component: 150  -  total flux cleaned = 0.0057558 Jy
! Component: 200  -  total flux cleaned = 0.00584924 Jy
! Total flux subtracted in 200 components = 0.00584924 Jy
! Clean residual min=-0.004309 max=0.004924 Jy/beam
! Clean residual mean=0.000263 rms=0.001249 Jy/beam
! Combined flux in latest and established models = 1.74348 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 82 components and 1.74348 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.340970Jy  sigma=0.002447
! Fit after  self-cal, rms=0.340970Jy  sigma=0.002447
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.00138913 Jy
! Component: 100  -  total flux cleaned = 0.001665 Jy
! Component: 150  -  total flux cleaned = 0.0016646 Jy
! Component: 200  -  total flux cleaned = 0.00166224 Jy
! Total flux subtracted in 200 components = 0.00166224 Jy
! Clean residual min=-0.004099 max=0.004969 Jy/beam
! Clean residual mean=0.000244 rms=0.001236 Jy/beam
! Combined flux in latest and established models = 1.74514 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 87 components and 1.74514 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.340924Jy  sigma=0.002446
! Fit after  self-cal, rms=0.340923Jy  sigma=0.002446
! 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.340923Jy  sigma=0.002446
! Fit after  self-cal, rms=0.340674Jy  sigma=0.002445
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.235 mas, bmaj=12.5 mas, bpa=-3.07 degrees
! Estimated noise=509.809 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00288335 Jy
! Component: 100  -  total flux cleaned = 0.00389482 Jy
! Component: 150  -  total flux cleaned = 0.0040839 Jy
! Component: 200  -  total flux cleaned = 0.00414326 Jy
! Total flux subtracted in 200 components = 0.00414326 Jy
! Clean residual min=-0.004212 max=0.006451 Jy/beam
! Clean residual mean=0.000433 rms=0.001593 Jy/beam
! Combined flux in latest and established models = 1.74928 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 101 components and 1.74928 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.340669Jy  sigma=0.002445
! Fit after  self-cal, rms=0.340666Jy  sigma=0.002445
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.000593717 Jy
! Component: 100  -  total flux cleaned = 0.000845748 Jy
! Component: 150  -  total flux cleaned = 0.000929767 Jy
! Component: 200  -  total flux cleaned = 0.000978858 Jy
! Total flux subtracted in 200 components = 0.000978858 Jy
! Clean residual min=-0.004049 max=0.006431 Jy/beam
! Clean residual mean=0.000413 rms=0.001604 Jy/beam
! Combined flux in latest and established models = 1.75026 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 112 components and 1.75026 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.340663Jy  sigma=0.002445
! Fit after  self-cal, rms=0.340661Jy  sigma=0.002445
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Estimated beam: bmin=3.078 mas, bmaj=7.82 mas, bpa=-5.017 degrees
! Estimated noise=425.423 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.078 x 7.82 at -5.017 degrees (North through East)
! Clean map  min=-0.0040212  max=1.3258 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.340661Jy  sigma=0.002445
! Fit after  self-cal, rms=0.455864Jy  sigma=0.002147
! Inverting map and beam 
! Estimated beam: bmin=3.082 mas, bmaj=7.821 mas, bpa=-5.006 degrees
! Estimated noise=425.683 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000618024 Jy
! Component: 100  -  total flux cleaned = -0.000781479 Jy
! Component: 150  -  total flux cleaned = -0.000779754 Jy
! Component: 200  -  total flux cleaned = -0.000844351 Jy
! Total flux subtracted in 200 components = -0.000844351 Jy
! Clean residual min=-0.003694 max=0.004491 Jy/beam
! Clean residual mean=0.000106 rms=0.001161 Jy/beam
! Combined flux in latest and established models = 1.74942 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 121 components and 1.74942 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.455831Jy  sigma=0.002147
! Fit after  self-cal, rms=0.455839Jy  sigma=0.002147
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 6.92777e-05 Jy
! Component: 100  -  total flux cleaned = 6.65377e-06 Jy
! Component: 150  -  total flux cleaned = 7.19815e-06 Jy
! Component: 200  -  total flux cleaned = 7.08319e-06 Jy
! Total flux subtracted in 200 components = 7.08319e-06 Jy
! Clean residual min=-0.003663 max=0.004419 Jy/beam
! Clean residual mean=0.000106 rms=0.001154 Jy/beam
! Combined flux in latest and established models = 1.74942 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 126 components and 1.74942 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.455817Jy  sigma=0.002147
! Fit after  self-cal, rms=0.455818Jy  sigma=0.002147
! 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.455818Jy  sigma=0.002147
! Fit after  self-cal, rms=0.455479Jy  sigma=0.002147
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.977 mas, bmaj=4.556 mas, bpa=3.755 degrees
! Estimated noise=1206.26 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.904895 Jy
! Component: 100  -  total flux cleaned = 1.24118 Jy
! Component: 150  -  total flux cleaned = 1.4117 Jy
! Component: 200  -  total flux cleaned = 1.5119 Jy
! Total flux subtracted in 200 components = 1.5119 Jy
! Clean residual min=-0.018477 max=0.053082 Jy/beam
! Clean residual mean=0.000989 rms=0.005781 Jy/beam
! Combined flux in latest and established models = 1.5119 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 31 model components to the UV plane model.
! The established model now contains 31 components and 1.5119 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.084 mas, bmaj=7.823 mas, bpa=-5.016 degrees
! Estimated noise=425.718 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.115614 Jy
! Component: 100  -  total flux cleaned = 0.166982 Jy
! Component: 150  -  total flux cleaned = 0.192957 Jy
! Component: 200  -  total flux cleaned = 0.207877 Jy
! Total flux subtracted in 200 components = 0.207877 Jy
! Clean residual min=-0.004920 max=0.009115 Jy/beam
! Clean residual mean=0.000445 rms=0.001816 Jy/beam
! Combined flux in latest and established models = 1.71978 Jy
! Adding 43 model components to the UV plane model.
! The established model now contains 70 components and 1.71978 Jy
! Inverting map 
! Added new window around map position (-2.5, 1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0101803 Jy
! Component: 100  -  total flux cleaned = 0.0171051 Jy
! Component: 150  -  total flux cleaned = 0.0219388 Jy
! Component: 200  -  total flux cleaned = 0.0253398 Jy
! Total flux subtracted in 200 components = 0.0253398 Jy
! Clean residual min=-0.003857 max=0.004718 Jy/beam
! Clean residual mean=0.000146 rms=0.001171 Jy/beam
! Combined flux in latest and established models = 1.74512 Jy
! Adding 28 model components to the UV plane model.
! The established model now contains 92 components and 1.74512 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.238 mas, bmaj=12.51 mas, bpa=-3.143 degrees
! Estimated noise=509.43 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00261694 Jy
! Component: 100  -  total flux cleaned = 0.00326079 Jy
! Component: 150  -  total flux cleaned = 0.00339717 Jy
! Component: 200  -  total flux cleaned = 0.00350814 Jy
! Total flux subtracted in 200 components = 0.00350814 Jy
! Clean residual min=-0.003827 max=0.005459 Jy/beam
! Clean residual mean=0.000206 rms=0.001620 Jy/beam
! Combined flux in latest and established models = 1.74863 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 = 9.3047e-05 Jy
! Component: 100  -  total flux cleaned = 0.000120682 Jy
! Component: 150  -  total flux cleaned = 0.000121561 Jy
! Component: 200  -  total flux cleaned = 0.000169135 Jy
! Total flux subtracted in 200 components = 0.000169135 Jy
! Clean residual min=-0.003713 max=0.005488 Jy/beam
! Clean residual mean=0.000203 rms=0.001616 Jy/beam
! Combined flux in latest and established models = 1.74879 Jy
! Adding 33 model components to the UV plane model.
! The established model now contains 124 components and 1.74879 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.084 mas, bmaj=7.823 mas, bpa=-5.016 degrees
! Estimated noise=425.718 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000384249 Jy
! Component: 100  -  total flux cleaned = -0.000237806 Jy
! Component: 150  -  total flux cleaned = -0.000168835 Jy
! Component: 200  -  total flux cleaned = -0.000168084 Jy
! Total flux subtracted in 200 components = -0.000168084 Jy
! Clean residual min=-0.003460 max=0.004561 Jy/beam
! Clean residual mean=0.000108 rms=0.001131 Jy/beam
! Combined flux in latest and established models = 1.74863 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 140 components and 1.74863 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.455713Jy  sigma=0.002146
! Fit after  self-cal, rms=0.455703Jy  sigma=0.002146
wmodel J0339-0146_S_2000_12_04_pus_map.mod
! Writing 140 model components to file: J0339-0146_S_2000_12_04_pus_map.mod
wobs J0339-0146_S_2000_12_04_pus_uvs.fits
! Writing UV FITS file: J0339-0146_S_2000_12_04_pus_uvs.fits
wwins J0339-0146_S_2000_12_04_pus_map.win
! wwins: Wrote 4 windows to J0339-0146_S_2000_12_04_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.0019107 Jy
! Component: 100  -  total flux cleaned = 0.00318171 Jy
! Component: 150  -  total flux cleaned = 0.0037419 Jy
! Component: 200  -  total flux cleaned = 0.00421542 Jy
! Component: 250  -  total flux cleaned = 0.00461194 Jy
! Component: 300  -  total flux cleaned = 0.00493816 Jy
! Component: 350  -  total flux cleaned = 0.00509598 Jy
! Component: 400  -  total flux cleaned = 0.00519803 Jy
! Component: 450  -  total flux cleaned = 0.00544671 Jy
! Component: 500  -  total flux cleaned = 0.00554351 Jy
! Component: 550  -  total flux cleaned = 0.00563888 Jy
! Component: 600  -  total flux cleaned = 0.00577796 Jy
! Component: 650  -  total flux cleaned = 0.0058692 Jy
! Component: 700  -  total flux cleaned = 0.00595891 Jy
! Component: 750  -  total flux cleaned = 0.00600278 Jy
! Component: 800  -  total flux cleaned = 0.00600271 Jy
! Component: 850  -  total flux cleaned = 0.00591769 Jy
! Component: 900  -  total flux cleaned = 0.00604365 Jy
! Component: 950  -  total flux cleaned = 0.00596039 Jy
! Component: 1000  -  total flux cleaned = 0.00604175 Jy
! Component: 1050  -  total flux cleaned = 0.00600075 Jy
! Component: 1100  -  total flux cleaned = 0.00592115 Jy
! Component: 1150  -  total flux cleaned = 0.00600024 Jy
! Component: 1200  -  total flux cleaned = 0.00603956 Jy
! Component: 1250  -  total flux cleaned = 0.00623329 Jy
! Component: 1300  -  total flux cleaned = 0.00638581 Jy
! Component: 1350  -  total flux cleaned = 0.00642339 Jy
! Component: 1400  -  total flux cleaned = 0.00653661 Jy
! Component: 1450  -  total flux cleaned = 0.00672328 Jy
! Component: 1500  -  total flux cleaned = 0.0068711 Jy
! Component: 1550  -  total flux cleaned = 0.00709064 Jy
! Component: 1600  -  total flux cleaned = 0.00719987 Jy
! Component: 1650  -  total flux cleaned = 0.00745175 Jy
! Component: 1700  -  total flux cleaned = 0.00759425 Jy
! Component: 1750  -  total flux cleaned = 0.00780667 Jy
! Component: 1800  -  total flux cleaned = 0.00798239 Jy
! Component: 1850  -  total flux cleaned = 0.00822602 Jy
! Component: 1900  -  total flux cleaned = 0.00832966 Jy
! Component: 1950  -  total flux cleaned = 0.00853537 Jy
! Component: 2000  -  total flux cleaned = 0.00867156 Jy
! Total flux subtracted in 2048 components = 0.00890822 Jy
! Clean residual min=-0.002198 max=0.002283 Jy/beam
! Clean residual mean=0.000063 rms=0.000696 Jy/beam
! Combined flux in latest and established models = 1.75754 Jy
keep
! Adding 138 model components to the UV plane model.
! The established model now contains 278 components and 1.75754 Jy
![Exited script file: muppet]
wmap "J0339-0146_S_2000_12_04_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.084 x 7.823 at -5.016 degrees (North through East)
! Clean map  min=-0.0030894  max=1.3294 Jy/beam
! Writing clean map to FITS file: J0339-0146_S_2000_12_04_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.32944 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000694969 
device "J0339-0146_S_2000_12_04_pus\_map.eps/VPS"
! Attempting to open device: 'J0339-0146_S_2000_12_04_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.156826 0.156826 0.313652 0.627304 1.25461 2.50922 5.01843 10.0369 20.0737 40.1475 80.2949
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.002 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.329 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.084 x 7.823 at -5.016 degrees (North through East)
! Clean map  min=-0.0030894  max=1.3294 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0339-0146_S_2000_12_04_pus\_map.gif/vgif"
! Attempting to open device: 'J0339-0146_S_2000_12_04_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0339-0146_S_2000_12_04_pus_uvs.log closed on Thu Oct 18 15:51:28 2007