! Started logfile: J2148+0657_X_2001_07_05_pus_uvs.log on Wed Jul  4 21:54:51 2007
obs J2148+0657_X_2001_07_05_pus_uva.fits
! Reading UV FITS file: J2148+0657_X_2001_07_05_pus_uva.fits
! AN table 1: 95 integrations on 171 of 171 possible baselines.
! AN table 2: 74 integrations on 171 of 171 possible baselines.
! AN table 3: 14 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.177516 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2148+0657
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! 
! 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 2370 lines of history.
! 
! Reading 22220 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 
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 1509 telescope corrections were flagged in sub-array 1.
!  A total of 693 telescope corrections were flagged in sub-array 2.
!  A total of 147 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1509 telescope corrections were flagged in sub-array 1.
!  A total of 693 telescope corrections were flagged in sub-array 2.
!  A total of 147 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1509 telescope corrections were flagged in sub-array 1.
!  A total of 693 telescope corrections were flagged in sub-array 2.
!  A total of 147 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1509 telescope corrections were flagged in sub-array 1.
!  A total of 693 telescope corrections were flagged in sub-array 2.
!  A total of 147 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=5.656719Jy  sigma=0.054520
! Fit after  self-cal, rms=5.043720Jy  sigma=0.048688
! 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 1.81% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1777 milli-arcsec
! Estimated beam: bmin=0.5842 mas, bmaj=1.354 mas, bpa=0.2832 degrees
! Estimated noise=957.479 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 = 4.11063 Jy
! Component: 100  -  total flux cleaned = 5.72339 Jy
! Total flux subtracted in 100 components = 5.72339 Jy
! Clean residual min=-0.166311 max=0.723466 Jy/beam
! Clean residual mean=0.004302 rms=0.071615 Jy/beam
! Combined flux in latest and established models = 5.72339 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 5.72339 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.398492Jy  sigma=0.013808
! Fit after  self-cal, rms=1.371438Jy  sigma=0.013629
! Inverting map 
! Your choice of large map pixels excluded 1.81% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1777 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.805078 Jy
! Component: 100  -  total flux cleaned = 1.22409 Jy
! Total flux subtracted in 100 components = 1.22409 Jy
! Clean residual min=-0.090017 max=0.377731 Jy/beam
! Clean residual mean=0.002337 rms=0.034312 Jy/beam
! Combined flux in latest and established models = 6.94747 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 11 components and 6.94747 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.702823Jy  sigma=0.006762
! Fit after  self-cal, rms=0.697586Jy  sigma=0.006732
! Inverting map 
! Your choice of large map pixels excluded 1.81% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1777 milli-arcsec
! Added new window around map position (0.8, -0.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.345364 Jy
! Component: 100  -  total flux cleaned = 0.535919 Jy
! Total flux subtracted in 100 components = 0.535919 Jy
! Clean residual min=-0.062242 max=0.123833 Jy/beam
! Clean residual mean=0.001407 rms=0.021610 Jy/beam
! Combined flux in latest and established models = 7.48339 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 20 components and 7.48339 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.472629Jy  sigma=0.004369
! Fit after  self-cal, rms=0.460636Jy  sigma=0.004276
! Inverting map 
! Your choice of large map pixels excluded 1.81% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1777 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.145556 Jy
! Component: 100  -  total flux cleaned = 0.245363 Jy
! Total flux subtracted in 100 components = 0.245363 Jy
! Clean residual min=-0.069963 max=0.073225 Jy/beam
! Clean residual mean=0.000984 rms=0.017174 Jy/beam
! Combined flux in latest and established models = 7.72876 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 24 components and 7.72876 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.406058Jy  sigma=0.003619
! Fit after  self-cal, rms=0.404192Jy  sigma=0.003606
! Inverting map 
! Your choice of large map pixels excluded 1.81% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1777 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 1.81% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1777 milli-arcsec
! Estimated beam: bmin=0.7203 mas, bmaj=1.627 mas, bpa=-0.9614 degrees
! Estimated noise=529.237 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.0924962 Jy
! Component: 100  -  total flux cleaned = 0.147111 Jy
! Component: 150  -  total flux cleaned = 0.175307 Jy
! Component: 200  -  total flux cleaned = 0.187293 Jy
! Total flux subtracted in 200 components = 0.187293 Jy
! Clean residual min=-0.054952 max=0.047689 Jy/beam
! Clean residual mean=0.000810 rms=0.013942 Jy/beam
! Combined flux in latest and established models = 7.91605 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 37 components and 7.91605 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.383663Jy  sigma=0.003349
! Fit after  self-cal, rms=0.382956Jy  sigma=0.003344
! Inverting map 
! Your choice of large map pixels excluded 1.81% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1777 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 57 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.00     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        0.94     KP        0.99     
!   LA        0.98     MC        1.00*    MK        0.97     NL        0.98     
!   NY        1.00*    OV        0.99     PT        1.01     SC        1.02     
!   TS        1.44     WF        0.99     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.00     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.06     KP        1.02     
!   LA        0.98     MC        1.00*    MK        0.99     NL        1.00     
!   NY        1.00*    OV        0.99     PT        1.03     SC        0.99     
!   TS        1.00*    WF        1.02     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.06     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.91     KP        1.02     
!   LA        1.03     MC        1.00*    MK        0.98     NL        1.00*    
!   NY        1.00*    OV        1.00     PT        1.03     SC        1.00*    
!   TS        0.86     WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 57 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.99     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        0.94     KP        0.99     
!   LA        0.97     MC        1.00*    MK        0.97     NL        0.95     
!   NY        1.00*    OV        0.98     PT        0.98     SC        0.98     
!   TS        1.46     WF        0.99     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.99     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.05     KP        1.03     
!   LA        0.97     MC        1.00*    MK        0.99     NL        0.96     
!   NY        1.00*    OV        0.99     PT        0.99     SC        0.94     
!   TS        1.00*    WF        1.01     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.06     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.91     KP        1.02     
!   LA        1.02     MC        1.00*    MK        0.97     NL        1.00*    
!   NY        1.00*    OV        0.99     PT        0.99     SC        1.00*    
!   TS        0.87     WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 57 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.97     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        0.92     KP        1.03     
!   LA        0.99     MC        1.00*    MK        0.99     NL        0.98     
!   NY        1.00*    OV        1.02     PT        1.00     SC        0.99     
!   TS        1.49     WF        0.98     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        0.97     GC        1.07     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.03     KP        1.07     
!   LA        0.98     MC        1.00*    MK        1.01     NL        1.00     
!   NY        1.00*    OV        1.03     PT        1.01     SC        0.95     
!   TS        1.00*    WF        1.02     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.04     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.89     KP        1.06     
!   LA        1.04     MC        1.00*    MK        0.99     NL        1.00*    
!   NY        1.00*    OV        1.04     PT        1.01     SC        1.00*    
!   TS        0.84     WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 57 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.96     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        0.93     KP        0.99     
!   LA        0.96     MC        1.00*    MK        1.03     NL        0.99     
!   NY        1.00*    OV        0.99     PT        1.00     SC        1.05     
!   TS        1.49     WF        0.98     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.96     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.05     KP        1.03     
!   LA        0.96     MC        1.00*    MK        1.05     NL        1.01     
!   NY        1.00*    OV        1.00     PT        1.02     SC        1.00     
!   TS        1.00*    WF        1.01     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.02     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.91     KP        1.01     
!   LA        1.02     MC        1.00*    MK        1.02     NL        1.00*    
!   NY        1.00*    OV        1.01     PT        1.01     SC        1.00*    
!   TS        0.85     WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.382956Jy  sigma=0.003344
! Fit after  self-cal, rms=0.189450Jy  sigma=0.001534
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 1.35% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
! Estimated beam: bmin=0.724 mas, bmaj=1.652 mas, bpa=-1.001 degrees
! Estimated noise=530.855 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.00566548 Jy
! Component: 100  -  total flux cleaned = -0.00799557 Jy
! Component: 150  -  total flux cleaned = -0.00902942 Jy
! Component: 200  -  total flux cleaned = -0.0103956 Jy
! Total flux subtracted in 200 components = -0.0103956 Jy
! Clean residual min=-0.014966 max=0.017291 Jy/beam
! Clean residual mean=0.000423 rms=0.003603 Jy/beam
! Combined flux in latest and established models = 7.90565 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 43 components and 7.90565 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.186008Jy  sigma=0.001503
! Fit after  self-cal, rms=0.185830Jy  sigma=0.001501
! Inverting map 
! Your choice of large map pixels excluded 1.35% of the data.
!  The x-axis pixel size should ideally be below 0.1545 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.185830Jy  sigma=0.001501
! Fit after  self-cal, rms=0.185590Jy  sigma=0.001499
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.35% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
! Estimated beam: bmin=0.7244 mas, bmaj=1.652 mas, bpa=-1.015 degrees
! Estimated noise=530.943 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00683806 Jy
! Component: 100  -  total flux cleaned = -0.00807709 Jy
! Component: 150  -  total flux cleaned = -0.00919206 Jy
! Component: 200  -  total flux cleaned = -0.0101923 Jy
! Total flux subtracted in 200 components = -0.0101923 Jy
! Clean residual min=-0.014362 max=0.016402 Jy/beam
! Clean residual mean=0.000441 rms=0.003387 Jy/beam
! Combined flux in latest and established models = 7.89546 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 43 components and 7.89546 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.184006Jy  sigma=0.001485
! Fit after  self-cal, rms=0.183932Jy  sigma=0.001484
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.35% of the data.
!  The x-axis pixel size should ideally be below 0.1545 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 (3.2, -2.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0165889 Jy
! Component: 100  -  total flux cleaned = 0.0236687 Jy
! Component: 150  -  total flux cleaned = 0.0269233 Jy
! Component: 200  -  total flux cleaned = 0.0286615 Jy
! Total flux subtracted in 200 components = 0.0286615 Jy
! Clean residual min=-0.013137 max=0.011853 Jy/beam
! Clean residual mean=0.000212 rms=0.002799 Jy/beam
! Combined flux in latest and established models = 7.92412 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 61 components and 7.92412 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.182280Jy  sigma=0.001465
! Fit after  self-cal, rms=0.182134Jy  sigma=0.001464
! Inverting map 
! Your choice of large map pixels excluded 1.35% of the data.
!  The x-axis pixel size should ideally be below 0.1545 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.182134Jy  sigma=0.001464
! Fit after  self-cal, rms=0.181946Jy  sigma=0.001461
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.35% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
! Estimated beam: bmin=0.7249 mas, bmaj=1.653 mas, bpa=-1.046 degrees
! Estimated noise=531.237 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00158845 Jy
! Component: 100  -  total flux cleaned = -0.000949956 Jy
! Component: 150  -  total flux cleaned = -0.00067103 Jy
! Component: 200  -  total flux cleaned = -0.000422188 Jy
! Total flux subtracted in 200 components = -0.000422188 Jy
! Clean residual min=-0.013129 max=0.011680 Jy/beam
! Clean residual mean=0.000176 rms=0.002558 Jy/beam
! Combined flux in latest and established models = 7.9237 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 61 components and 7.9237 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.181179Jy  sigma=0.001454
! Fit after  self-cal, rms=0.181136Jy  sigma=0.001453
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.35% of the data.
!  The x-axis pixel size should ideally be below 0.1545 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.00123254 Jy
! Component: 100  -  total flux cleaned = 0.00192867 Jy
! Component: 150  -  total flux cleaned = 0.00257058 Jy
! Component: 200  -  total flux cleaned = 0.00256687 Jy
! Total flux subtracted in 200 components = 0.00256687 Jy
! Clean residual min=-0.012305 max=0.011530 Jy/beam
! Clean residual mean=0.000152 rms=0.002454 Jy/beam
! Combined flux in latest and established models = 7.92627 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 64 components and 7.92627 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.180812Jy  sigma=0.001449
! Fit after  self-cal, rms=0.180795Jy  sigma=0.001449
! Inverting map 
! Your choice of large map pixels excluded 1.35% of the data.
!  The x-axis pixel size should ideally be below 0.1545 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.180795Jy  sigma=0.001449
! Fit after  self-cal, rms=0.180714Jy  sigma=0.001447
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.35% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
! Estimated beam: bmin=2.043 mas, bmaj=2.72 mas, bpa=3.841 degrees
! Estimated noise=738.495 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00268974 Jy
! Component: 100  -  total flux cleaned = 0.0042126 Jy
! Component: 150  -  total flux cleaned = 0.00442686 Jy
! Component: 200  -  total flux cleaned = 0.00379027 Jy
! Total flux subtracted in 200 components = 0.00379027 Jy
! Clean residual min=-0.007741 max=0.016819 Jy/beam
! Clean residual mean=0.000262 rms=0.003587 Jy/beam
! Combined flux in latest and established models = 7.93006 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 72 components and 7.93006 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.180927Jy  sigma=0.001447
! Fit after  self-cal, rms=0.180673Jy  sigma=0.001446
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.35% of the data.
!  The x-axis pixel size should ideally be below 0.1545 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 (5.6, -6.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0130987 Jy
! Component: 100  -  total flux cleaned = 0.0161985 Jy
! Component: 150  -  total flux cleaned = 0.0189001 Jy
! Component: 200  -  total flux cleaned = 0.0209539 Jy
! Total flux subtracted in 200 components = 0.0209539 Jy
! Clean residual min=-0.008462 max=0.007906 Jy/beam
! Clean residual mean=-0.000225 rms=0.002584 Jy/beam
! Combined flux in latest and established models = 7.95101 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 99 components and 7.95101 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.180297Jy  sigma=0.001442
! Fit after  self-cal, rms=0.180262Jy  sigma=0.001442
! Inverting map 
! Your choice of large map pixels excluded 1.35% of the data.
!  The x-axis pixel size should ideally be below 0.1545 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 1.35% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
! Estimated beam: bmin=0.7254 mas, bmaj=1.654 mas, bpa=-1.078 degrees
! Estimated noise=531.546 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7254 x 1.654 at -1.078 degrees (North through East)
! Clean map  min=-0.0084881  max=5.6004 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.180262Jy  sigma=0.001442
! Fit after  self-cal, rms=0.160592Jy  sigma=0.001241
! Inverting map and beam 
! Your choice of large map pixels excluded 1.35% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
! Estimated beam: bmin=0.7252 mas, bmaj=1.655 mas, bpa=-1.09 degrees
! Estimated noise=530.975 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00239193 Jy
! Component: 100  -  total flux cleaned = -0.00314553 Jy
! Component: 150  -  total flux cleaned = -0.00358661 Jy
! Component: 200  -  total flux cleaned = -0.00357773 Jy
! Total flux subtracted in 200 components = -0.00357773 Jy
! Clean residual min=-0.012417 max=0.007256 Jy/beam
! Clean residual mean=-0.000052 rms=0.001782 Jy/beam
! Combined flux in latest and established models = 7.94743 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 121 components and 7.94743 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.159958Jy  sigma=0.001236
! Fit after  self-cal, rms=0.159950Jy  sigma=0.001235
! Inverting map 
! Your choice of large map pixels excluded 1.35% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000333954 Jy
! Component: 100  -  total flux cleaned = 0.000697888 Jy
! Component: 150  -  total flux cleaned = 0.000863807 Jy
! Component: 200  -  total flux cleaned = 0.000693779 Jy
! Total flux subtracted in 200 components = 0.000693779 Jy
! Clean residual min=-0.011434 max=0.006789 Jy/beam
! Clean residual mean=-0.000062 rms=0.001684 Jy/beam
! Combined flux in latest and established models = 7.94813 Jy
! Performing phase self-cal
! Adding 42 model components to the UV plane model.
! The established model now contains 137 components and 7.94813 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.159679Jy  sigma=0.001233
! Fit after  self-cal, rms=0.159668Jy  sigma=0.001233
! Inverting map 
! Your choice of large map pixels excluded 1.35% of the data.
!  The x-axis pixel size should ideally be below 0.1545 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.159668Jy  sigma=0.001233
! Fit after  self-cal, rms=0.159677Jy  sigma=0.001232
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 1.35% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
! Estimated beam: bmin=0.5945 mas, bmaj=1.416 mas, bpa=-0.2893 degrees
! Estimated noise=966.5 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 4.15216 Jy
! Component: 100  -  total flux cleaned = 5.77259 Jy
! Component: 150  -  total flux cleaned = 6.55123 Jy
! Component: 200  -  total flux cleaned = 6.98942 Jy
! Total flux subtracted in 200 components = 6.98942 Jy
! Clean residual min=-0.058677 max=0.226711 Jy/beam
! Clean residual mean=0.001811 rms=0.025242 Jy/beam
! Combined flux in latest and established models = 6.98942 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.98942 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 1.35% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
! Estimated beam: bmin=0.7254 mas, bmaj=1.656 mas, bpa=-1.1 degrees
! Estimated noise=531.146 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.362081 Jy
! Component: 100  -  total flux cleaned = 0.564326 Jy
! Component: 150  -  total flux cleaned = 0.684098 Jy
! Component: 200  -  total flux cleaned = 0.756176 Jy
! Total flux subtracted in 200 components = 0.756176 Jy
! Clean residual min=-0.014160 max=0.037242 Jy/beam
! Clean residual mean=0.001463 rms=0.006593 Jy/beam
! Combined flux in latest and established models = 7.7456 Jy
! Adding 27 model components to the UV plane model.
! The established model now contains 30 components and 7.7456 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.35% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0448966 Jy
! Component: 100  -  total flux cleaned = 0.0741868 Jy
! Component: 150  -  total flux cleaned = 0.0954094 Jy
! Component: 200  -  total flux cleaned = 0.112145 Jy
! Total flux subtracted in 200 components = 0.112145 Jy
! Clean residual min=-0.010272 max=0.011826 Jy/beam
! Clean residual mean=0.000612 rms=0.002974 Jy/beam
! Combined flux in latest and established models = 7.85774 Jy
! Adding 29 model components to the UV plane model.
! The established model now contains 52 components and 7.85774 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.35% of the data.
!  The x-axis pixel size should ideally be below 0.1545 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 1.35% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
! Estimated beam: bmin=2.043 mas, bmaj=2.721 mas, bpa=3.801 degrees
! Estimated noise=737.506 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0259516 Jy
! Component: 100  -  total flux cleaned = 0.0431627 Jy
! Component: 150  -  total flux cleaned = 0.0554512 Jy
! Component: 200  -  total flux cleaned = 0.0645165 Jy
! Total flux subtracted in 200 components = 0.0645165 Jy
! Clean residual min=-0.006090 max=0.007245 Jy/beam
! Clean residual mean=0.000325 rms=0.002509 Jy/beam
! Combined flux in latest and established models = 7.92226 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.0068156 Jy
! Component: 100  -  total flux cleaned = 0.0121271 Jy
! Component: 150  -  total flux cleaned = 0.0163581 Jy
! Component: 200  -  total flux cleaned = 0.0197747 Jy
! Total flux subtracted in 200 components = 0.0197747 Jy
! Clean residual min=-0.005766 max=0.005201 Jy/beam
! Clean residual mean=-0.000132 rms=0.001928 Jy/beam
! Combined flux in latest and established models = 7.94203 Jy
! Adding 85 model components to the UV plane model.
! The established model now contains 133 components and 7.94203 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.35% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 1.35% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
! Estimated beam: bmin=0.7254 mas, bmaj=1.656 mas, bpa=-1.1 degrees
! Estimated noise=531.146 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000230922 Jy
! Component: 100  -  total flux cleaned = 0.0012865 Jy
! Component: 150  -  total flux cleaned = 0.00288666 Jy
! Component: 200  -  total flux cleaned = 0.00410526 Jy
! Total flux subtracted in 200 components = 0.00410526 Jy
! Clean residual min=-0.009827 max=0.006106 Jy/beam
! Clean residual mean=-0.000065 rms=0.001759 Jy/beam
! Combined flux in latest and established models = 7.94614 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 146 components and 7.94614 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.175367Jy  sigma=0.001307
! Fit after  self-cal, rms=0.174972Jy  sigma=0.001305
wmodel J2148+0657_X_2001_07_05_pus_map.mod
! Writing 146 model components to file: J2148+0657_X_2001_07_05_pus_map.mod
wobs J2148+0657_X_2001_07_05_pus_uvs.fits
! Writing UV FITS file: J2148+0657_X_2001_07_05_pus_uvs.fits
wwins J2148+0657_X_2001_07_05_pus_map.win
! wwins: Wrote 4 windows to J2148+0657_X_2001_07_05_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 1.35% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.00400926 Jy
! Component: 100  -  total flux cleaned = -0.00686397 Jy
! Component: 150  -  total flux cleaned = -0.00844807 Jy
! Component: 200  -  total flux cleaned = -0.00980212 Jy
! Component: 250  -  total flux cleaned = -0.0111827 Jy
! Component: 300  -  total flux cleaned = -0.0117908 Jy
! Component: 350  -  total flux cleaned = -0.0121832 Jy
! Component: 400  -  total flux cleaned = -0.0121822 Jy
! Component: 450  -  total flux cleaned = -0.0125522 Jy
! Component: 500  -  total flux cleaned = -0.0130948 Jy
! Component: 550  -  total flux cleaned = -0.0136256 Jy
! Component: 600  -  total flux cleaned = -0.014058 Jy
! Component: 650  -  total flux cleaned = -0.0144818 Jy
! Component: 700  -  total flux cleaned = -0.0149802 Jy
! Component: 750  -  total flux cleaned = -0.0153051 Jy
! Component: 800  -  total flux cleaned = -0.0155447 Jy
! Component: 850  -  total flux cleaned = -0.0158584 Jy
! Component: 900  -  total flux cleaned = -0.0160123 Jy
! Component: 950  -  total flux cleaned = -0.0162404 Jy
! Component: 1000  -  total flux cleaned = -0.0165388 Jy
! Total flux subtracted in 1024 components = -0.0166127 Jy
! Clean residual min=-0.003678 max=0.003680 Jy/beam
! Clean residual mean=0.000047 rms=0.001360 Jy/beam
! Combined flux in latest and established models = 7.92952 Jy
keep
! Adding 57 model components to the UV plane model.
! The established model now contains 201 components and 7.92952 Jy
wmap "J2148+0657_X_2001_07_05_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 1.35% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7254 x 1.656 at -1.1 degrees (North through East)
! Clean map  min=-0.0063133  max=5.6067 Jy/beam
! Writing clean map to FITS file: J2148+0657_X_2001_07_05_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 5.60671 
invert
! Inverting map 
! Your choice of large map pixels excluded 1.35% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00135944 
device "J2148+0657_X_2001_07_05_pus\_map.eps/VPS"
! Attempting to open device: 'J2148+0657_X_2001_07_05_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.0727399 0.0727399 0.14548 0.290959 0.581919 1.16384 2.32768 4.65535 9.3107 18.6214 37.2428 74.4856
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.004 
print "peak=",int(1000*peak_flux)/1000
! peak= 5.606 
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.7254 x 1.656 at -1.1 degrees (North through East)
! Clean map  min=-0.0063133  max=5.6067 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2148+0657_X_2001_07_05_pus\_map.gif/vgif"
! Attempting to open device: 'J2148+0657_X_2001_07_05_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2148+0657_X_2001_07_05_pus_uvs.log closed on Wed Jul  4 21:55:52 2007