! Started logfile: J0237+2848_X_1999_03_08_pus_uvs.log on Fri Jan  4 15:46:46 2008
obs J0237+2848_X_1999_03_08_pus_uva.fits
! Reading UV FITS file: J0237+2848_X_1999_03_08_pus_uva.fits
! AN table 1: 236 integrations on 190 of 190 possible baselines.
! AN table 2: 109 integrations on 190 of 190 possible baselines.
! AN table 3: 146 integrations on 190 of 190 possible baselines.
! AN table 4: 78 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.111821 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 2468 lines of history.
! 
! Reading 48356 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_1999_03_08_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 3663 telescope corrections were flagged in sub-array 1.
!  A total of 1486 telescope corrections were flagged in sub-array 2.
!  A total of 2428 telescope corrections were flagged in sub-array 3.
!  A total of 845 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 3633 telescope corrections were flagged in sub-array 1.
!  A total of 1476 telescope corrections were flagged in sub-array 2.
!  A total of 2427 telescope corrections were flagged in sub-array 3.
!  A total of 845 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 3636 telescope corrections were flagged in sub-array 1.
!  A total of 1444 telescope corrections were flagged in sub-array 2.
!  A total of 2428 telescope corrections were flagged in sub-array 3.
!  A total of 845 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 3633 telescope corrections were flagged in sub-array 1.
!  A total of 1437 telescope corrections were flagged in sub-array 2.
!  A total of 2428 telescope corrections were flagged in sub-array 3.
!  A total of 845 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.067021Jy  sigma=0.008159
! Fit after  self-cal, rms=0.322692Jy  sigma=0.002563
! 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.62% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
! Estimated beam: bmin=0.5909 mas, bmaj=0.8352 mas, bpa=-13.55 degrees
! Estimated noise=759.468 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.780258 Jy
! Component: 100  -  total flux cleaned = 0.960874 Jy
! Total flux subtracted in 100 components = 0.960874 Jy
! Clean residual min=-0.021982 max=0.069747 Jy/beam
! Clean residual mean=0.000114 rms=0.007355 Jy/beam
! Combined flux in latest and established models = 0.960874 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.960874 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.325890Jy  sigma=0.002643
! Fit after  self-cal, rms=0.325851Jy  sigma=0.002642
! Inverting map 
! Your choice of large map pixels excluded 4.62% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0760161 Jy
! Component: 100  -  total flux cleaned = 0.119298 Jy
! Total flux subtracted in 100 components = 0.119298 Jy
! Clean residual min=-0.022964 max=0.035367 Jy/beam
! Clean residual mean=0.000081 rms=0.006356 Jy/beam
! Combined flux in latest and established models = 1.08017 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 12 components and 1.08017 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.309200Jy  sigma=0.002351
! Fit after  self-cal, rms=0.309092Jy  sigma=0.002350
! Inverting map 
! Your choice of large map pixels excluded 4.62% of the data.
!  The x-axis pixel size should ideally be below 0.1604 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.62% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
! Estimated beam: bmin=0.686 mas, bmaj=1.044 mas, bpa=-18.89 degrees
! Estimated noise=416.641 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, 3.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0588086 Jy
! Component: 100  -  total flux cleaned = 0.0990628 Jy
! Component: 150  -  total flux cleaned = 0.130486 Jy
! Component: 200  -  total flux cleaned = 0.155451 Jy
! Total flux subtracted in 200 components = 0.155451 Jy
! Clean residual min=-0.017863 max=0.024067 Jy/beam
! Clean residual mean=0.000721 rms=0.005986 Jy/beam
! Combined flux in latest and established models = 1.23562 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 40 components and 1.23562 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.299710Jy  sigma=0.002161
! Fit after  self-cal, rms=0.298172Jy  sigma=0.002146
! Inverting map 
! Your choice of large map pixels excluded 4.62% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.97     GC        0.93     GG        1.00*    
!   HN        0.99     KP        0.93     LA        1.00*    NL        1.00     
!   OV        0.97     PT        0.98     SC        1.03     WF        1.01     
!   GN        1.05     HH        1.00*    KK        0.99     MC        1.88     
!   MK        0.99     NY        1.00     ON        1.09     WZ        1.04     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.97     GC        0.95     GG        1.00*    
!   HN        0.95     KP        1.00*    LA        1.00*    NL        1.01     
!   OV        1.00*    PT        1.00*    SC        0.97     WF        0.94     
!   GN        0.90     HH        1.00*    KK        3.68     MC        1.09     
!   MK        1.00     NY        1.00     ON        0.99     WZ        0.84     
! 
!  A total of 138 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.05     GC        1.09     GG        1.00*    
!   HN        0.98     KP        1.00*    LA        1.00*    NL        1.13     
!   OV        1.00*    PT        1.00*    SC        0.91     WF        0.92     
!   GN        1.00*    HH        1.00*    KK        1.00*    MC        0.94     
!   MK        1.00*    NY        0.98     ON        0.96     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        0.97     GC        1.05     GG        1.00*    
!   HN        1.01     KP        0.97     LA        0.99     NL        1.28     
!   OV        0.95     PT        0.95     SC        1.03     WF        1.01     
!   GN        1.04     HH        1.00*    KK        0.92     MC        1.00*    
!   MK        0.98     NY        1.10     ON        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.96     GC        0.92     GG        1.00*    
!   HN        1.00     KP        0.94     LA        1.00*    NL        1.01     
!   OV        0.96     PT        0.98     SC        1.02     WF        1.03     
!   GN        1.08     HH        1.00*    KK        0.98     MC        1.81     
!   MK        0.99     NY        1.00     ON        1.08     WZ        0.99     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.97     GC        0.95     GG        1.00*    
!   HN        0.95     KP        1.00*    LA        1.00*    NL        0.97     
!   OV        1.00*    PT        1.00*    SC        0.96     WF        0.93     
!   GN        0.91     HH        1.00*    KK        1.85     MC        1.09     
!   MK        1.00     NY        0.99     ON        0.98     WZ        0.81     
! 
!  A total of 138 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.04     GC        1.11     GG        1.00*    
!   HN        0.97     KP        1.00*    LA        1.00*    NL        1.17     
!   OV        1.00*    PT        1.00*    SC        0.90     WF        0.94     
!   GN        1.00*    HH        1.00*    KK        1.00*    MC        0.94     
!   MK        1.00*    NY        0.97     ON        0.95     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        0.96     GC        1.04     GG        1.00*    
!   HN        1.00     KP        0.98     LA        0.99     NL        1.19     
!   OV        0.95     PT        0.95     SC        1.02     WF        1.03     
!   GN        1.03     HH        1.00*    KK        0.93     MC        1.00*    
!   MK        0.98     NY        1.09     ON        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.91     FD        0.95     GC        0.87     GG        1.00*    
!   HN        0.99     KP        0.94     LA        1.00*    NL        0.98     
!   OV        0.93     PT        0.97     SC        1.05     WF        1.01     
!   GN        1.06     HH        1.00*    KK        0.97     MC        2.20     
!   MK        0.97     NY        0.98     ON        1.09     WZ        1.02     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.91     FD        0.95     GC        0.96     GG        1.00*    
!   HN        0.93     KP        1.00*    LA        1.00*    NL        0.99     
!   OV        1.00*    PT        1.00*    SC        0.97     WF        0.92     
!   GN        0.91     HH        1.00*    KK        1.81     MC        1.09     
!   MK        0.99     NY        0.98     ON        1.00     WZ        0.83     
! 
!  A total of 138 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.92     FD        1.03     GC        1.11     GG        1.00*    
!   HN        0.97     KP        1.00*    LA        1.00*    NL        1.12     
!   OV        1.00*    PT        1.00*    SC        0.92     WF        0.94     
!   GN        1.00*    HH        1.00*    KK        1.00*    MC        0.89     
!   MK        1.00*    NY        0.95     ON        0.97     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.95     FD        0.96     GC        1.09     GG        1.00*    
!   HN        0.98     KP        0.97     LA        0.98     NL        1.27     
!   OV        0.94     PT        0.95     SC        1.04     WF        0.99     
!   GN        1.00     HH        1.00*    KK        0.91     MC        1.00*    
!   MK        0.95     NY        1.09     ON        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.93     FD        0.95     GC        0.91     GG        1.00*    
!   HN        0.99     KP        0.92     LA        1.00*    NL        0.97     
!   OV        0.93     PT        0.96     SC        1.05     WF        1.02     
!   GN        1.07     HH        1.00*    KK        0.96     MC        1.81     
!   MK        0.97     NY        0.95     ON        1.04     WZ        1.00     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.94     FD        0.95     GC        0.93     GG        1.00*    
!   HN        0.98     KP        1.00*    LA        1.00*    NL        0.99     
!   OV        1.00*    PT        1.00*    SC        0.96     WF        3.19     
!   GN        0.94     HH        1.00*    KK        1.20     MC        5.34     
!   MK        0.98     NY        0.99     ON        3.77     WZ        0.90     
! 
!  A total of 138 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        1.04     GC        0.99     GG        1.00*    
!   HN        0.96     KP        1.00*    LA        1.00*    NL        1.16     
!   OV        1.00*    PT        1.00*    SC        0.94     WF        0.91     
!   GN        1.00*    HH        1.00*    KK        1.00*    MC        0.91     
!   MK        1.00*    NY        0.93     ON        0.94     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        0.95     GC        1.04     GG        1.00*    
!   HN        0.98     KP        0.97     LA        0.97     NL        1.20     
!   OV        0.94     PT        0.94     SC        1.02     WF        0.98     
!   GN        1.00     HH        1.00*    KK        0.91     MC        1.00*    
!   MK        0.95     NY        1.05     ON        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.298172Jy  sigma=0.002146
! Fit after  self-cal, rms=0.674482Jy  sigma=0.001551
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 4.68% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
! Estimated beam: bmin=0.6879 mas, bmaj=1.059 mas, bpa=-18.88 degrees
! Estimated noise=416.002 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.4, 5.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0216419 Jy
! Component: 100  -  total flux cleaned = 0.0363539 Jy
! Component: 150  -  total flux cleaned = 0.0472546 Jy
! Component: 200  -  total flux cleaned = 0.055641 Jy
! Total flux subtracted in 200 components = 0.055641 Jy
! Clean residual min=-0.010386 max=0.011559 Jy/beam
! Clean residual mean=0.000040 rms=0.002984 Jy/beam
! Combined flux in latest and established models = 1.29126 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 66 components and 1.29126 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.673419Jy  sigma=0.001514
! Fit after  self-cal, rms=0.680517Jy  sigma=0.001509
! Inverting map 
! Your choice of large map pixels excluded 4.68% of the data.
!  The x-axis pixel size should ideally be below 0.1604 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.680517Jy  sigma=0.001509
! Fit after  self-cal, rms=0.697546Jy  sigma=0.001360
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.68% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
! Estimated beam: bmin=0.6858 mas, bmaj=1.054 mas, bpa=-18.55 degrees
! Estimated noise=416.399 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0136143 Jy
! Component: 100  -  total flux cleaned = 0.0235511 Jy
! Component: 150  -  total flux cleaned = 0.0313064 Jy
! Component: 200  -  total flux cleaned = 0.0374418 Jy
! Total flux subtracted in 200 components = 0.0374418 Jy
! Clean residual min=-0.005261 max=0.011507 Jy/beam
! Clean residual mean=0.000324 rms=0.001855 Jy/beam
! Combined flux in latest and established models = 1.32871 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 87 components and 1.32871 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.697047Jy  sigma=0.001345
! Fit after  self-cal, rms=0.697146Jy  sigma=0.001343
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.68% of the data.
!  The x-axis pixel size should ideally be below 0.1604 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, 4.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0109103 Jy
! Component: 100  -  total flux cleaned = 0.0171591 Jy
! Component: 150  -  total flux cleaned = 0.0219955 Jy
! Component: 200  -  total flux cleaned = 0.0247507 Jy
! Total flux subtracted in 200 components = 0.0247507 Jy
! Clean residual min=-0.005015 max=0.008127 Jy/beam
! Clean residual mean=0.000131 rms=0.001655 Jy/beam
! Combined flux in latest and established models = 1.35346 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 105 components and 1.35346 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.696833Jy  sigma=0.001334
! Fit after  self-cal, rms=0.696765Jy  sigma=0.001333
! Inverting map 
! Your choice of large map pixels excluded 4.68% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
! Added new window around map position (-2.2, 7).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00744151 Jy
! Component: 100  -  total flux cleaned = 0.0114897 Jy
! Component: 150  -  total flux cleaned = 0.0141461 Jy
! Component: 200  -  total flux cleaned = 0.0159811 Jy
! Total flux subtracted in 200 components = 0.0159811 Jy
! Clean residual min=-0.005304 max=0.006023 Jy/beam
! Clean residual mean=-0.000009 rms=0.001593 Jy/beam
! Combined flux in latest and established models = 1.36944 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 123 components and 1.36944 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.696537Jy  sigma=0.001328
! Fit after  self-cal, rms=0.696509Jy  sigma=0.001327
! Inverting map 
! Your choice of large map pixels excluded 4.68% of the data.
!  The x-axis pixel size should ideally be below 0.1604 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.696509Jy  sigma=0.001327
! Fit after  self-cal, rms=0.693083Jy  sigma=0.001323
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.68% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
! Estimated beam: bmin=0.6846 mas, bmaj=1.05 mas, bpa=-18.42 degrees
! Estimated noise=418.053 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00791071 Jy
! Component: 100  -  total flux cleaned = 0.0133399 Jy
! Component: 150  -  total flux cleaned = 0.0177647 Jy
! Component: 200  -  total flux cleaned = 0.0215315 Jy
! Total flux subtracted in 200 components = 0.0215315 Jy
! Clean residual min=-0.004975 max=0.005750 Jy/beam
! Clean residual mean=0.000106 rms=0.001537 Jy/beam
! Combined flux in latest and established models = 1.39097 Jy
selfcal
! Performing phase self-cal
! Adding 45 model components to the UV plane model.
! The established model now contains 139 components and 1.39097 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.692665Jy  sigma=0.001319
! Fit after  self-cal, rms=0.692614Jy  sigma=0.001319
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.68% of the data.
!  The x-axis pixel size should ideally be below 0.1604 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.00388748 Jy
! Component: 100  -  total flux cleaned = 0.00696243 Jy
! Component: 150  -  total flux cleaned = 0.00876793 Jy
! Component: 200  -  total flux cleaned = 0.0100075 Jy
! Total flux subtracted in 200 components = 0.0100075 Jy
! Clean residual min=-0.004910 max=0.005793 Jy/beam
! Clean residual mean=0.000030 rms=0.001488 Jy/beam
! Combined flux in latest and established models = 1.40098 Jy
! Performing phase self-cal
! Adding 52 model components to the UV plane model.
! The established model now contains 151 components and 1.40098 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.692510Jy  sigma=0.001318
! Fit after  self-cal, rms=0.692490Jy  sigma=0.001318
! Inverting map 
! Your choice of large map pixels excluded 4.68% of the data.
!  The x-axis pixel size should ideally be below 0.1604 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.692490Jy  sigma=0.001318
! Fit after  self-cal, rms=0.684061Jy  sigma=0.001314
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.68% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
! Estimated beam: bmin=2.189 mas, bmaj=2.28 mas, bpa=-6.048 degrees
! Estimated noise=660.682 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0132701 Jy
! Component: 100  -  total flux cleaned = 0.0206422 Jy
! Component: 150  -  total flux cleaned = 0.0255182 Jy
! Component: 200  -  total flux cleaned = 0.0272273 Jy
! Total flux subtracted in 200 components = 0.0272273 Jy
! Clean residual min=-0.009892 max=0.009099 Jy/beam
! Clean residual mean=-0.000079 rms=0.003887 Jy/beam
! Combined flux in latest and established models = 1.4282 Jy
selfcal
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 166 components and 1.4282 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.683713Jy  sigma=0.001315
! Fit after  self-cal, rms=0.683642Jy  sigma=0.001314
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.68% of the data.
!  The x-axis pixel size should ideally be below 0.1604 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.00401051 Jy
! Component: 100  -  total flux cleaned = 0.00529361 Jy
! Component: 150  -  total flux cleaned = 0.00621353 Jy
! Component: 200  -  total flux cleaned = 0.00644597 Jy
! Total flux subtracted in 200 components = 0.00644597 Jy
! Clean residual min=-0.009905 max=0.008650 Jy/beam
! Clean residual mean=-0.000248 rms=0.003768 Jy/beam
! Combined flux in latest and established models = 1.43465 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 172 components and 1.43465 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.683510Jy  sigma=0.001314
! Fit after  self-cal, rms=0.683486Jy  sigma=0.001314
! Inverting map 
! Your choice of large map pixels excluded 4.68% of the data.
!  The x-axis pixel size should ideally be below 0.1604 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 4.68% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
! Estimated beam: bmin=0.6837 mas, bmaj=1.048 mas, bpa=-18.31 degrees
! Estimated noise=419.857 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6837 x 1.048 at -18.31 degrees (North through East)
! Clean map  min=-0.0042804  max=1.032 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.683486Jy  sigma=0.001314
! Fit after  self-cal, rms=2.866142Jy  sigma=0.001196
! Inverting map and beam 
! Your choice of large map pixels excluded 4.68% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
! Estimated beam: bmin=0.6836 mas, bmaj=1.046 mas, bpa=-18.24 degrees
! Estimated noise=421.148 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00449243 Jy
! Component: 100  -  total flux cleaned = 0.00643062 Jy
! Component: 150  -  total flux cleaned = 0.00765738 Jy
! Component: 200  -  total flux cleaned = 0.00846329 Jy
! Total flux subtracted in 200 components = 0.00846329 Jy
! Clean residual min=-0.004523 max=0.005278 Jy/beam
! Clean residual mean=0.000015 rms=0.001278 Jy/beam
! Combined flux in latest and established models = 1.44311 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 182 components and 1.44311 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.866111Jy  sigma=0.001195
! Fit after  self-cal, rms=2.866160Jy  sigma=0.001195
! Inverting map 
! Your choice of large map pixels excluded 4.68% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00135131 Jy
! Component: 100  -  total flux cleaned = 0.00180471 Jy
! Component: 150  -  total flux cleaned = 0.00205791 Jy
! Component: 200  -  total flux cleaned = 0.00237609 Jy
! Total flux subtracted in 200 components = 0.00237609 Jy
! Clean residual min=-0.004501 max=0.005318 Jy/beam
! Clean residual mean=-0.000001 rms=0.001263 Jy/beam
! Combined flux in latest and established models = 1.44549 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 188 components and 1.44549 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.866158Jy  sigma=0.001194
! Fit after  self-cal, rms=2.866170Jy  sigma=0.001194
! Inverting map 
! Your choice of large map pixels excluded 4.68% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.866170Jy  sigma=0.001194
! Fit after  self-cal, rms=2.910823Jy  sigma=0.001193
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 4.68% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
! Estimated beam: bmin=0.5939 mas, bmaj=0.8345 mas, bpa=-12.63 degrees
! Estimated noise=760.094 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.78489 Jy
! Component: 100  -  total flux cleaned = 0.969467 Jy
! Component: 150  -  total flux cleaned = 1.04675 Jy
! Component: 200  -  total flux cleaned = 1.08818 Jy
! Total flux subtracted in 200 components = 1.08818 Jy
! Clean residual min=-0.006339 max=0.021751 Jy/beam
! Clean residual mean=0.000205 rms=0.002738 Jy/beam
! Combined flux in latest and established models = 1.08818 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 10 model components to the UV plane model.
! The established model now contains 10 components and 1.08818 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 4.68% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
! Estimated beam: bmin=0.6832 mas, bmaj=1.045 mas, bpa=-18.18 degrees
! Estimated noise=422.063 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.0629341 Jy
! Component: 100  -  total flux cleaned = 0.107798 Jy
! Component: 150  -  total flux cleaned = 0.14341 Jy
! Component: 200  -  total flux cleaned = 0.172811 Jy
! Total flux subtracted in 200 components = 0.172811 Jy
! Clean residual min=-0.005694 max=0.018678 Jy/beam
! Clean residual mean=0.001414 rms=0.004133 Jy/beam
! Combined flux in latest and established models = 1.26099 Jy
! Adding 83 model components to the UV plane model.
! The established model now contains 87 components and 1.26099 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.68% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
! Added new window around map position (-0.2, 1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0249398 Jy
! Component: 100  -  total flux cleaned = 0.0460872 Jy
! Component: 150  -  total flux cleaned = 0.0642607 Jy
! Component: 200  -  total flux cleaned = 0.0799629 Jy
! Total flux subtracted in 200 components = 0.0799629 Jy
! Clean residual min=-0.004780 max=0.009742 Jy/beam
! Clean residual mean=0.000847 rms=0.002618 Jy/beam
! Combined flux in latest and established models = 1.34095 Jy
! Adding 80 model components to the UV plane model.
! The established model now contains 144 components and 1.34095 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.68% of the data.
!  The x-axis pixel size should ideally be below 0.1604 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 4.68% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
! Estimated beam: bmin=2.184 mas, bmaj=2.276 mas, bpa=-5.338 degrees
! Estimated noise=667.562 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0400247 Jy
! Component: 100  -  total flux cleaned = 0.0648168 Jy
! Component: 150  -  total flux cleaned = 0.0816052 Jy
! Component: 200  -  total flux cleaned = 0.0934495 Jy
! Total flux subtracted in 200 components = 0.0934495 Jy
! Clean residual min=-0.010274 max=0.008440 Jy/beam
! Clean residual mean=0.000537 rms=0.004029 Jy/beam
! Combined flux in latest and established models = 1.4344 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.00854616 Jy
! Component: 100  -  total flux cleaned = 0.0147841 Jy
! Component: 150  -  total flux cleaned = 0.0193536 Jy
! Component: 200  -  total flux cleaned = 0.0227092 Jy
! Total flux subtracted in 200 components = 0.0227092 Jy
! Clean residual min=-0.009554 max=0.006571 Jy/beam
! Clean residual mean=-0.000146 rms=0.003458 Jy/beam
! Combined flux in latest and established models = 1.45711 Jy
! Adding 137 model components to the UV plane model.
! The established model now contains 255 components and 1.45711 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.68% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 4.68% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
! Estimated beam: bmin=0.6832 mas, bmaj=1.045 mas, bpa=-18.18 degrees
! Estimated noise=422.063 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000269214 Jy
! Component: 100  -  total flux cleaned = 0.000210812 Jy
! Component: 150  -  total flux cleaned = 0.000930697 Jy
! Component: 200  -  total flux cleaned = 0.00132294 Jy
! Total flux subtracted in 200 components = 0.00132294 Jy
! Clean residual min=-0.004106 max=0.004828 Jy/beam
! Clean residual mean=-0.000032 rms=0.001262 Jy/beam
! Combined flux in latest and established models = 1.45844 Jy
selfcal
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 273 components and 1.45844 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.910769Jy  sigma=0.001197
! Fit after  self-cal, rms=2.909613Jy  sigma=0.001196
wmodel J0237+2848_X_1999_03_08_pus_map.mod
! Writing 273 model components to file: J0237+2848_X_1999_03_08_pus_map.mod
wobs J0237+2848_X_1999_03_08_pus_uvs.fits
! Writing UV FITS file: J0237+2848_X_1999_03_08_pus_uvs.fits
wwins J0237+2848_X_1999_03_08_pus_map.win
! wwins: Wrote 6 windows to J0237+2848_X_1999_03_08_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 4.68% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000815979 Jy
! Component: 100  -  total flux cleaned = 0.000598273 Jy
! Component: 150  -  total flux cleaned = 0.000127016 Jy
! Component: 200  -  total flux cleaned = -0.00019635 Jy
! Component: 250  -  total flux cleaned = -0.000259426 Jy
! Component: 300  -  total flux cleaned = -0.000500113 Jy
! Component: 350  -  total flux cleaned = -0.000792469 Jy
! Component: 400  -  total flux cleaned = -0.00119183 Jy
! Component: 450  -  total flux cleaned = -0.00147077 Jy
! Component: 500  -  total flux cleaned = -0.00185409 Jy
! Component: 550  -  total flux cleaned = -0.00222886 Jy
! Component: 600  -  total flux cleaned = -0.00249084 Jy
! Component: 650  -  total flux cleaned = -0.00259428 Jy
! Component: 700  -  total flux cleaned = -0.00289889 Jy
! Component: 750  -  total flux cleaned = -0.00299897 Jy
! Component: 800  -  total flux cleaned = -0.00304798 Jy
! Component: 850  -  total flux cleaned = -0.00304833 Jy
! Component: 900  -  total flux cleaned = -0.00309648 Jy
! Component: 950  -  total flux cleaned = -0.00314377 Jy
! Component: 1000  -  total flux cleaned = -0.00319037 Jy
! Total flux subtracted in 1024 components = -0.00319039 Jy
! Clean residual min=-0.002427 max=0.002686 Jy/beam
! Clean residual mean=0.000002 rms=0.000992 Jy/beam
! Combined flux in latest and established models = 1.45524 Jy
keep
! Adding 97 model components to the UV plane model.
! The established model now contains 370 components and 1.45524 Jy
![Exited script file: muppet]
wmap "J0237+2848_X_1999_03_08_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 4.68% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6832 x 1.045 at -18.18 degrees (North through East)
! Clean map  min=-0.0035029  max=1.0376 Jy/beam
! Writing clean map to FITS file: J0237+2848_X_1999_03_08_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.03763 
invert
! Inverting map 
! Your choice of large map pixels excluded 4.68% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00099011 
device "J0237+2848_X_1999_03_08_pus\_map.eps/VPS"
! Attempting to open device: 'J0237+2848_X_1999_03_08_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.28626 0.28626 0.57252 1.14504 2.29008 4.58016 9.16031 18.3206 36.6413 73.2825
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0029 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.037 
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.6832 x 1.045 at -18.18 degrees (North through East)
! Clean map  min=-0.0035029  max=1.0376 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0237+2848_X_1999_03_08_pus\_map.gif/vgif"
! Attempting to open device: 'J0237+2848_X_1999_03_08_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0237+2848_X_1999_03_08_pus_uvs.log closed on Fri Jan  4 15:47:15 2008