! Started logfile: J0856+2111_X_2001_04_09_pus_uvs.log on Mon Oct  1 14:36:56 2007
obs J0856+2111_X_2001_04_09_pus_uva.fits
! Reading UV FITS file: J0856+2111_X_2001_04_09_pus_uva.fits
! AN table 1: 240 integrations on 190 of 190 possible baselines.
! AN table 2: 237 integrations on 190 of 190 possible baselines.
! AN table 3: 252 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.182211 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0856+2111
! 
! 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 1926 lines of history.
! 
! Reading 100952 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 J0856+2111_X_2001_04_09_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 3271 telescope corrections were flagged in sub-array 1.
!  A total of 1809 telescope corrections were flagged in sub-array 2.
!  A total of 4443 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 3271 telescope corrections were flagged in sub-array 1.
!  A total of 1809 telescope corrections were flagged in sub-array 2.
!  A total of 4443 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 3271 telescope corrections were flagged in sub-array 1.
!  A total of 1809 telescope corrections were flagged in sub-array 2.
!  A total of 4443 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 3271 telescope corrections were flagged in sub-array 1.
!  A total of 1809 telescope corrections were flagged in sub-array 2.
!  A total of 4443 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.881612Jy  sigma=0.007417
! Fit after  self-cal, rms=0.837709Jy  sigma=0.007071
! 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 2.48% of the data.
!  The x-axis pixel size should ideally be below 0.1653 milli-arcsec
! Estimated beam: bmin=0.562 mas, bmaj=0.9885 mas, bpa=-12.62 degrees
! Estimated noise=589.465 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.134882 Jy
! Component: 100  -  total flux cleaned = 0.188487 Jy
! Total flux subtracted in 100 components = 0.188487 Jy
! Clean residual min=-0.018572 max=0.061808 Jy/beam
! Clean residual mean=0.000287 rms=0.004943 Jy/beam
! Combined flux in latest and established models = 0.188487 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 0.188487 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206839Jy  sigma=0.001514
! Fit after  self-cal, rms=0.205251Jy  sigma=0.001506
! Inverting map 
! Your choice of large map pixels excluded 2.48% of the data.
!  The x-axis pixel size should ideally be below 0.1653 milli-arcsec
! Added new window around map position (0.8, 0.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0559605 Jy
! Component: 100  -  total flux cleaned = 0.081437 Jy
! Total flux subtracted in 100 components = 0.081437 Jy
! Clean residual min=-0.011927 max=0.015736 Jy/beam
! Clean residual mean=0.000122 rms=0.002681 Jy/beam
! Combined flux in latest and established models = 0.269924 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 9 components and 0.269924 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.189685Jy  sigma=0.001315
! Fit after  self-cal, rms=0.186231Jy  sigma=0.001291
! Inverting map 
! Your choice of large map pixels excluded 2.48% of the data.
!  The x-axis pixel size should ideally be below 0.1653 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0235731 Jy
! Component: 100  -  total flux cleaned = 0.0348079 Jy
! Total flux subtracted in 100 components = 0.034808 Jy
! Clean residual min=-0.007106 max=0.007918 Jy/beam
! Clean residual mean=0.000060 rms=0.001527 Jy/beam
! Combined flux in latest and established models = 0.304732 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 11 components and 0.304732 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.183380Jy  sigma=0.001256
! Fit after  self-cal, rms=0.182908Jy  sigma=0.001253
! Inverting map 
! Your choice of large map pixels excluded 2.48% of the data.
!  The x-axis pixel size should ideally be below 0.1653 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00847726 Jy
! Component: 100  -  total flux cleaned = 0.0105038 Jy
! Total flux subtracted in 100 components = 0.0105038 Jy
! Clean residual min=-0.006088 max=0.006313 Jy/beam
! Clean residual mean=0.000040 rms=0.001291 Jy/beam
! Combined flux in latest and established models = 0.315236 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 15 components and 0.315236 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.182547Jy  sigma=0.001248
! Fit after  self-cal, rms=0.182484Jy  sigma=0.001248
! Inverting map 
! Your choice of large map pixels excluded 2.48% of the data.
!  The x-axis pixel size should ideally be below 0.1653 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 2.48% of the data.
!  The x-axis pixel size should ideally be below 0.1653 milli-arcsec
! Estimated beam: bmin=0.6788 mas, bmaj=1.191 mas, bpa=-9.369 degrees
! Estimated noise=271.546 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 (-3.8, -0.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00816549 Jy
! Component: 100  -  total flux cleaned = 0.0131132 Jy
! Component: 150  -  total flux cleaned = 0.01661 Jy
! Component: 200  -  total flux cleaned = 0.0173905 Jy
! Total flux subtracted in 200 components = 0.0173905 Jy
! Clean residual min=-0.004161 max=0.004111 Jy/beam
! Clean residual mean=0.000029 rms=0.001011 Jy/beam
! Combined flux in latest and established models = 0.332627 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 37 components and 0.332627 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.182124Jy  sigma=0.001243
! Fit after  self-cal, rms=0.182076Jy  sigma=0.001243
! Inverting map 
! Your choice of large map pixels excluded 2.48% of the data.
!  The x-axis pixel size should ideally be below 0.1653 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 162 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.00*    GC        0.87     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.96     KP        1.07     
!   LA        1.03     MA        1.00*    MC        1.00*    MK        0.96     
!   NL        1.00*    NY        1.03     OV        1.04     PT        1.00     
!   SC        1.00*    TS        0.83     WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.00     GC        0.84     GG        1.00*    
!   HH        1.00*    HN        1.16     KK        0.98     KP        0.99     
!   LA        0.99     MA        1.00*    MC        1.06     MK        0.92     
!   NL        1.02     NY        1.00     OV        1.02     PT        1.00     
!   SC        0.96     TS        1.00*    WF        1.03     WZ        1.02     
! 
!  A total of 237 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.06     KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        0.93     MK        1.00*    
!   NL        1.00*    NY        0.98     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        0.84     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 162 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        1.00*    GC        0.86     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.99     KP        1.04     
!   LA        1.04     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        1.00*    NY        1.03     OV        1.03     PT        1.02     
!   SC        1.00*    TS        0.85     WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.99     GC        0.85     GG        1.00*    
!   HH        1.00*    HN        1.15     KK        0.94     KP        0.99     
!   LA        0.98     MA        1.00*    MC        1.02     MK        0.95     
!   NL        0.97     NY        1.01     OV        1.01     PT        1.02     
!   SC        0.98     TS        1.00*    WF        1.06     WZ        0.98     
! 
!  A total of 237 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.86     KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        0.94     MK        1.00*    
!   NL        1.00*    NY        0.94     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        0.96     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 162 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.00*    GC        1.06     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.97     KP        0.95     
!   LA        1.06     MA        1.00*    MC        1.00*    MK        0.99     
!   NL        1.00*    NY        0.98     OV        0.99     PT        0.98     
!   SC        1.00*    TS        0.90     WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.99     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        1.18     KK        0.96     KP        0.90     
!   LA        1.00     MA        1.00*    MC        1.12     MK        0.93     
!   NL        0.99     NY        1.00     OV        1.00     PT        0.97     
!   SC        0.99     TS        1.00*    WF        1.00     WZ        1.04     
! 
!  A total of 237 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        0.90     MK        1.00*    
!   NL        1.00*    NY        1.02     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        0.82     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 162 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.00*    GC        1.05     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.06     KP        1.19     
!   LA        1.06     MA        1.00*    MC        1.00*    MK        1.15     
!   NL        1.00*    NY        0.98     OV        0.97     PT        1.03     
!   SC        1.00*    TS        0.90     WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        1.00     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        1.25     KK        0.99     KP        1.12     
!   LA        0.97     MA        1.00*    MC        1.15     MK        0.95     
!   NL        1.00     NY        1.03     OV        0.99     PT        1.03     
!   SC        0.98     TS        1.00*    WF        1.06     WZ        0.99     
! 
!  A total of 237 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        0.85     MK        1.00*    
!   NL        1.00*    NY        1.04     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        0.91     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.182076Jy  sigma=0.001243
! Fit after  self-cal, rms=0.185538Jy  sigma=0.001235
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2.52% of the data.
!  The x-axis pixel size should ideally be below 0.1653 milli-arcsec
! Estimated beam: bmin=0.6751 mas, bmaj=1.182 mas, bpa=-9.004 degrees
! Estimated noise=270.151 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.00309088 Jy
! Component: 100  -  total flux cleaned = 0.0039933 Jy
! Component: 150  -  total flux cleaned = 0.00442407 Jy
! Component: 200  -  total flux cleaned = 0.00478528 Jy
! Total flux subtracted in 200 components = 0.00478528 Jy
! Clean residual min=-0.001743 max=0.002578 Jy/beam
! Clean residual mean=-0.000007 rms=0.000534 Jy/beam
! Combined flux in latest and established models = 0.337412 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 52 components and 0.337412 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.185470Jy  sigma=0.001234
! Fit after  self-cal, rms=0.185627Jy  sigma=0.001234
! Inverting map 
! Your choice of large map pixels excluded 2.52% of the data.
!  The x-axis pixel size should ideally be below 0.1653 milli-arcsec
! Added new window around map position (-1.4, -0.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00140364 Jy
! Component: 100  -  total flux cleaned = 0.00146954 Jy
! Component: 150  -  total flux cleaned = 0.00162494 Jy
! Component: 200  -  total flux cleaned = 0.00179459 Jy
! Total flux subtracted in 200 components = 0.00179459 Jy
! Clean residual min=-0.001691 max=0.001956 Jy/beam
! Clean residual mean=-0.000035 rms=0.000495 Jy/beam
! Combined flux in latest and established models = 0.339207 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 61 components and 0.339207 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.185577Jy  sigma=0.001234
! Fit after  self-cal, rms=0.185566Jy  sigma=0.001234
! Inverting map 
! Your choice of large map pixels excluded 2.52% of the data.
!  The x-axis pixel size should ideally be below 0.1653 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.185566Jy  sigma=0.001234
! Fit after  self-cal, rms=0.186791Jy  sigma=0.001233
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.52% of the data.
!  The x-axis pixel size should ideally be below 0.1653 milli-arcsec
! Estimated beam: bmin=0.6755 mas, bmaj=1.182 mas, bpa=-9.06 degrees
! Estimated noise=270.619 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00165032 Jy
! Component: 100  -  total flux cleaned = 0.00194176 Jy
! Component: 150  -  total flux cleaned = 0.00214003 Jy
! Component: 200  -  total flux cleaned = 0.00228188 Jy
! Total flux subtracted in 200 components = 0.00228188 Jy
! Clean residual min=-0.001411 max=0.001738 Jy/beam
! Clean residual mean=-0.000011 rms=0.000447 Jy/beam
! Combined flux in latest and established models = 0.341488 Jy
selfcal
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 74 components and 0.341488 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.186767Jy  sigma=0.001233
! Fit after  self-cal, rms=0.186777Jy  sigma=0.001233
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.52% of the data.
!  The x-axis pixel size should ideally be below 0.1653 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.000446227 Jy
! Component: 100  -  total flux cleaned = 0.000648602 Jy
! Component: 150  -  total flux cleaned = 0.00076618 Jy
! Component: 200  -  total flux cleaned = 0.000819484 Jy
! Total flux subtracted in 200 components = 0.000819484 Jy
! Clean residual min=-0.001440 max=0.001621 Jy/beam
! Clean residual mean=-0.000019 rms=0.000438 Jy/beam
! Combined flux in latest and established models = 0.342308 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 82 components and 0.342308 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.186766Jy  sigma=0.001233
! Fit after  self-cal, rms=0.186763Jy  sigma=0.001233
! Inverting map 
! Your choice of large map pixels excluded 2.52% of the data.
!  The x-axis pixel size should ideally be below 0.1653 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.186763Jy  sigma=0.001233
! Fit after  self-cal, rms=0.187240Jy  sigma=0.001233
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.52% of the data.
!  The x-axis pixel size should ideally be below 0.1653 milli-arcsec
! Estimated beam: bmin=0.6759 mas, bmaj=1.181 mas, bpa=-9.09 degrees
! Estimated noise=270.883 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000918882 Jy
! Component: 100  -  total flux cleaned = 0.00110968 Jy
! Component: 150  -  total flux cleaned = 0.00121963 Jy
! Component: 200  -  total flux cleaned = 0.00126897 Jy
! Total flux subtracted in 200 components = 0.00126897 Jy
! Clean residual min=-0.001341 max=0.001546 Jy/beam
! Clean residual mean=-0.000009 rms=0.000413 Jy/beam
! Combined flux in latest and established models = 0.343577 Jy
selfcal
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 85 components and 0.343577 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.187229Jy  sigma=0.001233
! Fit after  self-cal, rms=0.187231Jy  sigma=0.001233
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.52% of the data.
!  The x-axis pixel size should ideally be below 0.1653 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.000278115 Jy
! Component: 100  -  total flux cleaned = 0.000376194 Jy
! Component: 150  -  total flux cleaned = 0.000398156 Jy
! Component: 200  -  total flux cleaned = 0.000398405 Jy
! Total flux subtracted in 200 components = 0.000398405 Jy
! Clean residual min=-0.001341 max=0.001485 Jy/beam
! Clean residual mean=-0.000013 rms=0.000409 Jy/beam
! Combined flux in latest and established models = 0.343975 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 90 components and 0.343975 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.187227Jy  sigma=0.001233
! Fit after  self-cal, rms=0.187224Jy  sigma=0.001233
! Inverting map 
! Your choice of large map pixels excluded 2.52% of the data.
!  The x-axis pixel size should ideally be below 0.1653 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.187224Jy  sigma=0.001233
! Fit after  self-cal, rms=0.187499Jy  sigma=0.001233
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.52% of the data.
!  The x-axis pixel size should ideally be below 0.1653 milli-arcsec
! Estimated beam: bmin=2.116 mas, bmaj=2.446 mas, bpa=2.476 degrees
! Estimated noise=404.443 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00145084 Jy
! Component: 100  -  total flux cleaned = 0.00138308 Jy
! Component: 150  -  total flux cleaned = 0.00133145 Jy
! Component: 200  -  total flux cleaned = 0.0012876 Jy
! Total flux subtracted in 200 components = 0.0012876 Jy
! Clean residual min=-0.001900 max=0.002642 Jy/beam
! Clean residual mean=-0.000036 rms=0.000713 Jy/beam
! Combined flux in latest and established models = 0.345263 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 95 components and 0.345263 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.187505Jy  sigma=0.001233
! Fit after  self-cal, rms=0.187505Jy  sigma=0.001233
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.52% of the data.
!  The x-axis pixel size should ideally be below 0.1653 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.000103252 Jy
! Component: 100  -  total flux cleaned = 6.7161e-05 Jy
! Component: 150  -  total flux cleaned = 2.19541e-05 Jy
! Component: 200  -  total flux cleaned = -3.02024e-06 Jy
! Total flux subtracted in 200 components = -3.02024e-06 Jy
! Clean residual min=-0.002035 max=0.002742 Jy/beam
! Clean residual mean=-0.000034 rms=0.000717 Jy/beam
! Combined flux in latest and established models = 0.34526 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 100 components and 0.34526 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.187506Jy  sigma=0.001233
! Fit after  self-cal, rms=0.187505Jy  sigma=0.001233
! Inverting map 
! Your choice of large map pixels excluded 2.52% of the data.
!  The x-axis pixel size should ideally be below 0.1653 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 2.52% of the data.
!  The x-axis pixel size should ideally be below 0.1653 milli-arcsec
! Estimated beam: bmin=0.6763 mas, bmaj=1.181 mas, bpa=-9.09 degrees
! Estimated noise=271.08 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6763 x 1.181 at -9.09 degrees (North through East)
! Clean map  min=-0.0012018  max=0.18337 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 2.52% of the data.
!  The x-axis pixel size should ideally be below 0.1653 milli-arcsec
! Estimated beam: bmin=0.5622 mas, bmaj=0.9855 mas, bpa=-12.28 degrees
! Estimated noise=578.461 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.141224 Jy
! Component: 100  -  total flux cleaned = 0.214409 Jy
! Component: 150  -  total flux cleaned = 0.255682 Jy
! Component: 200  -  total flux cleaned = 0.279413 Jy
! Total flux subtracted in 200 components = 0.279413 Jy
! Clean residual min=-0.005100 max=0.011947 Jy/beam
! Clean residual mean=0.000113 rms=0.001568 Jy/beam
! Combined flux in latest and established models = 0.279413 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.279413 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 2.52% of the data.
!  The x-axis pixel size should ideally be below 0.1653 milli-arcsec
! Estimated beam: bmin=0.6763 mas, bmaj=1.181 mas, bpa=-9.09 degrees
! Estimated noise=271.08 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.0187603 Jy
! Component: 100  -  total flux cleaned = 0.0305489 Jy
! Component: 150  -  total flux cleaned = 0.0390636 Jy
! Component: 200  -  total flux cleaned = 0.0454758 Jy
! Total flux subtracted in 200 components = 0.0454758 Jy
! Clean residual min=-0.001916 max=0.003728 Jy/beam
! Clean residual mean=0.000149 rms=0.000870 Jy/beam
! Combined flux in latest and established models = 0.324889 Jy
! Adding 31 model components to the UV plane model.
! The established model now contains 33 components and 0.324889 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.52% of the data.
!  The x-axis pixel size should ideally be below 0.1653 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00492102 Jy
! Component: 100  -  total flux cleaned = 0.00877391 Jy
! Component: 150  -  total flux cleaned = 0.0118302 Jy
! Component: 200  -  total flux cleaned = 0.0142647 Jy
! Total flux subtracted in 200 components = 0.0142647 Jy
! Clean residual min=-0.001544 max=0.002086 Jy/beam
! Clean residual mean=0.000036 rms=0.000511 Jy/beam
! Combined flux in latest and established models = 0.339154 Jy
! Adding 35 model components to the UV plane model.
! The established model now contains 51 components and 0.339154 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.52% of the data.
!  The x-axis pixel size should ideally be below 0.1653 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 2.52% of the data.
!  The x-axis pixel size should ideally be below 0.1653 milli-arcsec
! Estimated beam: bmin=2.116 mas, bmaj=2.446 mas, bpa=2.476 degrees
! Estimated noise=404.443 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00418868 Jy
! Component: 100  -  total flux cleaned = 0.00583943 Jy
! Component: 150  -  total flux cleaned = 0.0061632 Jy
! Component: 200  -  total flux cleaned = 0.00622923 Jy
! Total flux subtracted in 200 components = 0.00622923 Jy
! Clean residual min=-0.002136 max=0.002875 Jy/beam
! Clean residual mean=-0.000039 rms=0.000771 Jy/beam
! Combined flux in latest and established models = 0.345383 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 = 7.41052e-07 Jy
! Component: 100  -  total flux cleaned = 9.81888e-07 Jy
! Component: 150  -  total flux cleaned = 9.55786e-07 Jy
! Component: 200  -  total flux cleaned = 3.31886e-07 Jy
! Total flux subtracted in 200 components = 3.31886e-07 Jy
! Clean residual min=-0.002081 max=0.002851 Jy/beam
! Clean residual mean=-0.000039 rms=0.000749 Jy/beam
! Combined flux in latest and established models = 0.345383 Jy
! Adding 34 model components to the UV plane model.
! The established model now contains 76 components and 0.345383 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.52% of the data.
!  The x-axis pixel size should ideally be below 0.1653 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 2.52% of the data.
!  The x-axis pixel size should ideally be below 0.1653 milli-arcsec
! Estimated beam: bmin=0.6763 mas, bmaj=1.181 mas, bpa=-9.09 degrees
! Estimated noise=271.08 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000469656 Jy
! Component: 100  -  total flux cleaned = -0.000640492 Jy
! Component: 150  -  total flux cleaned = -0.000500774 Jy
! Component: 200  -  total flux cleaned = -0.000374952 Jy
! Total flux subtracted in 200 components = -0.000374952 Jy
! Clean residual min=-0.001386 max=0.001515 Jy/beam
! Clean residual mean=-0.000009 rms=0.000408 Jy/beam
! Combined flux in latest and established models = 0.345008 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 86 components and 0.345008 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.187610Jy  sigma=0.001233
! Fit after  self-cal, rms=0.187587Jy  sigma=0.001233
wmodel J0856+2111_X_2001_04_09_pus_map.mod
! Writing 86 model components to file: J0856+2111_X_2001_04_09_pus_map.mod
wobs J0856+2111_X_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J0856+2111_X_2001_04_09_pus_uvs.fits
wwins J0856+2111_X_2001_04_09_pus_map.win
! wwins: Wrote 4 windows to J0856+2111_X_2001_04_09_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 2.52% of the data.
!  The x-axis pixel size should ideally be below 0.1653 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000487257 Jy
! Component: 100  -  total flux cleaned = 0.00084452 Jy
! Component: 150  -  total flux cleaned = 0.00113781 Jy
! Component: 200  -  total flux cleaned = 0.00124601 Jy
! Component: 250  -  total flux cleaned = 0.00130897 Jy
! Component: 300  -  total flux cleaned = 0.00137033 Jy
! Component: 350  -  total flux cleaned = 0.00141044 Jy
! Component: 400  -  total flux cleaned = 0.0013715 Jy
! Component: 450  -  total flux cleaned = 0.0013144 Jy
! Component: 500  -  total flux cleaned = 0.00129547 Jy
! Component: 550  -  total flux cleaned = 0.00122191 Jy
! Component: 600  -  total flux cleaned = 0.00116778 Jy
! Component: 650  -  total flux cleaned = 0.00113229 Jy
! Component: 700  -  total flux cleaned = 0.00111466 Jy
! Component: 750  -  total flux cleaned = 0.00106294 Jy
! Component: 800  -  total flux cleaned = 0.00101218 Jy
! Component: 850  -  total flux cleaned = 0.000978777 Jy
! Component: 900  -  total flux cleaned = 0.000945873 Jy
! Component: 950  -  total flux cleaned = 0.000913498 Jy
! Component: 1000  -  total flux cleaned = 0.00089755 Jy
! Total flux subtracted in 1024 components = 0.000881618 Jy
! Clean residual min=-0.000949 max=0.000879 Jy/beam
! Clean residual mean=-0.000007 rms=0.000321 Jy/beam
! Combined flux in latest and established models = 0.34589 Jy
keep
! Adding 75 model components to the UV plane model.
! The established model now contains 161 components and 0.34589 Jy
![Exited script file: muppet]
wmap "J0856+2111_X_2001_04_09_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 2.52% of the data.
!  The x-axis pixel size should ideally be below 0.1653 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6763 x 1.181 at -9.09 degrees (North through East)
! Clean map  min=-0.0010329  max=0.18412 Jy/beam
! Writing clean map to FITS file: J0856+2111_X_2001_04_09_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.184121 
invert
! Inverting map 
! Your choice of large map pixels excluded 2.52% of the data.
!  The x-axis pixel size should ideally be below 0.1653 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000321016 
device "J0856+2111_X_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J0856+2111_X_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.52305 0.52305 1.0461 2.0922 4.1844 8.36881 16.7376 33.4752 66.9505
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0009 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.184 
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.6763 x 1.181 at -9.09 degrees (North through East)
! Clean map  min=-0.0010329  max=0.18412 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0856+2111_X_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J0856+2111_X_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0856+2111_X_2001_04_09_pus_uvs.log closed on Mon Oct  1 14:37:25 2007