! Started logfile: J0956+2515_X_2001_04_09_pus_uvs.log on Mon Oct  1 14:38:39 2007
obs J0956+2515_X_2001_04_09_pus_uva.fits
! Reading UV FITS file: J0956+2515_X_2001_04_09_pus_uva.fits
! AN table 1: 285 integrations on 190 of 190 possible baselines.
! AN table 2: 167 integrations on 190 of 190 possible baselines.
! AN table 3: 93 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.148585 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0956+2515
! 
! 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 61544 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 J0956+2515_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 4558 telescope corrections were flagged in sub-array 1.
!  A total of 1733 telescope corrections were flagged in sub-array 2.
!  A total of 1349 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 4558 telescope corrections were flagged in sub-array 1.
!  A total of 1733 telescope corrections were flagged in sub-array 2.
!  A total of 1349 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 4558 telescope corrections were flagged in sub-array 1.
!  A total of 1778 telescope corrections were flagged in sub-array 2.
!  A total of 1349 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 4558 telescope corrections were flagged in sub-array 1.
!  A total of 1778 telescope corrections were flagged in sub-array 2.
!  A total of 1349 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.789267Jy  sigma=0.007734
! Fit after  self-cal, rms=0.679514Jy  sigma=0.006669
! 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 4.67% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
! Estimated beam: bmin=0.5442 mas, bmaj=0.9391 mas, bpa=-3.204 degrees
! Estimated noise=774.603 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.265537 Jy
! Component: 100  -  total flux cleaned = 0.390757 Jy
! Total flux subtracted in 100 components = 0.390757 Jy
! Clean residual min=-0.014506 max=0.060255 Jy/beam
! Clean residual mean=0.000466 rms=0.005550 Jy/beam
! Combined flux in latest and established models = 0.390757 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.390757 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.228071Jy  sigma=0.002187
! Fit after  self-cal, rms=0.225906Jy  sigma=0.002175
! Inverting map 
! Your choice of large map pixels excluded 4.67% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0701977 Jy
! Component: 100  -  total flux cleaned = 0.108784 Jy
! Total flux subtracted in 100 components = 0.108784 Jy
! Clean residual min=-0.010180 max=0.052767 Jy/beam
! Clean residual mean=0.000313 rms=0.003693 Jy/beam
! Combined flux in latest and established models = 0.499541 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 9 components and 0.499541 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.189732Jy  sigma=0.001679
! Fit after  self-cal, rms=0.189514Jy  sigma=0.001677
! Inverting map 
! Your choice of large map pixels excluded 4.67% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
! Added new window around map position (-1, -0.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0453105 Jy
! Component: 100  -  total flux cleaned = 0.0690756 Jy
! Total flux subtracted in 100 components = 0.0690756 Jy
! Clean residual min=-0.007736 max=0.029894 Jy/beam
! Clean residual mean=0.000201 rms=0.002652 Jy/beam
! Combined flux in latest and established models = 0.568616 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 17 components and 0.568616 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.174491Jy  sigma=0.001460
! Fit after  self-cal, rms=0.172182Jy  sigma=0.001438
! Inverting map 
! Your choice of large map pixels excluded 4.67% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0243252 Jy
! Component: 100  -  total flux cleaned = 0.0398189 Jy
! Total flux subtracted in 100 components = 0.0398189 Jy
! Clean residual min=-0.007630 max=0.016588 Jy/beam
! Clean residual mean=0.000138 rms=0.001981 Jy/beam
! Combined flux in latest and established models = 0.608435 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 21 components and 0.608435 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.167037Jy  sigma=0.001356
! Fit after  self-cal, rms=0.166372Jy  sigma=0.001350
! Inverting map 
! Your choice of large map pixels excluded 4.67% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0145491 Jy
! Component: 100  -  total flux cleaned = 0.0242537 Jy
! Total flux subtracted in 100 components = 0.0242537 Jy
! Clean residual min=-0.007208 max=0.010815 Jy/beam
! Clean residual mean=0.000100 rms=0.001698 Jy/beam
! Combined flux in latest and established models = 0.632689 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 25 components and 0.632689 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.164474Jy  sigma=0.001318
! Fit after  self-cal, rms=0.164237Jy  sigma=0.001316
! Inverting map 
! Your choice of large map pixels excluded 4.67% of the data.
!  The x-axis pixel size should ideally be below 0.1538 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 4.67% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
! Estimated beam: bmin=0.671 mas, bmaj=1.187 mas, bpa=-1.722 degrees
! Estimated noise=301.817 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.01547 Jy
! Component: 100  -  total flux cleaned = 0.0249428 Jy
! Component: 150  -  total flux cleaned = 0.0310322 Jy
! Component: 200  -  total flux cleaned = 0.035034 Jy
! Total flux subtracted in 200 components = 0.035034 Jy
! Clean residual min=-0.004675 max=0.007285 Jy/beam
! Clean residual mean=0.000339 rms=0.001405 Jy/beam
! Combined flux in latest and established models = 0.667723 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 45 components and 0.667723 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.162948Jy  sigma=0.001293
! Fit after  self-cal, rms=0.162816Jy  sigma=0.001292
! Inverting map 
! Your choice of large map pixels excluded 4.67% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 243 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.03     GC        0.85     GG        1.00*    
!   HH        1.00*    HN        1.33     KK        1.02     KP        1.00     
!   LA        1.01     MA        1.00*    MC        1.10     MK        0.98     
!   NL        1.01     NY        1.03     OV        0.98     PT        1.00     
!   SC        0.97     TS        0.86     WF        0.98     WZ        1.05     
! 
!  A total of 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.00     GC        0.82     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        0.85     KP        1.01     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        0.95     
!   NL        1.01     NY        1.05     OV        0.98     PT        1.00     
!   SC        1.03     TS        0.91     WF        0.95     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.94     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        1.00*    KP        0.95     
!   LA        0.99     MA        1.00     MC        1.01     MK        1.00*    
!   NL        0.98     NY        1.03     OV        1.01     PT        0.98     
!   SC        0.97     TS        1.00*    WF        0.97     WZ        0.95     
! 
! 
! Correcting IF 2.
!  A total of 243 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        1.02     GC        0.86     GG        1.00*    
!   HH        1.00*    HN        1.30     KK        0.99     KP        1.01     
!   LA        1.01     MA        1.00*    MC        1.09     MK        1.04     
!   NL        0.96     NY        1.07     OV        0.98     PT        1.00     
!   SC        0.97     TS        0.85     WF        1.01     WZ        0.99     
! 
!  A total of 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.00     GC        0.92     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        0.78     KP        0.99     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        0.96     NY        1.03     OV        0.98     PT        1.01     
!   SC        1.07     TS        0.91     WF        0.99     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.96     GC        0.90     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        1.00*    KP        0.93     
!   LA        0.97     MA        0.98     MC        0.97     MK        1.00*    
!   NL        0.95     NY        1.02     OV        0.99     PT        1.00     
!   SC        0.94     TS        1.00*    WF        1.00     WZ        0.91     
! 
! 
! Correcting IF 3.
!  A total of 243 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.05     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.34     KK        1.02     KP        0.91     
!   LA        1.02     MA        1.00*    MC        1.21     MK        0.99     
!   NL        0.98     NY        1.00     OV        0.97     PT        0.96     
!   SC        0.95     TS        0.92     WF        1.00     WZ        1.02     
! 
!  A total of 48 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.00*    KP        0.91     
!   LA        1.01     MA        1.00*    MC        1.00*    MK        0.96     
!   NL        0.97     NY        1.02     OV        0.96     PT        0.97     
!   SC        1.06     TS        0.96     WF        1.00     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.97     GC        1.14     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.00*    KP        0.87     
!   LA        1.01     MA        1.03     MC        1.04     MK        1.00*    
!   NL        0.97     NY        1.01     OV        0.99     PT        0.94     
!   SC        0.97     TS        1.00*    WF        0.98     WZ        0.99     
! 
! 
! Correcting IF 4.
!  A total of 243 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.04     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        1.36     KK        1.00     KP        1.10     
!   LA        1.00     MA        1.00*    MC        1.33     MK        1.05     
!   NL        1.00     NY        0.99     OV        0.94     PT        1.01     
!   SC        0.93     TS        0.92     WF        1.03     WZ        0.98     
! 
!  A total of 48 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.00     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.00*    KP        1.11     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        0.98     NY        1.03     OV        0.95     PT        1.02     
!   SC        1.08     TS        0.93     WF        0.99     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        0.97     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        0.95     KK        1.00*    KP        1.08     
!   LA        0.97     MA        1.03     MC        1.02     MK        1.00*    
!   NL        0.99     NY        0.97     OV        0.96     PT        0.98     
!   SC        0.98     TS        1.00*    WF        1.06     WZ        0.97     
! 
! 
! Fit before self-cal, rms=0.162816Jy  sigma=0.001292
! Fit after  self-cal, rms=0.162798Jy  sigma=0.001259
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 4.65% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
! Estimated beam: bmin=0.6622 mas, bmaj=1.192 mas, bpa=-1.431 degrees
! Estimated noise=300.07 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 (-1.8, -0.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00573526 Jy
! Component: 100  -  total flux cleaned = 0.00632499 Jy
! Component: 150  -  total flux cleaned = 0.00659338 Jy
! Component: 200  -  total flux cleaned = 0.00659515 Jy
! Total flux subtracted in 200 components = 0.00659515 Jy
! Clean residual min=-0.002596 max=0.003007 Jy/beam
! Clean residual mean=0.000251 rms=0.000714 Jy/beam
! Combined flux in latest and established models = 0.674318 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 56 components and 0.674318 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.162558Jy  sigma=0.001257
! Fit after  self-cal, rms=0.162592Jy  sigma=0.001256
! Inverting map 
! Your choice of large map pixels excluded 4.65% of the data.
!  The x-axis pixel size should ideally be below 0.1538 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.162592Jy  sigma=0.001256
! Fit after  self-cal, rms=0.160999Jy  sigma=0.001251
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.65% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
! Estimated beam: bmin=0.6611 mas, bmaj=1.192 mas, bpa=-1.511 degrees
! Estimated noise=299.199 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00329474 Jy
! Component: 100  -  total flux cleaned = 0.00387673 Jy
! Component: 150  -  total flux cleaned = 0.00422736 Jy
! Component: 200  -  total flux cleaned = 0.0043985 Jy
! Total flux subtracted in 200 components = 0.0043985 Jy
! Clean residual min=-0.002110 max=0.003158 Jy/beam
! Clean residual mean=0.000167 rms=0.000572 Jy/beam
! Combined flux in latest and established models = 0.678717 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 59 components and 0.678717 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.160892Jy  sigma=0.001250
! Fit after  self-cal, rms=0.160853Jy  sigma=0.001250
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.65% of the data.
!  The x-axis pixel size should ideally be below 0.1538 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.00082519 Jy
! Component: 100  -  total flux cleaned = 0.00118331 Jy
! Component: 150  -  total flux cleaned = 0.00143365 Jy
! Component: 200  -  total flux cleaned = 0.00151829 Jy
! Total flux subtracted in 200 components = 0.00151829 Jy
! Clean residual min=-0.002050 max=0.002340 Jy/beam
! Clean residual mean=0.000151 rms=0.000535 Jy/beam
! Combined flux in latest and established models = 0.680235 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 63 components and 0.680235 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.160812Jy  sigma=0.001250
! Fit after  self-cal, rms=0.160793Jy  sigma=0.001249
! Inverting map 
! Your choice of large map pixels excluded 4.65% of the data.
!  The x-axis pixel size should ideally be below 0.1538 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.160793Jy  sigma=0.001249
! Fit after  self-cal, rms=0.160471Jy  sigma=0.001249
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.65% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
! Estimated beam: bmin=0.6597 mas, bmaj=1.191 mas, bpa=-1.507 degrees
! Estimated noise=298.489 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00157727 Jy
! Component: 100  -  total flux cleaned = 0.00192757 Jy
! Component: 150  -  total flux cleaned = 0.00216825 Jy
! Component: 200  -  total flux cleaned = 0.0022895 Jy
! Total flux subtracted in 200 components = 0.0022895 Jy
! Clean residual min=-0.001666 max=0.002459 Jy/beam
! Clean residual mean=0.000120 rms=0.000484 Jy/beam
! Combined flux in latest and established models = 0.682524 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 65 components and 0.682524 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.160427Jy  sigma=0.001249
! Fit after  self-cal, rms=0.160413Jy  sigma=0.001249
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.65% of the data.
!  The x-axis pixel size should ideally be below 0.1538 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 (-10.4, 3.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00126244 Jy
! Component: 100  -  total flux cleaned = 0.00143017 Jy
! Component: 150  -  total flux cleaned = 0.00161443 Jy
! Component: 200  -  total flux cleaned = 0.00173519 Jy
! Total flux subtracted in 200 components = 0.00173519 Jy
! Clean residual min=-0.001845 max=0.002192 Jy/beam
! Clean residual mean=0.000100 rms=0.000455 Jy/beam
! Combined flux in latest and established models = 0.68426 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 70 components and 0.684259 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.160384Jy  sigma=0.001248
! Fit after  self-cal, rms=0.160377Jy  sigma=0.001248
! Inverting map 
! Your choice of large map pixels excluded 4.65% of the data.
!  The x-axis pixel size should ideally be below 0.1538 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.160377Jy  sigma=0.001248
! Fit after  self-cal, rms=0.160190Jy  sigma=0.001248
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.65% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
! Estimated beam: bmin=2.264 mas, bmaj=2.649 mas, bpa=-11.51 degrees
! Estimated noise=414.324 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00192509 Jy
! Component: 100  -  total flux cleaned = 0.00295516 Jy
! Component: 150  -  total flux cleaned = 0.00318898 Jy
! Component: 200  -  total flux cleaned = 0.00328238 Jy
! Total flux subtracted in 200 components = 0.00328238 Jy
! Clean residual min=-0.001365 max=0.002024 Jy/beam
! Clean residual mean=0.000211 rms=0.000533 Jy/beam
! Combined flux in latest and established models = 0.687542 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 83 components and 0.687542 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.160183Jy  sigma=0.001248
! Fit after  self-cal, rms=0.160178Jy  sigma=0.001248
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.65% of the data.
!  The x-axis pixel size should ideally be below 0.1538 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.000246745 Jy
! Component: 100  -  total flux cleaned = 0.000469355 Jy
! Component: 150  -  total flux cleaned = 0.0005786 Jy
! Component: 200  -  total flux cleaned = 0.000596642 Jy
! Total flux subtracted in 200 components = 0.000596642 Jy
! Clean residual min=-0.001383 max=0.001974 Jy/beam
! Clean residual mean=0.000192 rms=0.000516 Jy/beam
! Combined flux in latest and established models = 0.688139 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 86 components and 0.688138 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.160175Jy  sigma=0.001248
! Fit after  self-cal, rms=0.160170Jy  sigma=0.001248
! Inverting map 
! Your choice of large map pixels excluded 4.65% of the data.
!  The x-axis pixel size should ideally be below 0.1538 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 4.65% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
! Estimated beam: bmin=0.6586 mas, bmaj=1.191 mas, bpa=-1.503 degrees
! Estimated noise=298.087 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6586 x 1.191 at -1.503 degrees (North through East)
! Clean map  min=-0.0014907  max=0.35246 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 4.65% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
! Estimated beam: bmin=0.5382 mas, bmaj=0.949 mas, bpa=-3.15 degrees
! Estimated noise=738.889 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.260196 Jy
! Component: 100  -  total flux cleaned = 0.387604 Jy
! Component: 150  -  total flux cleaned = 0.468262 Jy
! Component: 200  -  total flux cleaned = 0.522076 Jy
! Total flux subtracted in 200 components = 0.522076 Jy
! Clean residual min=-0.007152 max=0.029409 Jy/beam
! Clean residual mean=0.000293 rms=0.002894 Jy/beam
! Combined flux in latest and established models = 0.522076 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 13 model components to the UV plane model.
! The established model now contains 13 components and 0.522076 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 4.65% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
! Estimated beam: bmin=0.6586 mas, bmaj=1.191 mas, bpa=-1.503 degrees
! Estimated noise=298.087 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.0626281 Jy
! Component: 100  -  total flux cleaned = 0.0979598 Jy
! Component: 150  -  total flux cleaned = 0.11954 Jy
! Component: 200  -  total flux cleaned = 0.133327 Jy
! Total flux subtracted in 200 components = 0.133327 Jy
! Clean residual min=-0.002432 max=0.007462 Jy/beam
! Clean residual mean=0.000396 rms=0.001186 Jy/beam
! Combined flux in latest and established models = 0.655403 Jy
! Adding 37 model components to the UV plane model.
! The established model now contains 39 components and 0.655403 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.65% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
! Added new window around map position (0.6, 0.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00911614 Jy
! Component: 100  -  total flux cleaned = 0.0152275 Jy
! Component: 150  -  total flux cleaned = 0.0194926 Jy
! Component: 200  -  total flux cleaned = 0.0226623 Jy
! Total flux subtracted in 200 components = 0.0226623 Jy
! Clean residual min=-0.001486 max=0.002024 Jy/beam
! Clean residual mean=0.000167 rms=0.000500 Jy/beam
! Combined flux in latest and established models = 0.678065 Jy
! Adding 33 model components to the UV plane model.
! The established model now contains 62 components and 0.678065 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.65% of the data.
!  The x-axis pixel size should ideally be below 0.1538 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 4.65% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
! Estimated beam: bmin=2.264 mas, bmaj=2.649 mas, bpa=-11.51 degrees
! Estimated noise=414.324 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00425571 Jy
! Component: 100  -  total flux cleaned = 0.00646813 Jy
! Component: 150  -  total flux cleaned = 0.007915 Jy
! Component: 200  -  total flux cleaned = 0.00890109 Jy
! Total flux subtracted in 200 components = 0.00890109 Jy
! Clean residual min=-0.001410 max=0.002057 Jy/beam
! Clean residual mean=0.000226 rms=0.000526 Jy/beam
! Combined flux in latest and established models = 0.686966 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.000403469 Jy
! Component: 100  -  total flux cleaned = 0.00067364 Jy
! Component: 150  -  total flux cleaned = 0.000804211 Jy
! Component: 200  -  total flux cleaned = 0.000900524 Jy
! Total flux subtracted in 200 components = 0.000900524 Jy
! Clean residual min=-0.001397 max=0.002060 Jy/beam
! Clean residual mean=0.000199 rms=0.000511 Jy/beam
! Combined flux in latest and established models = 0.687867 Jy
! Adding 44 model components to the UV plane model.
! The established model now contains 98 components and 0.687867 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.65% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 4.65% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
! Estimated beam: bmin=0.6586 mas, bmaj=1.191 mas, bpa=-1.503 degrees
! Estimated noise=298.087 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000251564 Jy
! Component: 100  -  total flux cleaned = 7.8108e-05 Jy
! Component: 150  -  total flux cleaned = 7.76912e-07 Jy
! Component: 200  -  total flux cleaned = -3.2629e-05 Jy
! Total flux subtracted in 200 components = -3.2629e-05 Jy
! Clean residual min=-0.001394 max=0.001529 Jy/beam
! Clean residual mean=0.000064 rms=0.000401 Jy/beam
! Combined flux in latest and established models = 0.687834 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 113 components and 0.687834 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.159887Jy  sigma=0.001244
! Fit after  self-cal, rms=0.159840Jy  sigma=0.001244
wmodel J0956+2515_X_2001_04_09_pus_map.mod
! Writing 113 model components to file: J0956+2515_X_2001_04_09_pus_map.mod
wobs J0956+2515_X_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J0956+2515_X_2001_04_09_pus_uvs.fits
wwins J0956+2515_X_2001_04_09_pus_map.win
! wwins: Wrote 5 windows to J0956+2515_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 4.65% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000281174 Jy
! Component: 100  -  total flux cleaned = 0.000481338 Jy
! Component: 150  -  total flux cleaned = 0.000760653 Jy
! Component: 200  -  total flux cleaned = 0.000916627 Jy
! Component: 250  -  total flux cleaned = 0.00104591 Jy
! Component: 300  -  total flux cleaned = 0.00112947 Jy
! Component: 350  -  total flux cleaned = 0.0012718 Jy
! Component: 400  -  total flux cleaned = 0.0013712 Jy
! Component: 450  -  total flux cleaned = 0.00152751 Jy
! Component: 500  -  total flux cleaned = 0.00168052 Jy
! Component: 550  -  total flux cleaned = 0.00179318 Jy
! Component: 600  -  total flux cleaned = 0.00192276 Jy
! Component: 650  -  total flux cleaned = 0.0020869 Jy
! Component: 700  -  total flux cleaned = 0.0021948 Jy
! Component: 750  -  total flux cleaned = 0.00231894 Jy
! Component: 800  -  total flux cleaned = 0.00245875 Jy
! Component: 850  -  total flux cleaned = 0.00256212 Jy
! Component: 900  -  total flux cleaned = 0.0026641 Jy
! Component: 950  -  total flux cleaned = 0.0027649 Jy
! Component: 1000  -  total flux cleaned = 0.0028313 Jy
! Total flux subtracted in 1024 components = 0.00286429 Jy
! Clean residual min=-0.000823 max=0.000843 Jy/beam
! Clean residual mean=0.000042 rms=0.000315 Jy/beam
! Combined flux in latest and established models = 0.690698 Jy
keep
! Adding 80 model components to the UV plane model.
! The established model now contains 193 components and 0.690698 Jy
![Exited script file: muppet]
wmap "J0956+2515_X_2001_04_09_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 4.65% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6586 x 1.191 at -1.503 degrees (North through East)
! Clean map  min=-0.0012296  max=0.35064 Jy/beam
! Writing clean map to FITS file: J0956+2515_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.350638 
invert
! Inverting map 
! Your choice of large map pixels excluded 4.65% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000315959 
device "J0956+2515_X_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J0956+2515_X_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.27033 0.27033 0.540659 1.08132 2.16264 4.32527 8.65055 17.3011 34.6022 69.2044
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0009 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.35 
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.6586 x 1.191 at -1.503 degrees (North through East)
! Clean map  min=-0.0012296  max=0.35064 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0956+2515_X_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J0956+2515_X_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0956+2515_X_2001_04_09_pus_uvs.log closed on Mon Oct  1 14:38:59 2007