! Started logfile: J0237+2848_X_2003_06_18_pus_uvs.log on Wed Jan 17 16:13:43 2007
obs J0237+2848_X_2003_06_18_pus_uva.fits
! Reading UV FITS file: J0237+2848_X_2003_06_18_pus_uva.fits
! AN table 1: 27 integrations on 153 of 153 possible baselines.
! AN table 2: 28 integrations on 153 of 153 possible baselines.
! AN table 3: Unused.
! AN table 4: Unused.
! AN table 5: 314 integrations on 153 of 153 possible baselines.
! AN table 6: Unused.
! AN table 7: Unused.
! AN table 8: Unused.
! AN table 9: Unused.
! Apparent sampling: 0.495032 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0237+2848
! 
! 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 2231 lines of history.
! 
! Reading 111792 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
float field_size
field_size = 256
float field_cell
field_cell = 0.2
float taper_size
taper_size = 70.
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 241 telescope corrections were flagged in sub-array 1.
!  A total of 504 telescope corrections were flagged in sub-array 2.
!  A total of 3196 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 241 telescope corrections were flagged in sub-array 1.
!  A total of 501 telescope corrections were flagged in sub-array 2.
!  A total of 3165 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 241 telescope corrections were flagged in sub-array 1.
!  A total of 501 telescope corrections were flagged in sub-array 2.
!  A total of 3164 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 241 telescope corrections were flagged in sub-array 1.
!  A total of 501 telescope corrections were flagged in sub-array 2.
!  A total of 3164 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.691587Jy  sigma=0.022529
! Fit after  self-cal, rms=1.387290Jy  sigma=0.018919
! 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 4% of the data.
!  The x-axis pixel size should ideally be below 0.1552 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1634 milli-arcsec
! Estimated beam: bmin=0.5613 mas, bmaj=1.067 mas, bpa=-0.7103 degrees
! Estimated noise=589.044 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 = 1.71134 Jy
! Component: 100  -  total flux cleaned = 2.18462 Jy
! Total flux subtracted in 100 components = 2.18462 Jy
! Clean residual min=-0.046697 max=0.199736 Jy/beam
! Clean residual mean=0.001493 rms=0.015990 Jy/beam
! Combined flux in latest and established models = 2.18462 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 2.18462 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.641015Jy  sigma=0.005989
! Fit after  self-cal, rms=0.640909Jy  sigma=0.005988
! Inverting map 
! Your choice of large map pixels excluded 4% of the data.
!  The x-axis pixel size should ideally be below 0.1552 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1634 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.232027 Jy
! Component: 100  -  total flux cleaned = 0.37098 Jy
! Total flux subtracted in 100 components = 0.37098 Jy
! Clean residual min=-0.036383 max=0.071123 Jy/beam
! Clean residual mean=0.000870 rms=0.008102 Jy/beam
! Combined flux in latest and established models = 2.5556 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 14 components and 2.5556 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.518478Jy  sigma=0.003411
! Fit after  self-cal, rms=0.518100Jy  sigma=0.003407
! Inverting map 
! Your choice of large map pixels excluded 4% of the data.
!  The x-axis pixel size should ideally be below 0.1552 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1634 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0844552 Jy
! Component: 100  -  total flux cleaned = 0.135157 Jy
! Total flux subtracted in 100 components = 0.135157 Jy
! Clean residual min=-0.032137 max=0.035728 Jy/beam
! Clean residual mean=0.000643 rms=0.006493 Jy/beam
! Combined flux in latest and established models = 2.69076 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 15 components and 2.69076 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.499327Jy  sigma=0.002983
! Fit after  self-cal, rms=0.499234Jy  sigma=0.002982
! Inverting map 
! Your choice of large map pixels excluded 4% of the data.
!  The x-axis pixel size should ideally be below 0.1552 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1634 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 4% of the data.
!  The x-axis pixel size should ideally be below 0.1552 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1634 milli-arcsec
! Estimated beam: bmin=0.7503 mas, bmaj=1.336 mas, bpa=-0.9824 degrees
! Estimated noise=266.164 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.0298523 Jy
! Component: 100  -  total flux cleaned = 0.0354598 Jy
! Component: 150  -  total flux cleaned = 0.037007 Jy
! Component: 200  -  total flux cleaned = 0.0379445 Jy
! Total flux subtracted in 200 components = 0.0379445 Jy
! Clean residual min=-0.025201 max=0.046300 Jy/beam
! Clean residual mean=0.003386 rms=0.008404 Jy/beam
! Combined flux in latest and established models = 2.7287 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 17 components and 2.7287 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.492920Jy  sigma=0.002945
! Fit after  self-cal, rms=0.492866Jy  sigma=0.002945
! Inverting map 
! Your choice of large map pixels excluded 4% of the data.
!  The x-axis pixel size should ideally be below 0.1552 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1634 milli-arcsec
! Added new window around map position (-0.4, 5.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0450044 Jy
! Component: 100  -  total flux cleaned = 0.0713947 Jy
! Component: 150  -  total flux cleaned = 0.0887447 Jy
! Component: 200  -  total flux cleaned = 0.0968409 Jy
! Total flux subtracted in 200 components = 0.0968409 Jy
! Clean residual min=-0.024613 max=0.031665 Jy/beam
! Clean residual mean=0.002302 rms=0.006403 Jy/beam
! Combined flux in latest and established models = 2.82554 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 36 components and 2.82554 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.487558Jy  sigma=0.002832
! Fit after  self-cal, rms=0.487205Jy  sigma=0.002823
! Inverting map 
! Your choice of large map pixels excluded 4% of the data.
!  The x-axis pixel size should ideally be below 0.1552 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1634 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        0.97     FD        0.99     GG        1.00*    HN        1.00     
!   KK        1.00*    KP        1.03     LA        0.99     MA        1.00*    
!   MK        0.95     NL        1.09     ON        1.00*    OV        1.01     
!   PT        1.01     SC        1.04     TC        1.00*    TS        1.03     
!   WF        1.13     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 93 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        1.00     GG        1.00*    HN        0.95     
!   KK        1.10     KP        1.01     LA        0.97     MA        1.00*    
!   MK        1.01     NL        1.05     ON        1.07     OV        0.98     
!   PT        0.98     SC        0.96     TC        1.34     TS        1.00*    
!   WF        1.01     WZ        1.06     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.99     GG        1.00*    HN        1.02     
!   KK        1.00*    KP        0.97     LA        1.00     MA        1.00*    
!   MK        0.96     NL        1.05     ON        1.00*    OV        1.00     
!   PT        1.06     SC        1.00     TC        1.00*    TS        1.02     
!   WF        1.15     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 93 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.99     GG        1.00*    HN        0.95     
!   KK        1.09     KP        0.96     LA        0.97     MA        1.19     
!   MK        1.02     NL        1.01     ON        1.09     OV        0.97     
!   PT        1.02     SC        0.93     TC        1.40     TS        1.00*    
!   WF        1.02     WZ        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.02     FD        0.99     GG        1.00*    HN        1.01     
!   KK        1.00*    KP        1.02     LA        1.00     MA        1.00*    
!   MK        0.96     NL        1.04     ON        1.00*    OV        1.04     
!   PT        1.09     SC        1.04     TC        1.00*    TS        1.02     
!   WF        1.09     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 90 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.99     GG        1.00*    HN        0.95     
!   KK        1.15     KP        1.00     LA        0.98     MA        1.33     
!   MK        1.02     NL        1.00     ON        1.08     OV        1.01     
!   PT        1.05     SC        0.95     TC        1.33     TS        1.00*    
!   WF        0.99     WZ        1.03     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.97     GG        1.00*    HN        1.04     
!   KK        1.00*    KP        0.97     LA        0.98     MA        1.00*    
!   MK        1.00     NL        1.04     ON        1.00*    OV        1.03     
!   PT        1.10     SC        1.09     TC        1.00*    TS        1.04     
!   WF        1.07     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 90 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.97     GG        1.00*    HN        0.97     
!   KK        1.10     KP        0.96     LA        0.96     MA        1.28     
!   MK        1.07     NL        1.01     ON        1.13     OV        1.00     
!   PT        1.05     SC        1.00     TC        1.32     TS        1.00*    
!   WF        1.00     WZ        1.04     
! 
! 
! Fit before self-cal, rms=0.487205Jy  sigma=0.002823
! Fit after  self-cal, rms=0.572411Jy  sigma=0.002260
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 3.94% of the data.
!  The x-axis pixel size should ideally be below 0.1552 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1634 milli-arcsec
! Estimated beam: bmin=0.7564 mas, bmaj=1.412 mas, bpa=-1.893 degrees
! Estimated noise=268.576 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.00339691 Jy
! Component: 100  -  total flux cleaned = 0.00679812 Jy
! Component: 150  -  total flux cleaned = 0.00931182 Jy
! Component: 200  -  total flux cleaned = 0.0118657 Jy
! Total flux subtracted in 200 components = 0.0118657 Jy
! Clean residual min=-0.013455 max=0.015481 Jy/beam
! Clean residual mean=0.001131 rms=0.003872 Jy/beam
! Combined flux in latest and established models = 2.83741 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 49 components and 2.83741 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.571783Jy  sigma=0.002235
! Fit after  self-cal, rms=0.572128Jy  sigma=0.002233
! Inverting map 
! Your choice of large map pixels excluded 3.94% of the data.
!  The x-axis pixel size should ideally be below 0.1552 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1634 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.572128Jy  sigma=0.002233
! Fit after  self-cal, rms=0.575406Jy  sigma=0.002136
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.94% of the data.
!  The x-axis pixel size should ideally be below 0.1552 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1634 milli-arcsec
! Estimated beam: bmin=0.7559 mas, bmaj=1.416 mas, bpa=-2.055 degrees
! Estimated noise=269.217 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0113968 Jy
! Component: 100  -  total flux cleaned = 0.0165781 Jy
! Component: 150  -  total flux cleaned = 0.0200957 Jy
! Component: 200  -  total flux cleaned = 0.0219873 Jy
! Total flux subtracted in 200 components = 0.0219873 Jy
! Clean residual min=-0.012023 max=0.012867 Jy/beam
! Clean residual mean=0.000807 rms=0.003158 Jy/beam
! Combined flux in latest and established models = 2.8594 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 55 components and 2.8594 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.575200Jy  sigma=0.002126
! Fit after  self-cal, rms=0.575183Jy  sigma=0.002125
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.94% of the data.
!  The x-axis pixel size should ideally be below 0.1552 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1634 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.000361779 Jy
! Component: 100  -  total flux cleaned = 0.00235088 Jy
! Component: 150  -  total flux cleaned = 0.00426346 Jy
! Component: 200  -  total flux cleaned = 0.00578743 Jy
! Total flux subtracted in 200 components = 0.00578743 Jy
! Clean residual min=-0.012396 max=0.012900 Jy/beam
! Clean residual mean=0.000742 rms=0.003085 Jy/beam
! Combined flux in latest and established models = 2.86518 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 56 components and 2.86518 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.575158Jy  sigma=0.002121
! Fit after  self-cal, rms=0.575110Jy  sigma=0.002120
! Inverting map 
! Your choice of large map pixels excluded 3.94% of the data.
!  The x-axis pixel size should ideally be below 0.1552 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1634 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.575110Jy  sigma=0.002120
! Fit after  self-cal, rms=0.591925Jy  sigma=0.001923
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.94% of the data.
!  The x-axis pixel size should ideally be below 0.1552 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1634 milli-arcsec
! Estimated beam: bmin=0.7562 mas, bmaj=1.419 mas, bpa=-1.989 degrees
! Estimated noise=269.261 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0032923 Jy
! Component: 100  -  total flux cleaned = 0.00488371 Jy
! Component: 150  -  total flux cleaned = 0.00570012 Jy
! Component: 200  -  total flux cleaned = 0.00597776 Jy
! Total flux subtracted in 200 components = 0.00597776 Jy
! Clean residual min=-0.006616 max=0.011430 Jy/beam
! Clean residual mean=0.000735 rms=0.001994 Jy/beam
! Combined flux in latest and established models = 2.87116 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 65 components and 2.87116 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.591817Jy  sigma=0.001919
! Fit after  self-cal, rms=0.591788Jy  sigma=0.001918
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.94% of the data.
!  The x-axis pixel size should ideally be below 0.1552 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1634 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.4, 5.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0106296 Jy
! Component: 100  -  total flux cleaned = 0.0162372 Jy
! Component: 150  -  total flux cleaned = 0.0170211 Jy
! Component: 200  -  total flux cleaned = 0.0173504 Jy
! Total flux subtracted in 200 components = 0.0173504 Jy
! Clean residual min=-0.006718 max=0.009395 Jy/beam
! Clean residual mean=0.000526 rms=0.001730 Jy/beam
! Combined flux in latest and established models = 2.88851 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 79 components and 2.88851 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.591459Jy  sigma=0.001909
! Fit after  self-cal, rms=0.591411Jy  sigma=0.001908
! Inverting map 
! Your choice of large map pixels excluded 3.94% of the data.
!  The x-axis pixel size should ideally be below 0.1552 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1634 milli-arcsec
! Added new window around map position (0.2, 8.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00904192 Jy
! Component: 100  -  total flux cleaned = 0.0142883 Jy
! Component: 150  -  total flux cleaned = 0.0161113 Jy
! Component: 200  -  total flux cleaned = 0.0169087 Jy
! Total flux subtracted in 200 components = 0.0169087 Jy
! Clean residual min=-0.006333 max=0.005534 Jy/beam
! Clean residual mean=0.000341 rms=0.001354 Jy/beam
! Combined flux in latest and established models = 2.90542 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 100 components and 2.90542 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.591232Jy  sigma=0.001900
! Fit after  self-cal, rms=0.591218Jy  sigma=0.001899
! Inverting map 
! Your choice of large map pixels excluded 3.94% of the data.
!  The x-axis pixel size should ideally be below 0.1552 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1634 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.591218Jy  sigma=0.001899
! Fit after  self-cal, rms=0.595355Jy  sigma=0.001897
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.94% of the data.
!  The x-axis pixel size should ideally be below 0.1552 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1634 milli-arcsec
! Estimated beam: bmin=2.022 mas, bmaj=2.873 mas, bpa=-3 degrees
! Estimated noise=327.954 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00775385 Jy
! Component: 100  -  total flux cleaned = 0.0107669 Jy
! Component: 150  -  total flux cleaned = 0.0117948 Jy
! Component: 200  -  total flux cleaned = 0.012945 Jy
! Total flux subtracted in 200 components = 0.012945 Jy
! Clean residual min=-0.004622 max=0.006200 Jy/beam
! Clean residual mean=0.000729 rms=0.001751 Jy/beam
! Combined flux in latest and established models = 2.91836 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 121 components and 2.91837 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.595342Jy  sigma=0.001895
! Fit after  self-cal, rms=0.595327Jy  sigma=0.001895
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.94% of the data.
!  The x-axis pixel size should ideally be below 0.1552 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1634 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.000840606 Jy
! Component: 100  -  total flux cleaned = 0.00168556 Jy
! Component: 150  -  total flux cleaned = 0.00263105 Jy
! Component: 200  -  total flux cleaned = 0.00336551 Jy
! Total flux subtracted in 200 components = 0.00336551 Jy
! Clean residual min=-0.004392 max=0.005630 Jy/beam
! Clean residual mean=0.000625 rms=0.001670 Jy/beam
! Combined flux in latest and established models = 2.92173 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 126 components and 2.92173 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.595325Jy  sigma=0.001894
! Fit after  self-cal, rms=0.595322Jy  sigma=0.001894
! Inverting map 
! Your choice of large map pixels excluded 3.94% of the data.
!  The x-axis pixel size should ideally be below 0.1552 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1634 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.94% of the data.
!  The x-axis pixel size should ideally be below 0.1552 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1634 milli-arcsec
! Estimated beam: bmin=0.7563 mas, bmaj=1.422 mas, bpa=-1.984 degrees
! Estimated noise=269.379 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7563 x 1.422 at -1.984 degrees (North through East)
! Clean map  min=-0.0043413  max=2.3754 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.595322Jy  sigma=0.001894
! Fit after  self-cal, rms=0.755722Jy  sigma=0.001703
! Inverting map and beam 
! Your choice of large map pixels excluded 3.94% of the data.
!  The x-axis pixel size should ideally be below 0.1552 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1634 milli-arcsec
! Estimated beam: bmin=0.7561 mas, bmaj=1.421 mas, bpa=-1.99 degrees
! Estimated noise=269.127 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 5.57603e-05 Jy
! Component: 100  -  total flux cleaned = 0.000623013 Jy
! Component: 150  -  total flux cleaned = 0.00063096 Jy
! Component: 200  -  total flux cleaned = 0.00074531 Jy
! Total flux subtracted in 200 components = 0.00074531 Jy
! Clean residual min=-0.005306 max=0.005703 Jy/beam
! Clean residual mean=0.000282 rms=0.001115 Jy/beam
! Combined flux in latest and established models = 2.92248 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 129 components and 2.92248 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.755648Jy  sigma=0.001700
! Fit after  self-cal, rms=0.755619Jy  sigma=0.001700
! Inverting map 
! Your choice of large map pixels excluded 3.94% of the data.
!  The x-axis pixel size should ideally be below 0.1552 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1634 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000215278 Jy
! Component: 100  -  total flux cleaned = -8.88245e-05 Jy
! Component: 150  -  total flux cleaned = -8.45325e-05 Jy
! Component: 200  -  total flux cleaned = -8.42728e-05 Jy
! Total flux subtracted in 200 components = -8.42728e-05 Jy
! Clean residual min=-0.005012 max=0.005677 Jy/beam
! Clean residual mean=0.000283 rms=0.001096 Jy/beam
! Combined flux in latest and established models = 2.92239 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 137 components and 2.92239 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.755561Jy  sigma=0.001699
! Fit after  self-cal, rms=0.755541Jy  sigma=0.001698
! Inverting map 
! Your choice of large map pixels excluded 3.94% of the data.
!  The x-axis pixel size should ideally be below 0.1552 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1634 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.755541Jy  sigma=0.001698
! Fit after  self-cal, rms=0.758471Jy  sigma=0.001698
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.94% of the data.
!  The x-axis pixel size should ideally be below 0.1552 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1634 milli-arcsec
! Estimated beam: bmin=0.5657 mas, bmaj=1.121 mas, bpa=-1.263 degrees
! Estimated noise=603.709 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.74637 Jy
! Component: 100  -  total flux cleaned = 2.20932 Jy
! Component: 150  -  total flux cleaned = 2.42211 Jy
! Component: 200  -  total flux cleaned = 2.54509 Jy
! Total flux subtracted in 200 components = 2.54509 Jy
! Clean residual min=-0.016633 max=0.062710 Jy/beam
! Clean residual mean=0.000725 rms=0.005638 Jy/beam
! Combined flux in latest and established models = 2.54509 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 14 model components to the UV plane model.
! The established model now contains 14 components and 2.54509 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 3.94% of the data.
!  The x-axis pixel size should ideally be below 0.1552 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1634 milli-arcsec
! Estimated beam: bmin=0.7562 mas, bmaj=1.422 mas, bpa=-2.003 degrees
! Estimated noise=269.233 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.0976709 Jy
! Component: 100  -  total flux cleaned = 0.152357 Jy
! Component: 150  -  total flux cleaned = 0.190653 Jy
! Component: 200  -  total flux cleaned = 0.219644 Jy
! Total flux subtracted in 200 components = 0.219644 Jy
! Clean residual min=-0.008499 max=0.017894 Jy/beam
! Clean residual mean=0.002088 rms=0.004604 Jy/beam
! Combined flux in latest and established models = 2.76473 Jy
! Adding 36 model components to the UV plane model.
! The established model now contains 42 components and 2.76473 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.94% of the data.
!  The x-axis pixel size should ideally be below 0.1552 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1634 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.94% of the data.
!  The x-axis pixel size should ideally be below 0.1552 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1634 milli-arcsec
! Estimated beam: bmin=2.022 mas, bmaj=2.873 mas, bpa=-2.99 degrees
! Estimated noise=327.856 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0457917 Jy
! Component: 100  -  total flux cleaned = 0.0752474 Jy
! Component: 150  -  total flux cleaned = 0.0962798 Jy
! Component: 200  -  total flux cleaned = 0.11186 Jy
! Total flux subtracted in 200 components = 0.11186 Jy
! Clean residual min=-0.005466 max=0.012243 Jy/beam
! Clean residual mean=0.002189 rms=0.003572 Jy/beam
! Combined flux in latest and established models = 2.87659 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.0118022 Jy
! Component: 100  -  total flux cleaned = 0.0208899 Jy
! Component: 150  -  total flux cleaned = 0.0279509 Jy
! Component: 200  -  total flux cleaned = 0.0334708 Jy
! Total flux subtracted in 200 components = 0.0334708 Jy
! Clean residual min=-0.003763 max=0.007902 Jy/beam
! Clean residual mean=0.001161 rms=0.001901 Jy/beam
! Combined flux in latest and established models = 2.91006 Jy
! Adding 137 model components to the UV plane model.
! The established model now contains 174 components and 2.91006 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.94% of the data.
!  The x-axis pixel size should ideally be below 0.1552 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1634 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 3.94% of the data.
!  The x-axis pixel size should ideally be below 0.1552 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1634 milli-arcsec
! Estimated beam: bmin=0.7562 mas, bmaj=1.422 mas, bpa=-2.003 degrees
! Estimated noise=269.233 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000850528 Jy
! Component: 100  -  total flux cleaned = -0.00042287 Jy
! Component: 150  -  total flux cleaned = 0.00124267 Jy
! Component: 200  -  total flux cleaned = 0.00266229 Jy
! Total flux subtracted in 200 components = 0.00266229 Jy
! Clean residual min=-0.006321 max=0.007224 Jy/beam
! Clean residual mean=0.000408 rms=0.001291 Jy/beam
! Combined flux in latest and established models = 2.91272 Jy
selfcal
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 176 components and 2.91272 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.760132Jy  sigma=0.001724
! Fit after  self-cal, rms=0.760204Jy  sigma=0.001718
wmodel J0237+2848_X_2003_06_18_pus_map.mod
! Writing 176 model components to file: J0237+2848_X_2003_06_18_pus_map.mod
wobs J0237+2848_X_2003_06_18_pus_uvs.fits
! Writing UV FITS file: J0237+2848_X_2003_06_18_pus_uvs.fits
wwins J0237+2848_X_2003_06_18_pus_map.win
! wwins: Wrote 4 windows to J0237+2848_X_2003_06_18_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.94% of the data.
!  The x-axis pixel size should ideally be below 0.1552 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1634 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00319935 Jy
! Component: 100  -  total flux cleaned = 0.00477719 Jy
! Component: 150  -  total flux cleaned = 0.0051867 Jy
! Component: 200  -  total flux cleaned = 0.00547705 Jy
! Component: 250  -  total flux cleaned = 0.00584145 Jy
! Component: 300  -  total flux cleaned = 0.00636153 Jy
! Component: 350  -  total flux cleaned = 0.00694695 Jy
! Component: 400  -  total flux cleaned = 0.00759341 Jy
! Component: 450  -  total flux cleaned = 0.00821792 Jy
! Component: 500  -  total flux cleaned = 0.00867294 Jy
! Component: 550  -  total flux cleaned = 0.00904301 Jy
! Component: 600  -  total flux cleaned = 0.00940498 Jy
! Component: 650  -  total flux cleaned = 0.0096195 Jy
! Component: 700  -  total flux cleaned = 0.00990203 Jy
! Component: 750  -  total flux cleaned = 0.0101807 Jy
! Component: 800  -  total flux cleaned = 0.0105918 Jy
! Component: 850  -  total flux cleaned = 0.0108613 Jy
! Component: 900  -  total flux cleaned = 0.0111939 Jy
! Component: 950  -  total flux cleaned = 0.0115215 Jy
! Component: 1000  -  total flux cleaned = 0.0117802 Jy
! Total flux subtracted in 1024 components = 0.0119087 Jy
! Clean residual min=-0.003212 max=0.003203 Jy/beam
! Clean residual mean=0.000268 rms=0.000999 Jy/beam
! Combined flux in latest and established models = 2.92463 Jy
keep
! Adding 40 model components to the UV plane model.
! The established model now contains 212 components and 2.92463 Jy
wmap "J0237+2848_X_2003_06_18_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 3.94% of the data.
!  The x-axis pixel size should ideally be below 0.1552 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1634 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7562 x 1.422 at -2.003 degrees (North through East)
! Clean map  min=-0.0037465  max=2.3762 Jy/beam
! Writing clean map to FITS file: J0237+2848_X_2003_06_18_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 2.37619 
invert
! Inverting map 
! Your choice of large map pixels excluded 3.94% of the data.
!  The x-axis pixel size should ideally be below 0.1552 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1634 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00099947 
device "J0237+2848_X_2003_06_18_pus\_map.eps/VPS"
! Attempting to open device: 'J0237+2848_X_2003_06_18_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.126186 0.126186 0.252372 0.504743 1.00949 2.01897 4.03795 8.07589 16.1518 32.3036 64.6071
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0029 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.376 
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.7562 x 1.422 at -2.003 degrees (North through East)
! Clean map  min=-0.0037465  max=2.3762 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0237+2848_X_2003_06_18_pus\_map.gif/vgif"
! Attempting to open device: 'J0237+2848_X_2003_06_18_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0237+2848_X_2003_06_18_pus_uvs.log closed on Wed Jan 17 16:15:31 2007