! Started logfile: J1745+1720_X_1999_05_10_pus_uvs.log on Tue Jan 15 17:43:05 2008
obs J1745+1720_X_1999_05_10_pus_uva.fits
! Reading UV FITS file: J1745+1720_X_1999_05_10_pus_uva.fits
! AN table 1: 105 integrations on 153 of 153 possible baselines.
! AN table 2: 77 integrations on 153 of 153 possible baselines.
! AN table 3: 188 integrations on 153 of 153 possible baselines.
! AN table 4: 70 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.144578 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1745+1720
! 
! 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 38932 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 J1745+1720_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 1624 telescope corrections were flagged in sub-array 1.
!  A total of 1246 telescope corrections were flagged in sub-array 2.
!  A total of 1821 telescope corrections were flagged in sub-array 3.
!  A total of 798 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1627 telescope corrections were flagged in sub-array 1.
!  A total of 1246 telescope corrections were flagged in sub-array 2.
!  A total of 1808 telescope corrections were flagged in sub-array 3.
!  A total of 732 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1569 telescope corrections were flagged in sub-array 1.
!  A total of 1246 telescope corrections were flagged in sub-array 2.
!  A total of 1808 telescope corrections were flagged in sub-array 3.
!  A total of 732 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1569 telescope corrections were flagged in sub-array 1.
!  A total of 1246 telescope corrections were flagged in sub-array 2.
!  A total of 1928 telescope corrections were flagged in sub-array 3.
!  A total of 732 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.834878Jy  sigma=0.006515
! Fit after  self-cal, rms=0.684926Jy  sigma=0.005361
! 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 8.05% of the data.
!  The x-axis pixel size should ideally be below 0.1617 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1698 milli-arcsec
! Estimated beam: bmin=0.5683 mas, bmaj=0.9348 mas, bpa=-0.3604 degrees
! Estimated noise=996.227 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.27805 Jy
! Component: 100  -  total flux cleaned = 0.383588 Jy
! Total flux subtracted in 100 components = 0.383588 Jy
! Clean residual min=-0.015416 max=0.050146 Jy/beam
! Clean residual mean=0.000912 rms=0.005764 Jy/beam
! Combined flux in latest and established models = 0.383588 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 0.383588 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.229639Jy  sigma=0.001658
! Fit after  self-cal, rms=0.228302Jy  sigma=0.001650
! Inverting map 
! Your choice of large map pixels excluded 8.05% of the data.
!  The x-axis pixel size should ideally be below 0.1617 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1698 milli-arcsec
! Added new window around map position (0.4, -1).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0588609 Jy
! Component: 100  -  total flux cleaned = 0.0935443 Jy
! Total flux subtracted in 100 components = 0.0935443 Jy
! Clean residual min=-0.010083 max=0.022997 Jy/beam
! Clean residual mean=0.000593 rms=0.003429 Jy/beam
! Combined flux in latest and established models = 0.477132 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 21 components and 0.477132 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.211879Jy  sigma=0.001362
! Fit after  self-cal, rms=0.211423Jy  sigma=0.001357
! Inverting map 
! Your choice of large map pixels excluded 8.05% of the data.
!  The x-axis pixel size should ideally be below 0.1617 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1698 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0254131 Jy
! Component: 100  -  total flux cleaned = 0.0427675 Jy
! Total flux subtracted in 100 components = 0.0427675 Jy
! Clean residual min=-0.008005 max=0.017197 Jy/beam
! Clean residual mean=0.000445 rms=0.002686 Jy/beam
! Combined flux in latest and established models = 0.5199 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 30 components and 0.5199 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.207696Jy  sigma=0.001283
! Fit after  self-cal, rms=0.207492Jy  sigma=0.001281
! Inverting map 
! Your choice of large map pixels excluded 8.05% of the data.
!  The x-axis pixel size should ideally be below 0.1617 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1698 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 8.05% of the data.
!  The x-axis pixel size should ideally be below 0.1617 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1698 milli-arcsec
! Estimated beam: bmin=0.6984 mas, bmaj=1.124 mas, bpa=-3.235 degrees
! Estimated noise=465.275 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.0243778 Jy
! Component: 100  -  total flux cleaned = 0.0383764 Jy
! Component: 150  -  total flux cleaned = 0.0471697 Jy
! Component: 200  -  total flux cleaned = 0.0527219 Jy
! Total flux subtracted in 200 components = 0.0527219 Jy
! Clean residual min=-0.007594 max=0.010768 Jy/beam
! Clean residual mean=0.000894 rms=0.002621 Jy/beam
! Combined flux in latest and established models = 0.572622 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 38 components and 0.572622 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.205400Jy  sigma=0.001240
! Fit after  self-cal, rms=0.205110Jy  sigma=0.001237
! Inverting map 
! Your choice of large map pixels excluded 8.05% of the data.
!  The x-axis pixel size should ideally be below 0.1617 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1698 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 102 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        0.75     HH        1.00*    
!   HN        1.00*    KK        0.95     KP        1.00*    LA        0.94     
!   MC        1.00*    MK        0.90     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.85     PT        1.00     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.07     HH        1.00*    
!   HN        1.00*    KK        0.93     KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        0.92     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.96     PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        1.00     GC        1.27     HH        0.98     
!   HN        1.00     KK        1.00*    KP        0.97     LA        0.95     
!   MC        0.95     MK        1.00*    NL        1.06     NY        0.95     
!   ON        1.10     OV        1.02     PT        1.01     SC        1.11     
!   WF        1.07     WZ        0.97     
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.98     GC        0.99     HH        1.00*    
!   HN        0.99     KK        0.95     KP        0.97     LA        0.93     
!   MC        1.00*    MK        0.97     NL        1.02     NY        0.98     
!   ON        1.00*    OV        0.99     PT        1.02     SC        1.06     
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 99 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        0.65     HH        1.00*    
!   HN        1.00*    KK        0.94     KP        1.00*    LA        0.97     
!   MC        1.00*    MK        0.93     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.96     PT        0.90     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        0.94     HH        1.00*    
!   HN        1.00*    KK        0.98     KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        0.90     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.05     PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.99     GC        1.23     HH        1.06     
!   HN        1.01     KK        1.00*    KP        0.98     LA        0.94     
!   MC        0.95     MK        1.00*    NL        1.00     NY        0.96     
!   ON        1.11     OV        1.01     PT        0.93     SC        1.07     
!   WF        1.05     WZ        1.92     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.00     GC        1.01     HH        1.00*    
!   HN        0.95     KK        0.96     KP        1.00     LA        0.93     
!   MC        1.00*    MK        0.96     NL        0.98     NY        0.93     
!   ON        1.00*    OV        0.97     PT        0.94     SC        1.05     
!   WF        1.01     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 141 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        0.77     HH        1.00*    
!   HN        1.00*    KK        1.10     KP        1.00*    LA        0.92     
!   MC        1.00*    MK        0.88     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.95     PT        0.99     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.12     HH        1.00*    
!   HN        1.00*    KK        1.05     KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        0.91     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.92     PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.04     GC        1.27     HH        1.06     
!   HN        1.02     KK        1.00*    KP        1.01     LA        0.96     
!   MC        0.99     MK        1.00*    NL        1.03     NY        1.03     
!   ON        1.11     OV        1.05     PT        0.94     SC        1.14     
!   WF        1.04     WZ        1.05     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.02     GC        0.99     HH        1.00*    
!   HN        1.00     KK        1.03     KP        1.01     LA        0.95     
!   MC        1.00*    MK        0.98     NL        1.00     NY        1.05     
!   ON        1.00*    OV        0.99     PT        0.95     SC        1.05     
!   WF        1.02     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 141 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        0.83     HH        1.00*    
!   HN        1.00*    KK        1.01     KP        1.00*    LA        0.97     
!   MC        1.00*    MK        0.93     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.97     PT        0.94     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        0.93     HH        1.00*    
!   HN        1.00*    KK        1.06     KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        0.94     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.10     PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.01     GC        1.26     HH        1.14     
!   HN        1.02     KK        1.00*    KP        1.01     LA        0.97     
!   MC        1.10     MK        1.00*    NL        1.03     NY        1.12     
!   ON        1.23     OV        1.03     PT        0.98     SC        1.22     
!   WF        1.00     WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.98     GC        0.96     HH        1.00*    
!   HN        1.00     KK        0.99     KP        0.98     LA        0.96     
!   MC        1.00*    MK        1.02     NL        0.99     NY        1.17     
!   ON        1.00*    OV        0.99     PT        0.98     SC        0.98     
!   WF        1.02     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.205110Jy  sigma=0.001237
! Fit after  self-cal, rms=0.228484Jy  sigma=0.001201
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 8.19% of the data.
!  The x-axis pixel size should ideally be below 0.1617 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1698 milli-arcsec
! Estimated beam: bmin=0.6982 mas, bmaj=1.153 mas, bpa=-3.131 degrees
! Estimated noise=476.577 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.00086582 Jy
! Component: 100  -  total flux cleaned = -0.00175653 Jy
! Component: 150  -  total flux cleaned = -0.00224235 Jy
! Component: 200  -  total flux cleaned = -0.00232938 Jy
! Total flux subtracted in 200 components = -0.00232938 Jy
! Clean residual min=-0.004456 max=0.007326 Jy/beam
! Clean residual mean=0.000699 rms=0.001643 Jy/beam
! Combined flux in latest and established models = 0.570292 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 43 components and 0.570292 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.228343Jy  sigma=0.001200
! Fit after  self-cal, rms=0.229103Jy  sigma=0.001199
! Inverting map 
! Your choice of large map pixels excluded 8.19% of the data.
!  The x-axis pixel size should ideally be below 0.1617 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1698 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.229103Jy  sigma=0.001199
! Fit after  self-cal, rms=0.228144Jy  sigma=0.001195
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 8.19% of the data.
!  The x-axis pixel size should ideally be below 0.1617 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1698 milli-arcsec
! Estimated beam: bmin=0.6971 mas, bmaj=1.136 mas, bpa=-2.306 degrees
! Estimated noise=475.328 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00110369 Jy
! Component: 100  -  total flux cleaned = -0.00156841 Jy
! Component: 150  -  total flux cleaned = -0.00172405 Jy
! Component: 200  -  total flux cleaned = -0.00185926 Jy
! Total flux subtracted in 200 components = -0.00185926 Jy
! Clean residual min=-0.004007 max=0.007237 Jy/beam
! Clean residual mean=0.000629 rms=0.001579 Jy/beam
! Combined flux in latest and established models = 0.568433 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 48 components and 0.568433 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.228038Jy  sigma=0.001195
! Fit after  self-cal, rms=0.228080Jy  sigma=0.001194
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 8.19% of the data.
!  The x-axis pixel size should ideally be below 0.1617 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1698 milli-arcsec
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (1.6, -6.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00730984 Jy
! Component: 100  -  total flux cleaned = 0.0114634 Jy
! Component: 150  -  total flux cleaned = 0.0137479 Jy
! Component: 200  -  total flux cleaned = 0.0147939 Jy
! Total flux subtracted in 200 components = 0.0147939 Jy
! Clean residual min=-0.003634 max=0.005188 Jy/beam
! Clean residual mean=0.000313 rms=0.001209 Jy/beam
! Combined flux in latest and established models = 0.583227 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 70 components and 0.583227 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227869Jy  sigma=0.001191
! Fit after  self-cal, rms=0.227869Jy  sigma=0.001190
! Inverting map 
! Your choice of large map pixels excluded 8.19% of the data.
!  The x-axis pixel size should ideally be below 0.1617 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1698 milli-arcsec
! Added new window around map position (5.4, -9.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00486427 Jy
! Component: 100  -  total flux cleaned = 0.00713225 Jy
! Component: 150  -  total flux cleaned = 0.00864082 Jy
! Component: 200  -  total flux cleaned = 0.00975271 Jy
! Total flux subtracted in 200 components = 0.00975271 Jy
! Clean residual min=-0.004040 max=0.003949 Jy/beam
! Clean residual mean=0.000093 rms=0.001031 Jy/beam
! Combined flux in latest and established models = 0.59298 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 83 components and 0.59298 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227769Jy  sigma=0.001189
! Fit after  self-cal, rms=0.227733Jy  sigma=0.001188
! Inverting map 
! Your choice of large map pixels excluded 8.19% of the data.
!  The x-axis pixel size should ideally be below 0.1617 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1698 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.227733Jy  sigma=0.001188
! Fit after  self-cal, rms=0.227696Jy  sigma=0.001187
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 8.19% of the data.
!  The x-axis pixel size should ideally be below 0.1617 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1698 milli-arcsec
! Estimated beam: bmin=0.6961 mas, bmaj=1.133 mas, bpa=-2.093 degrees
! Estimated noise=474.368 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00188367 Jy
! Component: 100  -  total flux cleaned = 0.00305419 Jy
! Component: 150  -  total flux cleaned = 0.00410672 Jy
! Component: 200  -  total flux cleaned = 0.00480408 Jy
! Total flux subtracted in 200 components = 0.00480408 Jy
! Clean residual min=-0.003310 max=0.003847 Jy/beam
! Clean residual mean=0.000199 rms=0.000906 Jy/beam
! Combined flux in latest and established models = 0.597784 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 88 components and 0.597784 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227620Jy  sigma=0.001187
! Fit after  self-cal, rms=0.227631Jy  sigma=0.001186
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 8.19% of the data.
!  The x-axis pixel size should ideally be below 0.1617 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1698 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 (4, -5.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00370064 Jy
! Component: 100  -  total flux cleaned = 0.0048945 Jy
! Component: 150  -  total flux cleaned = 0.005487 Jy
! Component: 200  -  total flux cleaned = 0.00582966 Jy
! Total flux subtracted in 200 components = 0.00582966 Jy
! Clean residual min=-0.003269 max=0.003376 Jy/beam
! Clean residual mean=0.000073 rms=0.000801 Jy/beam
! Combined flux in latest and established models = 0.603613 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 104 components and 0.603613 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227575Jy  sigma=0.001186
! Fit after  self-cal, rms=0.227567Jy  sigma=0.001185
! Inverting map 
! Your choice of large map pixels excluded 8.19% of the data.
!  The x-axis pixel size should ideally be below 0.1617 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1698 milli-arcsec
! Added new window around map position (1.4, -2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00364618 Jy
! Component: 100  -  total flux cleaned = 0.00393186 Jy
! Component: 150  -  total flux cleaned = 0.00401168 Jy
! Component: 200  -  total flux cleaned = 0.00408595 Jy
! Total flux subtracted in 200 components = 0.00408595 Jy
! Clean residual min=-0.003298 max=0.002785 Jy/beam
! Clean residual mean=0.000005 rms=0.000754 Jy/beam
! Combined flux in latest and established models = 0.607699 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 115 components and 0.607699 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227458Jy  sigma=0.001185
! Fit after  self-cal, rms=0.227442Jy  sigma=0.001185
! Inverting map 
! Your choice of large map pixels excluded 8.19% of the data.
!  The x-axis pixel size should ideally be below 0.1617 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1698 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.227442Jy  sigma=0.001185
! Fit after  self-cal, rms=0.227185Jy  sigma=0.001184
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 8.19% of the data.
!  The x-axis pixel size should ideally be below 0.1617 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1698 milli-arcsec
! Estimated beam: bmin=2.245 mas, bmaj=2.873 mas, bpa=-29.75 degrees
! Estimated noise=615.827 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00137411 Jy
! Component: 100  -  total flux cleaned = 0.0021928 Jy
! Component: 150  -  total flux cleaned = 0.00293237 Jy
! Component: 200  -  total flux cleaned = 0.00354329 Jy
! Total flux subtracted in 200 components = 0.00354329 Jy
! Clean residual min=-0.001930 max=0.002283 Jy/beam
! Clean residual mean=0.000159 rms=0.000720 Jy/beam
! Combined flux in latest and established models = 0.611243 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 137 components and 0.611243 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227183Jy  sigma=0.001184
! Fit after  self-cal, rms=0.227170Jy  sigma=0.001184
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 8.19% of the data.
!  The x-axis pixel size should ideally be below 0.1617 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1698 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.000232576 Jy
! Component: 100  -  total flux cleaned = 0.000691733 Jy
! Component: 150  -  total flux cleaned = 0.00109332 Jy
! Component: 200  -  total flux cleaned = 0.00136274 Jy
! Total flux subtracted in 200 components = 0.00136274 Jy
! Clean residual min=-0.002123 max=0.002361 Jy/beam
! Clean residual mean=0.000082 rms=0.000719 Jy/beam
! Combined flux in latest and established models = 0.612605 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 160 components and 0.612605 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227182Jy  sigma=0.001184
! Fit after  self-cal, rms=0.227169Jy  sigma=0.001184
! Inverting map 
! Your choice of large map pixels excluded 8.19% of the data.
!  The x-axis pixel size should ideally be below 0.1617 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1698 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 8.19% of the data.
!  The x-axis pixel size should ideally be below 0.1617 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1698 milli-arcsec
! Estimated beam: bmin=0.6953 mas, bmaj=1.133 mas, bpa=-2.015 degrees
! Estimated noise=473.83 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6953 x 1.133 at -2.015 degrees (North through East)
! Clean map  min=-0.0024991  max=0.33686 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 8.19% of the data.
!  The x-axis pixel size should ideally be below 0.1617 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1698 milli-arcsec
! Estimated beam: bmin=0.5673 mas, bmaj=0.9439 mas, bpa=-0.03831 degrees
! Estimated noise=961.945 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.27885 Jy
! Component: 100  -  total flux cleaned = 0.38768 Jy
! Component: 150  -  total flux cleaned = 0.446348 Jy
! Component: 200  -  total flux cleaned = 0.481655 Jy
! Total flux subtracted in 200 components = 0.481655 Jy
! Clean residual min=-0.007896 max=0.018532 Jy/beam
! Clean residual mean=0.000532 rms=0.002660 Jy/beam
! Combined flux in latest and established models = 0.481655 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 17 model components to the UV plane model.
! The established model now contains 17 components and 0.481655 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 8.19% of the data.
!  The x-axis pixel size should ideally be below 0.1617 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1698 milli-arcsec
! Estimated beam: bmin=0.6953 mas, bmaj=1.133 mas, bpa=-2.015 degrees
! Estimated noise=473.83 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.0363065 Jy
! Component: 100  -  total flux cleaned = 0.0564373 Jy
! Component: 150  -  total flux cleaned = 0.0691434 Jy
! Component: 200  -  total flux cleaned = 0.0788049 Jy
! Total flux subtracted in 200 components = 0.0788049 Jy
! Clean residual min=-0.003519 max=0.005954 Jy/beam
! Clean residual mean=0.001034 rms=0.001683 Jy/beam
! Combined flux in latest and established models = 0.56046 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 46 components and 0.56046 Jy
! Inverting map 
! Your choice of large map pixels excluded 8.19% of the data.
!  The x-axis pixel size should ideally be below 0.1617 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1698 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 8.19% of the data.
!  The x-axis pixel size should ideally be below 0.1617 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1698 milli-arcsec
! Estimated beam: bmin=2.245 mas, bmaj=2.873 mas, bpa=-29.75 degrees
! Estimated noise=615.827 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0157303 Jy
! Component: 100  -  total flux cleaned = 0.0260223 Jy
! Component: 150  -  total flux cleaned = 0.0332193 Jy
! Component: 200  -  total flux cleaned = 0.0383766 Jy
! Total flux subtracted in 200 components = 0.0383766 Jy
! Clean residual min=-0.002616 max=0.003887 Jy/beam
! Clean residual mean=0.000814 rms=0.001195 Jy/beam
! Combined flux in latest and established models = 0.598837 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.00374871 Jy
! Component: 100  -  total flux cleaned = 0.00649852 Jy
! Component: 150  -  total flux cleaned = 0.00853047 Jy
! Component: 200  -  total flux cleaned = 0.0100411 Jy
! Total flux subtracted in 200 components = 0.0100411 Jy
! Clean residual min=-0.002100 max=0.002675 Jy/beam
! Clean residual mean=0.000270 rms=0.000731 Jy/beam
! Combined flux in latest and established models = 0.608878 Jy
! Adding 109 model components to the UV plane model.
! The established model now contains 137 components and 0.608878 Jy
! Inverting map 
! Your choice of large map pixels excluded 8.19% of the data.
!  The x-axis pixel size should ideally be below 0.1617 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1698 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 8.19% of the data.
!  The x-axis pixel size should ideally be below 0.1617 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1698 milli-arcsec
! Estimated beam: bmin=0.6953 mas, bmaj=1.133 mas, bpa=-2.015 degrees
! Estimated noise=473.83 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000576431 Jy
! Component: 100  -  total flux cleaned = 0.000472827 Jy
! Component: 150  -  total flux cleaned = 0.000993185 Jy
! Component: 200  -  total flux cleaned = 0.00122962 Jy
! Total flux subtracted in 200 components = 0.00122962 Jy
! Clean residual min=-0.002756 max=0.002822 Jy/beam
! Clean residual mean=0.000073 rms=0.000730 Jy/beam
! Combined flux in latest and established models = 0.610108 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 153 components and 0.610108 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227149Jy  sigma=0.001185
! Fit after  self-cal, rms=0.227056Jy  sigma=0.001184
wmodel J1745+1720_X_1999_05_10_pus_map.mod
! Writing 153 model components to file: J1745+1720_X_1999_05_10_pus_map.mod
wobs J1745+1720_X_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J1745+1720_X_1999_05_10_pus_uvs.fits
wwins J1745+1720_X_1999_05_10_pus_map.win
! wwins: Wrote 6 windows to J1745+1720_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 8.19% of the data.
!  The x-axis pixel size should ideally be below 0.1617 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1698 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000680277 Jy
! Component: 100  -  total flux cleaned = -0.000918763 Jy
! Component: 150  -  total flux cleaned = -0.000964524 Jy
! Component: 200  -  total flux cleaned = -0.000922879 Jy
! Component: 250  -  total flux cleaned = -0.000882382 Jy
! Component: 300  -  total flux cleaned = -0.000842726 Jy
! Component: 350  -  total flux cleaned = -0.000726697 Jy
! Component: 400  -  total flux cleaned = -0.000651669 Jy
! Component: 450  -  total flux cleaned = -0.000614428 Jy
! Component: 500  -  total flux cleaned = -0.000504967 Jy
! Component: 550  -  total flux cleaned = -0.000361575 Jy
! Component: 600  -  total flux cleaned = -0.000291458 Jy
! Component: 650  -  total flux cleaned = -0.000187487 Jy
! Component: 700  -  total flux cleaned = -0.000119022 Jy
! Component: 750  -  total flux cleaned = -1.7575e-05 Jy
! Component: 800  -  total flux cleaned = 8.23181e-05 Jy
! Component: 850  -  total flux cleaned = 0.000213515 Jy
! Component: 900  -  total flux cleaned = 0.000278045 Jy
! Component: 950  -  total flux cleaned = 0.00034201 Jy
! Component: 1000  -  total flux cleaned = 0.000373628 Jy
! Total flux subtracted in 1024 components = 0.000405128 Jy
! Clean residual min=-0.001731 max=0.001930 Jy/beam
! Clean residual mean=0.000058 rms=0.000579 Jy/beam
! Combined flux in latest and established models = 0.610513 Jy
keep
! Adding 76 model components to the UV plane model.
! The established model now contains 229 components and 0.610513 Jy
![Exited script file: muppet]
wmap "J1745+1720_X_1999_05_10_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 8.19% of the data.
!  The x-axis pixel size should ideally be below 0.1617 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1698 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6953 x 1.133 at -2.015 degrees (North through East)
! Clean map  min=-0.0022921  max=0.33879 Jy/beam
! Writing clean map to FITS file: J1745+1720_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 0.338791 
invert
! Inverting map 
! Your choice of large map pixels excluded 8.19% of the data.
!  The x-axis pixel size should ideally be below 0.1617 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1698 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000578966 
device "J1745+1720_X_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J1745+1720_X_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.512675 0.512675 1.02535 2.0507 4.1014 8.20281 16.4056 32.8112 65.6225
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0017 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.338 
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.6953 x 1.133 at -2.015 degrees (North through East)
! Clean map  min=-0.0022921  max=0.33879 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1745+1720_X_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J1745+1720_X_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1745+1720_X_1999_05_10_pus_uvs.log closed on Tue Jan 15 17:43:18 2008