! Started logfile: J0137+3122_X_2001_10_29_pus_uvs.log on Mon Feb 25 16:05:59 2008
obs J0137+3122_X_2001_10_29_pus_uva.fits
! Reading UV FITS file: J0137+3122_X_2001_10_29_pus_uva.fits
! AN table 1: 129 integrations on 153 of 153 possible baselines.
! AN table 2: 94 integrations on 153 of 153 possible baselines.
! AN table 3: 257 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.136029 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0137+3122
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1970 lines of history.
! 
! Reading 39960 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 J0137+3122_X_2001_10_29_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 256x256 pixels with 0.200x0.200 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 1917 telescope corrections were flagged in sub-array 1.
!  A total of 1103 telescope corrections were flagged in sub-array 2.
!  A total of 3139 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1917 telescope corrections were flagged in sub-array 1.
!  A total of 1103 telescope corrections were flagged in sub-array 2.
!  A total of 3139 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1917 telescope corrections were flagged in sub-array 1.
!  A total of 1103 telescope corrections were flagged in sub-array 2.
!  A total of 3139 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1917 telescope corrections were flagged in sub-array 1.
!  A total of 1104 telescope corrections were flagged in sub-array 2.
!  A total of 3139 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.871828Jy  sigma=0.007547
! Fit after  self-cal, rms=0.787402Jy  sigma=0.006899
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 5.5% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1764 milli-arcsec
! Estimated beam: bmin=0.5374 mas, bmaj=1.011 mas, bpa=-4.25 degrees
! Estimated noise=766.802 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.174005 Jy
! Component: 100  -  total flux cleaned = 0.222239 Jy
! Total flux subtracted in 100 components = 0.222239 Jy
! Clean residual min=-0.007785 max=0.028151 Jy/beam
! Clean residual mean=0.000322 rms=0.002999 Jy/beam
! Combined flux in latest and established models = 0.222239 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 0.222239 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188474Jy  sigma=0.001362
! Fit after  self-cal, rms=0.188384Jy  sigma=0.001361
! Inverting map 
! Your choice of large map pixels excluded 5.5% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1764 milli-arcsec
! Added new window around map position (0.8, -1).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0295112 Jy
! Component: 100  -  total flux cleaned = 0.0475451 Jy
! Total flux subtracted in 100 components = 0.0475451 Jy
! Clean residual min=-0.006263 max=0.012112 Jy/beam
! Clean residual mean=0.000183 rms=0.001992 Jy/beam
! Combined flux in latest and established models = 0.269784 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 15 components and 0.269784 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.182383Jy  sigma=0.001284
! Fit after  self-cal, rms=0.181961Jy  sigma=0.001280
! Inverting map 
! Your choice of large map pixels excluded 5.5% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1764 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0150097 Jy
! Component: 100  -  total flux cleaned = 0.0245438 Jy
! Total flux subtracted in 100 components = 0.0245438 Jy
! Clean residual min=-0.005559 max=0.007909 Jy/beam
! Clean residual mean=0.000112 rms=0.001574 Jy/beam
! Combined flux in latest and established models = 0.294327 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 23 components and 0.294327 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.180243Jy  sigma=0.001258
! Fit after  self-cal, rms=0.180127Jy  sigma=0.001257
! Inverting map 
! Your choice of large map pixels excluded 5.5% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1764 milli-arcsec
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
win_mult = win_mult * 1.6
clean_niter = clean_niter * 2
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 5.5% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1764 milli-arcsec
! Estimated beam: bmin=0.6476 mas, bmaj=1.273 mas, bpa=-6.016 degrees
! Estimated noise=427.313 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.0130408 Jy
! Component: 100  -  total flux cleaned = 0.0212049 Jy
! Component: 150  -  total flux cleaned = 0.02676 Jy
! Component: 200  -  total flux cleaned = 0.0305924 Jy
! Total flux subtracted in 200 components = 0.0305924 Jy
! Clean residual min=-0.003696 max=0.004453 Jy/beam
! Clean residual mean=0.000198 rms=0.001054 Jy/beam
! Combined flux in latest and established models = 0.32492 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 36 components and 0.32492 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179185Jy  sigma=0.001244
! Fit after  self-cal, rms=0.179136Jy  sigma=0.001244
! Inverting map 
! Your choice of large map pixels excluded 5.5% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1764 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.09     FD        1.00*    GG        1.00*    HH        1.13     
!   HN        1.01     KK        1.00*    KP        1.00*    LA        1.13     
!   MA        0.98     MC        0.85     MK        1.00*    NL        1.07     
!   OV        1.00*    PT        1.03     SC        1.06     TS        1.00*    
!   WF        1.00     WZ        0.94     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.97     KK        1.00*    KP        0.96     LA        0.92     
!   MA        0.97     MC        1.01     MK        1.13     NL        0.91     
!   OV        0.95     PT        0.95     SC        0.97     TS        1.00*    
!   WF        0.96     WZ        0.94     
! 
!  A total of 177 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.03     KK        1.02     KP        1.00     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        0.99     NL        0.98     
!   OV        0.97     PT        1.01     SC        1.01     TS        0.96     
!   WF        0.99     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        1.00*    GG        1.00*    HH        0.99     
!   HN        1.04     KK        1.00*    KP        1.00*    LA        1.04     
!   MA        0.91     MC        0.88     MK        1.00*    NL        1.02     
!   OV        1.00*    PT        1.05     SC        0.98     TS        1.00*    
!   WF        0.92     WZ        0.93     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.99     KK        1.00*    KP        0.95     LA        0.93     
!   MA        1.00     MC        0.95     MK        1.09     NL        0.87     
!   OV        0.96     PT        0.96     SC        0.97     TS        1.00*    
!   WF        0.99     WZ        0.94     
! 
!  A total of 177 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.02     KK        1.07     KP        1.05     LA        0.96     
!   MA        1.00*    MC        1.00*    MK        0.97     NL        0.96     
!   OV        0.98     PT        1.01     SC        0.97     TS        0.98     
!   WF        0.99     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.07     FD        1.00*    GG        1.00*    HH        1.01     
!   HN        0.97     KK        1.00*    KP        1.00*    LA        1.13     
!   MA        0.88     MC        0.81     MK        1.00*    NL        1.04     
!   OV        1.00*    PT        1.13     SC        1.05     TS        1.00*    
!   WF        0.95     WZ        0.97     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.98     KK        1.00*    KP        0.96     LA        0.95     
!   MA        0.95     MC        0.98     MK        1.13     NL        0.94     
!   OV        0.97     PT        0.96     SC        1.00     TS        1.00*    
!   WF        1.09     WZ        0.98     
! 
!  A total of 177 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.05     KK        1.03     KP        1.02     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        1.03     NL        1.00     
!   OV        0.97     PT        1.04     SC        1.05     TS        0.97     
!   WF        0.99     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.09     FD        1.00*    GG        1.00*    HH        0.87     
!   HN        1.07     KK        1.00*    KP        1.00*    LA        1.14     
!   MA        0.94     MC        0.87     MK        1.00*    NL        1.08     
!   OV        1.00*    PT        1.12     SC        0.98     TS        1.00*    
!   WF        0.98     WZ        0.88     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.03     KK        1.00*    KP        1.00     LA        0.93     
!   MA        1.01     MC        1.01     MK        1.16     NL        0.91     
!   OV        0.93     PT        1.00     SC        1.04     TS        1.00*    
!   WF        1.02     WZ        0.98     
! 
!  A total of 177 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.05     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.05     KK        1.00     KP        1.03     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        1.03     NL        1.03     
!   OV        0.95     PT        1.02     SC        1.06     TS        0.95     
!   WF        1.00     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.179136Jy  sigma=0.001244
! Fit after  self-cal, rms=0.176721Jy  sigma=0.001236
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 5.62% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1764 milli-arcsec
! Estimated beam: bmin=0.6394 mas, bmaj=1.286 mas, bpa=-6.202 degrees
! Estimated noise=426.066 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.6, -1.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00418572 Jy
! Component: 100  -  total flux cleaned = 0.00538822 Jy
! Component: 150  -  total flux cleaned = 0.00595842 Jy
! Component: 200  -  total flux cleaned = 0.00609918 Jy
! Total flux subtracted in 200 components = 0.00609918 Jy
! Clean residual min=-0.001855 max=0.002465 Jy/beam
! Clean residual mean=0.000197 rms=0.000610 Jy/beam
! Combined flux in latest and established models = 0.331019 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 53 components and 0.331019 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.176624Jy  sigma=0.001235
! Fit after  self-cal, rms=0.176609Jy  sigma=0.001235
! Inverting map 
! Your choice of large map pixels excluded 5.62% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1764 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.176609Jy  sigma=0.001235
! Fit after  self-cal, rms=0.178009Jy  sigma=0.001232
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 5.62% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1764 milli-arcsec
! Estimated beam: bmin=0.6376 mas, bmaj=1.284 mas, bpa=-6.188 degrees
! Estimated noise=426.375 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00240872 Jy
! Component: 100  -  total flux cleaned = 0.00343004 Jy
! Component: 150  -  total flux cleaned = 0.00356773 Jy
! Component: 200  -  total flux cleaned = 0.00360557 Jy
! Total flux subtracted in 200 components = 0.00360557 Jy
! Clean residual min=-0.001689 max=0.002168 Jy/beam
! Clean residual mean=0.000170 rms=0.000533 Jy/beam
! Combined flux in latest and established models = 0.334625 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 65 components and 0.334624 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177974Jy  sigma=0.001232
! Fit after  self-cal, rms=0.178047Jy  sigma=0.001232
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 5.62% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1764 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 (7.4, -1.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00176047 Jy
! Component: 100  -  total flux cleaned = 0.00198484 Jy
! Component: 150  -  total flux cleaned = 0.0020977 Jy
! Component: 200  -  total flux cleaned = 0.00212958 Jy
! Total flux subtracted in 200 components = 0.00212958 Jy
! Clean residual min=-0.001654 max=0.002002 Jy/beam
! Clean residual mean=0.000136 rms=0.000504 Jy/beam
! Combined flux in latest and established models = 0.336754 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 76 components and 0.336754 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.178019Jy  sigma=0.001231
! Fit after  self-cal, rms=0.178016Jy  sigma=0.001231
! Inverting map 
! Your choice of large map pixels excluded 5.62% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1764 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.178016Jy  sigma=0.001231
! Fit after  self-cal, rms=0.178389Jy  sigma=0.001231
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 5.62% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1764 milli-arcsec
! Estimated beam: bmin=0.6367 mas, bmaj=1.284 mas, bpa=-6.194 degrees
! Estimated noise=426.707 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00139907 Jy
! Component: 100  -  total flux cleaned = 0.00209598 Jy
! Component: 150  -  total flux cleaned = 0.00215644 Jy
! Component: 200  -  total flux cleaned = 0.00218412 Jy
! Total flux subtracted in 200 components = 0.00218412 Jy
! Clean residual min=-0.001682 max=0.001955 Jy/beam
! Clean residual mean=0.000119 rms=0.000493 Jy/beam
! Combined flux in latest and established models = 0.338938 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 80 components and 0.338938 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.178374Jy  sigma=0.001231
! Fit after  self-cal, rms=0.178378Jy  sigma=0.001231
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 5.62% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1764 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.000172967 Jy
! Component: 100  -  total flux cleaned = 0.000200079 Jy
! Component: 150  -  total flux cleaned = 0.000199649 Jy
! Component: 200  -  total flux cleaned = 0.000248253 Jy
! Total flux subtracted in 200 components = 0.000248253 Jy
! Clean residual min=-0.001670 max=0.001922 Jy/beam
! Clean residual mean=0.000117 rms=0.000487 Jy/beam
! Combined flux in latest and established models = 0.339186 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 86 components and 0.339187 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.178371Jy  sigma=0.001231
! Fit after  self-cal, rms=0.178369Jy  sigma=0.001231
! Inverting map 
! Your choice of large map pixels excluded 5.62% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1764 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.178369Jy  sigma=0.001231
! Fit after  self-cal, rms=0.178545Jy  sigma=0.001231
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 5.62% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1764 milli-arcsec
! Estimated beam: bmin=2.327 mas, bmaj=2.461 mas, bpa=-9.371 degrees
! Estimated noise=608.714 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00156159 Jy
! Component: 100  -  total flux cleaned = 0.002464 Jy
! Component: 150  -  total flux cleaned = 0.00295836 Jy
! Component: 200  -  total flux cleaned = 0.00308618 Jy
! Total flux subtracted in 200 components = 0.00308618 Jy
! Clean residual min=-0.002064 max=0.002378 Jy/beam
! Clean residual mean=0.000251 rms=0.000667 Jy/beam
! Combined flux in latest and established models = 0.342273 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 96 components and 0.342273 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.178553Jy  sigma=0.001231
! Fit after  self-cal, rms=0.178555Jy  sigma=0.001231
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 5.62% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1764 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.000170258 Jy
! Component: 100  -  total flux cleaned = 0.000298992 Jy
! Component: 150  -  total flux cleaned = 0.000330499 Jy
! Component: 200  -  total flux cleaned = 0.000372792 Jy
! Total flux subtracted in 200 components = 0.000372792 Jy
! Clean residual min=-0.001981 max=0.002340 Jy/beam
! Clean residual mean=0.000239 rms=0.000655 Jy/beam
! Combined flux in latest and established models = 0.342645 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 100 components and 0.342645 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.178559Jy  sigma=0.001231
! Fit after  self-cal, rms=0.178558Jy  sigma=0.001231
! Inverting map 
! Your choice of large map pixels excluded 5.62% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1764 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Your choice of large map pixels excluded 5.62% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1764 milli-arcsec
! Estimated beam: bmin=0.6361 mas, bmaj=1.283 mas, bpa=-6.194 degrees
! Estimated noise=427.188 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6361 x 1.283 at -6.194 degrees (North through East)
! Clean map  min=-0.0014501  max=0.2261 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
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 5.62% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1764 milli-arcsec
! Estimated beam: bmin=0.5314 mas, bmaj=1.019 mas, bpa=-4.446 degrees
! Estimated noise=759.295 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.170697 Jy
! Component: 100  -  total flux cleaned = 0.22423 Jy
! Component: 150  -  total flux cleaned = 0.255513 Jy
! Component: 200  -  total flux cleaned = 0.275223 Jy
! Total flux subtracted in 200 components = 0.275223 Jy
! Clean residual min=-0.004243 max=0.010581 Jy/beam
! Clean residual mean=0.000194 rms=0.001603 Jy/beam
! Combined flux in latest and established models = 0.275223 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 0.275223 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 5.62% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1764 milli-arcsec
! Estimated beam: bmin=0.6361 mas, bmaj=1.283 mas, bpa=-6.194 degrees
! Estimated noise=427.188 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.0215412 Jy
! Component: 100  -  total flux cleaned = 0.0347645 Jy
! Component: 150  -  total flux cleaned = 0.0433426 Jy
! Component: 200  -  total flux cleaned = 0.0490554 Jy
! Total flux subtracted in 200 components = 0.0490554 Jy
! Clean residual min=-0.001785 max=0.003625 Jy/beam
! Clean residual mean=0.000382 rms=0.000716 Jy/beam
! Combined flux in latest and established models = 0.324279 Jy
! Adding 39 model components to the UV plane model.
! The established model now contains 45 components and 0.324279 Jy
! Inverting map 
! Your choice of large map pixels excluded 5.62% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1764 milli-arcsec
! Added new window around map position (-0.8, -0.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00414424 Jy
! Component: 100  -  total flux cleaned = 0.00721238 Jy
! Component: 150  -  total flux cleaned = 0.0096014 Jy
! Component: 200  -  total flux cleaned = 0.0115199 Jy
! Total flux subtracted in 200 components = 0.0115199 Jy
! Clean residual min=-0.001686 max=0.002047 Jy/beam
! Clean residual mean=0.000190 rms=0.000517 Jy/beam
! Combined flux in latest and established models = 0.335798 Jy
! Adding 34 model components to the UV plane model.
! The established model now contains 69 components and 0.335798 Jy
! Inverting map 
! Your choice of large map pixels excluded 5.62% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1764 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 5.62% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1764 milli-arcsec
! Estimated beam: bmin=2.327 mas, bmaj=2.461 mas, bpa=-9.371 degrees
! Estimated noise=608.714 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00295923 Jy
! Component: 100  -  total flux cleaned = 0.00471695 Jy
! Component: 150  -  total flux cleaned = 0.00585105 Jy
! Component: 200  -  total flux cleaned = 0.00661799 Jy
! Total flux subtracted in 200 components = 0.00661799 Jy
! Clean residual min=-0.001923 max=0.002251 Jy/beam
! Clean residual mean=0.000251 rms=0.000641 Jy/beam
! Combined flux in latest and established models = 0.342416 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.000455638 Jy
! Component: 100  -  total flux cleaned = 0.000541219 Jy
! Component: 150  -  total flux cleaned = 0.000630829 Jy
! Component: 200  -  total flux cleaned = 0.00069662 Jy
! Total flux subtracted in 200 components = 0.00069662 Jy
! Clean residual min=-0.001880 max=0.002253 Jy/beam
! Clean residual mean=0.000216 rms=0.000630 Jy/beam
! Combined flux in latest and established models = 0.343113 Jy
! Adding 40 model components to the UV plane model.
! The established model now contains 96 components and 0.343113 Jy
! Inverting map 
! Your choice of large map pixels excluded 5.62% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1764 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 5.62% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1764 milli-arcsec
! Estimated beam: bmin=0.6361 mas, bmaj=1.283 mas, bpa=-6.194 degrees
! Estimated noise=427.188 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000587097 Jy
! Component: 100  -  total flux cleaned = -0.000671809 Jy
! Component: 150  -  total flux cleaned = -0.000827119 Jy
! Component: 200  -  total flux cleaned = -0.00089724 Jy
! Total flux subtracted in 200 components = -0.00089724 Jy
! Clean residual min=-0.001648 max=0.001939 Jy/beam
! Clean residual mean=0.000085 rms=0.000469 Jy/beam
! Combined flux in latest and established models = 0.342216 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 106 components and 0.342216 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.178530Jy  sigma=0.001231
! Fit after  self-cal, rms=0.178493Jy  sigma=0.001231
wmodel J0137+3122_X_2001_10_29_pus_map.mod
! Writing 106 model components to file: J0137+3122_X_2001_10_29_pus_map.mod
wobs J0137+3122_X_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J0137+3122_X_2001_10_29_pus_uvs.fits
wwins J0137+3122_X_2001_10_29_pus_map.win
! wwins: Wrote 5 windows to J0137+3122_X_2001_10_29_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! Your choice of large map pixels excluded 5.62% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1764 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000649278 Jy
! Component: 100  -  total flux cleaned = 0.0010169 Jy
! Component: 150  -  total flux cleaned = 0.00116168 Jy
! Component: 200  -  total flux cleaned = 0.00118949 Jy
! Component: 250  -  total flux cleaned = 0.00124235 Jy
! Component: 300  -  total flux cleaned = 0.00131967 Jy
! Component: 350  -  total flux cleaned = 0.00139502 Jy
! Component: 400  -  total flux cleaned = 0.00149291 Jy
! Component: 450  -  total flux cleaned = 0.00158842 Jy
! Component: 500  -  total flux cleaned = 0.00165859 Jy
! Component: 550  -  total flux cleaned = 0.00175046 Jy
! Component: 600  -  total flux cleaned = 0.00179558 Jy
! Component: 650  -  total flux cleaned = 0.0018623 Jy
! Component: 700  -  total flux cleaned = 0.00194926 Jy
! Component: 750  -  total flux cleaned = 0.00201327 Jy
! Component: 800  -  total flux cleaned = 0.0020553 Jy
! Component: 850  -  total flux cleaned = 0.00211718 Jy
! Component: 900  -  total flux cleaned = 0.00217802 Jy
! Component: 950  -  total flux cleaned = 0.00223798 Jy
! Component: 1000  -  total flux cleaned = 0.00227748 Jy
! Total flux subtracted in 1024 components = 0.00227747 Jy
! Clean residual min=-0.000981 max=0.001127 Jy/beam
! Clean residual mean=0.000039 rms=0.000373 Jy/beam
! Combined flux in latest and established models = 0.344493 Jy
keep
! Adding 73 model components to the UV plane model.
! The established model now contains 179 components and 0.344493 Jy
![Exited script file: muppet]
wmap "J0137+3122_X_2001_10_29_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 5.62% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1764 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6361 x 1.283 at -6.194 degrees (North through East)
! Clean map  min=-0.0014499  max=0.22614 Jy/beam
! Writing clean map to FITS file: J0137+3122_X_2001_10_29_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.226137 
invert
! Inverting map 
! Your choice of large map pixels excluded 5.62% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1764 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000372018 
device "J0137+3122_X_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J0137+3122_X_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.49353 0.49353 0.987059 1.97412 3.94824 7.89647 15.7929 31.5859 63.1718
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0011 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.226 
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.6361 x 1.283 at -6.194 degrees (North through East)
! Clean map  min=-0.0014499  max=0.22614 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0137+3122_X_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J0137+3122_X_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0137+3122_X_2001_10_29_pus_uvs.log closed on Mon Feb 25 16:06:12 2008