! Started logfile: J0418+3801_X_1999_12_20_pus_uvs.log on Fri Dec 14 17:11:57 2007
obs J0418+3801_X_1999_12_20_pus_uva.fits
! Reading UV FITS file: J0418+3801_X_1999_12_20_pus_uva.fits
! AN table 1: 131 integrations on 190 of 190 possible baselines.
! AN table 2: 152 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.270857 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0418+3801
! 
! 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  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2418 lines of history.
! 
! Reading 58256 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 = 256 
print "field_cell =",field_cell
! field_cell = 0.2 
print "taper_size =",taper_size
! taper_size = 70 
![@muppet J0418+3801_X_1999_12_20_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 256x256 pixels with 0.200x0.200 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 1799 telescope corrections were flagged in sub-array 1.
!  A total of 1053 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 1799 telescope corrections were flagged in sub-array 1.
!  A total of 1053 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 1799 telescope corrections were flagged in sub-array 1.
!  A total of 1053 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 1799 telescope corrections were flagged in sub-array 1.
!  A total of 1053 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=1.018426Jy  sigma=0.008107
! Fit after  self-cal, rms=0.782995Jy  sigma=0.005737
! 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 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1742 milli-arcsec
!  The y-axis pixel size should ideally be below 0.147 milli-arcsec
! Estimated beam: bmin=0.4828 mas, bmaj=0.7669 mas, bpa=-4.295 degrees
! Estimated noise=1246.37 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.371556 Jy
! Component: 100  -  total flux cleaned = 0.574764 Jy
! Total flux subtracted in 100 components = 0.574764 Jy
! Clean residual min=-0.054700 max=0.140812 Jy/beam
! Clean residual mean=0.004716 rms=0.020992 Jy/beam
! Combined flux in latest and established models = 0.574764 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 0.574764 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.570661Jy  sigma=0.004606
! Fit after  self-cal, rms=0.566309Jy  sigma=0.004582
! Inverting map 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1742 milli-arcsec
!  The y-axis pixel size should ideally be below 0.147 milli-arcsec
! Added new window around map position (4.4, 2.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.159836 Jy
! Component: 100  -  total flux cleaned = 0.270228 Jy
! Total flux subtracted in 100 components = 0.270228 Jy
! Clean residual min=-0.043290 max=0.102142 Jy/beam
! Clean residual mean=0.003717 rms=0.016211 Jy/beam
! Combined flux in latest and established models = 0.844991 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 11 components and 0.844991 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.487382Jy  sigma=0.003718
! Fit after  self-cal, rms=0.479527Jy  sigma=0.003696
! Inverting map 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1742 milli-arcsec
!  The y-axis pixel size should ideally be below 0.147 milli-arcsec
! Added new window around map position (3.4, 1.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.113072 Jy
! Component: 100  -  total flux cleaned = 0.198949 Jy
! Total flux subtracted in 100 components = 0.198949 Jy
! Clean residual min=-0.037591 max=0.079341 Jy/beam
! Clean residual mean=0.002941 rms=0.012989 Jy/beam
! Combined flux in latest and established models = 1.04394 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 20 components and 1.04394 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.419452Jy  sigma=0.003072
! Fit after  self-cal, rms=0.410224Jy  sigma=0.003036
! Inverting map 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1742 milli-arcsec
!  The y-axis pixel size should ideally be below 0.147 milli-arcsec
! Added new window around map position (1, 0.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0892208 Jy
! Component: 100  -  total flux cleaned = 0.160078 Jy
! Total flux subtracted in 100 components = 0.160078 Jy
! Clean residual min=-0.031029 max=0.044671 Jy/beam
! Clean residual mean=0.002301 rms=0.010289 Jy/beam
! Combined flux in latest and established models = 1.20402 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 27 components and 1.20402 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.368448Jy  sigma=0.002546
! Fit after  self-cal, rms=0.364587Jy  sigma=0.002532
! Inverting map 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1742 milli-arcsec
!  The y-axis pixel size should ideally be below 0.147 milli-arcsec
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 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1742 milli-arcsec
!  The y-axis pixel size should ideally be below 0.147 milli-arcsec
! Estimated beam: bmin=0.5997 mas, bmaj=1.021 mas, bpa=-3.422 degrees
! Estimated noise=399.061 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.140466 Jy
! Component: 100  -  total flux cleaned = 0.237878 Jy
! Component: 150  -  total flux cleaned = 0.311532 Jy
! Component: 200  -  total flux cleaned = 0.368003 Jy
! Total flux subtracted in 200 components = 0.368003 Jy
! Clean residual min=-0.028693 max=0.046239 Jy/beam
! Clean residual mean=0.006198 rms=0.011324 Jy/beam
! Combined flux in latest and established models = 1.57202 Jy
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 51 components and 1.57202 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.299184Jy  sigma=0.001654
! Fit after  self-cal, rms=0.290918Jy  sigma=0.001584
! Inverting map 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1742 milli-arcsec
!  The y-axis pixel size should ideally be below 0.147 milli-arcsec
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        1.00*    GC        1.10     HH        1.14     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.90     MK        1.00*    NY        0.97     ON        1.02     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.10     
!   WF        1.00*    WZ        0.90     GN        1.00*    NL        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        0.95     GC        1.14     HH        1.11     
!   HN        1.21     KK        1.00*    KP        0.94     LA        0.94     
!   MC        0.91     MK        1.00*    NY        0.96     ON        0.90     
!   OV        1.00*    PT        0.93     SC        1.03     TS        1.00*    
!   WF        1.01     WZ        0.86     GN        1.00*    NL        1.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.00*    GC        1.02     HH        1.10     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.90     MK        1.00*    NY        0.98     ON        0.99     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.12     
!   WF        1.00*    WZ        0.89     GN        1.00*    NL        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        0.96     GC        1.08     HH        1.08     
!   HN        1.21     KK        1.00*    KP        0.90     LA        0.93     
!   MC        0.90     MK        1.00*    NY        0.95     ON        0.90     
!   OV        1.00*    PT        0.92     SC        0.98     TS        1.00*    
!   WF        1.02     WZ        0.86     GN        1.00*    NL        1.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.00*    GC        1.01     HH        1.07     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.90     MK        1.00*    NY        0.98     ON        0.96     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.21     
!   WF        1.00*    WZ        0.86     GN        1.00*    NL        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.97     GC        1.09     HH        1.16     
!   HN        1.25     KK        1.00*    KP        0.93     LA        0.93     
!   MC        0.88     MK        1.00*    NY        0.93     ON        0.91     
!   OV        1.00*    PT        0.93     SC        0.98     TS        1.00*    
!   WF        0.99     WZ        0.86     GN        1.00*    NL        0.99     
! 
! 
! 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        1.00*    GC        0.94     HH        1.01     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.92     MK        1.00*    NY        1.06     ON        0.95     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.23     
!   WF        1.00*    WZ        0.88     GN        1.00*    NL        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        0.96     GC        1.09     HH        1.04     
!   HN        1.28     KK        1.00*    KP        0.91     LA        0.94     
!   MC        0.89     MK        1.00*    NY        0.98     ON        0.91     
!   OV        1.00*    PT        0.93     SC        0.97     TS        1.00*    
!   WF        0.99     WZ        0.87     GN        1.00*    NL        1.01     
! 
! 
! Fit before self-cal, rms=0.290918Jy  sigma=0.001584
! Fit after  self-cal, rms=0.267794Jy  sigma=0.001319
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1742 milli-arcsec
!  The y-axis pixel size should ideally be below 0.147 milli-arcsec
! Estimated beam: bmin=0.59 mas, bmaj=1.044 mas, bpa=-2.081 degrees
! Estimated noise=376.413 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.0211875 Jy
! Component: 100  -  total flux cleaned = 0.0283153 Jy
! Component: 150  -  total flux cleaned = 0.0320785 Jy
! Component: 200  -  total flux cleaned = 0.0335173 Jy
! Total flux subtracted in 200 components = 0.0335173 Jy
! Clean residual min=-0.010511 max=0.009014 Jy/beam
! Clean residual mean=-0.000706 rms=0.003179 Jy/beam
! Combined flux in latest and established models = 1.60554 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 64 components and 1.60554 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.264145Jy  sigma=0.001286
! Fit after  self-cal, rms=0.263500Jy  sigma=0.001279
! Inverting map 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1742 milli-arcsec
!  The y-axis pixel size should ideally be below 0.147 milli-arcsec
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.263500Jy  sigma=0.001279
! Fit after  self-cal, rms=0.260326Jy  sigma=0.001275
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1742 milli-arcsec
!  The y-axis pixel size should ideally be below 0.147 milli-arcsec
! Estimated beam: bmin=0.5906 mas, bmaj=1.038 mas, bpa=-2.252 degrees
! Estimated noise=375.139 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.011272 Jy
! Component: 100  -  total flux cleaned = 0.0141778 Jy
! Component: 150  -  total flux cleaned = 0.0152631 Jy
! Component: 200  -  total flux cleaned = 0.0161256 Jy
! Total flux subtracted in 200 components = 0.0161256 Jy
! Clean residual min=-0.008513 max=0.007926 Jy/beam
! Clean residual mean=-0.000394 rms=0.002240 Jy/beam
! Combined flux in latest and established models = 1.62166 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 71 components and 1.62166 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.259207Jy  sigma=0.001266
! Fit after  self-cal, rms=0.258866Jy  sigma=0.001264
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1742 milli-arcsec
!  The y-axis pixel size should ideally be below 0.147 milli-arcsec
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.00251905 Jy
! Component: 100  -  total flux cleaned = 0.00332746 Jy
! Component: 150  -  total flux cleaned = 0.00367443 Jy
! Component: 200  -  total flux cleaned = 0.00382973 Jy
! Total flux subtracted in 200 components = 0.00382973 Jy
! Clean residual min=-0.007626 max=0.007085 Jy/beam
! Clean residual mean=-0.000534 rms=0.001962 Jy/beam
! Combined flux in latest and established models = 1.62549 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 74 components and 1.62549 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.258523Jy  sigma=0.001261
! Fit after  self-cal, rms=0.258453Jy  sigma=0.001260
! Inverting map 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1742 milli-arcsec
!  The y-axis pixel size should ideally be below 0.147 milli-arcsec
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.258453Jy  sigma=0.001260
! Fit after  self-cal, rms=0.257755Jy  sigma=0.001257
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1742 milli-arcsec
!  The y-axis pixel size should ideally be below 0.147 milli-arcsec
! Estimated beam: bmin=0.5906 mas, bmaj=1.036 mas, bpa=-2.363 degrees
! Estimated noise=374.06 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00593942 Jy
! Component: 100  -  total flux cleaned = 0.00737737 Jy
! Component: 150  -  total flux cleaned = 0.00783531 Jy
! Component: 200  -  total flux cleaned = 0.00809763 Jy
! Total flux subtracted in 200 components = 0.00809763 Jy
! Clean residual min=-0.006375 max=0.007266 Jy/beam
! Clean residual mean=-0.000202 rms=0.001646 Jy/beam
! Combined flux in latest and established models = 1.63359 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 77 components and 1.63359 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.257485Jy  sigma=0.001255
! Fit after  self-cal, rms=0.257458Jy  sigma=0.001255
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1742 milli-arcsec
!  The y-axis pixel size should ideally be below 0.147 milli-arcsec
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.6, 0.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000757049 Jy
! Component: 100  -  total flux cleaned = 0.0007481 Jy
! Component: 150  -  total flux cleaned = 0.000911744 Jy
! Component: 200  -  total flux cleaned = 0.00104288 Jy
! Total flux subtracted in 200 components = 0.00104288 Jy
! Clean residual min=-0.005001 max=0.005638 Jy/beam
! Clean residual mean=-0.000238 rms=0.001443 Jy/beam
! Combined flux in latest and established models = 1.63463 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 91 components and 1.63463 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.257101Jy  sigma=0.001251
! Fit after  self-cal, rms=0.257098Jy  sigma=0.001251
! Inverting map 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1742 milli-arcsec
!  The y-axis pixel size should ideally be below 0.147 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 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.257098Jy  sigma=0.001251
! Fit after  self-cal, rms=0.256980Jy  sigma=0.001249
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1742 milli-arcsec
!  The y-axis pixel size should ideally be below 0.147 milli-arcsec
! Estimated beam: bmin=2.41 mas, bmaj=2.887 mas, bpa=-79.77 degrees
! Estimated noise=552.256 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00399751 Jy
! Component: 100  -  total flux cleaned = 0.00452211 Jy
! Component: 150  -  total flux cleaned = 0.00460129 Jy
! Component: 200  -  total flux cleaned = 0.0045317 Jy
! Total flux subtracted in 200 components = 0.0045317 Jy
! Clean residual min=-0.006812 max=0.004277 Jy/beam
! Clean residual mean=-0.000335 rms=0.001818 Jy/beam
! Combined flux in latest and established models = 1.63917 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 98 components and 1.63917 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.256925Jy  sigma=0.001249
! Fit after  self-cal, rms=0.256904Jy  sigma=0.001249
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1742 milli-arcsec
!  The y-axis pixel size should ideally be below 0.147 milli-arcsec
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.000956807 Jy
! Component: 100  -  total flux cleaned = 0.00111151 Jy
! Component: 150  -  total flux cleaned = 0.00111333 Jy
! Component: 200  -  total flux cleaned = 0.00105979 Jy
! Total flux subtracted in 200 components = 0.00105979 Jy
! Clean residual min=-0.006492 max=0.004206 Jy/beam
! Clean residual mean=-0.000468 rms=0.001724 Jy/beam
! Combined flux in latest and established models = 1.64023 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 105 components and 1.64023 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.256931Jy  sigma=0.001249
! Fit after  self-cal, rms=0.256929Jy  sigma=0.001249
! Inverting map 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1742 milli-arcsec
!  The y-axis pixel size should ideally be below 0.147 milli-arcsec
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 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1742 milli-arcsec
!  The y-axis pixel size should ideally be below 0.147 milli-arcsec
! Estimated beam: bmin=0.5904 mas, bmaj=1.035 mas, bpa=-2.373 degrees
! Estimated noise=374.055 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.5904 x 1.035 at -2.373 degrees (North through East)
! Clean map  min=-0.0067352  max=0.49614 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
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 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1742 milli-arcsec
!  The y-axis pixel size should ideally be below 0.147 milli-arcsec
! Estimated beam: bmin=0.4791 mas, bmaj=0.7839 mas, bpa=-3.346 degrees
! Estimated noise=1174.3 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.348067 Jy
! Component: 100  -  total flux cleaned = 0.560573 Jy
! Component: 150  -  total flux cleaned = 0.716721 Jy
! Component: 200  -  total flux cleaned = 0.841266 Jy
! Total flux subtracted in 200 components = 0.841266 Jy
! Clean residual min=-0.034796 max=0.075767 Jy/beam
! Clean residual mean=0.003045 rms=0.014138 Jy/beam
! Combined flux in latest and established models = 0.841265 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 18 model components to the UV plane model.
! The established model now contains 18 components and 0.841265 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1742 milli-arcsec
!  The y-axis pixel size should ideally be below 0.147 milli-arcsec
! Estimated beam: bmin=0.5904 mas, bmaj=1.035 mas, bpa=-2.373 degrees
! Estimated noise=374.055 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.208376 Jy
! Component: 100  -  total flux cleaned = 0.355031 Jy
! Component: 150  -  total flux cleaned = 0.463079 Jy
! Component: 200  -  total flux cleaned = 0.543991 Jy
! Total flux subtracted in 200 components = 0.543991 Jy
! Clean residual min=-0.015414 max=0.046946 Jy/beam
! Clean residual mean=0.007508 rms=0.010899 Jy/beam
! Combined flux in latest and established models = 1.38526 Jy
! Adding 31 model components to the UV plane model.
! The established model now contains 35 components and 1.38526 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1742 milli-arcsec
!  The y-axis pixel size should ideally be below 0.147 milli-arcsec
! Added new window around map position (3.8, 2.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0611325 Jy
! Component: 100  -  total flux cleaned = 0.107679 Jy
! Component: 150  -  total flux cleaned = 0.143324 Jy
! Component: 200  -  total flux cleaned = 0.17071 Jy
! Total flux subtracted in 200 components = 0.17071 Jy
! Clean residual min=-0.008162 max=0.016423 Jy/beam
! Clean residual mean=0.002383 rms=0.003942 Jy/beam
! Combined flux in latest and established models = 1.55597 Jy
! Adding 36 model components to the UV plane model.
! The established model now contains 58 components and 1.55597 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1742 milli-arcsec
!  The y-axis pixel size should ideally be below 0.147 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1742 milli-arcsec
!  The y-axis pixel size should ideally be below 0.147 milli-arcsec
! Estimated beam: bmin=2.41 mas, bmaj=2.887 mas, bpa=-79.77 degrees
! Estimated noise=552.256 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0438226 Jy
! Component: 100  -  total flux cleaned = 0.0636453 Jy
! Component: 150  -  total flux cleaned = 0.0737072 Jy
! Component: 200  -  total flux cleaned = 0.0791444 Jy
! Total flux subtracted in 200 components = 0.0791444 Jy
! Clean residual min=-0.006122 max=0.004776 Jy/beam
! Clean residual mean=0.000029 rms=0.001864 Jy/beam
! Combined flux in latest and established models = 1.63511 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.00240145 Jy
! Component: 100  -  total flux cleaned = 0.00259482 Jy
! Component: 150  -  total flux cleaned = 0.0027676 Jy
! Component: 200  -  total flux cleaned = 0.00293174 Jy
! Total flux subtracted in 200 components = 0.00293174 Jy
! Clean residual min=-0.005717 max=0.004298 Jy/beam
! Clean residual mean=-0.000280 rms=0.001706 Jy/beam
! Combined flux in latest and established models = 1.63804 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 77 components and 1.63804 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1742 milli-arcsec
!  The y-axis pixel size should ideally be below 0.147 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1742 milli-arcsec
!  The y-axis pixel size should ideally be below 0.147 milli-arcsec
! Estimated beam: bmin=0.5904 mas, bmaj=1.035 mas, bpa=-2.373 degrees
! Estimated noise=374.055 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0018672 Jy
! Component: 100  -  total flux cleaned = 0.00210315 Jy
! Component: 150  -  total flux cleaned = 0.00275488 Jy
! Component: 200  -  total flux cleaned = 0.00275625 Jy
! Total flux subtracted in 200 components = 0.00275625 Jy
! Clean residual min=-0.005563 max=0.005832 Jy/beam
! Clean residual mean=-0.000167 rms=0.001439 Jy/beam
! Combined flux in latest and established models = 1.6408 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 87 components and 1.6408 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.256867Jy  sigma=0.001253
! Fit after  self-cal, rms=0.256629Jy  sigma=0.001250
wmodel J0418+3801_X_1999_12_20_pus_map.mod
! Writing 87 model components to file: J0418+3801_X_1999_12_20_pus_map.mod
wobs J0418+3801_X_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J0418+3801_X_1999_12_20_pus_uvs.fits
wwins J0418+3801_X_1999_12_20_pus_map.win
! wwins: Wrote 6 windows to J0418+3801_X_1999_12_20_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1742 milli-arcsec
!  The y-axis pixel size should ideally be below 0.147 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00107839 Jy
! Component: 100  -  total flux cleaned = 0.0007453 Jy
! Component: 150  -  total flux cleaned = 0.000505096 Jy
! Component: 200  -  total flux cleaned = 0.000351964 Jy
! Component: 250  -  total flux cleaned = 0.000349803 Jy
! Component: 300  -  total flux cleaned = 0.000419936 Jy
! Component: 350  -  total flux cleaned = 0.000488746 Jy
! Component: 400  -  total flux cleaned = 0.00062394 Jy
! Component: 450  -  total flux cleaned = 0.000755411 Jy
! Component: 500  -  total flux cleaned = 0.000820142 Jy
! Component: 550  -  total flux cleaned = 0.00100915 Jy
! Component: 600  -  total flux cleaned = 0.00113159 Jy
! Component: 650  -  total flux cleaned = 0.00119236 Jy
! Component: 700  -  total flux cleaned = 0.00131161 Jy
! Component: 750  -  total flux cleaned = 0.00136982 Jy
! Component: 800  -  total flux cleaned = 0.00137051 Jy
! Component: 850  -  total flux cleaned = 0.00137065 Jy
! Component: 900  -  total flux cleaned = 0.00131583 Jy
! Component: 950  -  total flux cleaned = 0.00131649 Jy
! Component: 1000  -  total flux cleaned = 0.00131695 Jy
! Total flux subtracted in 1024 components = 0.00131698 Jy
! Clean residual min=-0.002646 max=0.002652 Jy/beam
! Clean residual mean=-0.000139 rms=0.000964 Jy/beam
! Combined flux in latest and established models = 1.64212 Jy
keep
! Adding 70 model components to the UV plane model.
! The established model now contains 156 components and 1.64212 Jy
![Exited script file: muppet]
wmap "J0418+3801_X_1999_12_20_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1742 milli-arcsec
!  The y-axis pixel size should ideally be below 0.147 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.5904 x 1.035 at -2.373 degrees (North through East)
! Clean map  min=-0.0038931  max=0.48523 Jy/beam
! Writing clean map to FITS file: J0418+3801_X_1999_12_20_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.485233 
invert
! Inverting map 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1742 milli-arcsec
!  The y-axis pixel size should ideally be below 0.147 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000961546 
device "J0418+3801_X_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J0418+3801_X_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.594485 0.594485 1.18897 2.37794 4.75588 9.51176 19.0235 38.0471 76.0941
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0028 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.485 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.5904 x 1.035 at -2.373 degrees (North through East)
! Clean map  min=-0.0038931  max=0.48523 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0418+3801_X_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J0418+3801_X_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0418+3801_X_1999_12_20_pus_uvs.log closed on Fri Dec 14 17:12:13 2007