! Started logfile: J0238+1636_X_2001_10_29_pus_uvs.log on Mon Feb 25 16:07:15 2008
obs J0238+1636_X_2001_10_29_pus_uva.fits
! Reading UV FITS file: J0238+1636_X_2001_10_29_pus_uva.fits
! AN table 1: 81 integrations on 153 of 153 possible baselines.
! AN table 2: 27 integrations on 153 of 153 possible baselines.
! AN table 3: 20 integrations on 153 of 153 possible baselines.
! AN table 4: 83 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.157513 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 1970 lines of history.
! 
! Reading 20340 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_2001_10_29_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 744 telescope corrections were flagged in sub-array 1.
!  A total of 253 telescope corrections were flagged in sub-array 2.
!  A total of 313 telescope corrections were flagged in sub-array 3.
!  A total of 1079 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 744 telescope corrections were flagged in sub-array 1.
!  A total of 253 telescope corrections were flagged in sub-array 2.
!  A total of 313 telescope corrections were flagged in sub-array 3.
!  A total of 1079 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 744 telescope corrections were flagged in sub-array 1.
!  A total of 253 telescope corrections were flagged in sub-array 2.
!  A total of 313 telescope corrections were flagged in sub-array 3.
!  A total of 1079 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 744 telescope corrections were flagged in sub-array 1.
!  A total of 253 telescope corrections were flagged in sub-array 2.
!  A total of 313 telescope corrections were flagged in sub-array 3.
!  A total of 1079 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.010598Jy  sigma=0.009756
! Fit after  self-cal, rms=0.326215Jy  sigma=0.002955
! 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 3.31% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
! Estimated beam: bmin=0.5091 mas, bmaj=1.21 mas, bpa=-3.194 degrees
! Estimated noise=1211.89 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.965617 Jy
! Component: 100  -  total flux cleaned = 1.17631 Jy
! Total flux subtracted in 100 components = 1.17631 Jy
! Clean residual min=-0.019654 max=0.061445 Jy/beam
! Clean residual mean=0.000410 rms=0.006766 Jy/beam
! Combined flux in latest and established models = 1.17631 Jy
! Performing phase self-cal
! Adding 3 model components to the UV plane model.
! The established model now contains 3 components and 1.17631 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.217844Jy  sigma=0.001777
! Fit after  self-cal, rms=0.217832Jy  sigma=0.001777
! Inverting map 
! Your choice of large map pixels excluded 3.31% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0659656 Jy
! Component: 100  -  total flux cleaned = 0.101866 Jy
! Total flux subtracted in 100 components = 0.101866 Jy
! Clean residual min=-0.013776 max=0.018323 Jy/beam
! Clean residual mean=0.000087 rms=0.004249 Jy/beam
! Combined flux in latest and established models = 1.27818 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 9 components and 1.27818 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.191529Jy  sigma=0.001442
! Fit after  self-cal, rms=0.191509Jy  sigma=0.001442
! Inverting map 
! Your choice of large map pixels excluded 3.31% of the data.
!  The x-axis pixel size should ideally be below 0.1838 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 3.31% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
! Estimated beam: bmin=0.6563 mas, bmaj=1.512 mas, bpa=-1.914 degrees
! Estimated noise=569.569 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.0320376 Jy
! Component: 100  -  total flux cleaned = 0.0485284 Jy
! Component: 150  -  total flux cleaned = 0.058238 Jy
! Component: 200  -  total flux cleaned = 0.0639998 Jy
! Total flux subtracted in 200 components = 0.0639998 Jy
! Clean residual min=-0.013142 max=0.012425 Jy/beam
! Clean residual mean=-0.000432 rms=0.004152 Jy/beam
! Combined flux in latest and established models = 1.34218 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 19 components and 1.34218 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.186775Jy  sigma=0.001374
! Fit after  self-cal, rms=0.186789Jy  sigma=0.001374
! Inverting map 
! Your choice of large map pixels excluded 3.31% of the data.
!  The x-axis pixel size should ideally be below 0.1838 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*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.01     KP        1.00     LA        0.99     
!   MA        1.00*    MC        1.00*    MK        0.99     NL        0.99     
!   OV        0.99     PT        1.02     SC        1.02     TS        0.96     
!   WF        0.97     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.01     KK        1.00*    KP        0.94     LA        0.96     
!   MA        1.01     MC        1.04     MK        1.00*    NL        0.98     
!   OV        1.02     PT        0.98     SC        0.99     TS        1.00*    
!   WF        0.98     WZ        1.00     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.00     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.97     MC        0.99     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        0.99     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.05     
!   HN        1.05     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.98     MC        0.94     MK        1.00*    NL        1.07     
!   OV        1.00*    PT        1.00*    SC        0.98     TS        1.00*    
!   WF        1.02     WZ        0.90     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.05     KP        1.01     LA        0.96     
!   MA        1.00*    MC        1.00*    MK        0.99     NL        0.95     
!   OV        0.99     PT        1.01     SC        0.98     TS        0.95     
!   WF        0.95     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.00*    KP        0.97     LA        0.95     
!   MA        1.04     MC        1.04     MK        1.00*    NL        0.95     
!   OV        1.01     PT        0.95     SC        0.95     TS        1.00*    
!   WF        0.98     WZ        1.00     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.00     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.99     MC        1.06     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        0.94     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.03     
!   HN        1.03     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.98     MC        0.92     MK        1.00*    NL        1.02     
!   OV        1.00*    PT        1.00*    SC        0.96     TS        1.00*    
!   WF        1.01     WZ        0.89     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.01     KK        1.02     KP        1.00     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        1.01     NL        1.00     
!   OV        0.97     PT        1.04     SC        1.00     TS        0.95     
!   WF        1.02     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.02     KK        1.00*    KP        0.96     LA        0.99     
!   MA        1.02     MC        1.03     MK        1.00*    NL        0.99     
!   OV        1.00     PT        0.98     SC        0.98     TS        1.00*    
!   WF        1.05     WZ        0.99     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.96     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.96     MC        1.03     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        0.94     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.08     
!   HN        1.06     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.92     MC        0.90     MK        1.00*    NL        1.08     
!   OV        1.00*    PT        1.00*    SC        0.97     TS        1.00*    
!   WF        1.04     WZ        0.90     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.03     KK        1.02     KP        1.02     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        1.05     NL        1.00     
!   OV        0.97     PT        1.04     SC        1.05     TS        0.99     
!   WF        0.99     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.02     KK        1.00*    KP        0.98     LA        0.97     
!   MA        1.03     MC        1.06     MK        1.00*    NL        1.01     
!   OV        1.00     PT        0.99     SC        1.02     TS        1.00*    
!   WF        1.01     WZ        0.94     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.01     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.96     MC        1.05     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        0.92     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.06     
!   HN        1.06     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.93     MC        0.93     MK        1.00*    NL        1.10     
!   OV        1.00*    PT        1.00*    SC        1.02     TS        1.00*    
!   WF        1.04     WZ        0.89     
! 
! 
! Fit before self-cal, rms=0.186789Jy  sigma=0.001374
! Fit after  self-cal, rms=0.177735Jy  sigma=0.001278
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 3.31% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
! Estimated beam: bmin=0.6539 mas, bmaj=1.526 mas, bpa=-2.241 degrees
! Estimated noise=570.07 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.0034552 Jy
! Component: 100  -  total flux cleaned = 0.00346601 Jy
! Component: 150  -  total flux cleaned = 0.00355747 Jy
! Component: 200  -  total flux cleaned = 0.00355325 Jy
! Total flux subtracted in 200 components = 0.00355325 Jy
! Clean residual min=-0.005777 max=0.006128 Jy/beam
! Clean residual mean=0.000252 rms=0.001789 Jy/beam
! Combined flux in latest and established models = 1.34573 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 26 components and 1.34573 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177537Jy  sigma=0.001276
! Fit after  self-cal, rms=0.177607Jy  sigma=0.001276
! Inverting map 
! Your choice of large map pixels excluded 3.31% of the data.
!  The x-axis pixel size should ideally be below 0.1838 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.177607Jy  sigma=0.001276
! Fit after  self-cal, rms=0.173246Jy  sigma=0.001217
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.31% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
! Estimated beam: bmin=0.6534 mas, bmaj=1.525 mas, bpa=-2.172 degrees
! Estimated noise=570.796 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00343467 Jy
! Component: 100  -  total flux cleaned = 0.0039072 Jy
! Component: 150  -  total flux cleaned = 0.00389891 Jy
! Component: 200  -  total flux cleaned = 0.00382208 Jy
! Total flux subtracted in 200 components = 0.00382208 Jy
! Clean residual min=-0.002771 max=0.004079 Jy/beam
! Clean residual mean=0.000294 rms=0.000878 Jy/beam
! Combined flux in latest and established models = 1.34955 Jy
selfcal
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 29 components and 1.34955 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.173086Jy  sigma=0.001216
! Fit after  self-cal, rms=0.173089Jy  sigma=0.001216
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.31% of the data.
!  The x-axis pixel size should ideally be below 0.1838 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 (4.6, -0.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00361207 Jy
! Component: 100  -  total flux cleaned = 0.00400803 Jy
! Component: 150  -  total flux cleaned = 0.0039477 Jy
! Component: 200  -  total flux cleaned = 0.00389103 Jy
! Total flux subtracted in 200 components = 0.00389103 Jy
! Clean residual min=-0.002608 max=0.003456 Jy/beam
! Clean residual mean=0.000237 rms=0.000799 Jy/beam
! Combined flux in latest and established models = 1.35344 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 44 components and 1.35344 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.172990Jy  sigma=0.001215
! Fit after  self-cal, rms=0.172985Jy  sigma=0.001215
! Inverting map 
! Your choice of large map pixels excluded 3.31% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
! Added new window around map position (0.8, 2.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00308913 Jy
! Component: 100  -  total flux cleaned = 0.0035469 Jy
! Component: 150  -  total flux cleaned = 0.00369419 Jy
! Component: 200  -  total flux cleaned = 0.00369356 Jy
! Total flux subtracted in 200 components = 0.00369356 Jy
! Clean residual min=-0.002360 max=0.002907 Jy/beam
! Clean residual mean=0.000182 rms=0.000727 Jy/beam
! Combined flux in latest and established models = 1.35714 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 56 components and 1.35714 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.172877Jy  sigma=0.001214
! Fit after  self-cal, rms=0.172866Jy  sigma=0.001214
! Inverting map 
! Your choice of large map pixels excluded 3.31% of the data.
!  The x-axis pixel size should ideally be below 0.1838 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.172866Jy  sigma=0.001214
! Fit after  self-cal, rms=0.172791Jy  sigma=0.001213
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.31% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
! Estimated beam: bmin=0.6528 mas, bmaj=1.524 mas, bpa=-2.146 degrees
! Estimated noise=571.284 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00263224 Jy
! Component: 100  -  total flux cleaned = 0.00284422 Jy
! Component: 150  -  total flux cleaned = 0.00309159 Jy
! Component: 200  -  total flux cleaned = 0.00325974 Jy
! Total flux subtracted in 200 components = 0.00325974 Jy
! Clean residual min=-0.002361 max=0.002720 Jy/beam
! Clean residual mean=0.000189 rms=0.000685 Jy/beam
! Combined flux in latest and established models = 1.3604 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 64 components and 1.3604 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.172716Jy  sigma=0.001213
! Fit after  self-cal, rms=0.172714Jy  sigma=0.001213
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.31% of the data.
!  The x-axis pixel size should ideally be below 0.1838 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.000311744 Jy
! Component: 100  -  total flux cleaned = 0.000311752 Jy
! Component: 150  -  total flux cleaned = 0.000358067 Jy
! Component: 200  -  total flux cleaned = 0.000358294 Jy
! Total flux subtracted in 200 components = 0.000358294 Jy
! Clean residual min=-0.002325 max=0.002611 Jy/beam
! Clean residual mean=0.000184 rms=0.000673 Jy/beam
! Combined flux in latest and established models = 1.36075 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 69 components and 1.36075 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.172685Jy  sigma=0.001212
! Fit after  self-cal, rms=0.172684Jy  sigma=0.001212
! Inverting map 
! Your choice of large map pixels excluded 3.31% of the data.
!  The x-axis pixel size should ideally be below 0.1838 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.172684Jy  sigma=0.001212
! Fit after  self-cal, rms=0.172695Jy  sigma=0.001212
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.31% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
! Estimated beam: bmin=2.129 mas, bmaj=2.977 mas, bpa=-8.99 degrees
! Estimated noise=818.145 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00206428 Jy
! Component: 100  -  total flux cleaned = 0.00293769 Jy
! Component: 150  -  total flux cleaned = 0.00310435 Jy
! Component: 200  -  total flux cleaned = 0.00315048 Jy
! Total flux subtracted in 200 components = 0.00315048 Jy
! Clean residual min=-0.002501 max=0.003094 Jy/beam
! Clean residual mean=0.000498 rms=0.000927 Jy/beam
! Combined flux in latest and established models = 1.36391 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 80 components and 1.36391 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.172681Jy  sigma=0.001212
! Fit after  self-cal, rms=0.172678Jy  sigma=0.001212
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.31% of the data.
!  The x-axis pixel size should ideally be below 0.1838 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.000157323 Jy
! Component: 100  -  total flux cleaned = 0.000200611 Jy
! Component: 150  -  total flux cleaned = 0.000220111 Jy
! Component: 200  -  total flux cleaned = 0.00023759 Jy
! Total flux subtracted in 200 components = 0.00023759 Jy
! Clean residual min=-0.002514 max=0.003117 Jy/beam
! Clean residual mean=0.000488 rms=0.000921 Jy/beam
! Combined flux in latest and established models = 1.36414 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 85 components and 1.36414 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.172674Jy  sigma=0.001212
! Fit after  self-cal, rms=0.172673Jy  sigma=0.001212
! Inverting map 
! Your choice of large map pixels excluded 3.31% of the data.
!  The x-axis pixel size should ideally be below 0.1838 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 3.31% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
! Estimated beam: bmin=0.6525 mas, bmaj=1.523 mas, bpa=-2.132 degrees
! Estimated noise=571.725 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6525 x 1.523 at -2.132 degrees (North through East)
! Clean map  min=-0.0021212  max=1.2649 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.172673Jy  sigma=0.001212
! Fit after  self-cal, rms=0.160232Jy  sigma=0.001101
! Inverting map and beam 
! Your choice of large map pixels excluded 3.31% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
! Estimated beam: bmin=0.6529 mas, bmaj=1.523 mas, bpa=-2.163 degrees
! Estimated noise=572.055 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000996533 Jy
! Component: 100  -  total flux cleaned = -0.0015502 Jy
! Component: 150  -  total flux cleaned = -0.00188446 Jy
! Component: 200  -  total flux cleaned = -0.00206983 Jy
! Total flux subtracted in 200 components = -0.00206983 Jy
! Clean residual min=-0.001990 max=0.002312 Jy/beam
! Clean residual mean=0.000152 rms=0.000605 Jy/beam
! Combined flux in latest and established models = 1.36207 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 95 components and 1.36207 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.160200Jy  sigma=0.001101
! Fit after  self-cal, rms=0.160202Jy  sigma=0.001101
! Inverting map 
! Your choice of large map pixels excluded 3.31% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000191405 Jy
! Component: 100  -  total flux cleaned = -0.000324876 Jy
! Component: 150  -  total flux cleaned = -0.000418936 Jy
! Component: 200  -  total flux cleaned = -0.000508542 Jy
! Total flux subtracted in 200 components = -0.000508542 Jy
! Clean residual min=-0.001945 max=0.002296 Jy/beam
! Clean residual mean=0.000160 rms=0.000597 Jy/beam
! Combined flux in latest and established models = 1.36156 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 99 components and 1.36156 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.160186Jy  sigma=0.001101
! Fit after  self-cal, rms=0.160187Jy  sigma=0.001101
! Inverting map 
! Your choice of large map pixels excluded 3.31% of the data.
!  The x-axis pixel size should ideally be below 0.1838 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.160187Jy  sigma=0.001101
! Fit after  self-cal, rms=0.160164Jy  sigma=0.001101
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 3.31% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
! Estimated beam: bmin=0.5081 mas, bmaj=1.215 mas, bpa=-3.314 degrees
! Estimated noise=1214.05 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.966595 Jy
! Component: 100  -  total flux cleaned = 1.17818 Jy
! Component: 150  -  total flux cleaned = 1.24823 Jy
! Component: 200  -  total flux cleaned = 1.28586 Jy
! Total flux subtracted in 200 components = 1.28586 Jy
! Clean residual min=-0.007650 max=0.018380 Jy/beam
! Clean residual mean=0.000241 rms=0.002363 Jy/beam
! Combined flux in latest and established models = 1.28586 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 8 model components to the UV plane model.
! The established model now contains 8 components and 1.28586 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 3.31% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
! Estimated beam: bmin=0.6529 mas, bmaj=1.522 mas, bpa=-2.155 degrees
! Estimated noise=572.141 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.0310512 Jy
! Component: 100  -  total flux cleaned = 0.0460998 Jy
! Component: 150  -  total flux cleaned = 0.0549255 Jy
! Component: 200  -  total flux cleaned = 0.0607025 Jy
! Total flux subtracted in 200 components = 0.0607025 Jy
! Clean residual min=-0.002652 max=0.003721 Jy/beam
! Clean residual mean=0.000369 rms=0.000890 Jy/beam
! Combined flux in latest and established models = 1.34656 Jy
! Adding 24 model components to the UV plane model.
! The established model now contains 26 components and 1.34656 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.31% of the data.
!  The x-axis pixel size should ideally be below 0.1838 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 3.31% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
! Estimated beam: bmin=2.13 mas, bmaj=2.979 mas, bpa=-8.998 degrees
! Estimated noise=817.774 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00665295 Jy
! Component: 100  -  total flux cleaned = 0.0100879 Jy
! Component: 150  -  total flux cleaned = 0.0121534 Jy
! Component: 200  -  total flux cleaned = 0.0134279 Jy
! Total flux subtracted in 200 components = 0.0134279 Jy
! Clean residual min=-0.001737 max=0.002963 Jy/beam
! Clean residual mean=0.000490 rms=0.000820 Jy/beam
! Combined flux in latest and established models = 1.35999 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.000457731 Jy
! Component: 100  -  total flux cleaned = 0.000514601 Jy
! Component: 150  -  total flux cleaned = 0.000566842 Jy
! Component: 200  -  total flux cleaned = 0.000591261 Jy
! Total flux subtracted in 200 components = 0.000591261 Jy
! Clean residual min=-0.001782 max=0.002893 Jy/beam
! Clean residual mean=0.000464 rms=0.000806 Jy/beam
! Combined flux in latest and established models = 1.36058 Jy
! Adding 44 model components to the UV plane model.
! The established model now contains 62 components and 1.36058 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.31% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 3.31% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
! Estimated beam: bmin=0.6529 mas, bmaj=1.522 mas, bpa=-2.155 degrees
! Estimated noise=572.141 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000399717 Jy
! Component: 100  -  total flux cleaned = -0.000569896 Jy
! Component: 150  -  total flux cleaned = -0.000775612 Jy
! Component: 200  -  total flux cleaned = -0.000898878 Jy
! Total flux subtracted in 200 components = -0.000898878 Jy
! Clean residual min=-0.002245 max=0.002711 Jy/beam
! Clean residual mean=0.000171 rms=0.000635 Jy/beam
! Combined flux in latest and established models = 1.35968 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 78 components and 1.35968 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.160276Jy  sigma=0.001102
! Fit after  self-cal, rms=0.160240Jy  sigma=0.001102
wmodel J0238+1636_X_2001_10_29_pus_map.mod
! Writing 78 model components to file: J0238+1636_X_2001_10_29_pus_map.mod
wobs J0238+1636_X_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J0238+1636_X_2001_10_29_pus_uvs.fits
wwins J0238+1636_X_2001_10_29_pus_map.win
! wwins: Wrote 3 windows to J0238+1636_X_2001_10_29_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 3.31% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000712957 Jy
! Component: 100  -  total flux cleaned = 0.0010842 Jy
! Component: 150  -  total flux cleaned = 0.00150974 Jy
! Component: 200  -  total flux cleaned = 0.00199277 Jy
! Component: 250  -  total flux cleaned = 0.00249536 Jy
! Component: 300  -  total flux cleaned = 0.00284362 Jy
! Component: 350  -  total flux cleaned = 0.00314831 Jy
! Component: 400  -  total flux cleaned = 0.00344519 Jy
! Component: 450  -  total flux cleaned = 0.00376718 Jy
! Component: 500  -  total flux cleaned = 0.0039556 Jy
! Component: 550  -  total flux cleaned = 0.00414081 Jy
! Component: 600  -  total flux cleaned = 0.00435313 Jy
! Component: 650  -  total flux cleaned = 0.00464967 Jy
! Component: 700  -  total flux cleaned = 0.00488262 Jy
! Component: 750  -  total flux cleaned = 0.00516814 Jy
! Component: 800  -  total flux cleaned = 0.00539242 Jy
! Component: 850  -  total flux cleaned = 0.00564028 Jy
! Component: 900  -  total flux cleaned = 0.00582976 Jy
! Component: 950  -  total flux cleaned = 0.0059891 Jy
! Component: 1000  -  total flux cleaned = 0.00617292 Jy
! Total flux subtracted in 1024 components = 0.00625074 Jy
! Clean residual min=-0.001582 max=0.001530 Jy/beam
! Clean residual mean=0.000074 rms=0.000471 Jy/beam
! Combined flux in latest and established models = 1.36593 Jy
keep
! Adding 68 model components to the UV plane model.
! The established model now contains 146 components and 1.36593 Jy
![Exited script file: muppet]
wmap "J0238+1636_X_2001_10_29_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 3.31% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6529 x 1.522 at -2.155 degrees (North through East)
! Clean map  min=-0.0021677  max=1.2667 Jy/beam
! Writing clean map to FITS file: J0238+1636_X_2001_10_29_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.26669 
invert
! Inverting map 
! Your choice of large map pixels excluded 3.31% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000472399 
device "J0238+1636_X_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J0238+1636_X_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.111882 0.111882 0.223764 0.447528 0.895057 1.79011 3.58023 7.16046 14.3209 28.6418 57.2836
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0014 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.266 
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.6529 x 1.522 at -2.155 degrees (North through East)
! Clean map  min=-0.0021677  max=1.2667 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0238+1636_X_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J0238+1636_X_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0238+1636_X_2001_10_29_pus_uvs.log closed on Mon Feb 25 16:07:21 2008