! Started logfile: J0646+4451_X_1999_05_10_pus_uvs.log on Tue Jan 15 15:16:57 2008
obs J0646+4451_X_1999_05_10_pus_uva.fits
! Reading UV FITS file: J0646+4451_X_1999_05_10_pus_uva.fits
! AN table 1: 124 integrations on 153 of 153 possible baselines.
! AN table 2: 219 integrations on 153 of 153 possible baselines.
! AN table 3: 126 integrations on 153 of 153 possible baselines.
! AN table 4: 95 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.231041 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0646+4451
! 
! 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 1763 lines of history.
! 
! Reading 79748 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 J0646+4451_X_1999_05_10_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 1050 telescope corrections were flagged in sub-array 1.
!  A total of 2771 telescope corrections were flagged in sub-array 2.
!  A total of 1437 telescope corrections were flagged in sub-array 3.
!  A total of 870 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1046 telescope corrections were flagged in sub-array 1.
!  A total of 2764 telescope corrections were flagged in sub-array 2.
!  A total of 1433 telescope corrections were flagged in sub-array 3.
!  A total of 867 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1043 telescope corrections were flagged in sub-array 1.
!  A total of 2770 telescope corrections were flagged in sub-array 2.
!  A total of 1434 telescope corrections were flagged in sub-array 3.
!  A total of 867 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1143 telescope corrections were flagged in sub-array 1.
!  A total of 2842 telescope corrections were flagged in sub-array 2.
!  A total of 1558 telescope corrections were flagged in sub-array 3.
!  A total of 883 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.823795Jy  sigma=0.016686
! Fit after  self-cal, rms=1.292991Jy  sigma=0.012761
! 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.63% of the data.
!  The x-axis pixel size should ideally be below 0.1626 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1494 milli-arcsec
! Estimated beam: bmin=0.5946 mas, bmaj=0.6848 mas, bpa=-10.3 degrees
! Estimated noise=759.058 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 = 1.63452 Jy
! Component: 100  -  total flux cleaned = 2.05512 Jy
! Total flux subtracted in 100 components = 2.05512 Jy
! Clean residual min=-0.039465 max=0.183819 Jy/beam
! Clean residual mean=0.000765 rms=0.012656 Jy/beam
! Combined flux in latest and established models = 2.05512 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 2.05512 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.486722Jy  sigma=0.004689
! Fit after  self-cal, rms=0.486424Jy  sigma=0.004687
! Inverting map 
! Your choice of large map pixels excluded 2.63% of the data.
!  The x-axis pixel size should ideally be below 0.1626 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1494 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.208353 Jy
! Component: 100  -  total flux cleaned = 0.325858 Jy
! Total flux subtracted in 100 components = 0.325858 Jy
! Clean residual min=-0.033782 max=0.062212 Jy/beam
! Clean residual mean=0.000279 rms=0.008608 Jy/beam
! Combined flux in latest and established models = 2.38098 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 12 components and 2.38098 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.373142Jy  sigma=0.003168
! Fit after  self-cal, rms=0.372956Jy  sigma=0.003167
! Inverting map 
! Your choice of large map pixels excluded 2.63% of the data.
!  The x-axis pixel size should ideally be below 0.1626 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1494 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0779219 Jy
! Component: 100  -  total flux cleaned = 0.131556 Jy
! Total flux subtracted in 100 components = 0.131556 Jy
! Clean residual min=-0.035033 max=0.034487 Jy/beam
! Clean residual mean=0.000085 rms=0.007752 Jy/beam
! Combined flux in latest and established models = 2.51254 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 16 components and 2.51254 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.358598Jy  sigma=0.002854
! Fit after  self-cal, rms=0.358517Jy  sigma=0.002854
! Inverting map 
! Your choice of large map pixels excluded 2.63% of the data.
!  The x-axis pixel size should ideally be below 0.1626 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1494 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.63% of the data.
!  The x-axis pixel size should ideally be below 0.1626 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1494 milli-arcsec
! Estimated beam: bmin=0.7828 mas, bmaj=0.9146 mas, bpa=-13.15 degrees
! Estimated noise=304.13 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.0446617 Jy
! Component: 100  -  total flux cleaned = 0.0649717 Jy
! Component: 150  -  total flux cleaned = 0.0754835 Jy
! Component: 200  -  total flux cleaned = 0.0809432 Jy
! Total flux subtracted in 200 components = 0.0809432 Jy
! Clean residual min=-0.027088 max=0.033151 Jy/beam
! Clean residual mean=-0.002649 rms=0.007890 Jy/beam
! Combined flux in latest and established models = 2.59348 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 21 components and 2.59348 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356993Jy  sigma=0.002766
! Fit after  self-cal, rms=0.356939Jy  sigma=0.002765
! Inverting map 
! Your choice of large map pixels excluded 2.63% of the data.
!  The x-axis pixel size should ideally be below 0.1626 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1494 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.95     GC        1.06     HH        1.00*    
!   HN        0.96     KK        1.02     KP        0.98     LA        0.94     
!   MC        1.10     MK        0.98     NL        1.02     NY        0.93     
!   ON        0.98     OV        0.96     PT        1.04     SC        1.02     
!   WF        1.09     WZ        1.03     
! 
!  A total of 168 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.95     GC        1.07     HH        1.00*    
!   HN        0.97     KK        0.90     KP        0.98     LA        0.94     
!   MC        1.00*    MK        0.93     NL        1.04     NY        0.94     
!   ON        1.08     OV        0.95     PT        1.01     SC        1.13     
!   WF        1.25     WZ        1.38     
! 
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.08     FD        1.00     GC        1.31     HH        0.88     
!   HN        1.00*    KK        0.93     KP        1.00     LA        1.02     
!   MC        1.02     MK        0.95     NL        1.28     NY        0.95     
!   ON        1.24     OV        1.02     PT        1.02     SC        1.00*    
!   WF        1.00*    WZ        1.02     
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        1.01     GC        1.15     HH        1.01     
!   HN        0.98     KK        1.00*    KP        1.07     LA        0.99     
!   MC        0.89     MK        1.00*    NL        1.05     NY        0.95     
!   ON        0.80     OV        1.00*    PT        1.04     SC        1.08     
!   WF        1.25     WZ        1.02     
! 
! 
! Correcting IF 2.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.94     GC        1.04     HH        1.00*    
!   HN        0.95     KK        1.03     KP        0.99     LA        0.95     
!   MC        1.10     MK        0.97     NL        0.97     NY        0.94     
!   ON        0.97     OV        0.94     PT        0.95     SC        0.95     
!   WF        1.02     WZ        1.04     
! 
!  A total of 171 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.94     GC        1.04     HH        1.00*    
!   HN        0.96     KK        0.92     KP        0.99     LA        0.94     
!   MC        1.00*    MK        0.92     NL        1.00     NY        0.95     
!   ON        1.06     OV        0.93     PT        0.93     SC        1.12     
!   WF        1.03     WZ        1.42     
! 
!  A total of 48 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.08     FD        1.00     GC        1.27     HH        0.87     
!   HN        1.00*    KK        0.93     KP        1.01     LA        1.02     
!   MC        1.02     MK        0.94     NL        1.23     NY        0.96     
!   ON        1.23     OV        1.00     PT        0.94     SC        1.00*    
!   WF        1.00*    WZ        1.05     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        1.00     GC        1.12     HH        1.04     
!   HN        0.97     KK        1.00*    KP        1.09     LA        1.00     
!   MC        0.90     MK        1.00*    NL        1.01     NY        0.97     
!   ON        0.79     OV        1.00*    PT        0.96     SC        1.07     
!   WF        1.31     WZ        1.03     
! 
! 
! Correcting IF 3.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.96     GC        1.00     HH        1.00*    
!   HN        0.96     KK        1.10     KP        1.00     LA        0.94     
!   MC        1.15     MK        0.97     NL        0.97     NY        0.98     
!   ON        1.01     OV        0.95     PT        0.96     SC        0.96     
!   WF        1.02     WZ        1.06     
! 
!  A total of 165 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.95     GC        1.01     HH        1.00*    
!   HN        0.97     KK        0.98     KP        0.99     LA        0.93     
!   MC        1.00*    MK        0.92     NL        1.00     NY        0.98     
!   ON        1.11     OV        0.95     PT        0.94     SC        1.15     
!   WF        1.02     WZ        1.40     
! 
!  A total of 48 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.14     FD        1.02     GC        1.35     HH        0.90     
!   HN        1.00*    KK        0.99     KP        1.02     LA        1.01     
!   MC        1.04     MK        0.93     NL        1.26     NY        0.99     
!   ON        1.27     OV        1.03     PT        0.95     SC        1.00*    
!   WF        1.00*    WZ        1.05     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.02     GC        1.16     HH        1.05     
!   HN        0.99     KK        1.00*    KP        1.12     LA        0.99     
!   MC        0.91     MK        1.00*    NL        1.00     NY        0.99     
!   ON        0.82     OV        1.00*    PT        0.97     SC        1.09     
!   WF        1.33     WZ        1.06     
! 
! 
! Correcting IF 4.
!  A total of 45 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.93     GC        1.04     HH        1.00*    
!   HN        0.94     KK        1.06     KP        0.98     LA        0.95     
!   MC        1.13     MK        0.97     NL        0.97     NY        1.02     
!   ON        1.02     OV        0.95     PT        0.99     SC        0.94     
!   WF        1.01     WZ        1.00*    
! 
!  A total of 159 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.94     GC        1.02     HH        1.00*    
!   HN        0.97     KK        0.95     KP        0.98     LA        0.94     
!   MC        1.00*    MK        0.93     NL        1.01     NY        1.02     
!   ON        1.10     OV        0.95     PT        0.96     SC        1.11     
!   WF        1.02     WZ        1.00*    
! 
!  A total of 54 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.10     FD        1.04     GC        1.32     HH        0.94     
!   HN        1.00*    KK        0.96     KP        1.01     LA        1.04     
!   MC        1.01     MK        0.94     NL        1.27     NY        1.04     
!   ON        1.22     OV        1.04     PT        0.98     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        1.02     GC        1.14     HH        1.16     
!   HN        0.97     KK        1.00*    KP        1.11     LA        1.01     
!   MC        0.87     MK        1.00*    NL        1.01     NY        1.04     
!   ON        0.82     OV        1.00*    PT        1.00     SC        1.05     
!   WF        1.34     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.356939Jy  sigma=0.002765
! Fit after  self-cal, rms=0.294857Jy  sigma=0.001835
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2.64% of the data.
!  The x-axis pixel size should ideally be below 0.1626 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1494 milli-arcsec
! Estimated beam: bmin=0.7882 mas, bmaj=0.9202 mas, bpa=-13.57 degrees
! Estimated noise=306.05 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.0111522 Jy
! Component: 100  -  total flux cleaned = -0.0129076 Jy
! Component: 150  -  total flux cleaned = -0.0141246 Jy
! Component: 200  -  total flux cleaned = -0.0150868 Jy
! Total flux subtracted in 200 components = -0.0150868 Jy
! Clean residual min=-0.011218 max=0.009649 Jy/beam
! Clean residual mean=-0.000347 rms=0.002912 Jy/beam
! Combined flux in latest and established models = 2.57839 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 22 components and 2.57839 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.293985Jy  sigma=0.001826
! Fit after  self-cal, rms=0.294506Jy  sigma=0.001826
! Inverting map 
! Your choice of large map pixels excluded 2.64% of the data.
!  The x-axis pixel size should ideally be below 0.1626 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1494 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.294506Jy  sigma=0.001826
! Fit after  self-cal, rms=0.287898Jy  sigma=0.001748
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.64% of the data.
!  The x-axis pixel size should ideally be below 0.1626 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1494 milli-arcsec
! Estimated beam: bmin=0.7883 mas, bmaj=0.9234 mas, bpa=-13.9 degrees
! Estimated noise=306.281 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00470892 Jy
! Component: 100  -  total flux cleaned = -0.0058839 Jy
! Component: 150  -  total flux cleaned = -0.007193 Jy
! Component: 200  -  total flux cleaned = -0.00810397 Jy
! Total flux subtracted in 200 components = -0.00810397 Jy
! Clean residual min=-0.008698 max=0.008522 Jy/beam
! Clean residual mean=-0.000338 rms=0.002566 Jy/beam
! Combined flux in latest and established models = 2.57029 Jy
selfcal
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 24 components and 2.57029 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.287538Jy  sigma=0.001744
! Fit after  self-cal, rms=0.287563Jy  sigma=0.001744
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.64% of the data.
!  The x-axis pixel size should ideally be below 0.1626 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1494 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.000385169 Jy
! Component: 100  -  total flux cleaned = -0.000966892 Jy
! Component: 150  -  total flux cleaned = -0.00145526 Jy
! Component: 200  -  total flux cleaned = -0.00171575 Jy
! Total flux subtracted in 200 components = -0.00171575 Jy
! Clean residual min=-0.008484 max=0.008746 Jy/beam
! Clean residual mean=-0.000301 rms=0.002563 Jy/beam
! Combined flux in latest and established models = 2.56857 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 26 components and 2.56857 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.287487Jy  sigma=0.001743
! Fit after  self-cal, rms=0.287461Jy  sigma=0.001743
! Inverting map 
! Your choice of large map pixels excluded 2.64% of the data.
!  The x-axis pixel size should ideally be below 0.1626 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1494 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.287461Jy  sigma=0.001743
! Fit after  self-cal, rms=0.287918Jy  sigma=0.001741
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.64% of the data.
!  The x-axis pixel size should ideally be below 0.1626 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1494 milli-arcsec
! Estimated beam: bmin=0.7884 mas, bmaj=0.9255 mas, bpa=-13.97 degrees
! Estimated noise=306.655 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00236692 Jy
! Component: 100  -  total flux cleaned = -0.0030763 Jy
! Component: 150  -  total flux cleaned = -0.00406174 Jy
! Component: 200  -  total flux cleaned = -0.00463461 Jy
! Total flux subtracted in 200 components = -0.00463461 Jy
! Clean residual min=-0.008400 max=0.008551 Jy/beam
! Clean residual mean=-0.000332 rms=0.002534 Jy/beam
! Combined flux in latest and established models = 2.56394 Jy
selfcal
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 26 components and 2.56394 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.287710Jy  sigma=0.001739
! Fit after  self-cal, rms=0.287698Jy  sigma=0.001739
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.64% of the data.
!  The x-axis pixel size should ideally be below 0.1626 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1494 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.000197056 Jy
! Component: 100  -  total flux cleaned = -0.000577916 Jy
! Component: 150  -  total flux cleaned = -0.000910025 Jy
! Component: 200  -  total flux cleaned = -0.00106051 Jy
! Total flux subtracted in 200 components = -0.00106051 Jy
! Clean residual min=-0.008252 max=0.008681 Jy/beam
! Clean residual mean=-0.000309 rms=0.002532 Jy/beam
! Combined flux in latest and established models = 2.56288 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 26 components and 2.56288 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.287636Jy  sigma=0.001738
! Fit after  self-cal, rms=0.287614Jy  sigma=0.001738
! Inverting map 
! Your choice of large map pixels excluded 2.64% of the data.
!  The x-axis pixel size should ideally be below 0.1626 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1494 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.287614Jy  sigma=0.001738
! Fit after  self-cal, rms=0.288085Jy  sigma=0.001737
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.64% of the data.
!  The x-axis pixel size should ideally be below 0.1626 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1494 milli-arcsec
! Estimated beam: bmin=2.437 mas, bmaj=2.659 mas, bpa=73.21 degrees
! Estimated noise=414.87 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00147061 Jy
! Component: 100  -  total flux cleaned = -0.00147405 Jy
! Component: 150  -  total flux cleaned = -0.00147318 Jy
! Component: 200  -  total flux cleaned = -0.00147146 Jy
! Total flux subtracted in 200 components = -0.00147146 Jy
! Clean residual min=-0.012349 max=0.014508 Jy/beam
! Clean residual mean=-0.001016 rms=0.004008 Jy/beam
! Combined flux in latest and established models = 2.56141 Jy
selfcal
! Performing phase self-cal
! Adding 3 model components to the UV plane model.
! The established model now contains 27 components and 2.56141 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.288139Jy  sigma=0.001737
! Fit after  self-cal, rms=0.288117Jy  sigma=0.001737
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.64% of the data.
!  The x-axis pixel size should ideally be below 0.1626 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1494 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 = -9.65633e-05 Jy
! Component: 100  -  total flux cleaned = -0.000101938 Jy
! Component: 150  -  total flux cleaned = -0.000104651 Jy
! Component: 200  -  total flux cleaned = -0.00010652 Jy
! Total flux subtracted in 200 components = -0.00010652 Jy
! Clean residual min=-0.012363 max=0.014539 Jy/beam
! Clean residual mean=-0.001009 rms=0.004011 Jy/beam
! Combined flux in latest and established models = 2.5613 Jy
! Performing phase self-cal
! Adding 3 model components to the UV plane model.
! The established model now contains 27 components and 2.5613 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.288204Jy  sigma=0.001737
! Fit after  self-cal, rms=0.288191Jy  sigma=0.001737
! Inverting map 
! Your choice of large map pixels excluded 2.64% of the data.
!  The x-axis pixel size should ideally be below 0.1626 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1494 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.64% of the data.
!  The x-axis pixel size should ideally be below 0.1626 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1494 milli-arcsec
! Estimated beam: bmin=0.7886 mas, bmaj=0.927 mas, bpa=-14.02 degrees
! Estimated noise=307.029 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7886 x 0.927 at -14.02 degrees (North through East)
! Clean map  min=-0.0081419  max=2.2607 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.288191Jy  sigma=0.001737
! Fit after  self-cal, rms=0.268768Jy  sigma=0.001524
! Inverting map and beam 
! Your choice of large map pixels excluded 2.64% of the data.
!  The x-axis pixel size should ideally be below 0.1626 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1494 milli-arcsec
! Estimated beam: bmin=0.7891 mas, bmaj=0.9264 mas, bpa=-13.69 degrees
! Estimated noise=306.818 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00148414 Jy
! Component: 100  -  total flux cleaned = -0.00217725 Jy
! Component: 150  -  total flux cleaned = -0.00263291 Jy
! Component: 200  -  total flux cleaned = -0.00292038 Jy
! Total flux subtracted in 200 components = -0.00292038 Jy
! Clean residual min=-0.008824 max=0.008483 Jy/beam
! Clean residual mean=-0.000297 rms=0.002470 Jy/beam
! Combined flux in latest and established models = 2.55838 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 29 components and 2.55838 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.268608Jy  sigma=0.001522
! Fit after  self-cal, rms=0.268595Jy  sigma=0.001522
! Inverting map 
! Your choice of large map pixels excluded 2.64% of the data.
!  The x-axis pixel size should ideally be below 0.1626 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1494 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000169205 Jy
! Component: 100  -  total flux cleaned = -0.000590443 Jy
! Component: 150  -  total flux cleaned = -0.000736575 Jy
! Component: 200  -  total flux cleaned = -0.000870261 Jy
! Total flux subtracted in 200 components = -0.000870261 Jy
! Clean residual min=-0.008637 max=0.008461 Jy/beam
! Clean residual mean=-0.000277 rms=0.002468 Jy/beam
! Combined flux in latest and established models = 2.55751 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 29 components and 2.55751 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.268534Jy  sigma=0.001522
! Fit after  self-cal, rms=0.268523Jy  sigma=0.001522
! Inverting map 
! Your choice of large map pixels excluded 2.64% of the data.
!  The x-axis pixel size should ideally be below 0.1626 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1494 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.268523Jy  sigma=0.001522
! Fit after  self-cal, rms=0.268830Jy  sigma=0.001521
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.64% of the data.
!  The x-axis pixel size should ideally be below 0.1626 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1494 milli-arcsec
! Estimated beam: bmin=0.6012 mas, bmaj=0.6942 mas, bpa=-12.98 degrees
! Estimated noise=774.975 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.66481 Jy
! Component: 100  -  total flux cleaned = 2.08073 Jy
! Component: 150  -  total flux cleaned = 2.27082 Jy
! Component: 200  -  total flux cleaned = 2.37327 Jy
! Total flux subtracted in 200 components = 2.37327 Jy
! Clean residual min=-0.013515 max=0.050852 Jy/beam
! Clean residual mean=0.000264 rms=0.004441 Jy/beam
! Combined flux in latest and established models = 2.37327 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 9 model components to the UV plane model.
! The established model now contains 9 components and 2.37327 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 2.64% of the data.
!  The x-axis pixel size should ideally be below 0.1626 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1494 milli-arcsec
! Estimated beam: bmin=0.789 mas, bmaj=0.9275 mas, bpa=-13.76 degrees
! Estimated noise=307.043 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.0937407 Jy
! Component: 100  -  total flux cleaned = 0.138393 Jy
! Component: 150  -  total flux cleaned = 0.161343 Jy
! Component: 200  -  total flux cleaned = 0.173419 Jy
! Total flux subtracted in 200 components = 0.173419 Jy
! Clean residual min=-0.008332 max=0.008951 Jy/beam
! Clean residual mean=-0.000088 rms=0.002521 Jy/beam
! Combined flux in latest and established models = 2.54669 Jy
! Adding 20 model components to the UV plane model.
! The established model now contains 24 components and 2.54669 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.64% of the data.
!  The x-axis pixel size should ideally be below 0.1626 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1494 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.64% of the data.
!  The x-axis pixel size should ideally be below 0.1626 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1494 milli-arcsec
! Estimated beam: bmin=2.438 mas, bmaj=2.661 mas, bpa=73.08 degrees
! Estimated noise=414.336 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00800542 Jy
! Component: 100  -  total flux cleaned = 0.010165 Jy
! Component: 150  -  total flux cleaned = 0.0102274 Jy
! Component: 200  -  total flux cleaned = 0.010343 Jy
! Total flux subtracted in 200 components = 0.010343 Jy
! Clean residual min=-0.012021 max=0.014968 Jy/beam
! Clean residual mean=-0.000917 rms=0.003945 Jy/beam
! Combined flux in latest and established models = 2.55703 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 = 5.44815e-05 Jy
! Component: 100  -  total flux cleaned = 0.000147141 Jy
! Component: 150  -  total flux cleaned = 0.000230029 Jy
! Component: 200  -  total flux cleaned = 0.000267865 Jy
! Total flux subtracted in 200 components = 0.000267865 Jy
! Clean residual min=-0.011950 max=0.014969 Jy/beam
! Clean residual mean=-0.000934 rms=0.003941 Jy/beam
! Combined flux in latest and established models = 2.5573 Jy
! Adding 5 model components to the UV plane model.
! The established model now contains 27 components and 2.5573 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.64% of the data.
!  The x-axis pixel size should ideally be below 0.1626 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1494 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 2.64% of the data.
!  The x-axis pixel size should ideally be below 0.1626 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1494 milli-arcsec
! Estimated beam: bmin=0.789 mas, bmaj=0.9275 mas, bpa=-13.76 degrees
! Estimated noise=307.043 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -3.48381e-05 Jy
! Component: 100  -  total flux cleaned = 0.000715695 Jy
! Component: 150  -  total flux cleaned = 0.00115924 Jy
! Component: 200  -  total flux cleaned = 0.00141575 Jy
! Total flux subtracted in 200 components = 0.00141575 Jy
! Clean residual min=-0.009081 max=0.009094 Jy/beam
! Clean residual mean=-0.000356 rms=0.002451 Jy/beam
! Combined flux in latest and established models = 2.55872 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 28 components and 2.55872 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.269405Jy  sigma=0.001521
! Fit after  self-cal, rms=0.269335Jy  sigma=0.001521
wmodel J0646+4451_X_1999_05_10_pus_map.mod
! Writing 28 model components to file: J0646+4451_X_1999_05_10_pus_map.mod
wobs J0646+4451_X_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J0646+4451_X_1999_05_10_pus_uvs.fits
wwins J0646+4451_X_1999_05_10_pus_map.win
! wwins: Wrote 1 windows to J0646+4451_X_1999_05_10_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.64% of the data.
!  The x-axis pixel size should ideally be below 0.1626 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1494 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000335241 Jy
! Component: 100  -  total flux cleaned = -0.00018937 Jy
! Component: 150  -  total flux cleaned = -4.14286e-05 Jy
! Component: 200  -  total flux cleaned = 9.8531e-05 Jy
! Component: 250  -  total flux cleaned = -3.61286e-05 Jy
! Component: 300  -  total flux cleaned = -0.000168483 Jy
! Component: 350  -  total flux cleaned = -0.000424329 Jy
! Component: 400  -  total flux cleaned = -0.000549835 Jy
! Component: 450  -  total flux cleaned = -0.000918474 Jy
! Component: 500  -  total flux cleaned = -0.0010394 Jy
! Component: 550  -  total flux cleaned = -0.00139496 Jy
! Component: 600  -  total flux cleaned = -0.00162718 Jy
! Component: 650  -  total flux cleaned = -0.0020828 Jy
! Component: 700  -  total flux cleaned = -0.00219444 Jy
! Component: 750  -  total flux cleaned = -0.00252718 Jy
! Component: 800  -  total flux cleaned = -0.0028553 Jy
! Component: 850  -  total flux cleaned = -0.00307164 Jy
! Component: 900  -  total flux cleaned = -0.00349913 Jy
! Component: 950  -  total flux cleaned = -0.00381528 Jy
! Component: 1000  -  total flux cleaned = -0.00412827 Jy
! Total flux subtracted in 1024 components = -0.00423202 Jy
! Clean residual min=-0.006132 max=0.006455 Jy/beam
! Clean residual mean=-0.000270 rms=0.002150 Jy/beam
! Combined flux in latest and established models = 2.55449 Jy
keep
! Adding 81 model components to the UV plane model.
! The established model now contains 109 components and 2.55449 Jy
![Exited script file: muppet]
wmap "J0646+4451_X_1999_05_10_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 2.64% of the data.
!  The x-axis pixel size should ideally be below 0.1626 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1494 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.789 x 0.9275 at -13.76 degrees (North through East)
! Clean map  min=-0.0085207  max=2.2645 Jy/beam
! Writing clean map to FITS file: J0646+4451_X_1999_05_10_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 2.26453 
invert
! Inverting map 
! Your choice of large map pixels excluded 2.64% of the data.
!  The x-axis pixel size should ideally be below 0.1626 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1494 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00214872 
device "J0646+4451_X_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J0646+4451_X_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.284657 0.284657 0.569314 1.13863 2.27726 4.55451 9.10903 18.2181 36.4361 72.8722
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0064 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.264 
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.789 x 0.9275 at -13.76 degrees (North through East)
! Clean map  min=-0.0085207  max=2.2645 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0646+4451_X_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J0646+4451_X_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0646+4451_X_1999_05_10_pus_uvs.log closed on Tue Jan 15 15:17:21 2008