! Started logfile: J0112+2244_X_2001_10_29_pus_uvs.log on Mon Feb 25 16:05:09 2008
obs J0112+2244_X_2001_10_29_pus_uva.fits
! Reading UV FITS file: J0112+2244_X_2001_10_29_pus_uva.fits
! AN table 1: 135 integrations on 153 of 153 possible baselines.
! AN table 2: 130 integrations on 153 of 153 possible baselines.
! AN table 3: 49 integrations on 153 of 153 possible baselines.
! AN table 4: 77 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.148906 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0112+2244
! 
! 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 35632 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 J0112+2244_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 1481 telescope corrections were flagged in sub-array 1.
!  A total of 1592 telescope corrections were flagged in sub-array 2.
!  A total of 516 telescope corrections were flagged in sub-array 3.
!  A total of 1081 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1481 telescope corrections were flagged in sub-array 1.
!  A total of 1592 telescope corrections were flagged in sub-array 2.
!  A total of 516 telescope corrections were flagged in sub-array 3.
!  A total of 1081 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1481 telescope corrections were flagged in sub-array 1.
!  A total of 1604 telescope corrections were flagged in sub-array 2.
!  A total of 516 telescope corrections were flagged in sub-array 3.
!  A total of 1081 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1481 telescope corrections were flagged in sub-array 1.
!  A total of 1601 telescope corrections were flagged in sub-array 2.
!  A total of 516 telescope corrections were flagged in sub-array 3.
!  A total of 1081 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.868416Jy  sigma=0.007484
! Fit after  self-cal, rms=0.630847Jy  sigma=0.005301
! 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 7.59% of the data.
!  The x-axis pixel size should ideally be below 0.1574 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=0.5087 mas, bmaj=1.144 mas, bpa=-0.2236 degrees
! Estimated noise=877.345 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.316806 Jy
! Component: 100  -  total flux cleaned = 0.387326 Jy
! Total flux subtracted in 100 components = 0.387326 Jy
! Clean residual min=-0.007996 max=0.025118 Jy/beam
! Clean residual mean=0.000352 rms=0.002647 Jy/beam
! Combined flux in latest and established models = 0.387326 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 0.387326 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.244881Jy  sigma=0.001339
! Fit after  self-cal, rms=0.244862Jy  sigma=0.001339
! Inverting map 
! Your choice of large map pixels excluded 7.59% of the data.
!  The x-axis pixel size should ideally be below 0.1574 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1902 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0279119 Jy
! Component: 100  -  total flux cleaned = 0.0427725 Jy
! Total flux subtracted in 100 components = 0.0427725 Jy
! Clean residual min=-0.006524 max=0.014621 Jy/beam
! Clean residual mean=0.000226 rms=0.001954 Jy/beam
! Combined flux in latest and established models = 0.430098 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 7 components and 0.430098 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.240368Jy  sigma=0.001272
! Fit after  self-cal, rms=0.240319Jy  sigma=0.001271
! Inverting map 
! Your choice of large map pixels excluded 7.59% of the data.
!  The x-axis pixel size should ideally be below 0.1574 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1902 milli-arcsec
! Added new window around map position (1.4, 0.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0136611 Jy
! Component: 100  -  total flux cleaned = 0.0224261 Jy
! Total flux subtracted in 100 components = 0.0224261 Jy
! Clean residual min=-0.006568 max=0.008113 Jy/beam
! Clean residual mean=0.000152 rms=0.001732 Jy/beam
! Combined flux in latest and established models = 0.452524 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 13 components and 0.452524 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.239027Jy  sigma=0.001253
! Fit after  self-cal, rms=0.238938Jy  sigma=0.001252
! Inverting map 
! Your choice of large map pixels excluded 7.59% of the data.
!  The x-axis pixel size should ideally be below 0.1574 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1902 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 7.59% of the data.
!  The x-axis pixel size should ideally be below 0.1574 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=0.6938 mas, bmaj=1.483 mas, bpa=-0.2036 degrees
! Estimated noise=455.217 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 (2.2, 0.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.013341 Jy
! Component: 100  -  total flux cleaned = 0.0210531 Jy
! Component: 150  -  total flux cleaned = 0.0262522 Jy
! Component: 200  -  total flux cleaned = 0.0298625 Jy
! Total flux subtracted in 200 components = 0.0298625 Jy
! Clean residual min=-0.004021 max=0.004667 Jy/beam
! Clean residual mean=0.000479 rms=0.001198 Jy/beam
! Combined flux in latest and established models = 0.482387 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 27 components and 0.482387 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.238043Jy  sigma=0.001241
! Fit after  self-cal, rms=0.237969Jy  sigma=0.001240
! Inverting map 
! Your choice of large map pixels excluded 7.59% of the data.
!  The x-axis pixel size should ideally be below 0.1574 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1902 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 39 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        0.99     
!   HN        1.02     KK        1.00     KP        1.00     LA        0.99     
!   MA        0.82     MC        1.00*    MK        0.95     NL        0.99     
!   OV        1.00     PT        1.02     SC        1.02     TS        1.06     
!   WF        0.98     WZ        1.02     
! 
!  A total of 159 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        1.00*    GG        1.00*    HH        1.01     
!   HN        0.98     KK        0.93     KP        1.08     LA        1.00     
!   MA        1.00     MC        1.00     MK        0.99     NL        0.99     
!   OV        1.07     PT        1.02     SC        0.98     TS        0.93     
!   WF        0.98     WZ        1.00     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.92     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.92     KK        1.04     KP        0.99     LA        0.95     
!   MA        1.04     MC        1.06     MK        1.02     NL        0.95     
!   OV        0.96     PT        1.00     SC        0.99     TS        1.00*    
!   WF        0.98     WZ        1.09     
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.90     
!   HN        1.03     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.93     MC        0.91     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.10     TS        1.05     
!   WF        1.08     WZ        1.03     
! 
! 
! Correcting IF 2.
!  A total of 39 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.00     KK        0.99     KP        1.00     LA        0.97     
!   MA        1.04     MC        1.00*    MK        0.98     NL        0.96     
!   OV        1.01     PT        1.00     SC        0.98     TS        1.04     
!   WF        0.95     WZ        0.95     
! 
!  A total of 159 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.00*    GG        1.00*    HH        1.04     
!   HN        0.99     KK        1.05     KP        1.11     LA        0.98     
!   MA        0.97     MC        0.95     MK        0.99     NL        0.96     
!   OV        1.08     PT        1.00     SC        0.93     TS        0.89     
!   WF        0.96     WZ        1.00     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.95     KK        1.05     KP        0.97     LA        0.93     
!   MA        1.05     MC        1.04     MK        1.02     NL        0.95     
!   OV        0.96     PT        0.94     SC        0.98     TS        1.00*    
!   WF        1.03     WZ        1.07     
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.91     
!   HN        1.07     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.95     MC        0.89     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.02     TS        1.04     
!   WF        0.99     WZ        1.04     
! 
! 
! Correcting IF 3.
!  A total of 39 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        0.82     
!   HN        0.99     KK        1.03     KP        1.01     LA        0.97     
!   MA        0.81     MC        1.00*    MK        1.01     NL        0.99     
!   OV        0.99     PT        1.02     SC        0.99     TS        1.03     
!   WF        0.97     WZ        0.99     
! 
!  A total of 147 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.06     
!   HN        0.97     KK        0.94     KP        1.08     LA        1.01     
!   MA        0.97     MC        0.92     MK        1.01     NL        1.00     
!   OV        1.05     PT        1.01     SC        0.97     TS        0.95     
!   WF        1.02     WZ        0.97     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.91     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.95     KK        1.04     KP        0.96     LA        0.95     
!   MA        1.12     MC        0.98     MK        1.03     NL        0.94     
!   OV        0.95     PT        0.98     SC        0.99     TS        1.00*    
!   WF        0.96     WZ        1.07     
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.92     
!   HN        1.01     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.88     MC        0.93     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.08     TS        1.15     
!   WF        1.09     WZ        1.00     
! 
! 
! Correcting IF 4.
!  A total of 39 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        1.00*    GG        1.00*    HH        0.92     
!   HN        1.03     KK        1.01     KP        1.02     LA        0.96     
!   MA        0.84     MC        1.00*    MK        1.01     NL        0.99     
!   OV        0.97     PT        1.02     SC        1.04     TS        1.05     
!   WF        0.99     WZ        0.98     
! 
!  A total of 150 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        1.00*    GG        1.00*    HH        1.02     
!   HN        1.00     KK        0.98     KP        1.08     LA        0.98     
!   MA        0.96     MC        0.91     MK        0.98     NL        1.01     
!   OV        1.05     PT        1.02     SC        1.02     TS        0.95     
!   WF        0.98     WZ        0.94     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.96     KK        1.03     KP        1.01     LA        0.94     
!   MA        1.09     MC        1.04     MK        1.07     NL        0.98     
!   OV        0.91     PT        0.97     SC        1.04     TS        1.00*    
!   WF        1.01     WZ        1.02     
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.03     
!   HN        1.05     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.92     MC        0.91     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.12     TS        1.07     
!   WF        1.08     WZ        0.99     
! 
! 
! Fit before self-cal, rms=0.237969Jy  sigma=0.001240
! Fit after  self-cal, rms=0.225726Jy  sigma=0.001224
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 7.72% of the data.
!  The x-axis pixel size should ideally be below 0.1574 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=0.6966 mas, bmaj=1.53 mas, bpa=-0.6825 degrees
! Estimated noise=454.599 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.00407779 Jy
! Component: 100  -  total flux cleaned = 0.00638193 Jy
! Component: 150  -  total flux cleaned = 0.00710135 Jy
! Component: 200  -  total flux cleaned = 0.00766993 Jy
! Total flux subtracted in 200 components = 0.00766993 Jy
! Clean residual min=-0.001892 max=0.003066 Jy/beam
! Clean residual mean=0.000259 rms=0.000643 Jy/beam
! Combined flux in latest and established models = 0.490057 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 39 components and 0.490057 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.225650Jy  sigma=0.001223
! Fit after  self-cal, rms=0.225676Jy  sigma=0.001223
! Inverting map 
! Your choice of large map pixels excluded 7.72% of the data.
!  The x-axis pixel size should ideally be below 0.1574 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1902 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.225676Jy  sigma=0.001223
! Fit after  self-cal, rms=0.197381Jy  sigma=0.001221
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 7.72% of the data.
!  The x-axis pixel size should ideally be below 0.1574 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=0.6964 mas, bmaj=1.529 mas, bpa=-0.6705 degrees
! Estimated noise=454.604 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0018726 Jy
! Component: 100  -  total flux cleaned = 0.00246076 Jy
! Component: 150  -  total flux cleaned = 0.0029246 Jy
! Component: 200  -  total flux cleaned = 0.00313409 Jy
! Total flux subtracted in 200 components = 0.00313409 Jy
! Clean residual min=-0.001876 max=0.002612 Jy/beam
! Clean residual mean=0.000225 rms=0.000574 Jy/beam
! Combined flux in latest and established models = 0.493191 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 42 components and 0.493191 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.197351Jy  sigma=0.001221
! Fit after  self-cal, rms=0.197355Jy  sigma=0.001221
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 7.72% of the data.
!  The x-axis pixel size should ideally be below 0.1574 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1902 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 (-1.6, 5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00189833 Jy
! Component: 100  -  total flux cleaned = 0.00248756 Jy
! Component: 150  -  total flux cleaned = 0.00276331 Jy
! Component: 200  -  total flux cleaned = 0.00293073 Jy
! Total flux subtracted in 200 components = 0.00293073 Jy
! Clean residual min=-0.002080 max=0.002104 Jy/beam
! Clean residual mean=0.000171 rms=0.000527 Jy/beam
! Combined flux in latest and established models = 0.496122 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 57 components and 0.496122 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.197315Jy  sigma=0.001220
! Fit after  self-cal, rms=0.197311Jy  sigma=0.001220
! Inverting map 
! Your choice of large map pixels excluded 7.72% of the data.
!  The x-axis pixel size should ideally be below 0.1574 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1902 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.197311Jy  sigma=0.001220
! Fit after  self-cal, rms=0.196899Jy  sigma=0.001220
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 7.72% of the data.
!  The x-axis pixel size should ideally be below 0.1574 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=0.696 mas, bmaj=1.528 mas, bpa=-0.662 degrees
! Estimated noise=454.417 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000951535 Jy
! Component: 100  -  total flux cleaned = 0.00127435 Jy
! Component: 150  -  total flux cleaned = 0.00142112 Jy
! Component: 200  -  total flux cleaned = 0.0015593 Jy
! Total flux subtracted in 200 components = 0.0015593 Jy
! Clean residual min=-0.002111 max=0.002123 Jy/beam
! Clean residual mean=0.000153 rms=0.000511 Jy/beam
! Combined flux in latest and established models = 0.497681 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 60 components and 0.497681 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.196881Jy  sigma=0.001220
! Fit after  self-cal, rms=0.196874Jy  sigma=0.001220
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 7.72% of the data.
!  The x-axis pixel size should ideally be below 0.1574 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1902 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 = 7.51891e-05 Jy
! Component: 100  -  total flux cleaned = 0.000140163 Jy
! Component: 150  -  total flux cleaned = 0.000200576 Jy
! Component: 200  -  total flux cleaned = 0.000288914 Jy
! Total flux subtracted in 200 components = 0.000288914 Jy
! Clean residual min=-0.002106 max=0.002138 Jy/beam
! Clean residual mean=0.000148 rms=0.000505 Jy/beam
! Combined flux in latest and established models = 0.49797 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 66 components and 0.49797 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.196862Jy  sigma=0.001220
! Fit after  self-cal, rms=0.196859Jy  sigma=0.001220
! Inverting map 
! Your choice of large map pixels excluded 7.72% of the data.
!  The x-axis pixel size should ideally be below 0.1574 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1902 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.196859Jy  sigma=0.001220
! Fit after  self-cal, rms=0.196658Jy  sigma=0.001220
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 7.72% of the data.
!  The x-axis pixel size should ideally be below 0.1574 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=2.078 mas, bmaj=2.913 mas, bpa=-9.038 degrees
! Estimated noise=586.342 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00105293 Jy
! Component: 100  -  total flux cleaned = 0.00130224 Jy
! Component: 150  -  total flux cleaned = 0.00144345 Jy
! Component: 200  -  total flux cleaned = 0.00148483 Jy
! Total flux subtracted in 200 components = 0.00148483 Jy
! Clean residual min=-0.001610 max=0.002241 Jy/beam
! Clean residual mean=0.000333 rms=0.000596 Jy/beam
! Combined flux in latest and established models = 0.499455 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 84 components and 0.499455 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.196658Jy  sigma=0.001220
! Fit after  self-cal, rms=0.196655Jy  sigma=0.001220
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 7.72% of the data.
!  The x-axis pixel size should ideally be below 0.1574 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1902 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.000184531 Jy
! Component: 100  -  total flux cleaned = 0.000223276 Jy
! Component: 150  -  total flux cleaned = 0.000259098 Jy
! Component: 200  -  total flux cleaned = 0.000292052 Jy
! Total flux subtracted in 200 components = 0.000292052 Jy
! Clean residual min=-0.001551 max=0.002232 Jy/beam
! Clean residual mean=0.000321 rms=0.000590 Jy/beam
! Combined flux in latest and established models = 0.499747 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 91 components and 0.499747 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.196654Jy  sigma=0.001220
! Fit after  self-cal, rms=0.196656Jy  sigma=0.001220
! Inverting map 
! Your choice of large map pixels excluded 7.72% of the data.
!  The x-axis pixel size should ideally be below 0.1574 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1902 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 7.72% of the data.
!  The x-axis pixel size should ideally be below 0.1574 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=0.6957 mas, bmaj=1.528 mas, bpa=-0.6544 degrees
! Estimated noise=454.297 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6957 x 1.528 at -0.6544 degrees (North through East)
! Clean map  min=-0.0016955  max=0.41475 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 7.72% of the data.
!  The x-axis pixel size should ideally be below 0.1574 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=0.5097 mas, bmaj=1.14 mas, bpa=-0.2456 degrees
! Estimated noise=885.586 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.314165 Jy
! Component: 100  -  total flux cleaned = 0.384201 Jy
! Component: 150  -  total flux cleaned = 0.411931 Jy
! Component: 200  -  total flux cleaned = 0.429327 Jy
! Total flux subtracted in 200 components = 0.429327 Jy
! Clean residual min=-0.005249 max=0.010408 Jy/beam
! Clean residual mean=0.000247 rms=0.001588 Jy/beam
! Combined flux in latest and established models = 0.429327 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 8 model components to the UV plane model.
! The established model now contains 8 components and 0.429327 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 7.72% of the data.
!  The x-axis pixel size should ideally be below 0.1574 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=0.6957 mas, bmaj=1.528 mas, bpa=-0.6544 degrees
! Estimated noise=454.297 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)
! Added new window around map position (0.6, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0218909 Jy
! Component: 100  -  total flux cleaned = 0.0356643 Jy
! Component: 150  -  total flux cleaned = 0.0448147 Jy
! Component: 200  -  total flux cleaned = 0.0510379 Jy
! Total flux subtracted in 200 components = 0.0510379 Jy
! Clean residual min=-0.002147 max=0.003410 Jy/beam
! Clean residual mean=0.000497 rms=0.000846 Jy/beam
! Combined flux in latest and established models = 0.480365 Jy
! Adding 29 model components to the UV plane model.
! The established model now contains 30 components and 0.480365 Jy
! Inverting map 
! Your choice of large map pixels excluded 7.72% of the data.
!  The x-axis pixel size should ideally be below 0.1574 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1902 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 7.72% of the data.
!  The x-axis pixel size should ideally be below 0.1574 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=2.078 mas, bmaj=2.913 mas, bpa=-9.038 degrees
! Estimated noise=586.342 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00781635 Jy
! Component: 100  -  total flux cleaned = 0.0119873 Jy
! Component: 150  -  total flux cleaned = 0.0146544 Jy
! Component: 200  -  total flux cleaned = 0.0164409 Jy
! Total flux subtracted in 200 components = 0.0164409 Jy
! Clean residual min=-0.001633 max=0.002398 Jy/beam
! Clean residual mean=0.000468 rms=0.000618 Jy/beam
! Combined flux in latest and established models = 0.496805 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.00121561 Jy
! Component: 100  -  total flux cleaned = 0.00193953 Jy
! Component: 150  -  total flux cleaned = 0.00223661 Jy
! Component: 200  -  total flux cleaned = 0.00248773 Jy
! Total flux subtracted in 200 components = 0.00248773 Jy
! Clean residual min=-0.001577 max=0.002233 Jy/beam
! Clean residual mean=0.000342 rms=0.000586 Jy/beam
! Combined flux in latest and established models = 0.499293 Jy
! Adding 66 model components to the UV plane model.
! The established model now contains 86 components and 0.499293 Jy
! Inverting map 
! Your choice of large map pixels excluded 7.72% of the data.
!  The x-axis pixel size should ideally be below 0.1574 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1902 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 7.72% of the data.
!  The x-axis pixel size should ideally be below 0.1574 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=0.6957 mas, bmaj=1.528 mas, bpa=-0.6544 degrees
! Estimated noise=454.297 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00100623 Jy
! Component: 100  -  total flux cleaned = -0.00106757 Jy
! Component: 150  -  total flux cleaned = -0.00106767 Jy
! Component: 200  -  total flux cleaned = -0.000980014 Jy
! Total flux subtracted in 200 components = -0.000980014 Jy
! Clean residual min=-0.001937 max=0.002259 Jy/beam
! Clean residual mean=0.000148 rms=0.000505 Jy/beam
! Combined flux in latest and established models = 0.498313 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 102 components and 0.498313 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.196721Jy  sigma=0.001220
! Fit after  self-cal, rms=0.196724Jy  sigma=0.001220
wmodel J0112+2244_X_2001_10_29_pus_map.mod
! Writing 102 model components to file: J0112+2244_X_2001_10_29_pus_map.mod
wobs J0112+2244_X_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J0112+2244_X_2001_10_29_pus_uvs.fits
wwins J0112+2244_X_2001_10_29_pus_map.win
! wwins: Wrote 5 windows to J0112+2244_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 7.72% of the data.
!  The x-axis pixel size should ideally be below 0.1574 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1902 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000615083 Jy
! Component: 100  -  total flux cleaned = 0.00103412 Jy
! Component: 150  -  total flux cleaned = 0.00152233 Jy
! Component: 200  -  total flux cleaned = 0.00189111 Jy
! Component: 250  -  total flux cleaned = 0.00215529 Jy
! Component: 300  -  total flux cleaned = 0.00238148 Jy
! Component: 350  -  total flux cleaned = 0.00262902 Jy
! Component: 400  -  total flux cleaned = 0.00294967 Jy
! Component: 450  -  total flux cleaned = 0.00326218 Jy
! Component: 500  -  total flux cleaned = 0.00361865 Jy
! Component: 550  -  total flux cleaned = 0.00394257 Jy
! Component: 600  -  total flux cleaned = 0.00426003 Jy
! Component: 650  -  total flux cleaned = 0.004524 Jy
! Component: 700  -  total flux cleaned = 0.0047366 Jy
! Component: 750  -  total flux cleaned = 0.00496961 Jy
! Component: 800  -  total flux cleaned = 0.00515357 Jy
! Component: 850  -  total flux cleaned = 0.00540302 Jy
! Component: 900  -  total flux cleaned = 0.00558227 Jy
! Component: 950  -  total flux cleaned = 0.00575934 Jy
! Component: 1000  -  total flux cleaned = 0.00593455 Jy
! Total flux subtracted in 1024 components = 0.00599968 Jy
! Clean residual min=-0.001208 max=0.001254 Jy/beam
! Clean residual mean=0.000085 rms=0.000414 Jy/beam
! Combined flux in latest and established models = 0.504313 Jy
keep
! Adding 62 model components to the UV plane model.
! The established model now contains 164 components and 0.504313 Jy
![Exited script file: muppet]
wmap "J0112+2244_X_2001_10_29_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 7.72% of the data.
!  The x-axis pixel size should ideally be below 0.1574 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1902 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6957 x 1.528 at -0.6544 degrees (North through East)
! Clean map  min=-0.0017637  max=0.41535 Jy/beam
! Writing clean map to FITS file: J0112+2244_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.41535 
invert
! Inverting map 
! Your choice of large map pixels excluded 7.72% of the data.
!  The x-axis pixel size should ideally be below 0.1574 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1902 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000414138 
device "J0112+2244_X_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J0112+2244_X_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.299124 0.299124 0.598249 1.1965 2.393 4.78599 9.57198 19.144 38.2879 76.5759
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0012 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.415 
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.6957 x 1.528 at -0.6544 degrees (North through East)
! Clean map  min=-0.0017637  max=0.41535 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0112+2244_X_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J0112+2244_X_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0112+2244_X_2001_10_29_pus_uvs.log closed on Mon Feb 25 16:05:19 2008