! Started logfile: J1751+0939_X_1998_10_01_pus_uvs.log on Wed Feb  6 15:02:36 2008
obs J1751+0939_X_1998_10_01_pus_uva.fits
! Reading UV FITS file: J1751+0939_X_1998_10_01_pus_uva.fits
! AN table 1: 40 integrations on 136 of 136 possible baselines.
! AN table 2: 38 integrations on 136 of 136 possible baselines.
! AN table 3: 399 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.155414 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1751+0939
! 
! 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.40798e+09        4e+06          1        4e+06
!  02        2  8.47798e+09        4e+06          1        4e+06
!  03        3  8.79298e+09        4e+06          1        4e+06
!  04        4  8.89798e+09        4e+06          1        4e+06
! 
! Polarization(s): RR
! 
! Read 2053 lines of history.
! 
! Reading 40328 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 J1751+0939_X_1998_10_01_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 623 telescope corrections were flagged in sub-array 1.
!  A total of 646 telescope corrections were flagged in sub-array 2.
!  A total of 4533 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 623 telescope corrections were flagged in sub-array 1.
!  A total of 646 telescope corrections were flagged in sub-array 2.
!  A total of 4533 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 623 telescope corrections were flagged in sub-array 1.
!  A total of 646 telescope corrections were flagged in sub-array 2.
!  A total of 4533 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 623 telescope corrections were flagged in sub-array 1.
!  A total of 646 telescope corrections were flagged in sub-array 2.
!  A total of 4533 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=2.810025Jy  sigma=0.026240
! Fit after  self-cal, rms=2.624920Jy  sigma=0.024971
! 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 1.74% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
! Estimated beam: bmin=0.6199 mas, bmaj=1.226 mas, bpa=-9.518 degrees
! Estimated noise=954.106 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 = 2.74288 Jy
! Component: 100  -  total flux cleaned = 3.3527 Jy
! Total flux subtracted in 100 components = 3.3527 Jy
! Clean residual min=-0.060454 max=0.213378 Jy/beam
! Clean residual mean=0.000708 rms=0.021390 Jy/beam
! Combined flux in latest and established models = 3.3527 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 3.3527 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.618618Jy  sigma=0.005528
! Fit after  self-cal, rms=0.618286Jy  sigma=0.005527
! Inverting map 
! Your choice of large map pixels excluded 1.74% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.228935 Jy
! Component: 100  -  total flux cleaned = 0.350708 Jy
! Total flux subtracted in 100 components = 0.350708 Jy
! Clean residual min=-0.051736 max=0.074622 Jy/beam
! Clean residual mean=0.000247 rms=0.015117 Jy/beam
! Combined flux in latest and established models = 3.7034 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 15 components and 3.7034 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.524144Jy  sigma=0.004120
! Fit after  self-cal, rms=0.523478Jy  sigma=0.004115
! Inverting map 
! Your choice of large map pixels excluded 1.74% of the data.
!  The x-axis pixel size should ideally be below 0.1614 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 1.74% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
! Estimated beam: bmin=0.7597 mas, bmaj=1.737 mas, bpa=-12.91 degrees
! Estimated noise=418.038 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.6, 0.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.115512 Jy
! Component: 100  -  total flux cleaned = 0.184265 Jy
! Component: 150  -  total flux cleaned = 0.229292 Jy
! Component: 200  -  total flux cleaned = 0.238802 Jy
! Total flux subtracted in 200 components = 0.238802 Jy
! Clean residual min=-0.033054 max=0.049717 Jy/beam
! Clean residual mean=-0.000260 rms=0.009924 Jy/beam
! Combined flux in latest and established models = 3.94221 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 34 components and 3.94221 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.505402Jy  sigma=0.003728
! Fit after  self-cal, rms=0.505058Jy  sigma=0.003725
! Inverting map 
! Your choice of large map pixels excluded 1.74% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 57 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WF        0.00*    MC        0.00*    
!   GN        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WF        0.00*    MC        0.00*    
!   GN        0.00*    
! 
!  A total of 171 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        1.02     GC        1.04     HN        0.95     
!   KK        1.05     KP        0.98     LA        1.02     MK        0.97     
!   NL        0.99     NY        0.99     ON        1.04     OV        1.01     
!   PT        1.02     SC        1.01     WF        1.03     MC        1.30     
!   GN        1.01     
! 
! 
! Correcting IF 2.
!  A total of 57 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WF        0.00*    MC        0.00*    
!   GN        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WF        0.00*    MC        0.00*    
!   GN        0.00*    
! 
!  A total of 171 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        1.02     GC        1.06     HN        1.00     
!   KK        1.04     KP        0.99     LA        0.97     MK        0.96     
!   NL        1.00     NY        1.00     ON        1.04     OV        1.00     
!   PT        1.02     SC        0.99     WF        1.02     MC        1.26     
!   GN        1.02     
! 
! 
! Correcting IF 3.
!  A total of 57 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WF        0.00*    MC        0.00*    
!   GN        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WF        0.00*    MC        0.00*    
!   GN        0.00*    
! 
!  A total of 171 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.98     GC        1.06     HN        0.95     
!   KK        1.03     KP        1.00     LA        0.97     MK        0.99     
!   NL        0.97     NY        0.97     ON        1.04     OV        0.95     
!   PT        1.01     SC        1.02     WF        1.02     MC        1.35     
!   GN        1.00     
! 
! 
! Correcting IF 4.
!  A total of 57 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WF        0.00*    MC        0.00*    
!   GN        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WF        0.00*    MC        0.00*    
!   GN        0.00*    
! 
!  A total of 171 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        0.96     GC        1.04     HN        0.98     
!   KK        1.02     KP        0.98     LA        0.98     MK        0.94     
!   NL        0.98     NY        0.99     ON        1.03     OV        0.97     
!   PT        0.97     SC        0.98     WF        1.01     MC        1.30     
!   GN        1.00     
! 
! 
! Fit before self-cal, rms=0.505058Jy  sigma=0.003725
! Fit after  self-cal, rms=0.461870Jy  sigma=0.003063
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 1.57% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
! Estimated beam: bmin=0.7692 mas, bmaj=1.768 mas, bpa=-13.18 degrees
! Estimated noise=418.596 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.0410647 Jy
! Component: 100  -  total flux cleaned = -0.0434139 Jy
! Component: 150  -  total flux cleaned = -0.044342 Jy
! Component: 200  -  total flux cleaned = -0.0451154 Jy
! Total flux subtracted in 200 components = -0.0451154 Jy
! Clean residual min=-0.031861 max=0.023365 Jy/beam
! Clean residual mean=-0.000303 rms=0.007017 Jy/beam
! Combined flux in latest and established models = 3.89709 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 50 components and 3.89709 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.455717Jy  sigma=0.003016
! Fit after  self-cal, rms=0.455782Jy  sigma=0.003014
! Inverting map 
! Your choice of large map pixels excluded 1.57% of the data.
!  The x-axis pixel size should ideally be below 0.1614 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.455782Jy  sigma=0.003014
! Fit after  self-cal, rms=0.408962Jy  sigma=0.002524
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.57% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
! Estimated beam: bmin=0.7703 mas, bmaj=1.762 mas, bpa=-13.09 degrees
! Estimated noise=417.851 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0215012 Jy
! Component: 100  -  total flux cleaned = -0.0253162 Jy
! Component: 150  -  total flux cleaned = -0.0273189 Jy
! Component: 200  -  total flux cleaned = -0.0285964 Jy
! Total flux subtracted in 200 components = -0.0285964 Jy
! Clean residual min=-0.013311 max=0.011362 Jy/beam
! Clean residual mean=-0.000224 rms=0.002872 Jy/beam
! Combined flux in latest and established models = 3.86849 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 55 components and 3.86849 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.406222Jy  sigma=0.002504
! Fit after  self-cal, rms=0.406146Jy  sigma=0.002503
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.57% of the data.
!  The x-axis pixel size should ideally be below 0.1614 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.000520694 Jy
! Component: 100  -  total flux cleaned = -0.000163214 Jy
! Component: 150  -  total flux cleaned = -0.000790676 Jy
! Component: 200  -  total flux cleaned = -0.00134879 Jy
! Total flux subtracted in 200 components = -0.00134879 Jy
! Clean residual min=-0.012494 max=0.011639 Jy/beam
! Clean residual mean=-0.000213 rms=0.002800 Jy/beam
! Combined flux in latest and established models = 3.86715 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 62 components and 3.86715 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.405488Jy  sigma=0.002497
! Fit after  self-cal, rms=0.405433Jy  sigma=0.002497
! Inverting map 
! Your choice of large map pixels excluded 1.57% of the data.
!  The x-axis pixel size should ideally be below 0.1614 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.405433Jy  sigma=0.002497
! Fit after  self-cal, rms=0.462923Jy  sigma=0.002442
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.57% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
! Estimated beam: bmin=0.7711 mas, bmaj=1.762 mas, bpa=-13 degrees
! Estimated noise=417.531 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.010669 Jy
! Component: 100  -  total flux cleaned = -0.0129573 Jy
! Component: 150  -  total flux cleaned = -0.0142549 Jy
! Component: 200  -  total flux cleaned = -0.01454 Jy
! Total flux subtracted in 200 components = -0.01454 Jy
! Clean residual min=-0.009494 max=0.006853 Jy/beam
! Clean residual mean=-0.000020 rms=0.001807 Jy/beam
! Combined flux in latest and established models = 3.85261 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 69 components and 3.85261 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.462166Jy  sigma=0.002435
! Fit after  self-cal, rms=0.462196Jy  sigma=0.002434
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.57% of the data.
!  The x-axis pixel size should ideally be below 0.1614 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.000756146 Jy
! Component: 100  -  total flux cleaned = -0.00100579 Jy
! Component: 150  -  total flux cleaned = -0.00100519 Jy
! Component: 200  -  total flux cleaned = -0.00101257 Jy
! Total flux subtracted in 200 components = -0.00101257 Jy
! Clean residual min=-0.008413 max=0.006686 Jy/beam
! Clean residual mean=-0.000009 rms=0.001716 Jy/beam
! Combined flux in latest and established models = 3.85159 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 72 components and 3.85159 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.461905Jy  sigma=0.002431
! Fit after  self-cal, rms=0.461898Jy  sigma=0.002431
! Inverting map 
! Your choice of large map pixels excluded 1.57% of the data.
!  The x-axis pixel size should ideally be below 0.1614 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.461898Jy  sigma=0.002431
! Fit after  self-cal, rms=0.461739Jy  sigma=0.002428
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.57% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
! Estimated beam: bmin=2.11 mas, bmaj=2.961 mas, bpa=-8.327 degrees
! Estimated noise=526.482 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00843062 Jy
! Component: 100  -  total flux cleaned = -0.00988806 Jy
! Component: 150  -  total flux cleaned = -0.0103325 Jy
! Component: 200  -  total flux cleaned = -0.0107583 Jy
! Total flux subtracted in 200 components = -0.0107583 Jy
! Clean residual min=-0.004823 max=0.006580 Jy/beam
! Clean residual mean=-0.000027 rms=0.001910 Jy/beam
! Combined flux in latest and established models = 3.84083 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 80 components and 3.84083 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.461619Jy  sigma=0.002427
! Fit after  self-cal, rms=0.461604Jy  sigma=0.002426
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.57% of the data.
!  The x-axis pixel size should ideally be below 0.1614 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.000746939 Jy
! Component: 100  -  total flux cleaned = -0.000507536 Jy
! Component: 150  -  total flux cleaned = -0.000506884 Jy
! Component: 200  -  total flux cleaned = -0.000505517 Jy
! Total flux subtracted in 200 components = -0.000505517 Jy
! Clean residual min=-0.004813 max=0.006524 Jy/beam
! Clean residual mean=-0.000016 rms=0.001878 Jy/beam
! Combined flux in latest and established models = 3.84033 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 86 components and 3.84033 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.461568Jy  sigma=0.002426
! Fit after  self-cal, rms=0.461567Jy  sigma=0.002426
! Inverting map 
! Your choice of large map pixels excluded 1.57% of the data.
!  The x-axis pixel size should ideally be below 0.1614 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 1.57% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
! Estimated beam: bmin=0.772 mas, bmaj=1.763 mas, bpa=-12.95 degrees
! Estimated noise=417.313 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.772 x 1.763 at -12.95 degrees (North through East)
! Clean map  min=-0.005657  max=3.5497 Jy/beam
if(peak(flux) > thresh)
  selfcal true, true
  clean clean_niter,clean_gain
  selfcal
  flux_cutoff = imstat(rms) * dynam
  repeat
    if (peak(flux) > flux_cutoff) peakwin win_mult
    clean clean_niter,clean_gain
    flux_cutoff = imstat(rms) * dynam
    selfcal
    new_peak = peak(flux)
    until(new_peak<=flux_cutoff)
  selfcal true, true
  end if
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.461567Jy  sigma=0.002426
! Fit after  self-cal, rms=0.521238Jy  sigma=0.002230
! Inverting map and beam 
! Your choice of large map pixels excluded 1.57% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
! Estimated beam: bmin=0.7719 mas, bmaj=1.763 mas, bpa=-12.96 degrees
! Estimated noise=416.882 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00619456 Jy
! Component: 100  -  total flux cleaned = -0.00796107 Jy
! Component: 150  -  total flux cleaned = -0.00859873 Jy
! Component: 200  -  total flux cleaned = -0.00898234 Jy
! Total flux subtracted in 200 components = -0.00898234 Jy
! Clean residual min=-0.005672 max=0.005896 Jy/beam
! Clean residual mean=0.000053 rms=0.001399 Jy/beam
! Combined flux in latest and established models = 3.83135 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 89 components and 3.83135 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.520936Jy  sigma=0.002227
! Fit after  self-cal, rms=0.520923Jy  sigma=0.002227
! Inverting map 
! Your choice of large map pixels excluded 1.57% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
! Added new window around map position (2.4, 5.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00352778 Jy
! Component: 100  -  total flux cleaned = 0.0036873 Jy
! Component: 150  -  total flux cleaned = 0.00383612 Jy
! Component: 200  -  total flux cleaned = 0.0041229 Jy
! Total flux subtracted in 200 components = 0.0041229 Jy
! Clean residual min=-0.005188 max=0.003999 Jy/beam
! Clean residual mean=0.000007 rms=0.001300 Jy/beam
! Combined flux in latest and established models = 3.83547 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 97 components and 3.83547 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.520798Jy  sigma=0.002225
! Fit after  self-cal, rms=0.520805Jy  sigma=0.002225
! Inverting map 
! Your choice of large map pixels excluded 1.57% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.520805Jy  sigma=0.002225
! Fit after  self-cal, rms=0.521162Jy  sigma=0.002224
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 1.57% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
! Estimated beam: bmin=0.6317 mas, bmaj=1.244 mas, bpa=-10.46 degrees
! Estimated noise=962.723 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.75542 Jy
! Component: 100  -  total flux cleaned = 3.35769 Jy
! Component: 150  -  total flux cleaned = 3.5547 Jy
! Component: 200  -  total flux cleaned = 3.65132 Jy
! Total flux subtracted in 200 components = 3.65132 Jy
! Clean residual min=-0.011595 max=0.046090 Jy/beam
! Clean residual mean=0.000331 rms=0.004671 Jy/beam
! Combined flux in latest and established models = 3.65132 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 7 model components to the UV plane model.
! The established model now contains 7 components and 3.65132 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 1.57% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
! Estimated beam: bmin=0.7727 mas, bmaj=1.764 mas, bpa=-12.92 degrees
! Estimated noise=416.715 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.0739161 Jy
! Component: 100  -  total flux cleaned = 0.110829 Jy
! Component: 150  -  total flux cleaned = 0.131779 Jy
! Component: 200  -  total flux cleaned = 0.144745 Jy
! Total flux subtracted in 200 components = 0.144745 Jy
! Clean residual min=-0.004901 max=0.007468 Jy/beam
! Clean residual mean=0.000315 rms=0.001839 Jy/beam
! Combined flux in latest and established models = 3.79606 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 39 components and 3.79606 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.57% of the data.
!  The x-axis pixel size should ideally be below 0.1614 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 1.57% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
! Estimated beam: bmin=2.111 mas, bmaj=2.965 mas, bpa=-8.301 degrees
! Estimated noise=524.994 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0148251 Jy
! Component: 100  -  total flux cleaned = 0.0231806 Jy
! Component: 150  -  total flux cleaned = 0.0283892 Jy
! Component: 200  -  total flux cleaned = 0.0317752 Jy
! Total flux subtracted in 200 components = 0.0317752 Jy
! Clean residual min=-0.003539 max=0.003823 Jy/beam
! Clean residual mean=-0.000017 rms=0.001415 Jy/beam
! Combined flux in latest and established models = 3.82784 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.0019395 Jy
! Component: 100  -  total flux cleaned = 0.00250088 Jy
! Component: 150  -  total flux cleaned = 0.00296453 Jy
! Component: 200  -  total flux cleaned = 0.00326038 Jy
! Total flux subtracted in 200 components = 0.00326038 Jy
! Clean residual min=-0.003532 max=0.003291 Jy/beam
! Clean residual mean=-0.000104 rms=0.001283 Jy/beam
! Combined flux in latest and established models = 3.8311 Jy
! Adding 70 model components to the UV plane model.
! The established model now contains 103 components and 3.8311 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.57% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 1.57% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
! Estimated beam: bmin=0.7727 mas, bmaj=1.764 mas, bpa=-12.92 degrees
! Estimated noise=416.715 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00120411 Jy
! Component: 100  -  total flux cleaned = 0.00164852 Jy
! Component: 150  -  total flux cleaned = 0.00217138 Jy
! Component: 200  -  total flux cleaned = 0.00217052 Jy
! Total flux subtracted in 200 components = 0.00217052 Jy
! Clean residual min=-0.004376 max=0.003545 Jy/beam
! Clean residual mean=-0.000066 rms=0.001126 Jy/beam
! Combined flux in latest and established models = 3.83327 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 120 components and 3.83327 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.521046Jy  sigma=0.002222
! Fit after  self-cal, rms=0.520902Jy  sigma=0.002221
wmodel J1751+0939_X_1998_10_01_pus_map.mod
! Writing 120 model components to file: J1751+0939_X_1998_10_01_pus_map.mod
wobs J1751+0939_X_1998_10_01_pus_uvs.fits
! Writing UV FITS file: J1751+0939_X_1998_10_01_pus_uvs.fits
wwins J1751+0939_X_1998_10_01_pus_map.win
! wwins: Wrote 3 windows to J1751+0939_X_1998_10_01_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 1.57% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.00178597 Jy
! Component: 100  -  total flux cleaned = -0.00286909 Jy
! Component: 150  -  total flux cleaned = -0.00353152 Jy
! Component: 200  -  total flux cleaned = -0.00399885 Jy
! Component: 250  -  total flux cleaned = -0.00445552 Jy
! Component: 300  -  total flux cleaned = -0.00501484 Jy
! Component: 350  -  total flux cleaned = -0.00545429 Jy
! Component: 400  -  total flux cleaned = -0.00577823 Jy
! Component: 450  -  total flux cleaned = -0.00609761 Jy
! Component: 500  -  total flux cleaned = -0.00641161 Jy
! Component: 550  -  total flux cleaned = -0.00677299 Jy
! Component: 600  -  total flux cleaned = -0.00692585 Jy
! Component: 650  -  total flux cleaned = -0.00722882 Jy
! Component: 700  -  total flux cleaned = -0.00742814 Jy
! Component: 750  -  total flux cleaned = -0.00767452 Jy
! Component: 800  -  total flux cleaned = -0.00782093 Jy
! Component: 850  -  total flux cleaned = -0.00801441 Jy
! Component: 900  -  total flux cleaned = -0.00825317 Jy
! Component: 950  -  total flux cleaned = -0.00839467 Jy
! Component: 1000  -  total flux cleaned = -0.00853505 Jy
! Total flux subtracted in 1024 components = -0.00853496 Jy
! Clean residual min=-0.002614 max=0.002344 Jy/beam
! Clean residual mean=-0.000020 rms=0.000943 Jy/beam
! Combined flux in latest and established models = 3.82473 Jy
keep
! Adding 80 model components to the UV plane model.
! The established model now contains 200 components and 3.82473 Jy
![Exited script file: muppet]
wmap "J1751+0939_X_1998_10_01_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 1.57% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7727 x 1.764 at -12.92 degrees (North through East)
! Clean map  min=-0.0036048  max=3.5542 Jy/beam
! Writing clean map to FITS file: J1751+0939_X_1998_10_01_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 3.55417 
invert
! Inverting map 
! Your choice of large map pixels excluded 1.57% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000942837 
device "J1751+0939_X_1998_10_01_pus\_map.eps/VPS"
! Attempting to open device: 'J1751+0939_X_1998_10_01_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.0795828 0.0795828 0.159166 0.318331 0.636662 1.27332 2.54665 5.0933 10.1866 20.3732 40.7464 81.4928
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0028 
print "peak=",int(1000*peak_flux)/1000
! peak= 3.554 
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.7727 x 1.764 at -12.92 degrees (North through East)
! Clean map  min=-0.0036048  max=3.5542 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1751+0939_X_1998_10_01_pus\_map.gif/vgif"
! Attempting to open device: 'J1751+0939_X_1998_10_01_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1751+0939_X_1998_10_01_pus_uvs.log closed on Wed Feb  6 15:02:49 2008