! Started logfile: J0403-3605_S_2001_04_09_pus_uvs.log on Fri Oct  5 15:53:07 2007
obs J0403-3605_S_2001_04_09_pus_uva.fits
! Reading UV FITS file: J0403-3605_S_2001_04_09_pus_uva.fits
! AN table 1: 48 integrations on 190 of 190 possible baselines.
! AN table 2: 55 integrations on 190 of 190 possible baselines.
! AN table 3: 27 integrations on 190 of 190 possible baselines.
! AN table 4: 23 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.051978 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0403-3605
! 
! 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.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1949 lines of history.
! 
! Reading 6044 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 J0403-3605_S_2001_04_09_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 820 telescope corrections were flagged in sub-array 1.
!  A total of 1073 telescope corrections were flagged in sub-array 2.
!  A total of 382 telescope corrections were flagged in sub-array 3.
!  A total of 314 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 820 telescope corrections were flagged in sub-array 1.
!  A total of 1073 telescope corrections were flagged in sub-array 2.
!  A total of 382 telescope corrections were flagged in sub-array 3.
!  A total of 314 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 820 telescope corrections were flagged in sub-array 1.
!  A total of 1073 telescope corrections were flagged in sub-array 2.
!  A total of 382 telescope corrections were flagged in sub-array 3.
!  A total of 314 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 820 telescope corrections were flagged in sub-array 1.
!  A total of 1073 telescope corrections were flagged in sub-array 2.
!  A total of 382 telescope corrections were flagged in sub-array 3.
!  A total of 314 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.987864Jy  sigma=0.006562
! Fit after  self-cal, rms=0.411088Jy  sigma=0.002277
! 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.388 mas, bmaj=5.729 mas, bpa=-1.819 degrees
! Estimated noise=2030.47 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.55093 Jy
! Component: 100  -  total flux cleaned = 0.686937 Jy
! Total flux subtracted in 100 components = 0.686937 Jy
! Clean residual min=-0.023582 max=0.052922 Jy/beam
! Clean residual mean=0.000865 rms=0.008396 Jy/beam
! Combined flux in latest and established models = 0.686937 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.686937 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.307573Jy  sigma=0.001567
! Fit after  self-cal, rms=0.307574Jy  sigma=0.001567
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0535001 Jy
! Component: 100  -  total flux cleaned = 0.0800257 Jy
! Total flux subtracted in 100 components = 0.0800257 Jy
! Clean residual min=-0.019823 max=0.034258 Jy/beam
! Clean residual mean=0.000470 rms=0.006639 Jy/beam
! Combined flux in latest and established models = 0.766963 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 18 components and 0.766963 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.296044Jy  sigma=0.001417
! Fit after  self-cal, rms=0.296002Jy  sigma=0.001417
! 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.996 mas, bmaj=8.596 mas, bpa=-7.425 degrees
! Estimated noise=1403.16 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.0354432 Jy
! Component: 100  -  total flux cleaned = 0.0522098 Jy
! Component: 150  -  total flux cleaned = 0.0606174 Jy
! Component: 200  -  total flux cleaned = 0.0621146 Jy
! Total flux subtracted in 200 components = 0.0621146 Jy
! Clean residual min=-0.015921 max=0.034150 Jy/beam
! Clean residual mean=0.000728 rms=0.007037 Jy/beam
! Combined flux in latest and established models = 0.829078 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 25 components and 0.829078 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.293412Jy  sigma=0.001369
! Fit after  self-cal, rms=0.293286Jy  sigma=0.001369
! 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        1.00*    FD        1.02     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.93     KP        0.96     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        1.00*    NY        1.00*    OV        1.09     PT        0.97     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  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*    
! 
!  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        0.95     KP        0.93     
!   LA        0.94     MA        1.00*    MC        1.00*    MK        0.93     
!   NL        1.08     NY        1.00*    OV        0.96     PT        0.92     
!   SC        1.01     TS        1.00*    WF        1.22     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.97     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.19     KK        1.00*    KP        1.04     
!   LA        0.95     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.28     NY        1.00*    OV        1.00*    PT        0.94     
!   SC        0.94     TS        1.00*    WF        1.02     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        1.00*    FD        0.96     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.94     KP        1.03     
!   LA        1.03     MA        1.00*    MC        1.00*    MK        0.94     
!   NL        1.00*    NY        1.00*    OV        1.12     PT        1.03     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  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*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.95     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.03     KP        0.92     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        0.97     
!   NL        1.14     NY        1.00*    OV        0.94     PT        0.96     
!   SC        1.00     TS        1.00*    WF        1.12     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.92     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.07     KK        1.00*    KP        1.17     
!   LA        1.01     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.28     NY        1.00*    OV        1.00*    PT        0.97     
!   SC        1.03     TS        1.00*    WF        0.96     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        1.00*    FD        1.03     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.93     KP        1.00     
!   LA        0.97     MA        1.00*    MC        1.00*    MK        0.93     
!   NL        1.00*    NY        1.00*    OV        1.08     PT        1.00     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  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*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.95     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.01     KP        0.97     
!   LA        0.95     MA        1.00*    MC        1.00*    MK        0.96     
!   NL        1.11     NY        1.00*    OV        0.92     PT        0.98     
!   SC        1.04     TS        1.00*    WF        1.19     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.96     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.24     KK        1.00*    KP        1.04     
!   LA        0.95     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.29     NY        1.00*    OV        1.00*    PT        0.99     
!   SC        0.93     TS        1.00*    WF        1.03     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        1.00*    FD        1.01     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.95     KP        1.01     
!   LA        1.01     MA        1.00*    MC        1.00*    MK        0.87     
!   NL        1.00*    NY        1.00*    OV        1.05     PT        1.08     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  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*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.95     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.02     KP        0.94     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        0.94     
!   NL        1.09     NY        1.00*    OV        0.94     PT        0.96     
!   SC        1.05     TS        1.00*    WF        1.19     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.95     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.10     KK        1.00*    KP        1.02     
!   LA        1.01     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.30     NY        1.00*    OV        1.00*    PT        1.04     
!   SC        0.90     TS        1.00*    WF        0.96     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.293286Jy  sigma=0.001369
! Fit after  self-cal, rms=0.305062Jy  sigma=0.001206
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.992 mas, bmaj=11.19 mas, bpa=-10.06 degrees
! Estimated noise=1430.5 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 (2, 15).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0141689 Jy
! Component: 100  -  total flux cleaned = 0.0166412 Jy
! Component: 150  -  total flux cleaned = 0.0168495 Jy
! Component: 200  -  total flux cleaned = 0.0168503 Jy
! Total flux subtracted in 200 components = 0.0168503 Jy
! Clean residual min=-0.006180 max=0.008693 Jy/beam
! Clean residual mean=0.000080 rms=0.001967 Jy/beam
! Combined flux in latest and established models = 0.845928 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 50 components and 0.845928 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.304383Jy  sigma=0.001199
! Fit after  self-cal, rms=0.305084Jy  sigma=0.001198
! 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.305084Jy  sigma=0.001198
! Fit after  self-cal, rms=0.303930Jy  sigma=0.001197
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.981 mas, bmaj=11.16 mas, bpa=-10.06 degrees
! Estimated noise=1428.78 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00686273 Jy
! Component: 100  -  total flux cleaned = 0.00772673 Jy
! Component: 150  -  total flux cleaned = 0.00772885 Jy
! Component: 200  -  total flux cleaned = 0.007609 Jy
! Total flux subtracted in 200 components = 0.007609 Jy
! Clean residual min=-0.005588 max=0.006772 Jy/beam
! Clean residual mean=0.000092 rms=0.001681 Jy/beam
! Combined flux in latest and established models = 0.853537 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 67 components and 0.853537 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.303678Jy  sigma=0.001194
! Fit after  self-cal, rms=0.303599Jy  sigma=0.001194
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.00176851 Jy
! Component: 100  -  total flux cleaned = 0.00189586 Jy
! Component: 150  -  total flux cleaned = 0.00179915 Jy
! Component: 200  -  total flux cleaned = 0.00179962 Jy
! Total flux subtracted in 200 components = 0.00179962 Jy
! Clean residual min=-0.005311 max=0.006366 Jy/beam
! Clean residual mean=0.000066 rms=0.001576 Jy/beam
! Combined flux in latest and established models = 0.855337 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 72 components and 0.855337 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.303507Jy  sigma=0.001193
! Fit after  self-cal, rms=0.303495Jy  sigma=0.001193
! 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.303495Jy  sigma=0.001193
! Fit after  self-cal, rms=0.303997Jy  sigma=0.001193
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.979 mas, bmaj=11.14 mas, bpa=-10.04 degrees
! Estimated noise=1429.02 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00337343 Jy
! Component: 100  -  total flux cleaned = 0.00390959 Jy
! Component: 150  -  total flux cleaned = 0.00390856 Jy
! Component: 200  -  total flux cleaned = 0.00382854 Jy
! Total flux subtracted in 200 components = 0.00382854 Jy
! Clean residual min=-0.005097 max=0.005564 Jy/beam
! Clean residual mean=0.000086 rms=0.001454 Jy/beam
! Combined flux in latest and established models = 0.859165 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 83 components and 0.859165 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.303897Jy  sigma=0.001192
! Fit after  self-cal, rms=0.303864Jy  sigma=0.001192
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.00101904 Jy
! Component: 100  -  total flux cleaned = 0.00109262 Jy
! Component: 150  -  total flux cleaned = 0.00102617 Jy
! Component: 200  -  total flux cleaned = 0.000902973 Jy
! Total flux subtracted in 200 components = 0.000902973 Jy
! Clean residual min=-0.004923 max=0.005334 Jy/beam
! Clean residual mean=0.000072 rms=0.001410 Jy/beam
! Combined flux in latest and established models = 0.860068 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 89 components and 0.860068 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.303827Jy  sigma=0.001192
! Fit after  self-cal, rms=0.303827Jy  sigma=0.001191
! 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.303827Jy  sigma=0.001191
! Fit after  self-cal, rms=0.304082Jy  sigma=0.001191
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.619 mas, bmaj=24.64 mas, bpa=-4.633 degrees
! Estimated noise=1780.39 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00183935 Jy
! Component: 100  -  total flux cleaned = 0.00204896 Jy
! Component: 150  -  total flux cleaned = 0.00225376 Jy
! Component: 200  -  total flux cleaned = 0.00236779 Jy
! Total flux subtracted in 200 components = 0.00236779 Jy
! Clean residual min=-0.004877 max=0.004389 Jy/beam
! Clean residual mean=0.000162 rms=0.001511 Jy/beam
! Combined flux in latest and established models = 0.862436 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 108 components and 0.862436 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.304046Jy  sigma=0.001191
! Fit after  self-cal, rms=0.304022Jy  sigma=0.001191
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.000365286 Jy
! Component: 100  -  total flux cleaned = 0.000445503 Jy
! Component: 150  -  total flux cleaned = 0.000548025 Jy
! Component: 200  -  total flux cleaned = 0.00054935 Jy
! Total flux subtracted in 200 components = 0.00054935 Jy
! Clean residual min=-0.004628 max=0.004435 Jy/beam
! Clean residual mean=0.000144 rms=0.001472 Jy/beam
! Combined flux in latest and established models = 0.862986 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 115 components and 0.862986 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.303999Jy  sigma=0.001191
! Fit after  self-cal, rms=0.304004Jy  sigma=0.001191
! 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.979 mas, bmaj=11.13 mas, bpa=-10.02 degrees
! Estimated noise=1429.71 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.979 x 11.13 at -10.02 degrees (North through East)
! Clean map  min=-0.0044452  max=0.71077 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.304004Jy  sigma=0.001191
! Fit after  self-cal, rms=0.272642Jy  sigma=0.001090
! Inverting map and beam 
! Estimated beam: bmin=2.978 mas, bmaj=11.12 mas, bpa=-10.02 degrees
! Estimated noise=1428.07 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000947103 Jy
! Component: 100  -  total flux cleaned = 0.000816862 Jy
! Component: 150  -  total flux cleaned = 0.000638408 Jy
! Component: 200  -  total flux cleaned = 0.000525986 Jy
! Total flux subtracted in 200 components = 0.000525986 Jy
! Clean residual min=-0.004928 max=0.004229 Jy/beam
! Clean residual mean=0.000002 rms=0.001316 Jy/beam
! Combined flux in latest and established models = 0.863512 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 128 components and 0.863512 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.272594Jy  sigma=0.001089
! Fit after  self-cal, rms=0.272607Jy  sigma=0.001089
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000359442 Jy
! Component: 100  -  total flux cleaned = 0.000307487 Jy
! Component: 150  -  total flux cleaned = 0.00026001 Jy
! Component: 200  -  total flux cleaned = 0.000212674 Jy
! Total flux subtracted in 200 components = 0.000212674 Jy
! Clean residual min=-0.004874 max=0.004149 Jy/beam
! Clean residual mean=-0.000002 rms=0.001301 Jy/beam
! Combined flux in latest and established models = 0.863725 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 133 components and 0.863724 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.272578Jy  sigma=0.001089
! Fit after  self-cal, rms=0.272582Jy  sigma=0.001089
! 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.272582Jy  sigma=0.001089
! Fit after  self-cal, rms=0.272356Jy  sigma=0.001089
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.372 mas, bmaj=8.714 mas, bpa=-7.333 degrees
! Estimated noise=2036.94 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.551781 Jy
! Component: 100  -  total flux cleaned = 0.690281 Jy
! Component: 150  -  total flux cleaned = 0.747915 Jy
! Component: 200  -  total flux cleaned = 0.780552 Jy
! Total flux subtracted in 200 components = 0.780552 Jy
! Clean residual min=-0.012246 max=0.017387 Jy/beam
! Clean residual mean=0.000437 rms=0.003551 Jy/beam
! Combined flux in latest and established models = 0.780552 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 30 model components to the UV plane model.
! The established model now contains 30 components and 0.780552 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.979 mas, bmaj=11.12 mas, bpa=-9.998 degrees
! Estimated noise=1428.52 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.0347037 Jy
! Component: 100  -  total flux cleaned = 0.0542694 Jy
! Component: 150  -  total flux cleaned = 0.0658799 Jy
! Component: 200  -  total flux cleaned = 0.072939 Jy
! Total flux subtracted in 200 components = 0.072939 Jy
! Clean residual min=-0.005870 max=0.005438 Jy/beam
! Clean residual mean=0.000195 rms=0.001655 Jy/beam
! Combined flux in latest and established models = 0.853491 Jy
! Adding 63 model components to the UV plane model.
! The established model now contains 82 components and 0.853491 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.61 mas, bmaj=24.58 mas, bpa=-4.645 degrees
! Estimated noise=1779.07 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00611788 Jy
! Component: 100  -  total flux cleaned = 0.00871505 Jy
! Component: 150  -  total flux cleaned = 0.00922681 Jy
! Component: 200  -  total flux cleaned = 0.00945376 Jy
! Total flux subtracted in 200 components = 0.00945376 Jy
! Clean residual min=-0.005248 max=0.004547 Jy/beam
! Clean residual mean=0.000025 rms=0.001560 Jy/beam
! Combined flux in latest and established models = 0.862945 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.000258451 Jy
! Component: 100  -  total flux cleaned = 0.000401607 Jy
! Component: 150  -  total flux cleaned = 0.000538116 Jy
! Component: 200  -  total flux cleaned = 0.000622876 Jy
! Total flux subtracted in 200 components = 0.000622876 Jy
! Clean residual min=-0.005151 max=0.004402 Jy/beam
! Clean residual mean=0.000004 rms=0.001513 Jy/beam
! Combined flux in latest and established models = 0.863568 Jy
! Adding 39 model components to the UV plane model.
! The established model now contains 110 components and 0.863568 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.979 mas, bmaj=11.12 mas, bpa=-9.998 degrees
! Estimated noise=1428.52 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000289879 Jy
! Component: 100  -  total flux cleaned = 0.000198294 Jy
! Component: 150  -  total flux cleaned = 0.000123415 Jy
! Component: 200  -  total flux cleaned = -1.04508e-05 Jy
! Total flux subtracted in 200 components = -1.04508e-05 Jy
! Clean residual min=-0.005216 max=0.004245 Jy/beam
! Clean residual mean=0.000006 rms=0.001349 Jy/beam
! Combined flux in latest and established models = 0.863557 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 125 components and 0.863557 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.272359Jy  sigma=0.001090
! Fit after  self-cal, rms=0.272340Jy  sigma=0.001090
wmodel J0403-3605_S_2001_04_09_pus_map.mod
! Writing 125 model components to file: J0403-3605_S_2001_04_09_pus_map.mod
wobs J0403-3605_S_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J0403-3605_S_2001_04_09_pus_uvs.fits
wwins J0403-3605_S_2001_04_09_pus_map.win
! wwins: Wrote 2 windows to J0403-3605_S_2001_04_09_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.00228045 Jy
! Component: 100  -  total flux cleaned = -0.00390223 Jy
! Component: 150  -  total flux cleaned = -0.00451328 Jy
! Component: 200  -  total flux cleaned = -0.00443896 Jy
! Component: 250  -  total flux cleaned = -0.00443979 Jy
! Component: 300  -  total flux cleaned = -0.00430495 Jy
! Component: 350  -  total flux cleaned = -0.0043054 Jy
! Component: 400  -  total flux cleaned = -0.00430633 Jy
! Component: 450  -  total flux cleaned = -0.00449632 Jy
! Component: 500  -  total flux cleaned = -0.00449682 Jy
! Component: 550  -  total flux cleaned = -0.0046799 Jy
! Component: 600  -  total flux cleaned = -0.0047991 Jy
! Component: 650  -  total flux cleaned = -0.00491617 Jy
! Component: 700  -  total flux cleaned = -0.0049157 Jy
! Component: 750  -  total flux cleaned = -0.00474679 Jy
! Component: 800  -  total flux cleaned = -0.00463654 Jy
! Component: 850  -  total flux cleaned = -0.00463661 Jy
! Component: 900  -  total flux cleaned = -0.00452835 Jy
! Component: 950  -  total flux cleaned = -0.0043698 Jy
! Component: 1000  -  total flux cleaned = -0.00431799 Jy
! Component: 1050  -  total flux cleaned = -0.00421555 Jy
! Component: 1100  -  total flux cleaned = -0.00416501 Jy
! Component: 1150  -  total flux cleaned = -0.00401453 Jy
! Component: 1200  -  total flux cleaned = -0.00386628 Jy
! Component: 1250  -  total flux cleaned = -0.00367135 Jy
! Component: 1300  -  total flux cleaned = -0.00352777 Jy
! Component: 1350  -  total flux cleaned = -0.00343292 Jy
! Component: 1400  -  total flux cleaned = -0.0032925 Jy
! Component: 1450  -  total flux cleaned = -0.00310778 Jy
! Component: 1500  -  total flux cleaned = -0.00306238 Jy
! Component: 1550  -  total flux cleaned = -0.00297206 Jy
! Component: 1600  -  total flux cleaned = -0.00292708 Jy
! Component: 1650  -  total flux cleaned = -0.00275053 Jy
! Component: 1700  -  total flux cleaned = -0.00266363 Jy
! Component: 1750  -  total flux cleaned = -0.00262072 Jy
! Component: 1800  -  total flux cleaned = -0.00249305 Jy
! Component: 1850  -  total flux cleaned = -0.00249319 Jy
! Component: 1900  -  total flux cleaned = -0.00236775 Jy
! Component: 1950  -  total flux cleaned = -0.00232663 Jy
! Component: 2000  -  total flux cleaned = -0.00228538 Jy
! Total flux subtracted in 2048 components = -0.00220424 Jy
! Clean residual min=-0.002541 max=0.002126 Jy/beam
! Clean residual mean=0.000023 rms=0.000803 Jy/beam
! Combined flux in latest and established models = 0.861353 Jy
keep
! Adding 128 model components to the UV plane model.
! The established model now contains 253 components and 0.861353 Jy
![Exited script file: muppet]
wmap "J0403-3605_S_2001_04_09_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.979 x 11.12 at -9.998 degrees (North through East)
! Clean map  min=-0.0042731  max=0.71186 Jy/beam
! Writing clean map to FITS file: J0403-3605_S_2001_04_09_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.71186 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000796521 
device "J0403-3605_S_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J0403-3605_S_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.335679 0.335679 0.671358 1.34272 2.68543 5.37086 10.7417 21.4834 42.9669 85.9338
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0023 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.711 
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.979 x 11.12 at -9.998 degrees (North through East)
! Clean map  min=-0.0042731  max=0.71186 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0403-3605_S_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J0403-3605_S_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0403-3605_S_2001_04_09_pus_uvs.log closed on Fri Oct  5 15:53:15 2007