! Started logfile: J2148+0657_X_2001_10_29_pus_uvs.log on Mon Feb 25 16:22:30 2008
obs J2148+0657_X_2001_10_29_pus_uva.fits
! Reading UV FITS file: J2148+0657_X_2001_10_29_pus_uva.fits
! AN table 1: 74 integrations on 153 of 153 possible baselines.
! AN table 2: 137 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.122046 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2148+0657
! 
! 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 15760 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 J2148+0657_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 833 telescope corrections were flagged in sub-array 1.
!  A total of 1738 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 833 telescope corrections were flagged in sub-array 1.
!  A total of 1738 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 833 telescope corrections were flagged in sub-array 1.
!  A total of 1738 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 833 telescope corrections were flagged in sub-array 1.
!  A total of 1738 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=4.705272Jy  sigma=0.041512
! Fit after  self-cal, rms=4.048389Jy  sigma=0.035795
! 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 6.89% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! Estimated beam: bmin=0.5131 mas, bmaj=1.211 mas, bpa=-0.4195 degrees
! Estimated noise=1030.3 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 = 3.4551 Jy
! Component: 100  -  total flux cleaned = 4.94043 Jy
! Total flux subtracted in 100 components = 4.94043 Jy
! Clean residual min=-0.198826 max=0.713837 Jy/beam
! Clean residual mean=0.010305 rms=0.074794 Jy/beam
! Combined flux in latest and established models = 4.94043 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 4.94043 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.454414Jy  sigma=0.012659
! Fit after  self-cal, rms=1.415976Jy  sigma=0.012506
! Inverting map 
! Your choice of large map pixels excluded 6.89% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.830478 Jy
! Component: 100  -  total flux cleaned = 1.29099 Jy
! Total flux subtracted in 100 components = 1.29099 Jy
! Clean residual min=-0.106003 max=0.370279 Jy/beam
! Clean residual mean=0.004946 rms=0.036001 Jy/beam
! Combined flux in latest and established models = 6.23141 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 16 components and 6.23141 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.777288Jy  sigma=0.006359
! Fit after  self-cal, rms=0.757188Jy  sigma=0.006256
! Inverting map 
! Your choice of large map pixels excluded 6.89% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! Added new window around map position (0.6, -0.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.368677 Jy
! Component: 100  -  total flux cleaned = 0.579765 Jy
! Total flux subtracted in 100 components = 0.579765 Jy
! Clean residual min=-0.054133 max=0.129364 Jy/beam
! Clean residual mean=0.002560 rms=0.020574 Jy/beam
! Combined flux in latest and established models = 6.81118 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 19 components and 6.81118 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.520732Jy  sigma=0.003967
! Fit after  self-cal, rms=0.504408Jy  sigma=0.003862
! Inverting map 
! Your choice of large map pixels excluded 6.89% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.16286 Jy
! Component: 100  -  total flux cleaned = 0.270433 Jy
! Total flux subtracted in 100 components = 0.270433 Jy
! Clean residual min=-0.039305 max=0.068000 Jy/beam
! Clean residual mean=0.001442 rms=0.014752 Jy/beam
! Combined flux in latest and established models = 7.08161 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 26 components and 7.08161 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.439820Jy  sigma=0.003150
! Fit after  self-cal, rms=0.435754Jy  sigma=0.003124
! Inverting map 
! Your choice of large map pixels excluded 6.89% of the data.
!  The x-axis pixel size should ideally be below 0.1541 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 6.89% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! Estimated beam: bmin=0.5558 mas, bmaj=1.331 mas, bpa=0.07228 degrees
! Estimated noise=732.297 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.101393 Jy
! Component: 100  -  total flux cleaned = 0.161957 Jy
! Component: 150  -  total flux cleaned = 0.20114 Jy
! Component: 200  -  total flux cleaned = 0.227223 Jy
! Total flux subtracted in 200 components = 0.227223 Jy
! Clean residual min=-0.039770 max=0.054241 Jy/beam
! Clean residual mean=0.000831 rms=0.014359 Jy/beam
! Combined flux in latest and established models = 7.30883 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 37 components and 7.30883 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.410334Jy  sigma=0.002829
! Fit after  self-cal, rms=0.408605Jy  sigma=0.002816
! Inverting map 
! Your choice of large map pixels excluded 6.89% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.01     KK        1.03     KP        0.98     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        0.99     NL        0.99     
!   OV        0.98     PT        1.00     SC        1.02     TS        1.09     
!   WF        0.98     WZ        1.00*    
! 
!  A total of 66 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.06     FD        1.00*    GG        1.00*    HH        1.08     
!   HN        1.00     KK        1.00*    KP        1.02     LA        1.02     
!   MA        0.98     MC        1.01     MK        1.00*    NL        1.00     
!   OV        1.00*    PT        1.03     SC        0.99     TS        1.00     
!   WF        0.97     WZ        1.01     
! 
! 
! Correcting IF 2.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.07     KP        1.00     LA        0.95     
!   MA        1.00*    MC        1.00*    MK        0.98     NL        0.95     
!   OV        0.99     PT        0.98     SC        0.99     TS        1.08     
!   WF        0.97     WZ        1.00*    
! 
!  A total of 66 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.07     FD        1.00*    GG        1.00*    HH        1.07     
!   HN        0.99     KK        1.00*    KP        1.03     LA        0.99     
!   MA        0.98     MC        1.01     MK        1.00*    NL        0.97     
!   OV        1.00*    PT        1.01     SC        0.95     TS        1.00     
!   WF        0.95     WZ        1.00     
! 
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.02     KK        1.04     KP        0.98     LA        0.99     
!   MA        1.00*    MC        1.00*    MK        1.00     NL        0.99     
!   OV        0.97     PT        1.01     SC        1.00     TS        1.06     
!   WF        1.01     WZ        1.00*    
! 
!  A total of 66 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        1.00*    GG        1.00*    HH        1.10     
!   HN        1.00     KK        1.00*    KP        1.02     LA        1.03     
!   MA        0.96     MC        0.97     MK        1.00*    NL        1.01     
!   OV        1.00*    PT        1.04     SC        0.97     TS        0.98     
!   WF        1.00     WZ        0.99     
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.03     KK        1.04     KP        1.00     LA        0.96     
!   MA        1.00*    MC        1.00*    MK        1.04     NL        1.00     
!   OV        0.95     PT        1.01     SC        1.05     TS        1.07     
!   WF        1.01     WZ        1.00*    
! 
!  A total of 66 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.08     FD        1.00*    GG        1.00*    HH        1.11     
!   HN        1.01     KK        1.00*    KP        1.04     LA        1.01     
!   MA        0.98     MC        1.00     MK        1.00*    NL        1.02     
!   OV        1.00*    PT        1.04     SC        1.01     TS        1.00     
!   WF        0.99     WZ        0.96     
! 
! 
! Fit before self-cal, rms=0.408605Jy  sigma=0.002816
! Fit after  self-cal, rms=0.350694Jy  sigma=0.002151
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 6.9% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! Estimated beam: bmin=0.5574 mas, bmaj=1.358 mas, bpa=-0.4706 degrees
! Estimated noise=740.625 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.00404317 Jy
! Component: 100  -  total flux cleaned = -0.00460638 Jy
! Component: 150  -  total flux cleaned = -0.00457759 Jy
! Component: 200  -  total flux cleaned = -0.00357058 Jy
! Total flux subtracted in 200 components = -0.00357058 Jy
! Clean residual min=-0.032472 max=0.034334 Jy/beam
! Clean residual mean=0.000905 rms=0.009719 Jy/beam
! Combined flux in latest and established models = 7.30526 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 43 components and 7.30526 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.349226Jy  sigma=0.002145
! Fit after  self-cal, rms=0.348899Jy  sigma=0.002144
! Inverting map 
! Your choice of large map pixels excluded 6.9% of the data.
!  The x-axis pixel size should ideally be below 0.1541 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.348899Jy  sigma=0.002144
! Fit after  self-cal, rms=0.293211Jy  sigma=0.001605
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 6.9% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! Estimated beam: bmin=0.5573 mas, bmaj=1.359 mas, bpa=-0.6377 degrees
! Estimated noise=739.927 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00465366 Jy
! Component: 100  -  total flux cleaned = 0.00731146 Jy
! Component: 150  -  total flux cleaned = 0.00827581 Jy
! Component: 200  -  total flux cleaned = 0.0096282 Jy
! Total flux subtracted in 200 components = 0.0096282 Jy
! Clean residual min=-0.018261 max=0.020112 Jy/beam
! Clean residual mean=0.000222 rms=0.003975 Jy/beam
! Combined flux in latest and established models = 7.31489 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 48 components and 7.31489 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.292449Jy  sigma=0.001602
! Fit after  self-cal, rms=0.292160Jy  sigma=0.001600
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 6.9% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (-4.4, -3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00386633 Jy
! Component: 100  -  total flux cleaned = 0.00334099 Jy
! Component: 150  -  total flux cleaned = 0.00379776 Jy
! Component: 200  -  total flux cleaned = 0.00548138 Jy
! Total flux subtracted in 200 components = 0.00548138 Jy
! Clean residual min=-0.016636 max=0.014978 Jy/beam
! Clean residual mean=0.000162 rms=0.003577 Jy/beam
! Combined flux in latest and established models = 7.32037 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 62 components and 7.32037 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.289260Jy  sigma=0.001586
! Fit after  self-cal, rms=0.289104Jy  sigma=0.001585
! Inverting map 
! Your choice of large map pixels excluded 6.9% of the data.
!  The x-axis pixel size should ideally be below 0.1541 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.289104Jy  sigma=0.001585
! Fit after  self-cal, rms=0.291110Jy  sigma=0.001582
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 6.9% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! Estimated beam: bmin=0.5573 mas, bmaj=1.363 mas, bpa=-0.7108 degrees
! Estimated noise=740.453 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00129695 Jy
! Component: 100  -  total flux cleaned = -0.000818518 Jy
! Component: 150  -  total flux cleaned = 5.28517e-05 Jy
! Component: 200  -  total flux cleaned = 0.000460212 Jy
! Total flux subtracted in 200 components = 0.000460212 Jy
! Clean residual min=-0.016802 max=0.014419 Jy/beam
! Clean residual mean=0.000171 rms=0.003549 Jy/beam
! Combined flux in latest and established models = 7.32083 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 63 components and 7.32083 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.290110Jy  sigma=0.001579
! Fit after  self-cal, rms=0.289859Jy  sigma=0.001578
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 6.9% of the data.
!  The x-axis pixel size should ideally be below 0.1541 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.000388731 Jy
! Component: 100  -  total flux cleaned = 1.24663e-05 Jy
! Component: 150  -  total flux cleaned = 0.000384114 Jy
! Component: 200  -  total flux cleaned = 0.000735107 Jy
! Total flux subtracted in 200 components = 0.000735107 Jy
! Clean residual min=-0.015717 max=0.014105 Jy/beam
! Clean residual mean=0.000161 rms=0.003435 Jy/beam
! Combined flux in latest and established models = 7.32157 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 67 components and 7.32157 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.289052Jy  sigma=0.001577
! Fit after  self-cal, rms=0.288807Jy  sigma=0.001576
! Inverting map 
! Your choice of large map pixels excluded 6.9% of the data.
!  The x-axis pixel size should ideally be below 0.1541 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.288807Jy  sigma=0.001576
! Fit after  self-cal, rms=0.290747Jy  sigma=0.001574
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 6.9% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! Estimated beam: bmin=2.223 mas, bmaj=2.788 mas, bpa=6.327 degrees
! Estimated noise=1121.54 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00255214 Jy
! Component: 100  -  total flux cleaned = 0.0010516 Jy
! Component: 150  -  total flux cleaned = -0.000503025 Jy
! Component: 200  -  total flux cleaned = -0.000997141 Jy
! Total flux subtracted in 200 components = -0.000997141 Jy
! Clean residual min=-0.012197 max=0.017271 Jy/beam
! Clean residual mean=0.000564 rms=0.004191 Jy/beam
! Combined flux in latest and established models = 7.32057 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 73 components and 7.32057 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.291650Jy  sigma=0.001575
! Fit after  self-cal, rms=0.291032Jy  sigma=0.001572
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 6.9% of the data.
!  The x-axis pixel size should ideally be below 0.1541 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.000627557 Jy
! Component: 100  -  total flux cleaned = 0.000681471 Jy
! Component: 150  -  total flux cleaned = 6.79298e-05 Jy
! Component: 200  -  total flux cleaned = -0.00020367 Jy
! Total flux subtracted in 200 components = -0.00020367 Jy
! Clean residual min=-0.012293 max=0.017262 Jy/beam
! Clean residual mean=0.000558 rms=0.004095 Jy/beam
! Combined flux in latest and established models = 7.32037 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 74 components and 7.32037 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.292063Jy  sigma=0.001576
! Fit after  self-cal, rms=0.291504Jy  sigma=0.001574
! Inverting map 
! Your choice of large map pixels excluded 6.9% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! Added new window around map position (3.4, -2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0135004 Jy
! Component: 100  -  total flux cleaned = 0.0162625 Jy
! Component: 150  -  total flux cleaned = 0.0181417 Jy
! Component: 200  -  total flux cleaned = 0.0191999 Jy
! Total flux subtracted in 200 components = 0.0191999 Jy
! Clean residual min=-0.009416 max=0.008336 Jy/beam
! Clean residual mean=-0.000359 rms=0.002661 Jy/beam
! Combined flux in latest and established models = 7.33957 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 99 components and 7.33957 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.290809Jy  sigma=0.001567
! Fit after  self-cal, rms=0.290671Jy  sigma=0.001566
! Inverting map 
! Your choice of large map pixels excluded 6.9% of the data.
!  The x-axis pixel size should ideally be below 0.1541 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 6.9% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! Estimated beam: bmin=0.5575 mas, bmaj=1.367 mas, bpa=-0.772 degrees
! Estimated noise=741.229 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.5575 x 1.367 at -0.772 degrees (North through East)
! Clean map  min=-0.017867  max=4.4962 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.290671Jy  sigma=0.001566
! Fit after  self-cal, rms=0.271653Jy  sigma=0.001373
! Inverting map and beam 
! Your choice of large map pixels excluded 6.9% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! Estimated beam: bmin=0.5576 mas, bmaj=1.366 mas, bpa=-0.8062 degrees
! Estimated noise=741.055 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0040728 Jy
! Component: 100  -  total flux cleaned = -0.00464056 Jy
! Component: 150  -  total flux cleaned = -0.00362371 Jy
! Component: 200  -  total flux cleaned = -0.00407613 Jy
! Total flux subtracted in 200 components = -0.00407613 Jy
! Clean residual min=-0.013270 max=0.009856 Jy/beam
! Clean residual mean=-0.000045 rms=0.002869 Jy/beam
! Combined flux in latest and established models = 7.33549 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 121 components and 7.33549 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.268760Jy  sigma=0.001360
! Fit after  self-cal, rms=0.268668Jy  sigma=0.001359
! Inverting map 
! Your choice of large map pixels excluded 6.9% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000435639 Jy
! Component: 100  -  total flux cleaned = 0.000845654 Jy
! Component: 150  -  total flux cleaned = 0.000458487 Jy
! Component: 200  -  total flux cleaned = 0.000843063 Jy
! Total flux subtracted in 200 components = 0.000843063 Jy
! Clean residual min=-0.012514 max=0.009423 Jy/beam
! Clean residual mean=-0.000063 rms=0.002694 Jy/beam
! Combined flux in latest and established models = 7.33634 Jy
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 132 components and 7.33633 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.267399Jy  sigma=0.001356
! Fit after  self-cal, rms=0.267263Jy  sigma=0.001355
! Inverting map 
! Your choice of large map pixels excluded 6.9% of the data.
!  The x-axis pixel size should ideally be below 0.1541 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.267263Jy  sigma=0.001355
! Fit after  self-cal, rms=0.268513Jy  sigma=0.001354
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 6.9% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! Estimated beam: bmin=0.5156 mas, bmaj=1.225 mas, bpa=-1.335 degrees
! Estimated noise=1057.49 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 3.50277 Jy
! Component: 100  -  total flux cleaned = 5.03766 Jy
! Component: 150  -  total flux cleaned = 5.85778 Jy
! Component: 200  -  total flux cleaned = 6.32688 Jy
! Total flux subtracted in 200 components = 6.32688 Jy
! Clean residual min=-0.088811 max=0.242781 Jy/beam
! Clean residual mean=0.004359 rms=0.028236 Jy/beam
! Combined flux in latest and established models = 6.32688 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 12 model components to the UV plane model.
! The established model now contains 12 components and 6.32688 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 6.9% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! Estimated beam: bmin=0.5576 mas, bmaj=1.369 mas, bpa=-0.8423 degrees
! Estimated noise=741.397 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.388499 Jy
! Component: 100  -  total flux cleaned = 0.614643 Jy
! Component: 150  -  total flux cleaned = 0.752424 Jy
! Component: 200  -  total flux cleaned = 0.838913 Jy
! Total flux subtracted in 200 components = 0.838913 Jy
! Clean residual min=-0.021480 max=0.045396 Jy/beam
! Clean residual mean=0.002358 rms=0.007944 Jy/beam
! Combined flux in latest and established models = 7.16579 Jy
! Adding 25 model components to the UV plane model.
! The established model now contains 30 components and 7.16579 Jy
! Inverting map 
! Your choice of large map pixels excluded 6.9% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0555246 Jy
! Component: 100  -  total flux cleaned = 0.088168 Jy
! Component: 150  -  total flux cleaned = 0.106292 Jy
! Component: 200  -  total flux cleaned = 0.120861 Jy
! Total flux subtracted in 200 components = 0.120861 Jy
! Clean residual min=-0.013959 max=0.013651 Jy/beam
! Clean residual mean=0.000671 rms=0.003872 Jy/beam
! Combined flux in latest and established models = 7.28665 Jy
! Adding 27 model components to the UV plane model.
! The established model now contains 48 components and 7.28665 Jy
! Inverting map 
! Your choice of large map pixels excluded 6.9% of the data.
!  The x-axis pixel size should ideally be below 0.1541 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 6.9% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! Estimated beam: bmin=2.223 mas, bmaj=2.789 mas, bpa=6.256 degrees
! Estimated noise=1120.93 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0242956 Jy
! Component: 100  -  total flux cleaned = 0.033312 Jy
! Component: 150  -  total flux cleaned = 0.0370188 Jy
! Component: 200  -  total flux cleaned = 0.0404572 Jy
! Total flux subtracted in 200 components = 0.0404572 Jy
! Clean residual min=-0.008704 max=0.007890 Jy/beam
! Clean residual mean=0.000224 rms=0.003164 Jy/beam
! Combined flux in latest and established models = 7.32711 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.00251685 Jy
! Component: 100  -  total flux cleaned = 0.00464191 Jy
! Component: 150  -  total flux cleaned = 0.0062227 Jy
! Component: 200  -  total flux cleaned = 0.00661979 Jy
! Total flux subtracted in 200 components = 0.00661979 Jy
! Clean residual min=-0.007424 max=0.006993 Jy/beam
! Clean residual mean=-0.000123 rms=0.002455 Jy/beam
! Combined flux in latest and established models = 7.33373 Jy
! Adding 51 model components to the UV plane model.
! The established model now contains 94 components and 7.33373 Jy
! Inverting map 
! Your choice of large map pixels excluded 6.9% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 6.9% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! Estimated beam: bmin=0.5576 mas, bmaj=1.369 mas, bpa=-0.8423 degrees
! Estimated noise=741.397 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00306734 Jy
! Component: 100  -  total flux cleaned = 0.00454473 Jy
! Component: 150  -  total flux cleaned = 0.0040713 Jy
! Component: 200  -  total flux cleaned = 0.00488255 Jy
! Total flux subtracted in 200 components = 0.00488255 Jy
! Clean residual min=-0.011522 max=0.009782 Jy/beam
! Clean residual mean=-0.000091 rms=0.002744 Jy/beam
! Combined flux in latest and established models = 7.33861 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 113 components and 7.33861 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.286653Jy  sigma=0.001470
! Fit after  self-cal, rms=0.285449Jy  sigma=0.001460
wmodel J2148+0657_X_2001_10_29_pus_map.mod
! Writing 113 model components to file: J2148+0657_X_2001_10_29_pus_map.mod
wobs J2148+0657_X_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J2148+0657_X_2001_10_29_pus_uvs.fits
wwins J2148+0657_X_2001_10_29_pus_map.win
! wwins: Wrote 4 windows to J2148+0657_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 6.9% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.00613236 Jy
! Component: 100  -  total flux cleaned = -0.00991364 Jy
! Component: 150  -  total flux cleaned = -0.0124307 Jy
! Component: 200  -  total flux cleaned = -0.0142477 Jy
! Component: 250  -  total flux cleaned = -0.0151096 Jy
! Component: 300  -  total flux cleaned = -0.0157731 Jy
! Component: 350  -  total flux cleaned = -0.0164159 Jy
! Component: 400  -  total flux cleaned = -0.0170375 Jy
! Component: 450  -  total flux cleaned = -0.0174898 Jy
! Component: 500  -  total flux cleaned = -0.0182271 Jy
! Component: 550  -  total flux cleaned = -0.0186575 Jy
! Component: 600  -  total flux cleaned = -0.0190803 Jy
! Component: 650  -  total flux cleaned = -0.0194955 Jy
! Component: 700  -  total flux cleaned = -0.019769 Jy
! Component: 750  -  total flux cleaned = -0.0200377 Jy
! Component: 800  -  total flux cleaned = -0.0200386 Jy
! Component: 850  -  total flux cleaned = -0.0204278 Jy
! Component: 900  -  total flux cleaned = -0.0204265 Jy
! Component: 950  -  total flux cleaned = -0.0206795 Jy
! Component: 1000  -  total flux cleaned = -0.0208025 Jy
! Total flux subtracted in 1024 components = -0.0208027 Jy
! Clean residual min=-0.006366 max=0.006118 Jy/beam
! Clean residual mean=0.000118 rms=0.002250 Jy/beam
! Combined flux in latest and established models = 7.31781 Jy
keep
! Adding 57 model components to the UV plane model.
! The established model now contains 164 components and 7.31781 Jy
![Exited script file: muppet]
wmap "J2148+0657_X_2001_10_29_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 6.9% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.5576 x 1.369 at -0.8423 degrees (North through East)
! Clean map  min=-0.017822  max=4.5108 Jy/beam
! Writing clean map to FITS file: J2148+0657_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 4.5108 
invert
! Inverting map 
! Your choice of large map pixels excluded 6.9% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00224741 
device "J2148+0657_X_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J2148+0657_X_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.149468 0.149468 0.298937 0.597874 1.19575 2.3915 4.78299 9.56598 19.132 38.2639 76.5279
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0067 
print "peak=",int(1000*peak_flux)/1000
! peak= 4.51 
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.5576 x 1.369 at -0.8423 degrees (North through East)
! Clean map  min=-0.017822  max=4.5108 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2148+0657_X_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J2148+0657_X_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2148+0657_X_2001_10_29_pus_uvs.log closed on Mon Feb 25 16:22:38 2008