! Started logfile: J1048-1909_S_2000_12_04_pus_uvs.log on Thu Oct 18 13:38:05 2007
obs J1048-1909_S_2000_12_04_pus_uva.fits
! Reading UV FITS file: J1048-1909_S_2000_12_04_pus_uva.fits
! AN table 1: 9 integrations on 190 of 190 possible baselines.
! AN table 2: 71 integrations on 190 of 190 possible baselines.
! AN table 3: 41 integrations on 190 of 190 possible baselines.
! AN table 4: 11 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.124601 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1048-1909
! 
! 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 2173 lines of history.
! 
! Reading 12500 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 J1048-1909_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 180 telescope corrections were flagged in sub-array 1.
!  A total of 935 telescope corrections were flagged in sub-array 2.
!  A total of 559 telescope corrections were flagged in sub-array 3.
!  A total of 220 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 180 telescope corrections were flagged in sub-array 1.
!  A total of 935 telescope corrections were flagged in sub-array 2.
!  A total of 559 telescope corrections were flagged in sub-array 3.
!  A total of 220 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 180 telescope corrections were flagged in sub-array 1.
!  A total of 935 telescope corrections were flagged in sub-array 2.
!  A total of 562 telescope corrections were flagged in sub-array 3.
!  A total of 220 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 180 telescope corrections were flagged in sub-array 1.
!  A total of 917 telescope corrections were flagged in sub-array 2.
!  A total of 559 telescope corrections were flagged in sub-array 3.
!  A total of 220 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.007534Jy  sigma=0.009025
! Fit after  self-cal, rms=0.432632Jy  sigma=0.003725
! 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.28 mas, bmaj=5.317 mas, bpa=-3.893 degrees
! Estimated noise=1459.99 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.514976 Jy
! Component: 100  -  total flux cleaned = 0.632306 Jy
! Total flux subtracted in 100 components = 0.632306 Jy
! Clean residual min=-0.018282 max=0.051813 Jy/beam
! Clean residual mean=0.000017 rms=0.006689 Jy/beam
! Combined flux in latest and established models = 0.632307 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.632307 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.295237Jy  sigma=0.002563
! Fit after  self-cal, rms=0.295195Jy  sigma=0.002563
! Inverting map 
! Added new window around map position (4, -6.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0549867 Jy
! Component: 100  -  total flux cleaned = 0.0885456 Jy
! Total flux subtracted in 100 components = 0.0885456 Jy
! Clean residual min=-0.014082 max=0.018282 Jy/beam
! Clean residual mean=-0.000077 rms=0.004271 Jy/beam
! Combined flux in latest and established models = 0.720852 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 18 components and 0.720852 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.282421Jy  sigma=0.002430
! Fit after  self-cal, rms=0.282186Jy  sigma=0.002428
! 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.93 mas, bmaj=7.773 mas, bpa=-4.849 degrees
! Estimated noise=728.009 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.0314775 Jy
! Component: 100  -  total flux cleaned = 0.0486383 Jy
! Component: 150  -  total flux cleaned = 0.0590545 Jy
! Component: 200  -  total flux cleaned = 0.0655306 Jy
! Total flux subtracted in 200 components = 0.0655306 Jy
! Clean residual min=-0.013092 max=0.011160 Jy/beam
! Clean residual mean=-0.000368 rms=0.002938 Jy/beam
! Combined flux in latest and established models = 0.786383 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 42 components and 0.786383 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.278965Jy  sigma=0.002393
! Fit after  self-cal, rms=0.278895Jy  sigma=0.002392
! 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:
!   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 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.96     GC        1.00*    GG        1.00*    
!   HH        0.70     HN        1.03     KK        1.01     KP        1.00     
!   LA        1.00     MA        6.10     MC        1.09     MK        0.98     
!   NL        0.96     NY        1.00*    OV        1.00*    PT        0.98     
!   SC        1.03     TS        1.00*    WF        0.84     WZ        1.17     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.06     KK        1.00*    KP        0.89     
!   LA        1.05     MA        1.00*    MC        1.00*    MK        1.02     
!   NL        0.91     NY        1.00*    OV        0.98     PT        1.01     
!   SC        1.00     TS        1.00*    WF        1.19     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   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*    
! 
! 
! Correcting IF 2.
!  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 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        0.98     HN        1.00     KK        1.01     KP        0.95     
!   LA        0.97     MA        3.04     MC        1.05     MK        0.98     
!   NL        0.94     NY        1.00*    OV        1.00*    PT        0.98     
!   SC        0.98     TS        1.00*    WF        0.96     WZ        1.06     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.00     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.06     KK        1.00*    KP        0.96     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        0.90     NY        1.00*    OV        1.11     PT        1.00     
!   SC        0.94     TS        1.00*    WF        1.19     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   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*    
! 
! 
! Correcting IF 3.
!  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 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.92     FD        1.11     GC        1.00*    GG        1.00*    
!   HH        0.49     HN        1.08     KK        0.95     KP        1.07     
!   LA        0.96     MA        2.13     MC        1.90     MK        0.97     
!   NL        1.02     NY        1.00*    OV        1.00*    PT        1.02     
!   SC        1.02     TS        1.00*    WF        0.91     WZ        1.49     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.12     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.05     KK        1.00*    KP        1.01     
!   LA        1.22     MA        1.00*    MC        1.00*    MK        1.01     
!   NL        1.03     NY        1.00*    OV        1.05     PT        1.11     
!   SC        1.01     TS        1.00*    WF        1.11     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   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*    
! 
! 
! Correcting IF 4.
!  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 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.99     GC        1.00*    GG        1.00*    
!   HH        0.99     HN        1.02     KK        0.99     KP        0.96     
!   LA        0.97     MA        0.93     MC        1.47     MK        0.97     
!   NL        0.95     NY        1.00*    OV        1.00*    PT        0.99     
!   SC        1.03     TS        1.00*    WF        0.95     WZ        0.94     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.03     KK        1.00*    KP        0.99     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        1.02     
!   NL        0.91     NY        1.00*    OV        0.97     PT        1.05     
!   SC        1.03     TS        1.00*    WF        1.03     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   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*    
! 
! 
! Fit before self-cal, rms=0.278895Jy  sigma=0.002392
! Fit after  self-cal, rms=0.301271Jy  sigma=0.002353
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.926 mas, bmaj=8.079 mas, bpa=-4.941 degrees
! Estimated noise=726.56 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.00177193 Jy
! Component: 100  -  total flux cleaned = 0.00215433 Jy
! Component: 150  -  total flux cleaned = 0.00222515 Jy
! Component: 200  -  total flux cleaned = 0.00235073 Jy
! Total flux subtracted in 200 components = 0.00235073 Jy
! Clean residual min=-0.006694 max=0.006148 Jy/beam
! Clean residual mean=-0.000094 rms=0.001881 Jy/beam
! Combined flux in latest and established models = 0.788733 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 46 components and 0.788733 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.301217Jy  sigma=0.002352
! Fit after  self-cal, rms=0.301374Jy  sigma=0.002351
! 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.301374Jy  sigma=0.002351
! Fit after  self-cal, rms=0.358755Jy  sigma=0.002351
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.926 mas, bmaj=8.076 mas, bpa=-4.96 degrees
! Estimated noise=726.291 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00030206 Jy
! Component: 100  -  total flux cleaned = 0.000438488 Jy
! Component: 150  -  total flux cleaned = 0.000494862 Jy
! Component: 200  -  total flux cleaned = 0.00059701 Jy
! Total flux subtracted in 200 components = 0.00059701 Jy
! Clean residual min=-0.006614 max=0.006154 Jy/beam
! Clean residual mean=-0.000112 rms=0.001846 Jy/beam
! Combined flux in latest and established models = 0.78933 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 48 components and 0.78933 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.358739Jy  sigma=0.002351
! Fit after  self-cal, rms=0.358735Jy  sigma=0.002351
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 = -8.61623e-05 Jy
! Component: 100  -  total flux cleaned = -3.17216e-05 Jy
! Component: 150  -  total flux cleaned = -3.18824e-05 Jy
! Component: 200  -  total flux cleaned = 1.00889e-05 Jy
! Total flux subtracted in 200 components = 1.00889e-05 Jy
! Clean residual min=-0.006551 max=0.006124 Jy/beam
! Clean residual mean=-0.000111 rms=0.001830 Jy/beam
! Combined flux in latest and established models = 0.78934 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 54 components and 0.78934 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.358726Jy  sigma=0.002351
! Fit after  self-cal, rms=0.358712Jy  sigma=0.002351
! 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.358712Jy  sigma=0.002351
! Fit after  self-cal, rms=0.452000Jy  sigma=0.002351
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.926 mas, bmaj=8.079 mas, bpa=-4.98 degrees
! Estimated noise=726.505 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000372465 Jy
! Component: 100  -  total flux cleaned = 0.000421555 Jy
! Component: 150  -  total flux cleaned = 0.000466016 Jy
! Component: 200  -  total flux cleaned = 0.00050678 Jy
! Total flux subtracted in 200 components = 0.00050678 Jy
! Clean residual min=-0.006465 max=0.005931 Jy/beam
! Clean residual mean=-0.000124 rms=0.001811 Jy/beam
! Combined flux in latest and established models = 0.789847 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 58 components and 0.789847 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.451994Jy  sigma=0.002350
! Fit after  self-cal, rms=0.451982Jy  sigma=0.002350
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 = 5.49369e-06 Jy
! Component: 100  -  total flux cleaned = 5.62601e-06 Jy
! Component: 150  -  total flux cleaned = 5.61584e-06 Jy
! Component: 200  -  total flux cleaned = 7.95737e-06 Jy
! Total flux subtracted in 200 components = 7.95737e-06 Jy
! Clean residual min=-0.006374 max=0.005878 Jy/beam
! Clean residual mean=-0.000124 rms=0.001800 Jy/beam
! Combined flux in latest and established models = 0.789855 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 60 components and 0.789855 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.451979Jy  sigma=0.002350
! Fit after  self-cal, rms=0.451963Jy  sigma=0.002350
! 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.451963Jy  sigma=0.002350
! Fit after  self-cal, rms=0.559466Jy  sigma=0.002350
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.368 mas, bmaj=16.63 mas, bpa=4.132 degrees
! Estimated noise=920.384 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00236186 Jy
! Component: 100  -  total flux cleaned = 0.00237262 Jy
! Component: 150  -  total flux cleaned = 0.0023194 Jy
! Component: 200  -  total flux cleaned = 0.00227507 Jy
! Total flux subtracted in 200 components = 0.00227507 Jy
! Clean residual min=-0.008278 max=0.007369 Jy/beam
! Clean residual mean=-0.000319 rms=0.002580 Jy/beam
! Combined flux in latest and established models = 0.79213 Jy
selfcal
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 66 components and 0.79213 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.559487Jy  sigma=0.002350
! Fit after  self-cal, rms=0.559457Jy  sigma=0.002350
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.000321411 Jy
! Component: 100  -  total flux cleaned = 0.000278892 Jy
! Component: 150  -  total flux cleaned = 0.000280009 Jy
! Component: 200  -  total flux cleaned = 0.000242473 Jy
! Total flux subtracted in 200 components = 0.000242473 Jy
! Clean residual min=-0.008201 max=0.007404 Jy/beam
! Clean residual mean=-0.000319 rms=0.002581 Jy/beam
! Combined flux in latest and established models = 0.792373 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 68 components and 0.792373 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.559456Jy  sigma=0.002350
! Fit after  self-cal, rms=0.559453Jy  sigma=0.002350
! 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.925 mas, bmaj=8.081 mas, bpa=-4.993 degrees
! Estimated noise=726.758 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.925 x 8.081 at -4.993 degrees (North through East)
! Clean map  min=-0.0061046  max=0.66908 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.559453Jy  sigma=0.002350
! Fit after  self-cal, rms=0.726699Jy  sigma=0.002159
! Inverting map and beam 
! Estimated beam: bmin=2.935 mas, bmaj=8.093 mas, bpa=-4.946 degrees
! Estimated noise=726.701 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.002975 Jy
! Component: 100  -  total flux cleaned = -0.00407171 Jy
! Component: 150  -  total flux cleaned = -0.00429116 Jy
! Component: 200  -  total flux cleaned = -0.00452699 Jy
! Total flux subtracted in 200 components = -0.00452699 Jy
! Clean residual min=-0.006088 max=0.005840 Jy/beam
! Clean residual mean=-0.000094 rms=0.001645 Jy/beam
! Combined flux in latest and established models = 0.787846 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 82 components and 0.787846 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.726666Jy  sigma=0.002159
! Fit after  self-cal, rms=0.726659Jy  sigma=0.002159
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000249872 Jy
! Component: 100  -  total flux cleaned = -0.000467348 Jy
! Component: 150  -  total flux cleaned = -0.000543304 Jy
! Component: 200  -  total flux cleaned = -0.000579289 Jy
! Total flux subtracted in 200 components = -0.000579289 Jy
! Clean residual min=-0.006041 max=0.005754 Jy/beam
! Clean residual mean=-0.000091 rms=0.001634 Jy/beam
! Combined flux in latest and established models = 0.787266 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 82 components and 0.787266 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.726657Jy  sigma=0.002159
! Fit after  self-cal, rms=0.726647Jy  sigma=0.002159
! 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.726647Jy  sigma=0.002159
! Fit after  self-cal, rms=0.834359Jy  sigma=0.002159
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.294 mas, bmaj=5.243 mas, bpa=-3.893 degrees
! Estimated noise=1741.71 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.513355 Jy
! Component: 100  -  total flux cleaned = 0.634501 Jy
! Component: 150  -  total flux cleaned = 0.688379 Jy
! Component: 200  -  total flux cleaned = 0.721535 Jy
! Total flux subtracted in 200 components = 0.721535 Jy
! Clean residual min=-0.010903 max=0.017408 Jy/beam
! Clean residual mean=0.000027 rms=0.003296 Jy/beam
! Combined flux in latest and established models = 0.721535 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 20 model components to the UV plane model.
! The established model now contains 20 components and 0.721535 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.939 mas, bmaj=8.102 mas, bpa=-4.943 degrees
! Estimated noise=726.659 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.0278849 Jy
! Component: 100  -  total flux cleaned = 0.0427233 Jy
! Component: 150  -  total flux cleaned = 0.0516753 Jy
! Component: 200  -  total flux cleaned = 0.0572757 Jy
! Total flux subtracted in 200 components = 0.0572757 Jy
! Clean residual min=-0.006639 max=0.006262 Jy/beam
! Clean residual mean=-0.000037 rms=0.001817 Jy/beam
! Combined flux in latest and established models = 0.778811 Jy
! Adding 27 model components to the UV plane model.
! The established model now contains 42 components and 0.778811 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.374 mas, bmaj=16.66 mas, bpa=4.145 degrees
! Estimated noise=915.552 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00604896 Jy
! Component: 100  -  total flux cleaned = 0.0071084 Jy
! Component: 150  -  total flux cleaned = 0.007513 Jy
! Component: 200  -  total flux cleaned = 0.00756936 Jy
! Total flux subtracted in 200 components = 0.00756936 Jy
! Clean residual min=-0.008110 max=0.007137 Jy/beam
! Clean residual mean=-0.000201 rms=0.002286 Jy/beam
! Combined flux in latest and established models = 0.78638 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 = -1.08362e-06 Jy
! Component: 100  -  total flux cleaned = 4.85482e-05 Jy
! Component: 150  -  total flux cleaned = 4.78896e-05 Jy
! Component: 200  -  total flux cleaned = 4.98573e-05 Jy
! Total flux subtracted in 200 components = 4.98573e-05 Jy
! Clean residual min=-0.008061 max=0.007064 Jy/beam
! Clean residual mean=-0.000202 rms=0.002271 Jy/beam
! Combined flux in latest and established models = 0.78643 Jy
! Adding 10 model components to the UV plane model.
! The established model now contains 49 components and 0.78643 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.939 mas, bmaj=8.102 mas, bpa=-4.943 degrees
! Estimated noise=726.659 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000100291 Jy
! Component: 100  -  total flux cleaned = -0.000230059 Jy
! Component: 150  -  total flux cleaned = -0.000421406 Jy
! Component: 200  -  total flux cleaned = -0.000593804 Jy
! Total flux subtracted in 200 components = -0.000593804 Jy
! Clean residual min=-0.006553 max=0.005880 Jy/beam
! Clean residual mean=-0.000086 rms=0.001674 Jy/beam
! Combined flux in latest and established models = 0.785836 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 58 components and 0.785836 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.834394Jy  sigma=0.002160
! Fit after  self-cal, rms=0.834401Jy  sigma=0.002160
wmodel J1048-1909_S_2000_12_04_pus_map.mod
! Writing 58 model components to file: J1048-1909_S_2000_12_04_pus_map.mod
wobs J1048-1909_S_2000_12_04_pus_uvs.fits
! Writing UV FITS file: J1048-1909_S_2000_12_04_pus_uvs.fits
wwins J1048-1909_S_2000_12_04_pus_map.win
! wwins: Wrote 2 windows to J1048-1909_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.00201819 Jy
! Component: 100  -  total flux cleaned = -0.00203443 Jy
! Component: 150  -  total flux cleaned = -0.00184849 Jy
! Component: 200  -  total flux cleaned = -0.00149673 Jy
! Component: 250  -  total flux cleaned = -0.00141373 Jy
! Component: 300  -  total flux cleaned = -0.00125237 Jy
! Component: 350  -  total flux cleaned = -0.00109652 Jy
! Component: 400  -  total flux cleaned = -0.0012479 Jy
! Component: 450  -  total flux cleaned = -0.00124801 Jy
! Component: 500  -  total flux cleaned = -0.00131671 Jy
! Component: 550  -  total flux cleaned = -0.00124593 Jy
! Component: 600  -  total flux cleaned = -0.00104749 Jy
! Component: 650  -  total flux cleaned = -0.0012459 Jy
! Component: 700  -  total flux cleaned = -0.00124492 Jy
! Component: 750  -  total flux cleaned = -0.00124333 Jy
! Component: 800  -  total flux cleaned = -0.00130346 Jy
! Component: 850  -  total flux cleaned = -0.00136184 Jy
! Component: 900  -  total flux cleaned = -0.00130147 Jy
! Component: 950  -  total flux cleaned = -0.00118531 Jy
! Component: 1000  -  total flux cleaned = -0.00118507 Jy
! Component: 1050  -  total flux cleaned = -0.00101741 Jy
! Component: 1100  -  total flux cleaned = -0.00101728 Jy
! Component: 1150  -  total flux cleaned = -0.000962432 Jy
! Component: 1200  -  total flux cleaned = -0.000802026 Jy
! Component: 1250  -  total flux cleaned = -0.000591811 Jy
! Component: 1300  -  total flux cleaned = -0.000488957 Jy
! Component: 1350  -  total flux cleaned = -0.000488383 Jy
! Component: 1400  -  total flux cleaned = -0.000438254 Jy
! Component: 1450  -  total flux cleaned = -0.000487314 Jy
! Component: 1500  -  total flux cleaned = -0.000438378 Jy
! Component: 1550  -  total flux cleaned = -0.000437724 Jy
! Component: 1600  -  total flux cleaned = -0.000342717 Jy
! Component: 1650  -  total flux cleaned = -0.000389324 Jy
! Component: 1700  -  total flux cleaned = -0.000205106 Jy
! Component: 1750  -  total flux cleaned = -0.00038809 Jy
! Component: 1800  -  total flux cleaned = -0.000207164 Jy
! Component: 1850  -  total flux cleaned = -0.00020698 Jy
! Component: 1900  -  total flux cleaned = -7.4464e-05 Jy
! Component: 1950  -  total flux cleaned = 5.65779e-05 Jy
! Component: 2000  -  total flux cleaned = 0.000186358 Jy
! Total flux subtracted in 2048 components = 0.000143336 Jy
! Clean residual min=-0.002913 max=0.002583 Jy/beam
! Clean residual mean=-0.000054 rms=0.000891 Jy/beam
! Combined flux in latest and established models = 0.785979 Jy
keep
! Adding 142 model components to the UV plane model.
! The established model now contains 200 components and 0.785979 Jy
![Exited script file: muppet]
wmap "J1048-1909_S_2000_12_04_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.939 x 8.102 at -4.943 degrees (North through East)
! Clean map  min=-0.0054818  max=0.66667 Jy/beam
! Writing clean map to FITS file: J1048-1909_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 0.666665 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00089048 
device "J1048-1909_S_2000_12_04_pus\_map.eps/VPS"
! Attempting to open device: 'J1048-1909_S_2000_12_04_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.400717 0.400717 0.801434 1.60287 3.20573 6.41147 12.8229 25.6459 51.2918
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0026 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.666 
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.939 x 8.102 at -4.943 degrees (North through East)
! Clean map  min=-0.0054818  max=0.66667 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1048-1909_S_2000_12_04_pus\_map.gif/vgif"
! Attempting to open device: 'J1048-1909_S_2000_12_04_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1048-1909_S_2000_12_04_pus_uvs.log closed on Thu Oct 18 13:38:13 2007