! Started logfile: J0237+2848_X_1998_10_01_pus_uvs.log on Wed Feb  6 12:22:17 2008
obs J0237+2848_X_1998_10_01_pus_uva.fits
! Reading UV FITS file: J0237+2848_X_1998_10_01_pus_uva.fits
! AN table 1: 62 integrations on 136 of 136 possible baselines.
! AN table 2: 172 integrations on 136 of 136 possible baselines.
! AN table 3: 201 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.139334 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.40798e+09        4e+06          1        4e+06
!  02        2  8.47798e+09        4e+06          1        4e+06
!  03        3  8.79298e+09        4e+06          1        4e+06
!  04        4  8.89798e+09        4e+06          1        4e+06
! 
! Polarization(s): RR
! 
! Read 2049 lines of history.
! 
! Reading 32972 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 J0237+2848_X_1998_10_01_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 619 telescope corrections were flagged in sub-array 1.
!  A total of 2238 telescope corrections were flagged in sub-array 2.
!  A total of 2324 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 619 telescope corrections were flagged in sub-array 1.
!  A total of 2238 telescope corrections were flagged in sub-array 2.
!  A total of 2324 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 619 telescope corrections were flagged in sub-array 1.
!  A total of 2238 telescope corrections were flagged in sub-array 2.
!  A total of 2324 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 619 telescope corrections were flagged in sub-array 1.
!  A total of 2238 telescope corrections were flagged in sub-array 2.
!  A total of 2324 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.746583Jy  sigma=0.006547
! Fit after  self-cal, rms=0.403160Jy  sigma=0.003225
! 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 0.453% of the data.
!  The x-axis pixel size should ideally be below 0.1771 milli-arcsec
! Estimated beam: bmin=0.5895 mas, bmaj=0.961 mas, bpa=-13.33 degrees
! Estimated noise=723.563 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.732131 Jy
! Component: 100  -  total flux cleaned = 0.903664 Jy
! Total flux subtracted in 100 components = 0.903664 Jy
! Clean residual min=-0.021973 max=0.066723 Jy/beam
! Clean residual mean=0.001489 rms=0.008358 Jy/beam
! Combined flux in latest and established models = 0.903664 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 0.903664 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.402204Jy  sigma=0.003331
! Fit after  self-cal, rms=0.402146Jy  sigma=0.003331
! Inverting map 
! Your choice of large map pixels excluded 0.453% of the data.
!  The x-axis pixel size should ideally be below 0.1771 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0704962 Jy
! Component: 100  -  total flux cleaned = 0.108217 Jy
! Total flux subtracted in 100 components = 0.108217 Jy
! Clean residual min=-0.020427 max=0.046554 Jy/beam
! Clean residual mean=0.001204 rms=0.006928 Jy/beam
! Combined flux in latest and established models = 1.01188 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 19 components and 1.01188 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.385684Jy  sigma=0.003072
! Fit after  self-cal, rms=0.385435Jy  sigma=0.003071
! Inverting map 
! Your choice of large map pixels excluded 0.453% of the data.
!  The x-axis pixel size should ideally be below 0.1771 milli-arcsec
! Added new window around map position (-0.4, 3.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0437487 Jy
! Component: 100  -  total flux cleaned = 0.0717536 Jy
! Total flux subtracted in 100 components = 0.0717536 Jy
! Clean residual min=-0.019399 max=0.030189 Jy/beam
! Clean residual mean=0.001021 rms=0.006272 Jy/beam
! Combined flux in latest and established models = 1.08364 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 32 components and 1.08364 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.377842Jy  sigma=0.002944
! Fit after  self-cal, rms=0.377218Jy  sigma=0.002940
! Inverting map 
! Your choice of large map pixels excluded 0.453% of the data.
!  The x-axis pixel size should ideally be below 0.1771 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 0.453% of the data.
!  The x-axis pixel size should ideally be below 0.1771 milli-arcsec
! Estimated beam: bmin=0.7004 mas, bmaj=1.019 mas, bpa=-15.55 degrees
! Estimated noise=435.338 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 (-1.2, 3.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0591657 Jy
! Component: 100  -  total flux cleaned = 0.101145 Jy
! Component: 150  -  total flux cleaned = 0.133526 Jy
! Component: 200  -  total flux cleaned = 0.159125 Jy
! Total flux subtracted in 200 components = 0.159125 Jy
! Clean residual min=-0.013643 max=0.026235 Jy/beam
! Clean residual mean=0.002048 rms=0.005335 Jy/beam
! Combined flux in latest and established models = 1.24276 Jy
! Performing phase self-cal
! Adding 50 model components to the UV plane model.
! The established model now contains 71 components and 1.24276 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.367674Jy  sigma=0.002759
! Fit after  self-cal, rms=0.366640Jy  sigma=0.002749
! Inverting map 
! Your choice of large map pixels excluded 0.453% of the data.
!  The x-axis pixel size should ideally be below 0.1771 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.95     GC        0.97     HN        0.99     
!   KK        0.98     KP        0.94     LA        0.95     MK        0.98     
!   NL        1.01     NY        1.00     ON        1.00*    OV        0.97     
!   PT        0.99     SC        1.06     WF        1.03     MC        1.00*    
!   GN        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.93     GC        1.00*    HN        1.01     
!   KK        0.97     KP        0.91     LA        0.99     MK        0.97     
!   NL        1.00*    NY        1.01     ON        1.00*    OV        0.96     
!   PT        0.96     SC        1.07     WF        1.03     MC        1.01     
!   GN        1.25     
! 
!  A total of 132 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.08     GC        1.18     HN        0.98     
!   KK        1.25     KP        0.92     LA        0.98     MK        1.00*    
!   NL        1.00     NY        1.00     ON        1.01     OV        1.05     
!   PT        0.98     SC        0.99     WF        1.05     MC        1.05     
!   GN        0.99     
! 
! 
! Correcting IF 2.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.97     GC        0.98     HN        1.04     
!   KK        0.99     KP        0.96     LA        0.88     MK        0.98     
!   NL        1.03     NY        1.02     ON        1.00*    OV        0.98     
!   PT        0.97     SC        1.07     WF        1.00     MC        1.00*    
!   GN        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.94     GC        1.00*    HN        1.03     
!   KK        1.00     KP        0.93     LA        0.91     MK        0.96     
!   NL        1.00*    NY        1.04     ON        1.00*    OV        1.05     
!   PT        0.98     SC        1.06     WF        1.04     MC        1.02     
!   GN        1.18     
! 
!  A total of 132 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.09     GC        1.24     HN        1.04     
!   KK        1.33     KP        0.95     LA        0.94     MK        1.00*    
!   NL        1.01     NY        0.99     ON        0.97     OV        1.03     
!   PT        0.98     SC        0.97     WF        1.01     MC        1.01     
!   GN        0.98     
! 
! 
! Correcting IF 3.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.94     GC        0.97     HN        0.98     
!   KK        0.97     KP        0.98     LA        0.89     MK        1.01     
!   NL        0.99     NY        0.99     ON        1.00*    OV        0.92     
!   PT        0.98     SC        1.10     WF        1.02     MC        1.00*    
!   GN        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.91     GC        1.00*    HN        0.94     
!   KK        0.97     KP        0.95     LA        0.91     MK        1.00     
!   NL        1.00*    NY        0.98     ON        1.00*    OV        0.92     
!   PT        0.97     SC        1.07     WF        0.96     MC        1.03     
!   GN        1.31     
! 
!  A total of 132 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.06     GC        1.22     HN        0.99     
!   KK        1.31     KP        0.97     LA        0.94     MK        1.00*    
!   NL        0.98     NY        0.96     ON        0.99     OV        1.00     
!   PT        0.98     SC        1.01     WF        1.00     MC        1.05     
!   GN        0.98     
! 
! 
! Correcting IF 4.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.91     GC        0.98     HN        1.03     
!   KK        0.95     KP        0.96     LA        0.91     MK        0.97     
!   NL        1.00     NY        1.01     ON        1.00*    OV        0.95     
!   PT        0.93     SC        1.03     WF        0.99     MC        1.00*    
!   GN        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.90     GC        1.00*    HN        1.05     
!   KK        0.98     KP        0.92     LA        0.94     MK        0.95     
!   NL        1.00*    NY        1.03     ON        1.00*    OV        0.87     
!   PT        0.91     SC        1.03     WF        1.10     MC        0.92     
!   GN        1.28     
! 
!  A total of 132 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.04     GC        1.21     HN        1.04     
!   KK        1.32     KP        0.95     LA        0.94     MK        1.00*    
!   NL        0.99     NY        1.01     ON        0.99     OV        0.99     
!   PT        0.93     SC        0.95     WF        1.04     MC        1.01     
!   GN        0.96     
! 
! 
! Fit before self-cal, rms=0.366640Jy  sigma=0.002749
! Fit after  self-cal, rms=0.374138Jy  sigma=0.002644
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.45% of the data.
!  The x-axis pixel size should ideally be below 0.1771 milli-arcsec
! Estimated beam: bmin=0.7072 mas, bmaj=1.057 mas, bpa=-15.3 degrees
! Estimated noise=431.943 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.6, 5.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0228939 Jy
! Component: 100  -  total flux cleaned = 0.0388692 Jy
! Component: 150  -  total flux cleaned = 0.0466209 Jy
! Component: 200  -  total flux cleaned = 0.053154 Jy
! Total flux subtracted in 200 components = 0.053154 Jy
! Clean residual min=-0.008114 max=0.012722 Jy/beam
! Clean residual mean=0.000699 rms=0.002775 Jy/beam
! Combined flux in latest and established models = 1.29591 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 93 components and 1.29591 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.372375Jy  sigma=0.002617
! Fit after  self-cal, rms=0.372414Jy  sigma=0.002615
! Inverting map 
! Your choice of large map pixels excluded 0.45% of the data.
!  The x-axis pixel size should ideally be below 0.1771 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.372414Jy  sigma=0.002615
! Fit after  self-cal, rms=0.371117Jy  sigma=0.002562
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.45% of the data.
!  The x-axis pixel size should ideally be below 0.1771 milli-arcsec
! Estimated beam: bmin=0.7063 mas, bmaj=1.052 mas, bpa=-14.9 degrees
! Estimated noise=431.709 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0121946 Jy
! Component: 100  -  total flux cleaned = 0.0203492 Jy
! Component: 150  -  total flux cleaned = 0.0249415 Jy
! Component: 200  -  total flux cleaned = 0.0283876 Jy
! Total flux subtracted in 200 components = 0.0283876 Jy
! Clean residual min=-0.004563 max=0.009170 Jy/beam
! Clean residual mean=0.000722 rms=0.001665 Jy/beam
! Combined flux in latest and established models = 1.3243 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 111 components and 1.3243 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.370600Jy  sigma=0.002554
! Fit after  self-cal, rms=0.370636Jy  sigma=0.002553
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.45% of the data.
!  The x-axis pixel size should ideally be below 0.1771 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.2, 7).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00804832 Jy
! Component: 100  -  total flux cleaned = 0.0114914 Jy
! Component: 150  -  total flux cleaned = 0.0145167 Jy
! Component: 200  -  total flux cleaned = 0.0169434 Jy
! Total flux subtracted in 200 components = 0.0169434 Jy
! Clean residual min=-0.004933 max=0.007015 Jy/beam
! Clean residual mean=0.000498 rms=0.001473 Jy/beam
! Combined flux in latest and established models = 1.34125 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 127 components and 1.34125 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.370331Jy  sigma=0.002549
! Fit after  self-cal, rms=0.370287Jy  sigma=0.002548
! Inverting map 
! Your choice of large map pixels excluded 0.45% of the data.
!  The x-axis pixel size should ideally be below 0.1771 milli-arcsec
! Added new window around map position (0.8, 5.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00664166 Jy
! Component: 100  -  total flux cleaned = 0.00963806 Jy
! Component: 150  -  total flux cleaned = 0.0115489 Jy
! Component: 200  -  total flux cleaned = 0.0125307 Jy
! Total flux subtracted in 200 components = 0.0125307 Jy
! Clean residual min=-0.004909 max=0.004681 Jy/beam
! Clean residual mean=0.000350 rms=0.001320 Jy/beam
! Combined flux in latest and established models = 1.35378 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 146 components and 1.35378 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.370099Jy  sigma=0.002546
! Fit after  self-cal, rms=0.370070Jy  sigma=0.002546
! Inverting map 
! Your choice of large map pixels excluded 0.45% of the data.
!  The x-axis pixel size should ideally be below 0.1771 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.370070Jy  sigma=0.002546
! Fit after  self-cal, rms=0.370015Jy  sigma=0.002544
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.45% of the data.
!  The x-axis pixel size should ideally be below 0.1771 milli-arcsec
! Estimated beam: bmin=0.7056 mas, bmaj=1.051 mas, bpa=-14.92 degrees
! Estimated noise=431.381 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00473665 Jy
! Component: 100  -  total flux cleaned = 0.0076011 Jy
! Component: 150  -  total flux cleaned = 0.0101721 Jy
! Component: 200  -  total flux cleaned = 0.0118942 Jy
! Total flux subtracted in 200 components = 0.0118942 Jy
! Clean residual min=-0.004418 max=0.004655 Jy/beam
! Clean residual mean=0.000442 rms=0.001217 Jy/beam
! Combined flux in latest and established models = 1.36567 Jy
selfcal
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 156 components and 1.36567 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.369867Jy  sigma=0.002542
! Fit after  self-cal, rms=0.369860Jy  sigma=0.002542
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.45% of the data.
!  The x-axis pixel size should ideally be below 0.1771 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.00158643 Jy
! Component: 100  -  total flux cleaned = 0.00312064 Jy
! Component: 150  -  total flux cleaned = 0.00386994 Jy
! Component: 200  -  total flux cleaned = 0.00436984 Jy
! Total flux subtracted in 200 components = 0.00436984 Jy
! Clean residual min=-0.004459 max=0.004393 Jy/beam
! Clean residual mean=0.000384 rms=0.001180 Jy/beam
! Combined flux in latest and established models = 1.37004 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 162 components and 1.37004 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.369785Jy  sigma=0.002542
! Fit after  self-cal, rms=0.369775Jy  sigma=0.002541
! Inverting map 
! Your choice of large map pixels excluded 0.45% of the data.
!  The x-axis pixel size should ideally be below 0.1771 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.369775Jy  sigma=0.002541
! Fit after  self-cal, rms=0.369864Jy  sigma=0.002541
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.45% of the data.
!  The x-axis pixel size should ideally be below 0.1771 milli-arcsec
! Estimated beam: bmin=2.305 mas, bmaj=2.64 mas, bpa=-8.435 degrees
! Estimated noise=598.165 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00633592 Jy
! Component: 100  -  total flux cleaned = 0.0103625 Jy
! Component: 150  -  total flux cleaned = 0.0120005 Jy
! Component: 200  -  total flux cleaned = 0.0130877 Jy
! Total flux subtracted in 200 components = 0.0130877 Jy
! Clean residual min=-0.003682 max=0.005203 Jy/beam
! Clean residual mean=0.000920 rms=0.001443 Jy/beam
! Combined flux in latest and established models = 1.38313 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 167 components and 1.38313 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.369845Jy  sigma=0.002541
! Fit after  self-cal, rms=0.369823Jy  sigma=0.002541
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.45% of the data.
!  The x-axis pixel size should ideally be below 0.1771 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.000412712 Jy
! Component: 100  -  total flux cleaned = 0.00151611 Jy
! Component: 150  -  total flux cleaned = 0.00231605 Jy
! Component: 200  -  total flux cleaned = 0.00262645 Jy
! Total flux subtracted in 200 components = 0.00262645 Jy
! Clean residual min=-0.003563 max=0.004922 Jy/beam
! Clean residual mean=0.000819 rms=0.001392 Jy/beam
! Combined flux in latest and established models = 1.38576 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 169 components and 1.38576 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.369816Jy  sigma=0.002541
! Fit after  self-cal, rms=0.369804Jy  sigma=0.002541
! Inverting map 
! Your choice of large map pixels excluded 0.45% of the data.
!  The x-axis pixel size should ideally be below 0.1771 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 0.45% of the data.
!  The x-axis pixel size should ideally be below 0.1771 milli-arcsec
! Estimated beam: bmin=0.7052 mas, bmaj=1.051 mas, bpa=-14.91 degrees
! Estimated noise=431.647 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7052 x 1.051 at -14.91 degrees (North through East)
! Clean map  min=-0.0036629  max=0.94737 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.369804Jy  sigma=0.002541
! Fit after  self-cal, rms=0.528637Jy  sigma=0.002356
! Inverting map and beam 
! Your choice of large map pixels excluded 0.45% of the data.
!  The x-axis pixel size should ideally be below 0.1771 milli-arcsec
! Estimated beam: bmin=0.7047 mas, bmaj=1.051 mas, bpa=-14.86 degrees
! Estimated noise=432.074 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00144795 Jy
! Component: 100  -  total flux cleaned = 0.00145157 Jy
! Component: 150  -  total flux cleaned = 0.00156486 Jy
! Component: 200  -  total flux cleaned = 0.00166904 Jy
! Total flux subtracted in 200 components = 0.00166904 Jy
! Clean residual min=-0.003613 max=0.004662 Jy/beam
! Clean residual mean=0.000464 rms=0.001120 Jy/beam
! Combined flux in latest and established models = 1.38742 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 181 components and 1.38742 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.528529Jy  sigma=0.002355
! Fit after  self-cal, rms=0.528525Jy  sigma=0.002355
! Inverting map 
! Your choice of large map pixels excluded 0.45% of the data.
!  The x-axis pixel size should ideally be below 0.1771 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.00320802 Jy
! Component: 100  -  total flux cleaned = 0.00308391 Jy
! Component: 150  -  total flux cleaned = 0.00318749 Jy
! Component: 200  -  total flux cleaned = 0.00309304 Jy
! Total flux subtracted in 200 components = 0.00309304 Jy
! Clean residual min=-0.003594 max=0.004263 Jy/beam
! Clean residual mean=0.000420 rms=0.001094 Jy/beam
! Combined flux in latest and established models = 1.39052 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 194 components and 1.39052 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.528405Jy  sigma=0.002354
! Fit after  self-cal, rms=0.528399Jy  sigma=0.002354
! Inverting map 
! Your choice of large map pixels excluded 0.45% of the data.
!  The x-axis pixel size should ideally be below 0.1771 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.528399Jy  sigma=0.002354
! Fit after  self-cal, rms=0.764438Jy  sigma=0.002354
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 0.45% of the data.
!  The x-axis pixel size should ideally be below 0.1771 milli-arcsec
! Estimated beam: bmin=0.5908 mas, bmaj=0.9676 mas, bpa=-13.03 degrees
! Estimated noise=744.773 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.734252 Jy
! Component: 100  -  total flux cleaned = 0.904665 Jy
! Component: 150  -  total flux cleaned = 0.977128 Jy
! Component: 200  -  total flux cleaned = 1.02479 Jy
! Total flux subtracted in 200 components = 1.02479 Jy
! Clean residual min=-0.011745 max=0.027065 Jy/beam
! Clean residual mean=0.001059 rms=0.004615 Jy/beam
! Combined flux in latest and established models = 1.02479 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 16 model components to the UV plane model.
! The established model now contains 16 components and 1.02479 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 0.45% of the data.
!  The x-axis pixel size should ideally be below 0.1771 milli-arcsec
! Estimated beam: bmin=0.7047 mas, bmaj=1.051 mas, bpa=-14.82 degrees
! Estimated noise=432.653 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.0737018 Jy
! Component: 100  -  total flux cleaned = 0.125394 Jy
! Component: 150  -  total flux cleaned = 0.165051 Jy
! Component: 200  -  total flux cleaned = 0.196532 Jy
! Total flux subtracted in 200 components = 0.196532 Jy
! Clean residual min=-0.006716 max=0.019096 Jy/beam
! Clean residual mean=0.002700 rms=0.004482 Jy/beam
! Combined flux in latest and established models = 1.22132 Jy
! Adding 73 model components to the UV plane model.
! The established model now contains 84 components and 1.22132 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.45% of the data.
!  The x-axis pixel size should ideally be below 0.1771 milli-arcsec
! Added new window around map position (-1.8, 5.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0257723 Jy
! Component: 100  -  total flux cleaned = 0.047246 Jy
! Component: 150  -  total flux cleaned = 0.0652737 Jy
! Component: 200  -  total flux cleaned = 0.0805107 Jy
! Total flux subtracted in 200 components = 0.0805107 Jy
! Clean residual min=-0.004311 max=0.009627 Jy/beam
! Clean residual mean=0.001633 rms=0.002458 Jy/beam
! Combined flux in latest and established models = 1.30183 Jy
! Adding 80 model components to the UV plane model.
! The established model now contains 139 components and 1.30183 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.45% of the data.
!  The x-axis pixel size should ideally be below 0.1771 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 0.45% of the data.
!  The x-axis pixel size should ideally be below 0.1771 milli-arcsec
! Estimated beam: bmin=2.303 mas, bmaj=2.637 mas, bpa=-8.089 degrees
! Estimated noise=600.836 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0313627 Jy
! Component: 100  -  total flux cleaned = 0.0513049 Jy
! Component: 150  -  total flux cleaned = 0.064944 Jy
! Component: 200  -  total flux cleaned = 0.0745529 Jy
! Total flux subtracted in 200 components = 0.0745529 Jy
! Clean residual min=-0.003072 max=0.006883 Jy/beam
! Clean residual mean=0.002005 rms=0.001726 Jy/beam
! Combined flux in latest and established models = 1.37638 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.00691046 Jy
! Component: 100  -  total flux cleaned = 0.0119382 Jy
! Component: 150  -  total flux cleaned = 0.01563 Jy
! Component: 200  -  total flux cleaned = 0.018361 Jy
! Total flux subtracted in 200 components = 0.018361 Jy
! Clean residual min=-0.003390 max=0.006289 Jy/beam
! Clean residual mean=0.001251 rms=0.001424 Jy/beam
! Combined flux in latest and established models = 1.39474 Jy
! Adding 133 model components to the UV plane model.
! The established model now contains 247 components and 1.39474 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.45% of the data.
!  The x-axis pixel size should ideally be below 0.1771 milli-arcsec
! Added new window around map position (-3.6, 11).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00571254 Jy
! Component: 100  -  total flux cleaned = 0.00878034 Jy
! Component: 150  -  total flux cleaned = 0.0109268 Jy
! Component: 200  -  total flux cleaned = 0.0118565 Jy
! Total flux subtracted in 200 components = 0.0118565 Jy
! Clean residual min=-0.002621 max=0.004681 Jy/beam
! Clean residual mean=0.000840 rms=0.001076 Jy/beam
! Combined flux in latest and established models = 1.4066 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 274 components and 1.4066 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.45% of the data.
!  The x-axis pixel size should ideally be below 0.1771 milli-arcsec
! Added new window around map position (-2.6, -10.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00430698 Jy
! Component: 100  -  total flux cleaned = 0.00652549 Jy
! Component: 150  -  total flux cleaned = 0.00769565 Jy
! Component: 200  -  total flux cleaned = 0.00825102 Jy
! Total flux subtracted in 200 components = 0.00825102 Jy
! Clean residual min=-0.002394 max=0.003674 Jy/beam
! Clean residual mean=0.000609 rms=0.000900 Jy/beam
! Combined flux in latest and established models = 1.41485 Jy
! Adding 34 model components to the UV plane model.
! The established model now contains 303 components and 1.41485 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.45% of the data.
!  The x-axis pixel size should ideally be below 0.1771 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 0.45% of the data.
!  The x-axis pixel size should ideally be below 0.1771 milli-arcsec
! Estimated beam: bmin=0.7047 mas, bmaj=1.051 mas, bpa=-14.82 degrees
! Estimated noise=432.653 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00138179 Jy
! Component: 100  -  total flux cleaned = -0.0013519 Jy
! Component: 150  -  total flux cleaned = -0.00150953 Jy
! Component: 200  -  total flux cleaned = -0.001239 Jy
! Total flux subtracted in 200 components = -0.001239 Jy
! Clean residual min=-0.003157 max=0.003806 Jy/beam
! Clean residual mean=0.000224 rms=0.000991 Jy/beam
! Combined flux in latest and established models = 1.41361 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 324 components and 1.41361 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.764121Jy  sigma=0.002353
! Fit after  self-cal, rms=0.764110Jy  sigma=0.002352
wmodel J0237+2848_X_1998_10_01_pus_map.mod
! Writing 324 model components to file: J0237+2848_X_1998_10_01_pus_map.mod
wobs J0237+2848_X_1998_10_01_pus_uvs.fits
! Writing UV FITS file: J0237+2848_X_1998_10_01_pus_uvs.fits
wwins J0237+2848_X_1998_10_01_pus_map.win
! wwins: Wrote 10 windows to J0237+2848_X_1998_10_01_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 0.45% of the data.
!  The x-axis pixel size should ideally be below 0.1771 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00141267 Jy
! Component: 100  -  total flux cleaned = 0.00222764 Jy
! Component: 150  -  total flux cleaned = 0.00295193 Jy
! Component: 200  -  total flux cleaned = 0.00359499 Jy
! Component: 250  -  total flux cleaned = 0.00427596 Jy
! Component: 300  -  total flux cleaned = 0.00477304 Jy
! Component: 350  -  total flux cleaned = 0.00531136 Jy
! Component: 400  -  total flux cleaned = 0.00583818 Jy
! Component: 450  -  total flux cleaned = 0.00630277 Jy
! Component: 500  -  total flux cleaned = 0.00670803 Jy
! Component: 550  -  total flux cleaned = 0.00700782 Jy
! Component: 600  -  total flux cleaned = 0.00735193 Jy
! Component: 650  -  total flux cleaned = 0.00778695 Jy
! Component: 700  -  total flux cleaned = 0.00807214 Jy
! Component: 750  -  total flux cleaned = 0.00835428 Jy
! Component: 800  -  total flux cleaned = 0.00863282 Jy
! Component: 850  -  total flux cleaned = 0.0088162 Jy
! Component: 900  -  total flux cleaned = 0.00899769 Jy
! Component: 950  -  total flux cleaned = 0.00922202 Jy
! Component: 1000  -  total flux cleaned = 0.00939997 Jy
! Total flux subtracted in 1024 components = 0.00944437 Jy
! Clean residual min=-0.002204 max=0.002520 Jy/beam
! Clean residual mean=0.000120 rms=0.000846 Jy/beam
! Combined flux in latest and established models = 1.42306 Jy
keep
! Adding 80 model components to the UV plane model.
! The established model now contains 403 components and 1.42306 Jy
![Exited script file: muppet]
wmap "J0237+2848_X_1998_10_01_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 0.45% of the data.
!  The x-axis pixel size should ideally be below 0.1771 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7047 x 1.051 at -14.82 degrees (North through East)
! Clean map  min=-0.0033881  max=0.94912 Jy/beam
! Writing clean map to FITS file: J0237+2848_X_1998_10_01_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.949122 
invert
! Inverting map 
! Your choice of large map pixels excluded 0.45% of the data.
!  The x-axis pixel size should ideally be below 0.1771 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000845736 
device "J0237+2848_X_1998_10_01_pus\_map.eps/VPS"
! Attempting to open device: 'J0237+2848_X_1998_10_01_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.267321 0.267321 0.534643 1.06929 2.13857 4.27714 8.55428 17.1086 34.2171 68.4343
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0025 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.949 
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.7047 x 1.051 at -14.82 degrees (North through East)
! Clean map  min=-0.0033881  max=0.94912 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0237+2848_X_1998_10_01_pus\_map.gif/vgif"
! Attempting to open device: 'J0237+2848_X_1998_10_01_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0237+2848_X_1998_10_01_pus_uvs.log closed on Wed Feb  6 12:22:32 2008