! Started logfile: J0424-3756_S_2000_12_04_pus_uvs.log on Thu Oct 18 16:01:30 2007
obs J0424-3756_S_2000_12_04_pus_uva.fits
! Reading UV FITS file: J0424-3756_S_2000_12_04_pus_uva.fits
! AN table 1: 18 integrations on 190 of 190 possible baselines.
! AN table 2: 32 integrations on 190 of 190 possible baselines.
! AN table 3: 87 integrations on 190 of 190 possible baselines.
! AN table 4: 22 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0434624 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0424-3756
! 
! 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 5252 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 = 1024 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
![@muppet J0424-3756_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 = 1024x1024 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 257 telescope corrections were flagged in sub-array 1.
!  A total of 640 telescope corrections were flagged in sub-array 2.
!  A total of 1404 telescope corrections were flagged in sub-array 3.
!  A total of 440 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 257 telescope corrections were flagged in sub-array 1.
!  A total of 640 telescope corrections were flagged in sub-array 2.
!  A total of 1404 telescope corrections were flagged in sub-array 3.
!  A total of 440 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 262 telescope corrections were flagged in sub-array 1.
!  A total of 640 telescope corrections were flagged in sub-array 2.
!  A total of 1404 telescope corrections were flagged in sub-array 3.
!  A total of 440 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 257 telescope corrections were flagged in sub-array 1.
!  A total of 640 telescope corrections were flagged in sub-array 2.
!  A total of 1404 telescope corrections were flagged in sub-array 3.
!  A total of 440 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.210594Jy  sigma=0.008592
! Fit after  self-cal, rms=0.279103Jy  sigma=0.001843
! 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.999 mas, bmaj=17.66 mas, bpa=-3.647 degrees
! Estimated noise=2553.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 = 0.690877 Jy
! Component: 100  -  total flux cleaned = 0.842964 Jy
! Total flux subtracted in 100 components = 0.842964 Jy
! Clean residual min=-0.031673 max=0.052292 Jy/beam
! Clean residual mean=0.000001 rms=0.010475 Jy/beam
! Combined flux in latest and established models = 0.842964 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 0.842964 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.279623Jy  sigma=0.001958
! Fit after  self-cal, rms=0.279622Jy  sigma=0.001958
! 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=4.355 mas, bmaj=23.15 mas, bpa=-4.077 degrees
! Estimated noise=1424.04 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.0943207 Jy
! Component: 100  -  total flux cleaned = 0.13786 Jy
! Component: 150  -  total flux cleaned = 0.160743 Jy
! Component: 200  -  total flux cleaned = 0.173049 Jy
! Total flux subtracted in 200 components = 0.173049 Jy
! Clean residual min=-0.022169 max=0.020480 Jy/beam
! Clean residual mean=0.000367 rms=0.007441 Jy/beam
! Combined flux in latest and established models = 1.01601 Jy
! Performing phase self-cal
! Adding 73 model components to the UV plane model.
! The established model now contains 80 components and 1.01601 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.252543Jy  sigma=0.001712
! Fit after  self-cal, rms=0.252494Jy  sigma=0.001711
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.05     KP        1.04     
!   LA        1.07     MA        1.00*    MC        1.00*    MK        0.92     
!   NL        1.00*    NY        1.00*    OV        1.00     PT        1.03     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   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 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.97     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        0.94     
!   LA        1.06     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.02     NY        1.00*    OV        1.03     PT        1.02     
!   SC        1.00     TS        1.00*    WF        1.21     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.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.01     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.03     KP        1.00     
!   LA        1.03     MA        1.00*    MC        1.00*    MK        0.91     
!   NL        1.00*    NY        1.00*    OV        0.97     PT        1.01     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   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 9 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.00*    KK        1.00*    KP        0.98     
!   LA        1.02     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        0.99     NY        1.00*    OV        0.99     PT        1.01     
!   SC        1.00     TS        1.00*    WF        1.06     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.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.11     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.02     KP        0.87     
!   LA        1.24     MA        1.00*    MC        1.00*    MK        0.94     
!   NL        1.00*    NY        1.00*    OV        1.03     PT        0.97     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   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 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.78     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.02     
!   LA        1.02     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.03     NY        1.00*    OV        1.03     PT        0.94     
!   SC        0.97     TS        1.00*    WF        1.22     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.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.95     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.09     KP        0.98     
!   LA        1.02     MA        1.00*    MC        1.00*    MK        0.93     
!   NL        1.00*    NY        1.00*    OV        0.98     PT        1.19     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   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 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.96     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        0.97     
!   LA        1.00     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.02     NY        1.00*    OV        1.01     PT        1.03     
!   SC        1.01     TS        1.00*    WF        1.02     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.252494Jy  sigma=0.001711
! Fit after  self-cal, rms=0.252947Jy  sigma=0.001577
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=4.381 mas, bmaj=23.1 mas, bpa=-3.961 degrees
! Estimated noise=1423.55 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.00829356 Jy
! Component: 100  -  total flux cleaned = -0.00929833 Jy
! Component: 150  -  total flux cleaned = -0.00982779 Jy
! Component: 200  -  total flux cleaned = -0.0101141 Jy
! Total flux subtracted in 200 components = -0.0101141 Jy
! Clean residual min=-0.008709 max=0.010595 Jy/beam
! Clean residual mean=0.000040 rms=0.002544 Jy/beam
! Combined flux in latest and established models = 1.0059 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 89 components and 1.0059 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.252605Jy  sigma=0.001575
! Fit after  self-cal, rms=0.253502Jy  sigma=0.001574
! 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.253502Jy  sigma=0.001574
! Fit after  self-cal, rms=0.254556Jy  sigma=0.001572
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=4.391 mas, bmaj=23.13 mas, bpa=-3.909 degrees
! Estimated noise=1423.5 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00604849 Jy
! Component: 100  -  total flux cleaned = -0.00678517 Jy
! Component: 150  -  total flux cleaned = -0.00717491 Jy
! Component: 200  -  total flux cleaned = -0.00740291 Jy
! Total flux subtracted in 200 components = -0.00740291 Jy
! Clean residual min=-0.008381 max=0.009530 Jy/beam
! Clean residual mean=0.000016 rms=0.002332 Jy/beam
! Combined flux in latest and established models = 0.998496 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 91 components and 0.998496 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.254379Jy  sigma=0.001571
! Fit after  self-cal, rms=0.254442Jy  sigma=0.001571
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.000223487 Jy
! Component: 100  -  total flux cleaned = -0.000172819 Jy
! Component: 150  -  total flux cleaned = -0.000218061 Jy
! Component: 200  -  total flux cleaned = -0.000215971 Jy
! Total flux subtracted in 200 components = -0.000215971 Jy
! Clean residual min=-0.008393 max=0.009512 Jy/beam
! Clean residual mean=0.000016 rms=0.002325 Jy/beam
! Combined flux in latest and established models = 0.99828 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 99 components and 0.99828 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.254421Jy  sigma=0.001571
! Fit after  self-cal, rms=0.254419Jy  sigma=0.001571
! 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.254419Jy  sigma=0.001571
! Fit after  self-cal, rms=0.254782Jy  sigma=0.001571
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=4.4 mas, bmaj=23.15 mas, bpa=-3.87 degrees
! Estimated noise=1423.24 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00441278 Jy
! Component: 100  -  total flux cleaned = -0.00494765 Jy
! Component: 150  -  total flux cleaned = -0.00518343 Jy
! Component: 200  -  total flux cleaned = -0.00537872 Jy
! Total flux subtracted in 200 components = -0.00537872 Jy
! Clean residual min=-0.008198 max=0.009092 Jy/beam
! Clean residual mean=-0.000001 rms=0.002206 Jy/beam
! Combined flux in latest and established models = 0.992901 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 100 components and 0.992901 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.254690Jy  sigma=0.001570
! Fit after  self-cal, rms=0.254706Jy  sigma=0.001570
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.000204583 Jy
! Component: 100  -  total flux cleaned = -0.000286624 Jy
! Component: 150  -  total flux cleaned = -0.000283912 Jy
! Component: 200  -  total flux cleaned = -0.00028151 Jy
! Total flux subtracted in 200 components = -0.00028151 Jy
! Clean residual min=-0.008206 max=0.009112 Jy/beam
! Clean residual mean=-0.000001 rms=0.002205 Jy/beam
! Combined flux in latest and established models = 0.99262 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 103 components and 0.99262 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.254691Jy  sigma=0.001570
! Fit after  self-cal, rms=0.254690Jy  sigma=0.001570
! 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.254690Jy  sigma=0.001570
! Fit after  self-cal, rms=0.254950Jy  sigma=0.001570
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.898 mas, bmaj=36.22 mas, bpa=-8.447 degrees
! Estimated noise=1549.01 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00216324 Jy
! Component: 100  -  total flux cleaned = -0.00226975 Jy
! Component: 150  -  total flux cleaned = -0.00231824 Jy
! Component: 200  -  total flux cleaned = -0.00236586 Jy
! Total flux subtracted in 200 components = -0.00236586 Jy
! Clean residual min=-0.007571 max=0.010591 Jy/beam
! Clean residual mean=-0.000016 rms=0.002312 Jy/beam
! Combined flux in latest and established models = 0.990254 Jy
selfcal
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 108 components and 0.990254 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.254918Jy  sigma=0.001570
! Fit after  self-cal, rms=0.254922Jy  sigma=0.001570
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 (84.5, -128).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00803579 Jy
! Component: 100  -  total flux cleaned = 0.00804252 Jy
! Component: 150  -  total flux cleaned = 0.00859095 Jy
! Component: 200  -  total flux cleaned = 0.00919143 Jy
! Total flux subtracted in 200 components = 0.00919143 Jy
! Clean residual min=-0.006864 max=0.006051 Jy/beam
! Clean residual mean=-0.000005 rms=0.001682 Jy/beam
! Combined flux in latest and established models = 0.999445 Jy
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 146 components and 0.999445 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.254678Jy  sigma=0.001567
! Fit after  self-cal, rms=0.254656Jy  sigma=0.001567
! 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=4.406 mas, bmaj=23.16 mas, bpa=-3.843 degrees
! Estimated noise=1422.88 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.406 x 23.16 at -3.843 degrees (North through East)
! Clean map  min=-0.0069417  max=0.91748 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.254656Jy  sigma=0.001567
! Fit after  self-cal, rms=0.685068Jy  sigma=0.001351
! Inverting map and beam 
! Estimated beam: bmin=4.409 mas, bmaj=23.15 mas, bpa=-3.811 degrees
! Estimated noise=1419.92 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00125286 Jy
! Component: 100  -  total flux cleaned = 0.000482333 Jy
! Component: 150  -  total flux cleaned = -5.96317e-05 Jy
! Component: 200  -  total flux cleaned = -0.000183623 Jy
! Total flux subtracted in 200 components = -0.000183623 Jy
! Clean residual min=-0.006995 max=0.005670 Jy/beam
! Clean residual mean=-0.000027 rms=0.001585 Jy/beam
! Combined flux in latest and established models = 0.999262 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 177 components and 0.999262 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.684971Jy  sigma=0.001350
! Fit after  self-cal, rms=0.684970Jy  sigma=0.001350
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000368617 Jy
! Component: 100  -  total flux cleaned = -0.000263777 Jy
! Component: 150  -  total flux cleaned = -0.000165141 Jy
! Component: 200  -  total flux cleaned = -7.00651e-05 Jy
! Total flux subtracted in 200 components = -7.00651e-05 Jy
! Clean residual min=-0.007018 max=0.005556 Jy/beam
! Clean residual mean=-0.000030 rms=0.001539 Jy/beam
! Combined flux in latest and established models = 0.999192 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 197 components and 0.999192 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.684942Jy  sigma=0.001349
! Fit after  self-cal, rms=0.684923Jy  sigma=0.001349
! 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.684923Jy  sigma=0.001349
! Fit after  self-cal, rms=1.336415Jy  sigma=0.001349
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=3 mas, bmaj=17.6 mas, bpa=-3.452 degrees
! Estimated noise=2594.48 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.697393 Jy
! Component: 100  -  total flux cleaned = 0.850261 Jy
! Component: 150  -  total flux cleaned = 0.902952 Jy
! Component: 200  -  total flux cleaned = 0.92997 Jy
! Total flux subtracted in 200 components = 0.92997 Jy
! Clean residual min=-0.015024 max=0.017252 Jy/beam
! Clean residual mean=-0.000089 rms=0.004507 Jy/beam
! Combined flux in latest and established models = 0.92997 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 19 model components to the UV plane model.
! The established model now contains 19 components and 0.92997 Jy
! Inverting map and beam 
! Estimated beam: bmin=4.412 mas, bmaj=23.16 mas, bpa=-3.805 degrees
! Estimated noise=1417.83 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)
! Added new window around map position (3.5, 2.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0274239 Jy
! Component: 100  -  total flux cleaned = 0.0409044 Jy
! Component: 150  -  total flux cleaned = 0.0495526 Jy
! Component: 200  -  total flux cleaned = 0.0538546 Jy
! Total flux subtracted in 200 components = 0.0538546 Jy
! Clean residual min=-0.008343 max=0.006889 Jy/beam
! Clean residual mean=-0.000070 rms=0.001948 Jy/beam
! Combined flux in latest and established models = 0.983825 Jy
! Adding 78 model components to the UV plane model.
! The established model now contains 94 components and 0.983824 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.914 mas, bmaj=36.18 mas, bpa=-8.414 degrees
! Estimated noise=1541.4 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00484232 Jy
! Component: 100  -  total flux cleaned = 0.00597882 Jy
! Component: 150  -  total flux cleaned = 0.00706933 Jy
! Component: 200  -  total flux cleaned = 0.00771915 Jy
! Total flux subtracted in 200 components = 0.00771915 Jy
! Clean residual min=-0.006632 max=0.004752 Jy/beam
! Clean residual mean=-0.000062 rms=0.001652 Jy/beam
! Combined flux in latest and established models = 0.991544 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.000715682 Jy
! Component: 100  -  total flux cleaned = 0.00137248 Jy
! Component: 150  -  total flux cleaned = 0.0018768 Jy
! Component: 200  -  total flux cleaned = 0.00224781 Jy
! Total flux subtracted in 200 components = 0.00224781 Jy
! Clean residual min=-0.006674 max=0.004552 Jy/beam
! Clean residual mean=-0.000057 rms=0.001532 Jy/beam
! Combined flux in latest and established models = 0.993791 Jy
! Adding 86 model components to the UV plane model.
! The established model now contains 170 components and 0.993791 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=4.412 mas, bmaj=23.16 mas, bpa=-3.805 degrees
! Estimated noise=1417.83 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000267876 Jy
! Component: 100  -  total flux cleaned = 0.000513782 Jy
! Component: 150  -  total flux cleaned = 0.000750372 Jy
! Component: 200  -  total flux cleaned = 0.00130545 Jy
! Total flux subtracted in 200 components = 0.00130545 Jy
! Clean residual min=-0.006423 max=0.004750 Jy/beam
! Clean residual mean=-0.000031 rms=0.001480 Jy/beam
! Combined flux in latest and established models = 0.995097 Jy
selfcal
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 200 components and 0.995097 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.336293Jy  sigma=0.001349
! Fit after  self-cal, rms=1.336291Jy  sigma=0.001349
wmodel J0424-3756_S_2000_12_04_pus_map.mod
! Writing 200 model components to file: J0424-3756_S_2000_12_04_pus_map.mod
wobs J0424-3756_S_2000_12_04_pus_uvs.fits
! Writing UV FITS file: J0424-3756_S_2000_12_04_pus_uvs.fits
wwins J0424-3756_S_2000_12_04_pus_map.win
! wwins: Wrote 3 windows to J0424-3756_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=4096  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.00276506 Jy
! Component: 100  -  total flux cleaned = -0.00517427 Jy
! Component: 150  -  total flux cleaned = -0.00692684 Jy
! Component: 200  -  total flux cleaned = -0.0079086 Jy
! Component: 250  -  total flux cleaned = -0.00860499 Jy
! Component: 300  -  total flux cleaned = -0.0091935 Jy
! Component: 350  -  total flux cleaned = -0.00975564 Jy
! Component: 400  -  total flux cleaned = -0.0100954 Jy
! Component: 450  -  total flux cleaned = -0.0103559 Jy
! Component: 500  -  total flux cleaned = -0.0102933 Jy
! Component: 550  -  total flux cleaned = -0.0102316 Jy
! Component: 600  -  total flux cleaned = -0.00999267 Jy
! Component: 650  -  total flux cleaned = -0.0098178 Jy
! Component: 700  -  total flux cleaned = -0.009932 Jy
! Component: 750  -  total flux cleaned = -0.0101552 Jy
! Component: 800  -  total flux cleaned = -0.0103195 Jy
! Component: 850  -  total flux cleaned = -0.010535 Jy
! Component: 900  -  total flux cleaned = -0.0106938 Jy
! Component: 950  -  total flux cleaned = -0.0107972 Jy
! Component: 1000  -  total flux cleaned = -0.011002 Jy
! Component: 1050  -  total flux cleaned = -0.0110521 Jy
! Component: 1100  -  total flux cleaned = -0.0112017 Jy
! Component: 1150  -  total flux cleaned = -0.0112025 Jy
! Component: 1200  -  total flux cleaned = -0.0113962 Jy
! Component: 1250  -  total flux cleaned = -0.0113478 Jy
! Component: 1300  -  total flux cleaned = -0.0113957 Jy
! Component: 1350  -  total flux cleaned = -0.0115818 Jy
! Component: 1400  -  total flux cleaned = -0.0115816 Jy
! Component: 1450  -  total flux cleaned = -0.0116728 Jy
! Component: 1500  -  total flux cleaned = -0.0118527 Jy
! Component: 1550  -  total flux cleaned = -0.0118085 Jy
! Component: 1600  -  total flux cleaned = -0.0121175 Jy
! Component: 1650  -  total flux cleaned = -0.0124228 Jy
! Component: 1700  -  total flux cleaned = -0.0126818 Jy
! Component: 1750  -  total flux cleaned = -0.0128099 Jy
! Component: 1800  -  total flux cleaned = -0.0129799 Jy
! Component: 1850  -  total flux cleaned = -0.0132324 Jy
! Component: 1900  -  total flux cleaned = -0.0133993 Jy
! Component: 1950  -  total flux cleaned = -0.0136056 Jy
! Component: 2000  -  total flux cleaned = -0.0137689 Jy
! Component: 2050  -  total flux cleaned = -0.0139713 Jy
! Component: 2100  -  total flux cleaned = -0.0141718 Jy
! Component: 2150  -  total flux cleaned = -0.0142918 Jy
! Component: 2200  -  total flux cleaned = -0.0143713 Jy
! Component: 2250  -  total flux cleaned = -0.0146065 Jy
! Component: 2300  -  total flux cleaned = -0.0147232 Jy
! Component: 2350  -  total flux cleaned = -0.0148393 Jy
! Component: 2400  -  total flux cleaned = -0.0150691 Jy
! Component: 2450  -  total flux cleaned = -0.0150688 Jy
! Component: 2500  -  total flux cleaned = -0.0151447 Jy
! Component: 2550  -  total flux cleaned = -0.0152199 Jy
! Component: 2600  -  total flux cleaned = -0.0152202 Jy
! Component: 2650  -  total flux cleaned = -0.0152572 Jy
! Component: 2700  -  total flux cleaned = -0.0154045 Jy
! Component: 2750  -  total flux cleaned = -0.0153684 Jy
! Component: 2800  -  total flux cleaned = -0.0155865 Jy
! Component: 2850  -  total flux cleaned = -0.0157669 Jy
! Component: 2900  -  total flux cleaned = -0.0158389 Jy
! Component: 2950  -  total flux cleaned = -0.0159109 Jy
! Component: 3000  -  total flux cleaned = -0.0161601 Jy
! Component: 3050  -  total flux cleaned = -0.0163019 Jy
! Component: 3100  -  total flux cleaned = -0.0163722 Jy
! Component: 3150  -  total flux cleaned = -0.0165831 Jy
! Component: 3200  -  total flux cleaned = -0.016723 Jy
! Component: 3250  -  total flux cleaned = -0.0168272 Jy
! Component: 3300  -  total flux cleaned = -0.0168964 Jy
! Component: 3350  -  total flux cleaned = -0.0169312 Jy
! Component: 3400  -  total flux cleaned = -0.0170002 Jy
! Component: 3450  -  total flux cleaned = -0.0171714 Jy
! Component: 3500  -  total flux cleaned = -0.0172738 Jy
! Component: 3550  -  total flux cleaned = -0.0172737 Jy
! Component: 3600  -  total flux cleaned = -0.0172398 Jy
! Component: 3650  -  total flux cleaned = -0.0174092 Jy
! Component: 3700  -  total flux cleaned = -0.0174093 Jy
! Component: 3750  -  total flux cleaned = -0.0175101 Jy
! Component: 3800  -  total flux cleaned = -0.0175439 Jy
! Component: 3850  -  total flux cleaned = -0.0174766 Jy
! Component: 3900  -  total flux cleaned = -0.0175773 Jy
! Component: 3950  -  total flux cleaned = -0.0176108 Jy
! Component: 4000  -  total flux cleaned = -0.0176443 Jy
! Component: 4050  -  total flux cleaned = -0.0176109 Jy
! Total flux subtracted in 4096 components = -0.0176108 Jy
! Clean residual min=-0.001843 max=0.001820 Jy/beam
! Clean residual mean=-0.000019 rms=0.000633 Jy/beam
! Combined flux in latest and established models = 0.977486 Jy
keep
! Adding 283 model components to the UV plane model.
! The established model now contains 483 components and 0.977486 Jy
![Exited script file: muppet]
wmap "J0424-3756_S_2000_12_04_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.412 x 23.16 at -3.805 degrees (North through East)
! Clean map  min=-0.0049602  max=0.91468 Jy/beam
! Writing clean map to FITS file: J0424-3756_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.914676 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000641341 
device "J0424-3756_S_2000_12_04_pus\_map.eps/VPS"
! Attempting to open device: 'J0424-3756_S_2000_12_04_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.21035 0.21035 0.420701 0.841402 1.6828 3.36561 6.73122 13.4624 26.9249 53.8497
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0019 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.914 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.412 x 23.16 at -3.805 degrees (North through East)
! Clean map  min=-0.0049602  max=0.91468 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0424-3756_S_2000_12_04_pus\_map.gif/vgif"
! Attempting to open device: 'J0424-3756_S_2000_12_04_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0424-3756_S_2000_12_04_pus_uvs.log closed on Thu Oct 18 16:01:59 2007