! Started logfile: J0238+1636_X_1999_12_20_pus_uvs.log on Tue Dec 18 11:12:28 2007
obs J0238+1636_X_1999_12_20_pus_uva.fits
! Reading UV FITS file: J0238+1636_X_1999_12_20_pus_uva.fits
! AN table 1: 42 integrations on 190 of 190 possible baselines.
! AN table 2: 12 integrations on 190 of 190 possible baselines.
! AN table 3: 120 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.167846 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0238+1636
! 
! 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 2422 lines of history.
! 
! Reading 22196 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 J0238+1636_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 687 telescope corrections were flagged in sub-array 1.
!  A total of 195 telescope corrections were flagged in sub-array 2.
!  A total of 1421 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 687 telescope corrections were flagged in sub-array 1.
!  A total of 195 telescope corrections were flagged in sub-array 2.
!  A total of 1431 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 687 telescope corrections were flagged in sub-array 1.
!  A total of 195 telescope corrections were flagged in sub-array 2.
!  A total of 1442 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 720 telescope corrections were flagged in sub-array 1.
!  A total of 195 telescope corrections were flagged in sub-array 2.
!  A total of 1408 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.361197Jy  sigma=0.013132
! Fit after  self-cal, rms=0.341107Jy  sigma=0.003110
! 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 5.92% of the data.
!  The x-axis pixel size should ideally be below 0.1548 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1705 milli-arcsec
! Estimated beam: bmin=0.5621 mas, bmaj=0.96 mas, bpa=4.284 degrees
! Estimated noise=1160.28 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.928057 Jy
! Component: 100  -  total flux cleaned = 1.13891 Jy
! Total flux subtracted in 100 components = 1.13891 Jy
! Clean residual min=-0.026678 max=0.078785 Jy/beam
! Clean residual mean=0.000395 rms=0.009133 Jy/beam
! Combined flux in latest and established models = 1.13891 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 1.13891 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.272708Jy  sigma=0.002338
! Fit after  self-cal, rms=0.272684Jy  sigma=0.002338
! Inverting map 
! Your choice of large map pixels excluded 5.92% of the data.
!  The x-axis pixel size should ideally be below 0.1548 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1705 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0867536 Jy
! Component: 100  -  total flux cleaned = 0.137649 Jy
! Total flux subtracted in 100 components = 0.137649 Jy
! Clean residual min=-0.021000 max=0.032758 Jy/beam
! Clean residual mean=0.000184 rms=0.006661 Jy/beam
! Combined flux in latest and established models = 1.27656 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 13 components and 1.27656 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.236399Jy  sigma=0.001838
! Fit after  self-cal, rms=0.236349Jy  sigma=0.001838
! Inverting map 
! Your choice of large map pixels excluded 5.92% of the data.
!  The x-axis pixel size should ideally be below 0.1548 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1705 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 5.92% of the data.
!  The x-axis pixel size should ideally be below 0.1548 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1705 milli-arcsec
! Estimated beam: bmin=0.6491 mas, bmaj=1.22 mas, bpa=6.453 degrees
! Estimated noise=543.628 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.0538895 Jy
! Component: 100  -  total flux cleaned = 0.0840599 Jy
! Component: 150  -  total flux cleaned = 0.102921 Jy
! Component: 200  -  total flux cleaned = 0.114818 Jy
! Total flux subtracted in 200 components = 0.114818 Jy
! Clean residual min=-0.016190 max=0.020952 Jy/beam
! Clean residual mean=0.000074 rms=0.004520 Jy/beam
! Combined flux in latest and established models = 1.39138 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 26 components and 1.39138 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.226925Jy  sigma=0.001666
! Fit after  self-cal, rms=0.226826Jy  sigma=0.001666
! Inverting map 
! Your choice of large map pixels excluded 5.92% of the data.
!  The x-axis pixel size should ideally be below 0.1548 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1705 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.81     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.96     MK        1.00*    NY        1.04     ON        1.01     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.31     
!   WF        1.00*    WZ        1.02     GN        1.00*    NL        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.13     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.00     MK        1.00*    NY        1.06     ON        1.02     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        0.83     
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.99     GC        1.00     HH        1.00*    
!   HN        1.05     KK        0.96     KP        0.99     LA        0.98     
!   MC        1.00*    MK        0.94     NY        1.11     ON        1.00*    
!   OV        0.98     PT        0.98     SC        1.09     TS        1.03     
!   WF        0.97     WZ        1.00*    GN        0.96     NL        0.99     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.82     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.95     MK        1.00*    NY        1.02     ON        1.01     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.32     
!   WF        1.00*    WZ        1.00     GN        1.00*    NL        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.19     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.01     MK        1.00*    NY        1.03     ON        0.98     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        0.83     
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.99     GC        0.96     HH        1.00*    
!   HN        1.05     KK        0.95     KP        0.94     LA        0.98     
!   MC        1.00*    MK        0.95     NY        1.10     ON        1.00*    
!   OV        0.98     PT        0.97     SC        1.04     TS        1.02     
!   WF        0.98     WZ        1.00*    GN        0.94     NL        0.99     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.80     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.95     MK        1.00*    NY        0.95     ON        1.00     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.44     
!   WF        1.00*    WZ        0.99     GN        1.00*    NL        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.08     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.97     MK        1.00*    NY        1.00     ON        1.00     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        0.85     
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.99     GC        1.00     HH        1.00*    
!   HN        1.07     KK        0.97     KP        0.97     LA        0.98     
!   MC        1.00*    MK        0.94     NY        1.09     ON        1.00*    
!   OV        0.98     PT        0.99     SC        1.06     TS        1.02     
!   WF        0.98     WZ        1.00*    GN        0.97     NL        1.00     
! 
! 
! Correcting IF 4.
!  A total of 54 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.77     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.95     MK        1.00*    NY        1.03     ON        1.03     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.04     GN        1.00*    NL        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.12     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.99     MK        1.00*    NY        1.01     ON        1.04     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        0.87     
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        0.99     GC        1.01     HH        1.00*    
!   HN        1.09     KK        0.97     KP        0.95     LA        0.99     
!   MC        1.00*    MK        0.93     NY        1.12     ON        1.00*    
!   OV        0.98     PT        0.99     SC        1.05     TS        1.02     
!   WF        0.97     WZ        1.00*    GN        0.97     NL        1.01     
! 
! 
! Fit before self-cal, rms=0.226826Jy  sigma=0.001666
! Fit after  self-cal, rms=0.214179Jy  sigma=0.001495
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 5.84% of the data.
!  The x-axis pixel size should ideally be below 0.1548 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1705 milli-arcsec
! Estimated beam: bmin=0.6555 mas, bmaj=1.229 mas, bpa=6.206 degrees
! Estimated noise=543.919 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.0173847 Jy
! Component: 100  -  total flux cleaned = -0.0224584 Jy
! Component: 150  -  total flux cleaned = -0.0226084 Jy
! Component: 200  -  total flux cleaned = -0.0229919 Jy
! Total flux subtracted in 200 components = -0.0229919 Jy
! Clean residual min=-0.010416 max=0.013434 Jy/beam
! Clean residual mean=0.000274 rms=0.003048 Jy/beam
! Combined flux in latest and established models = 1.36839 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 29 components and 1.36839 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.212545Jy  sigma=0.001473
! Fit after  self-cal, rms=0.212661Jy  sigma=0.001473
! Inverting map 
! Your choice of large map pixels excluded 5.84% of the data.
!  The x-axis pixel size should ideally be below 0.1548 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1705 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.212661Jy  sigma=0.001473
! Fit after  self-cal, rms=0.203192Jy  sigma=0.001324
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 5.84% of the data.
!  The x-axis pixel size should ideally be below 0.1548 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1705 milli-arcsec
! Estimated beam: bmin=0.6611 mas, bmaj=1.232 mas, bpa=6.036 degrees
! Estimated noise=544.726 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0114767 Jy
! Component: 100  -  total flux cleaned = -0.0127986 Jy
! Component: 150  -  total flux cleaned = -0.0142764 Jy
! Component: 200  -  total flux cleaned = -0.0154906 Jy
! Total flux subtracted in 200 components = -0.0154906 Jy
! Clean residual min=-0.006982 max=0.006953 Jy/beam
! Clean residual mean=0.000266 rms=0.001728 Jy/beam
! Combined flux in latest and established models = 1.3529 Jy
selfcal
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 31 components and 1.3529 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.202204Jy  sigma=0.001307
! Fit after  self-cal, rms=0.202254Jy  sigma=0.001307
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 5.84% of the data.
!  The x-axis pixel size should ideally be below 0.1548 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1705 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.00100179 Jy
! Component: 100  -  total flux cleaned = -0.0018345 Jy
! Component: 150  -  total flux cleaned = -0.00245035 Jy
! Component: 200  -  total flux cleaned = -0.0030465 Jy
! Total flux subtracted in 200 components = -0.0030465 Jy
! Clean residual min=-0.007103 max=0.007298 Jy/beam
! Clean residual mean=0.000295 rms=0.001724 Jy/beam
! Combined flux in latest and established models = 1.34985 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 32 components and 1.34985 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.202131Jy  sigma=0.001305
! Fit after  self-cal, rms=0.202135Jy  sigma=0.001305
! Inverting map 
! Your choice of large map pixels excluded 5.84% of the data.
!  The x-axis pixel size should ideally be below 0.1548 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1705 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.202135Jy  sigma=0.001305
! Fit after  self-cal, rms=0.331890Jy  sigma=0.001264
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 5.84% of the data.
!  The x-axis pixel size should ideally be below 0.1548 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1705 milli-arcsec
! Estimated beam: bmin=0.6634 mas, bmaj=1.235 mas, bpa=5.883 degrees
! Estimated noise=544.921 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00700389 Jy
! Component: 100  -  total flux cleaned = -0.00810892 Jy
! Component: 150  -  total flux cleaned = -0.00893203 Jy
! Component: 200  -  total flux cleaned = -0.009392 Jy
! Total flux subtracted in 200 components = -0.009392 Jy
! Clean residual min=-0.004832 max=0.005087 Jy/beam
! Clean residual mean=0.000303 rms=0.001185 Jy/beam
! Combined flux in latest and established models = 1.34046 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 32 components and 1.34046 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.331718Jy  sigma=0.001260
! Fit after  self-cal, rms=0.331748Jy  sigma=0.001260
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 5.84% of the data.
!  The x-axis pixel size should ideally be below 0.1548 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1705 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 (1.6, 3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00306174 Jy
! Component: 100  -  total flux cleaned = 0.00239993 Jy
! Component: 150  -  total flux cleaned = 0.00191798 Jy
! Component: 200  -  total flux cleaned = 0.00170007 Jy
! Total flux subtracted in 200 components = 0.00170007 Jy
! Clean residual min=-0.004855 max=0.004329 Jy/beam
! Clean residual mean=0.000289 rms=0.001148 Jy/beam
! Combined flux in latest and established models = 1.34216 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 44 components and 1.34216 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.331650Jy  sigma=0.001259
! Fit after  self-cal, rms=0.331648Jy  sigma=0.001259
! Inverting map 
! Your choice of large map pixels excluded 5.84% of the data.
!  The x-axis pixel size should ideally be below 0.1548 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1705 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.331648Jy  sigma=0.001259
! Fit after  self-cal, rms=0.332140Jy  sigma=0.001257
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 5.84% of the data.
!  The x-axis pixel size should ideally be below 0.1548 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1705 milli-arcsec
! Estimated beam: bmin=2.123 mas, bmaj=2.504 mas, bpa=-1.094 degrees
! Estimated noise=793.644 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00297782 Jy
! Component: 100  -  total flux cleaned = -0.0025193 Jy
! Component: 150  -  total flux cleaned = -0.00244796 Jy
! Component: 200  -  total flux cleaned = -0.00244722 Jy
! Total flux subtracted in 200 components = -0.00244722 Jy
! Clean residual min=-0.003317 max=0.004324 Jy/beam
! Clean residual mean=0.000877 rms=0.001194 Jy/beam
! Combined flux in latest and established models = 1.33971 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 51 components and 1.33971 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.332164Jy  sigma=0.001257
! Fit after  self-cal, rms=0.332167Jy  sigma=0.001257
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 5.84% of the data.
!  The x-axis pixel size should ideally be below 0.1548 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1705 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.000397435 Jy
! Component: 100  -  total flux cleaned = 0.000399002 Jy
! Component: 150  -  total flux cleaned = 0.000402187 Jy
! Component: 200  -  total flux cleaned = 0.000403283 Jy
! Total flux subtracted in 200 components = 0.000403283 Jy
! Clean residual min=-0.003286 max=0.004429 Jy/beam
! Clean residual mean=0.000868 rms=0.001185 Jy/beam
! Combined flux in latest and established models = 1.34011 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 53 components and 1.34011 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.332173Jy  sigma=0.001258
! Fit after  self-cal, rms=0.332179Jy  sigma=0.001258
! Inverting map 
! Your choice of large map pixels excluded 5.84% of the data.
!  The x-axis pixel size should ideally be below 0.1548 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1705 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 5.84% of the data.
!  The x-axis pixel size should ideally be below 0.1548 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1705 milli-arcsec
! Estimated beam: bmin=0.6651 mas, bmaj=1.236 mas, bpa=5.852 degrees
! Estimated noise=544.872 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6651 x 1.236 at 5.852 degrees (North through East)
! Clean map  min=-0.0036006  max=1.2205 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.332179Jy  sigma=0.001258
! Fit after  self-cal, rms=0.321234Jy  sigma=0.001173
! Inverting map and beam 
! Your choice of large map pixels excluded 5.84% of the data.
!  The x-axis pixel size should ideally be below 0.1548 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1705 milli-arcsec
! Estimated beam: bmin=0.6651 mas, bmaj=1.236 mas, bpa=5.855 degrees
! Estimated noise=542.877 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0043659 Jy
! Component: 100  -  total flux cleaned = -0.00511713 Jy
! Component: 150  -  total flux cleaned = -0.00576097 Jy
! Component: 200  -  total flux cleaned = -0.00623908 Jy
! Total flux subtracted in 200 components = -0.00623908 Jy
! Clean residual min=-0.003366 max=0.003509 Jy/beam
! Clean residual mean=0.000283 rms=0.000914 Jy/beam
! Combined flux in latest and established models = 1.33387 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 54 components and 1.33387 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.321153Jy  sigma=0.001171
! Fit after  self-cal, rms=0.321143Jy  sigma=0.001171
! Inverting map 
! Your choice of large map pixels excluded 5.84% of the data.
!  The x-axis pixel size should ideally be below 0.1548 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1705 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000511749 Jy
! Component: 100  -  total flux cleaned = -0.000835707 Jy
! Component: 150  -  total flux cleaned = -0.00106948 Jy
! Component: 200  -  total flux cleaned = -0.00123278 Jy
! Total flux subtracted in 200 components = -0.00123278 Jy
! Clean residual min=-0.003410 max=0.003530 Jy/beam
! Clean residual mean=0.000294 rms=0.000905 Jy/beam
! Combined flux in latest and established models = 1.33264 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 58 components and 1.33264 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.321121Jy  sigma=0.001171
! Fit after  self-cal, rms=0.321117Jy  sigma=0.001171
! Inverting map 
! Your choice of large map pixels excluded 5.84% of the data.
!  The x-axis pixel size should ideally be below 0.1548 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1705 milli-arcsec
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.321117Jy  sigma=0.001171
! Fit after  self-cal, rms=0.321952Jy  sigma=0.001170
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 5.84% of the data.
!  The x-axis pixel size should ideally be below 0.1548 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1705 milli-arcsec
! Estimated beam: bmin=0.5703 mas, bmaj=0.9703 mas, bpa=2.956 degrees
! Estimated noise=1164.97 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.934397 Jy
! Component: 100  -  total flux cleaned = 1.13832 Jy
! Component: 150  -  total flux cleaned = 1.20153 Jy
! Component: 200  -  total flux cleaned = 1.23763 Jy
! Total flux subtracted in 200 components = 1.23763 Jy
! Clean residual min=-0.007195 max=0.019062 Jy/beam
! Clean residual mean=0.000185 rms=0.002528 Jy/beam
! Combined flux in latest and established models = 1.23763 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 15 model components to the UV plane model.
! The established model now contains 15 components and 1.23763 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 5.84% of the data.
!  The x-axis pixel size should ideally be below 0.1548 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1705 milli-arcsec
! Estimated beam: bmin=0.6664 mas, bmaj=1.236 mas, bpa=5.843 degrees
! Estimated noise=542.856 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.0367501 Jy
! Component: 100  -  total flux cleaned = 0.0570443 Jy
! Component: 150  -  total flux cleaned = 0.0690804 Jy
! Component: 200  -  total flux cleaned = 0.0764512 Jy
! Total flux subtracted in 200 components = 0.0764512 Jy
! Clean residual min=-0.003428 max=0.004817 Jy/beam
! Clean residual mean=0.000424 rms=0.000988 Jy/beam
! Combined flux in latest and established models = 1.31408 Jy
! Adding 31 model components to the UV plane model.
! The established model now contains 36 components and 1.31408 Jy
! Inverting map 
! Your choice of large map pixels excluded 5.84% of the data.
!  The x-axis pixel size should ideally be below 0.1548 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1705 milli-arcsec
! Added new window around map position (0.2, -1.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00535108 Jy
! Component: 100  -  total flux cleaned = 0.00871232 Jy
! Component: 150  -  total flux cleaned = 0.0104562 Jy
! Component: 200  -  total flux cleaned = 0.0118028 Jy
! Total flux subtracted in 200 components = 0.0118028 Jy
! Clean residual min=-0.003274 max=0.003543 Jy/beam
! Clean residual mean=0.000312 rms=0.000830 Jy/beam
! Combined flux in latest and established models = 1.32589 Jy
! Adding 18 model components to the UV plane model.
! The established model now contains 46 components and 1.32589 Jy
! Inverting map 
! Your choice of large map pixels excluded 5.84% of the data.
!  The x-axis pixel size should ideally be below 0.1548 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1705 milli-arcsec
! Added new window around map position (1.8, -10).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00286474 Jy
! Component: 100  -  total flux cleaned = 0.00373921 Jy
! Component: 150  -  total flux cleaned = 0.00412548 Jy
! Component: 200  -  total flux cleaned = 0.00455171 Jy
! Total flux subtracted in 200 components = 0.00455171 Jy
! Clean residual min=-0.003083 max=0.003177 Jy/beam
! Clean residual mean=0.000284 rms=0.000798 Jy/beam
! Combined flux in latest and established models = 1.33044 Jy
! Adding 28 model components to the UV plane model.
! The established model now contains 63 components and 1.33044 Jy
! Inverting map 
! Your choice of large map pixels excluded 5.84% of the data.
!  The x-axis pixel size should ideally be below 0.1548 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1705 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 5.84% of the data.
!  The x-axis pixel size should ideally be below 0.1548 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1705 milli-arcsec
! Estimated beam: bmin=2.124 mas, bmaj=2.505 mas, bpa=-1.191 degrees
! Estimated noise=788.363 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00174545 Jy
! Component: 100  -  total flux cleaned = 0.00235758 Jy
! Component: 150  -  total flux cleaned = 0.00274331 Jy
! Component: 200  -  total flux cleaned = 0.00298551 Jy
! Total flux subtracted in 200 components = 0.00298551 Jy
! Clean residual min=-0.002611 max=0.004128 Jy/beam
! Clean residual mean=0.000877 rms=0.001129 Jy/beam
! Combined flux in latest and established models = 1.33343 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.000212682 Jy
! Component: 100  -  total flux cleaned = 0.000338942 Jy
! Component: 150  -  total flux cleaned = 0.000452489 Jy
! Component: 200  -  total flux cleaned = 0.000425626 Jy
! Total flux subtracted in 200 components = 0.000425626 Jy
! Clean residual min=-0.002545 max=0.004175 Jy/beam
! Clean residual mean=0.000864 rms=0.001126 Jy/beam
! Combined flux in latest and established models = 1.33385 Jy
! Adding 16 model components to the UV plane model.
! The established model now contains 78 components and 1.33385 Jy
! Inverting map 
! Your choice of large map pixels excluded 5.84% of the data.
!  The x-axis pixel size should ideally be below 0.1548 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1705 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 5.84% of the data.
!  The x-axis pixel size should ideally be below 0.1548 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1705 milli-arcsec
! Estimated beam: bmin=0.6664 mas, bmaj=1.236 mas, bpa=5.843 degrees
! Estimated noise=542.856 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000745248 Jy
! Component: 100  -  total flux cleaned = -0.000688216 Jy
! Component: 150  -  total flux cleaned = -0.000470936 Jy
! Component: 200  -  total flux cleaned = -0.000370129 Jy
! Total flux subtracted in 200 components = -0.000370129 Jy
! Clean residual min=-0.002717 max=0.003146 Jy/beam
! Clean residual mean=0.000258 rms=0.000767 Jy/beam
! Combined flux in latest and established models = 1.33348 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 88 components and 1.33348 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.322012Jy  sigma=0.001172
! Fit after  self-cal, rms=0.322000Jy  sigma=0.001172
wmodel J0238+1636_X_1999_12_20_pus_map.mod
! Writing 88 model components to file: J0238+1636_X_1999_12_20_pus_map.mod
wobs J0238+1636_X_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J0238+1636_X_1999_12_20_pus_uvs.fits
wwins J0238+1636_X_1999_12_20_pus_map.win
! wwins: Wrote 4 windows to J0238+1636_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 5.84% of the data.
!  The x-axis pixel size should ideally be below 0.1548 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1705 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000672591 Jy
! Component: 100  -  total flux cleaned = 0.0010557 Jy
! Component: 150  -  total flux cleaned = 0.00155677 Jy
! Component: 200  -  total flux cleaned = 0.00221873 Jy
! Component: 250  -  total flux cleaned = 0.00282039 Jy
! Component: 300  -  total flux cleaned = 0.00349158 Jy
! Component: 350  -  total flux cleaned = 0.00418734 Jy
! Component: 400  -  total flux cleaned = 0.00490762 Jy
! Component: 450  -  total flux cleaned = 0.00553491 Jy
! Component: 500  -  total flux cleaned = 0.00611263 Jy
! Component: 550  -  total flux cleaned = 0.00675671 Jy
! Component: 600  -  total flux cleaned = 0.00735374 Jy
! Component: 650  -  total flux cleaned = 0.00801582 Jy
! Component: 700  -  total flux cleaned = 0.00859649 Jy
! Component: 750  -  total flux cleaned = 0.00909839 Jy
! Component: 800  -  total flux cleaned = 0.00966489 Jy
! Component: 850  -  total flux cleaned = 0.0102594 Jy
! Component: 900  -  total flux cleaned = 0.0107779 Jy
! Component: 950  -  total flux cleaned = 0.0112908 Jy
! Component: 1000  -  total flux cleaned = 0.0118659 Jy
! Total flux subtracted in 1024 components = 0.0121006 Jy
! Clean residual min=-0.001865 max=0.001762 Jy/beam
! Clean residual mean=0.000184 rms=0.000627 Jy/beam
! Combined flux in latest and established models = 1.34558 Jy
keep
! Adding 79 model components to the UV plane model.
! The established model now contains 167 components and 1.34558 Jy
![Exited script file: muppet]
wmap "J0238+1636_X_1999_12_20_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 5.84% of the data.
!  The x-axis pixel size should ideally be below 0.1548 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1705 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6664 x 1.236 at 5.843 degrees (North through East)
! Clean map  min=-0.0024912  max=1.2207 Jy/beam
! Writing clean map to FITS file: J0238+1636_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 1.22074 
invert
! Inverting map 
! Your choice of large map pixels excluded 5.84% of the data.
!  The x-axis pixel size should ideally be below 0.1548 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1705 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000627634 
device "J0238+1636_X_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J0238+1636_X_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.154243 0.154243 0.308486 0.616973 1.23395 2.46789 4.93578 9.87156 19.7431 39.4863 78.9725
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0018 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.22 
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.6664 x 1.236 at 5.843 degrees (North through East)
! Clean map  min=-0.0024912  max=1.2207 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0238+1636_X_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J0238+1636_X_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0238+1636_X_1999_12_20_pus_uvs.log closed on Tue Dec 18 11:12:35 2007