! Started logfile: J1719+1745_X_2000_12_04_pus_uvs.log on Mon Oct 15 17:24:42 2007
obs J1719+1745_X_2000_12_04_pus_uva.fits
! Reading UV FITS file: J1719+1745_X_2000_12_04_pus_uva.fits
! AN table 1: 193 integrations on 190 of 190 possible baselines.
! AN table 2: 72 integrations on 190 of 190 possible baselines.
! AN table 3: 69 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.127718 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1719+1745
! 
! 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 2130 lines of history.
! 
! Reading 32420 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 J1719+1745_X_2000_12_04_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 2629 telescope corrections were flagged in sub-array 1.
!  A total of 1251 telescope corrections were flagged in sub-array 2.
!  A total of 959 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 2629 telescope corrections were flagged in sub-array 1.
!  A total of 1251 telescope corrections were flagged in sub-array 2.
!  A total of 959 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 2629 telescope corrections were flagged in sub-array 1.
!  A total of 1250 telescope corrections were flagged in sub-array 2.
!  A total of 959 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 2629 telescope corrections were flagged in sub-array 1.
!  A total of 1251 telescope corrections were flagged in sub-array 2.
!  A total of 959 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.650951Jy  sigma=0.005763
! Fit after  self-cal, rms=0.612264Jy  sigma=0.005503
! 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.49% of the data.
!  The x-axis pixel size should ideally be below 0.1582 milli-arcsec
! Estimated beam: bmin=0.5823 mas, bmaj=1.088 mas, bpa=-7.962 degrees
! Estimated noise=796.125 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.32842 Jy
! Component: 100  -  total flux cleaned = 0.426282 Jy
! Total flux subtracted in 100 components = 0.426282 Jy
! Clean residual min=-0.011593 max=0.043217 Jy/beam
! Clean residual mean=0.000475 rms=0.004065 Jy/beam
! Combined flux in latest and established models = 0.426282 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.426282 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.190712Jy  sigma=0.001542
! Fit after  self-cal, rms=0.190362Jy  sigma=0.001541
! Inverting map 
! Your choice of large map pixels excluded 4.49% of the data.
!  The x-axis pixel size should ideally be below 0.1582 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0459936 Jy
! Component: 100  -  total flux cleaned = 0.0677609 Jy
! Total flux subtracted in 100 components = 0.0677609 Jy
! Clean residual min=-0.008733 max=0.018940 Jy/beam
! Clean residual mean=0.000268 rms=0.002358 Jy/beam
! Combined flux in latest and established models = 0.494043 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 9 components and 0.494043 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.178859Jy  sigma=0.001367
! Fit after  self-cal, rms=0.178658Jy  sigma=0.001366
! Inverting map 
! Your choice of large map pixels excluded 4.49% of the data.
!  The x-axis pixel size should ideally be below 0.1582 milli-arcsec
! Added new window around map position (-0.4, -2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0179035 Jy
! Component: 100  -  total flux cleaned = 0.029453 Jy
! Total flux subtracted in 100 components = 0.029453 Jy
! Clean residual min=-0.007086 max=0.007565 Jy/beam
! Clean residual mean=0.000178 rms=0.001884 Jy/beam
! Combined flux in latest and established models = 0.523496 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 18 components and 0.523496 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.176528Jy  sigma=0.001330
! Fit after  self-cal, rms=0.176319Jy  sigma=0.001329
! Inverting map 
! Your choice of large map pixels excluded 4.49% of the data.
!  The x-axis pixel size should ideally be below 0.1582 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.49% of the data.
!  The x-axis pixel size should ideally be below 0.1582 milli-arcsec
! Estimated beam: bmin=0.6542 mas, bmaj=1.43 mas, bpa=-13.14 degrees
! Estimated noise=437.506 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.0142494 Jy
! Component: 100  -  total flux cleaned = 0.0234591 Jy
! Component: 150  -  total flux cleaned = 0.0297519 Jy
! Component: 200  -  total flux cleaned = 0.0341282 Jy
! Total flux subtracted in 200 components = 0.0341282 Jy
! Clean residual min=-0.004677 max=0.005257 Jy/beam
! Clean residual mean=0.000264 rms=0.001222 Jy/beam
! Combined flux in latest and established models = 0.557625 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 34 components and 0.557625 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.175286Jy  sigma=0.001310
! Fit after  self-cal, rms=0.175161Jy  sigma=0.001309
! Inverting map 
! Your choice of large map pixels excluded 4.49% of the data.
!  The x-axis pixel size should ideally be below 0.1582 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 138 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.03     KP        1.02     
!   LA        1.00     MA        1.01     MC        1.08     MK        1.01     
!   NL        1.00     NY        1.01     OV        0.98     PT        1.00     
!   SC        1.00     TS        1.00*    WF        1.00     WZ        0.98     
! 
!  A total of 123 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.16     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.77     KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        0.96     
!   NL        1.00*    NY        0.99     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        0.91     WF        1.00*    WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.00*    KP        0.97     
!   LA        1.00     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        1.00     NY        1.02     OV        0.97     PT        1.01     
!   SC        1.08     TS        1.00*    WF        0.99     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 138 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.03     KP        1.01     
!   LA        0.99     MA        1.08     MC        1.10     MK        1.02     
!   NL        0.95     NY        0.99     OV        0.99     PT        1.00     
!   SC        1.00     TS        1.00*    WF        0.99     WZ        1.00     
! 
!  A total of 123 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.08     KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        1.02     
!   NL        1.00*    NY        1.06     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        0.88     WF        1.00*    WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.02     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.00*    KP        0.97     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        1.01     
!   NL        0.96     NY        0.99     OV        0.97     PT        1.01     
!   SC        1.13     TS        1.00*    WF        0.98     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 138 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.03     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.00     KP        1.02     
!   LA        1.00     MA        1.08     MC        1.11     MK        1.03     
!   NL        0.95     NY        1.03     OV        0.95     PT        0.98     
!   SC        1.02     TS        1.00*    WF        0.99     WZ        1.01     
! 
!  A total of 120 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.17     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.94     KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        1.00     
!   NL        1.00*    NY        1.00     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        0.92     WF        1.00*    WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.06     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.00*    KP        0.98     
!   LA        1.00     MA        1.00*    MC        1.00*    MK        0.99     
!   NL        0.95     NY        1.02     OV        0.94     PT        0.97     
!   SC        1.10     TS        1.00*    WF        0.97     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 138 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.02     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.01     KP        1.02     
!   LA        0.99     MA        1.10     MC        1.13     MK        1.00     
!   NL        0.96     NY        1.02     OV        0.95     PT        0.97     
!   SC        1.01     TS        1.00*    WF        0.99     WZ        0.99     
! 
!  A total of 123 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.08     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.33     KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        0.90     
!   NL        1.00*    NY        1.00     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        0.97     WF        1.00*    WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.02     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.95     KK        1.00*    KP        0.96     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        0.99     
!   NL        0.97     NY        1.01     OV        0.98     PT        0.97     
!   SC        1.10     TS        1.00*    WF        0.99     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.175161Jy  sigma=0.001309
! Fit after  self-cal, rms=0.177703Jy  sigma=0.001299
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 4.37% of the data.
!  The x-axis pixel size should ideally be below 0.1582 milli-arcsec
! Estimated beam: bmin=0.6584 mas, bmaj=1.459 mas, bpa=-13.86 degrees
! Estimated noise=441.483 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.00344979 Jy
! Component: 100  -  total flux cleaned = 0.00440652 Jy
! Component: 150  -  total flux cleaned = 0.00450033 Jy
! Component: 200  -  total flux cleaned = 0.00443918 Jy
! Total flux subtracted in 200 components = 0.00443918 Jy
! Clean residual min=-0.002224 max=0.003018 Jy/beam
! Clean residual mean=0.000105 rms=0.000676 Jy/beam
! Combined flux in latest and established models = 0.562064 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 42 components and 0.562064 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177560Jy  sigma=0.001298
! Fit after  self-cal, rms=0.177612Jy  sigma=0.001297
! Inverting map 
! Your choice of large map pixels excluded 4.37% of the data.
!  The x-axis pixel size should ideally be below 0.1582 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.177612Jy  sigma=0.001297
! Fit after  self-cal, rms=0.178041Jy  sigma=0.001297
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.37% of the data.
!  The x-axis pixel size should ideally be below 0.1582 milli-arcsec
! Estimated beam: bmin=0.659 mas, bmaj=1.461 mas, bpa=-13.84 degrees
! Estimated noise=441.394 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 6.58598e-05 Jy
! Component: 100  -  total flux cleaned = 0.000176882 Jy
! Component: 150  -  total flux cleaned = 0.000133423 Jy
! Component: 200  -  total flux cleaned = 0.000136335 Jy
! Total flux subtracted in 200 components = 0.000136335 Jy
! Clean residual min=-0.002070 max=0.002830 Jy/beam
! Clean residual mean=0.000086 rms=0.000615 Jy/beam
! Combined flux in latest and established models = 0.5622 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 45 components and 0.5622 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177988Jy  sigma=0.001296
! Fit after  self-cal, rms=0.177960Jy  sigma=0.001296
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.37% of the data.
!  The x-axis pixel size should ideally be below 0.1582 milli-arcsec
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (1.2, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00115307 Jy
! Component: 100  -  total flux cleaned = 0.00122909 Jy
! Component: 150  -  total flux cleaned = 0.00145836 Jy
! Component: 200  -  total flux cleaned = 0.00165813 Jy
! Total flux subtracted in 200 components = 0.00165813 Jy
! Clean residual min=-0.001943 max=0.002325 Jy/beam
! Clean residual mean=0.000074 rms=0.000579 Jy/beam
! Combined flux in latest and established models = 0.563858 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 57 components and 0.563858 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177905Jy  sigma=0.001296
! Fit after  self-cal, rms=0.177896Jy  sigma=0.001296
! Inverting map 
! Your choice of large map pixels excluded 4.37% of the data.
!  The x-axis pixel size should ideally be below 0.1582 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.177896Jy  sigma=0.001296
! Fit after  self-cal, rms=0.178130Jy  sigma=0.001296
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.37% of the data.
!  The x-axis pixel size should ideally be below 0.1582 milli-arcsec
! Estimated beam: bmin=0.6595 mas, bmaj=1.462 mas, bpa=-13.83 degrees
! Estimated noise=441.257 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.51962e-05 Jy
! Component: 100  -  total flux cleaned = 0.000407293 Jy
! Component: 150  -  total flux cleaned = 0.000575864 Jy
! Component: 200  -  total flux cleaned = 0.000651038 Jy
! Total flux subtracted in 200 components = 0.000651038 Jy
! Clean residual min=-0.001956 max=0.002276 Jy/beam
! Clean residual mean=0.000042 rms=0.000554 Jy/beam
! Combined flux in latest and established models = 0.564509 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 62 components and 0.564509 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.178102Jy  sigma=0.001295
! Fit after  self-cal, rms=0.178098Jy  sigma=0.001295
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.37% of the data.
!  The x-axis pixel size should ideally be below 0.1582 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 = -6.8298e-05 Jy
! Component: 100  -  total flux cleaned = 7.0952e-05 Jy
! Component: 150  -  total flux cleaned = 0.00016396 Jy
! Component: 200  -  total flux cleaned = 0.000249767 Jy
! Total flux subtracted in 200 components = 0.000249767 Jy
! Clean residual min=-0.001955 max=0.002246 Jy/beam
! Clean residual mean=0.000041 rms=0.000546 Jy/beam
! Combined flux in latest and established models = 0.564759 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 67 components and 0.564759 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.178081Jy  sigma=0.001295
! Fit after  self-cal, rms=0.178076Jy  sigma=0.001295
! Inverting map 
! Your choice of large map pixels excluded 4.37% of the data.
!  The x-axis pixel size should ideally be below 0.1582 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.178076Jy  sigma=0.001295
! Fit after  self-cal, rms=0.178183Jy  sigma=0.001295
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.37% of the data.
!  The x-axis pixel size should ideally be below 0.1582 milli-arcsec
! Estimated beam: bmin=1.876 mas, bmaj=2.867 mas, bpa=-4.334 degrees
! Estimated noise=634.7 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000461783 Jy
! Component: 100  -  total flux cleaned = 0.000356082 Jy
! Component: 150  -  total flux cleaned = 0.000355076 Jy
! Component: 200  -  total flux cleaned = 0.000354558 Jy
! Total flux subtracted in 200 components = 0.000354558 Jy
! Clean residual min=-0.001577 max=0.002539 Jy/beam
! Clean residual mean=0.000092 rms=0.000630 Jy/beam
! Combined flux in latest and established models = 0.565113 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 76 components and 0.565113 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.178176Jy  sigma=0.001295
! Fit after  self-cal, rms=0.178176Jy  sigma=0.001295
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.37% of the data.
!  The x-axis pixel size should ideally be below 0.1582 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 = -3.05993e-05 Jy
! Component: 100  -  total flux cleaned = -1.74236e-05 Jy
! Component: 150  -  total flux cleaned = -6.33011e-06 Jy
! Component: 200  -  total flux cleaned = 4.14547e-06 Jy
! Total flux subtracted in 200 components = 4.14547e-06 Jy
! Clean residual min=-0.001597 max=0.002533 Jy/beam
! Clean residual mean=0.000092 rms=0.000627 Jy/beam
! Combined flux in latest and established models = 0.565117 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 78 components and 0.565117 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.178176Jy  sigma=0.001295
! Fit after  self-cal, rms=0.178175Jy  sigma=0.001295
! Inverting map 
! Your choice of large map pixels excluded 4.37% of the data.
!  The x-axis pixel size should ideally be below 0.1582 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.37% of the data.
!  The x-axis pixel size should ideally be below 0.1582 milli-arcsec
! Estimated beam: bmin=0.6597 mas, bmaj=1.462 mas, bpa=-13.83 degrees
! Estimated noise=441.172 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6597 x 1.462 at -13.83 degrees (North through East)
! Clean map  min=-0.0015804  max=0.43077 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.37% of the data.
!  The x-axis pixel size should ideally be below 0.1582 milli-arcsec
! Estimated beam: bmin=0.5925 mas, bmaj=1.112 mas, bpa=-9.884 degrees
! Estimated noise=801.112 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.328586 Jy
! Component: 100  -  total flux cleaned = 0.425005 Jy
! Component: 150  -  total flux cleaned = 0.470261 Jy
! Component: 200  -  total flux cleaned = 0.496115 Jy
! Total flux subtracted in 200 components = 0.496115 Jy
! Clean residual min=-0.004910 max=0.013289 Jy/beam
! Clean residual mean=0.000236 rms=0.001820 Jy/beam
! Combined flux in latest and established models = 0.496115 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 10 model components to the UV plane model.
! The established model now contains 10 components and 0.496115 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 4.37% of the data.
!  The x-axis pixel size should ideally be below 0.1582 milli-arcsec
! Estimated beam: bmin=0.6597 mas, bmaj=1.462 mas, bpa=-13.83 degrees
! Estimated noise=441.172 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.0228997 Jy
! Component: 100  -  total flux cleaned = 0.0367138 Jy
! Component: 150  -  total flux cleaned = 0.0457978 Jy
! Component: 200  -  total flux cleaned = 0.0519958 Jy
! Total flux subtracted in 200 components = 0.0519958 Jy
! Clean residual min=-0.002541 max=0.004284 Jy/beam
! Clean residual mean=0.000163 rms=0.000830 Jy/beam
! Combined flux in latest and established models = 0.548111 Jy
! Adding 29 model components to the UV plane model.
! The established model now contains 32 components and 0.54811 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.37% of the data.
!  The x-axis pixel size should ideally be below 0.1582 milli-arcsec
! Added new window around map position (-0.8, 0.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00474497 Jy
! Component: 100  -  total flux cleaned = 0.008132 Jy
! Component: 150  -  total flux cleaned = 0.0106642 Jy
! Component: 200  -  total flux cleaned = 0.0125974 Jy
! Total flux subtracted in 200 components = 0.0125974 Jy
! Clean residual min=-0.002159 max=0.002699 Jy/beam
! Clean residual mean=0.000062 rms=0.000577 Jy/beam
! Combined flux in latest and established models = 0.560708 Jy
! Adding 27 model components to the UV plane model.
! The established model now contains 52 components and 0.560708 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.37% of the data.
!  The x-axis pixel size should ideally be below 0.1582 milli-arcsec
! Added new window around map position (-0.4, -5.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00256154 Jy
! Component: 100  -  total flux cleaned = 0.00364672 Jy
! Component: 150  -  total flux cleaned = 0.00432536 Jy
! Component: 200  -  total flux cleaned = 0.00479401 Jy
! Total flux subtracted in 200 components = 0.00479401 Jy
! Clean residual min=-0.002004 max=0.001899 Jy/beam
! Clean residual mean=0.000019 rms=0.000532 Jy/beam
! Combined flux in latest and established models = 0.565502 Jy
! Adding 27 model components to the UV plane model.
! The established model now contains 68 components and 0.565502 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.37% of the data.
!  The x-axis pixel size should ideally be below 0.1582 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.37% of the data.
!  The x-axis pixel size should ideally be below 0.1582 milli-arcsec
! Estimated beam: bmin=1.876 mas, bmaj=2.867 mas, bpa=-4.334 degrees
! Estimated noise=634.7 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00157992 Jy
! Component: 100  -  total flux cleaned = 0.00257523 Jy
! Component: 150  -  total flux cleaned = 0.00299872 Jy
! Component: 200  -  total flux cleaned = 0.00315503 Jy
! Total flux subtracted in 200 components = 0.00315503 Jy
! Clean residual min=-0.001715 max=0.001979 Jy/beam
! Clean residual mean=-0.000027 rms=0.000557 Jy/beam
! Combined flux in latest and established models = 0.568657 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.000113212 Jy
! Component: 100  -  total flux cleaned = 0.000163944 Jy
! Component: 150  -  total flux cleaned = 0.00018001 Jy
! Component: 200  -  total flux cleaned = 0.00019506 Jy
! Total flux subtracted in 200 components = 0.00019506 Jy
! Clean residual min=-0.001705 max=0.001993 Jy/beam
! Clean residual mean=-0.000033 rms=0.000551 Jy/beam
! Combined flux in latest and established models = 0.568852 Jy
! Adding 22 model components to the UV plane model.
! The established model now contains 87 components and 0.568852 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.37% of the data.
!  The x-axis pixel size should ideally be below 0.1582 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 4.37% of the data.
!  The x-axis pixel size should ideally be below 0.1582 milli-arcsec
! Estimated beam: bmin=0.6597 mas, bmaj=1.462 mas, bpa=-13.83 degrees
! Estimated noise=441.172 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000672426 Jy
! Component: 100  -  total flux cleaned = -0.000592716 Jy
! Component: 150  -  total flux cleaned = -0.000593809 Jy
! Component: 200  -  total flux cleaned = -0.000628014 Jy
! Total flux subtracted in 200 components = -0.000628014 Jy
! Clean residual min=-0.002026 max=0.001865 Jy/beam
! Clean residual mean=-0.000005 rms=0.000510 Jy/beam
! Combined flux in latest and established models = 0.568224 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 98 components and 0.568224 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.178256Jy  sigma=0.001295
! Fit after  self-cal, rms=0.178233Jy  sigma=0.001295
wmodel J1719+1745_X_2000_12_04_pus_map.mod
! Writing 98 model components to file: J1719+1745_X_2000_12_04_pus_map.mod
wobs J1719+1745_X_2000_12_04_pus_uvs.fits
! Writing UV FITS file: J1719+1745_X_2000_12_04_pus_uvs.fits
wwins J1719+1745_X_2000_12_04_pus_map.win
! wwins: Wrote 5 windows to J1719+1745_X_2000_12_04_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.37% of the data.
!  The x-axis pixel size should ideally be below 0.1582 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000294641 Jy
! Component: 100  -  total flux cleaned = -0.000325766 Jy
! Component: 150  -  total flux cleaned = -0.000414389 Jy
! Component: 200  -  total flux cleaned = -0.000529391 Jy
! Component: 250  -  total flux cleaned = -0.000697381 Jy
! Component: 300  -  total flux cleaned = -0.000915406 Jy
! Component: 350  -  total flux cleaned = -0.00102203 Jy
! Component: 400  -  total flux cleaned = -0.0011011 Jy
! Component: 450  -  total flux cleaned = -0.00123067 Jy
! Component: 500  -  total flux cleaned = -0.00128166 Jy
! Component: 550  -  total flux cleaned = -0.00138204 Jy
! Component: 600  -  total flux cleaned = -0.0014805 Jy
! Component: 650  -  total flux cleaned = -0.00150458 Jy
! Component: 700  -  total flux cleaned = -0.00160048 Jy
! Component: 750  -  total flux cleaned = -0.00167141 Jy
! Component: 800  -  total flux cleaned = -0.00176519 Jy
! Component: 850  -  total flux cleaned = -0.00183506 Jy
! Component: 900  -  total flux cleaned = -0.00194939 Jy
! Component: 950  -  total flux cleaned = -0.00210759 Jy
! Component: 1000  -  total flux cleaned = -0.00221888 Jy
! Total flux subtracted in 1024 components = -0.00221878 Jy
! Clean residual min=-0.001255 max=0.001262 Jy/beam
! Clean residual mean=0.000006 rms=0.000433 Jy/beam
! Combined flux in latest and established models = 0.566005 Jy
keep
! Adding 73 model components to the UV plane model.
! The established model now contains 171 components and 0.566005 Jy
![Exited script file: muppet]
wmap "J1719+1745_X_2000_12_04_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 4.37% of the data.
!  The x-axis pixel size should ideally be below 0.1582 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6597 x 1.462 at -13.83 degrees (North through East)
! Clean map  min=-0.0016673  max=0.43152 Jy/beam
! Writing clean map to FITS file: J1719+1745_X_2000_12_04_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.431515 
invert
! Inverting map 
! Your choice of large map pixels excluded 4.37% of the data.
!  The x-axis pixel size should ideally be below 0.1582 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000433818 
device "J1719+1745_X_2000_12_04_pus\_map.eps/VPS"
! Attempting to open device: 'J1719+1745_X_2000_12_04_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.301601 0.301601 0.603202 1.2064 2.41281 4.82562 9.65124 19.3025 38.6049 77.2099
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0013 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.431 
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.6597 x 1.462 at -13.83 degrees (North through East)
! Clean map  min=-0.0016673  max=0.43152 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1719+1745_X_2000_12_04_pus\_map.gif/vgif"
! Attempting to open device: 'J1719+1745_X_2000_12_04_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1719+1745_X_2000_12_04_pus_uvs.log closed on Mon Oct 15 17:25:01 2007