! Started logfile: J1751+0939_X_2001_07_05_pus_uvs.log on Wed Jul  4 21:40:31 2007
obs J1751+0939_X_2001_07_05_pus_uva.fits
! Reading UV FITS file: J1751+0939_X_2001_07_05_pus_uva.fits
! AN table 1: 185 integrations on 171 of 171 possible baselines.
! AN table 2: 300 integrations on 171 of 171 possible baselines.
! AN table 3: 10 integrations on 171 of 171 possible baselines.
! AN table 4: 132 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.164302 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1751+0939
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! 
! 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 2370 lines of history.
! 
! Reading 70464 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 
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 1879 telescope corrections were flagged in sub-array 1.
!  A total of 4568 telescope corrections were flagged in sub-array 2.
!  A total of 190 telescope corrections were flagged in sub-array 3.
!  A total of 1345 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1879 telescope corrections were flagged in sub-array 1.
!  A total of 4568 telescope corrections were flagged in sub-array 2.
!  A total of 190 telescope corrections were flagged in sub-array 3.
!  A total of 1344 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1879 telescope corrections were flagged in sub-array 1.
!  A total of 4568 telescope corrections were flagged in sub-array 2.
!  A total of 190 telescope corrections were flagged in sub-array 3.
!  A total of 1344 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1879 telescope corrections were flagged in sub-array 1.
!  A total of 4568 telescope corrections were flagged in sub-array 2.
!  A total of 190 telescope corrections were flagged in sub-array 3.
!  A total of 1344 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.640869Jy  sigma=0.014927
! Fit after  self-cal, rms=1.150937Jy  sigma=0.010701
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2.48% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1745 milli-arcsec
! Estimated beam: bmin=0.5487 mas, bmaj=1.114 mas, bpa=-4.441 degrees
! Estimated noise=665.145 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.59618 Jy
! Component: 100  -  total flux cleaned = 1.97047 Jy
! Total flux subtracted in 100 components = 1.97047 Jy
! Clean residual min=-0.034845 max=0.137210 Jy/beam
! Clean residual mean=0.000390 rms=0.011230 Jy/beam
! Combined flux in latest and established models = 1.97047 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 1.97047 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.367620Jy  sigma=0.003055
! Fit after  self-cal, rms=0.367617Jy  sigma=0.003055
! Inverting map 
! Your choice of large map pixels excluded 2.48% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1745 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.140369 Jy
! Component: 100  -  total flux cleaned = 0.223959 Jy
! Total flux subtracted in 100 components = 0.223959 Jy
! Clean residual min=-0.026135 max=0.046824 Jy/beam
! Clean residual mean=0.000122 rms=0.007504 Jy/beam
! Combined flux in latest and established models = 2.19443 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 15 components and 2.19443 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.298826Jy  sigma=0.002145
! Fit after  self-cal, rms=0.298728Jy  sigma=0.002144
! Inverting map 
! Your choice of large map pixels excluded 2.48% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1745 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0585626 Jy
! Component: 100  -  total flux cleaned = 0.0994269 Jy
! Total flux subtracted in 100 components = 0.0994269 Jy
! Clean residual min=-0.023657 max=0.029917 Jy/beam
! Clean residual mean=0.000003 rms=0.006488 Jy/beam
! Combined flux in latest and established models = 2.29385 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 16 components and 2.29385 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.288111Jy  sigma=0.001925
! Fit after  self-cal, rms=0.288035Jy  sigma=0.001925
! Inverting map 
! Your choice of large map pixels excluded 2.48% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1745 milli-arcsec
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
win_mult = win_mult * 1.6
clean_niter = clean_niter * 2
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2.48% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1745 milli-arcsec
! Estimated beam: bmin=0.6451 mas, bmaj=1.507 mas, bpa=-5.054 degrees
! Estimated noise=309.5 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.0345089 Jy
! Component: 100  -  total flux cleaned = 0.0531821 Jy
! Component: 150  -  total flux cleaned = 0.0627433 Jy
! Component: 200  -  total flux cleaned = 0.0648873 Jy
! Total flux subtracted in 200 components = 0.0648873 Jy
! Clean residual min=-0.022843 max=0.021777 Jy/beam
! Clean residual mean=-0.001178 rms=0.005397 Jy/beam
! Combined flux in latest and established models = 2.35874 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 21 components and 2.35874 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.285695Jy  sigma=0.001854
! Fit after  self-cal, rms=0.285586Jy  sigma=0.001853
! Inverting map 
! Your choice of large map pixels excluded 2.48% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1745 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.00     GC        1.12     GG        1.00*    
!   HH        1.27     HN        0.97     KK        1.00*    KP        1.02     
!   LA        1.00     MC        1.06     MK        1.00*    NL        1.02     
!   NY        1.03     OV        1.02     PT        1.02     SC        0.98     
!   TS        1.00*    WF        1.04     WZ        0.98     
! 
!  A total of 150 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.94     FD        0.96     GC        0.95     GG        1.00*    
!   HH        1.08     HN        1.14     KK        1.01     KP        0.97     
!   LA        0.93     MC        0.90     MK        0.94     NL        0.98     
!   NY        1.26     OV        0.98     PT        1.00     SC        0.98     
!   TS        1.00*    WF        1.04     WZ        0.96     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.01     GC        0.97     GG        1.00*    
!   HH        1.10     HN        1.00     KK        0.95     KP        0.99     
!   LA        0.98     MC        1.10     MK        0.93     NL        1.00     
!   NY        1.09     OV        0.98     PT        1.00     SC        1.04     
!   TS        1.01     WF        1.00     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.00     GC        1.08     GG        1.00*    
!   HH        1.33     HN        0.97     KK        1.00*    KP        1.03     
!   LA        0.99     MC        1.06     MK        1.00*    NL        0.98     
!   NY        1.12     OV        1.01     PT        0.98     SC        0.93     
!   TS        1.00*    WF        1.03     WZ        0.99     
! 
!  A total of 150 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.95     GC        0.91     GG        1.00*    
!   HH        1.08     HN        1.13     KK        1.00     KP        0.97     
!   LA        0.92     MC        0.92     MK        0.95     NL        0.94     
!   NY        1.38     OV        0.97     PT        0.96     SC        0.94     
!   TS        1.00*    WF        1.03     WZ        0.93     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.00     GC        0.94     GG        1.00*    
!   HH        1.08     HN        1.00     KK        0.94     KP        0.99     
!   LA        0.97     MC        1.11     MK        0.92     NL        0.97     
!   NY        1.14     OV        0.97     PT        0.97     SC        1.00     
!   TS        1.02     WF        1.00     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.98     GC        1.13     GG        1.00*    
!   HH        1.50     HN        0.97     KK        1.00*    KP        1.06     
!   LA        1.01     MC        1.08     MK        1.00*    NL        1.01     
!   NY        1.11     OV        1.06     PT        1.00     SC        0.95     
!   TS        1.00*    WF        1.03     WZ        0.98     
! 
!  A total of 150 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.94     GC        0.96     GG        1.00*    
!   HH        1.22     HN        1.15     KK        0.98     KP        1.01     
!   LA        0.94     MC        0.94     MK        0.96     NL        0.98     
!   NY        1.37     OV        1.02     PT        0.98     SC        0.95     
!   TS        1.00*    WF        1.01     WZ        0.95     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        0.98     GC        0.97     GG        1.00*    
!   HH        1.22     HN        1.00     KK        0.92     KP        1.03     
!   LA        0.98     MC        1.20     MK        0.94     NL        1.00     
!   NY        1.14     OV        1.02     PT        0.99     SC        1.01     
!   TS        1.01     WF        1.00     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.96     GC        1.13     GG        1.00*    
!   HH        1.72     HN        0.99     KK        1.00*    KP        1.02     
!   LA        0.99     MC        1.07     MK        1.00*    NL        1.02     
!   NY        1.04     OV        1.03     PT        1.00     SC        1.00     
!   TS        1.00*    WF        1.02     WZ        0.98     
! 
!  A total of 150 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.92     GC        0.95     GG        1.00*    
!   HH        1.43     HN        1.19     KK        0.99     KP        0.97     
!   LA        0.92     MC        0.90     MK        0.99     NL        0.99     
!   NY        1.27     OV        0.99     PT        0.99     SC        1.00     
!   TS        1.00*    WF        1.02     WZ        0.95     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.96     GC        0.99     GG        1.00*    
!   HH        1.35     HN        1.02     KK        0.94     KP        0.99     
!   LA        0.96     MC        1.08     MK        0.98     NL        1.01     
!   NY        1.05     OV        0.99     PT        0.99     SC        1.07     
!   TS        1.02     WF        1.00     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.285586Jy  sigma=0.001853
! Fit after  self-cal, rms=0.243502Jy  sigma=0.001397
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2.47% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1745 milli-arcsec
! Estimated beam: bmin=0.6482 mas, bmaj=1.542 mas, bpa=-5.074 degrees
! Estimated noise=312.108 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (1.8, 1.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00129825 Jy
! Component: 100  -  total flux cleaned = -0.00345995 Jy
! Component: 150  -  total flux cleaned = -0.00247711 Jy
! Component: 200  -  total flux cleaned = -0.000945606 Jy
! Total flux subtracted in 200 components = -0.000945606 Jy
! Clean residual min=-0.007422 max=0.007633 Jy/beam
! Clean residual mean=-0.000225 rms=0.002044 Jy/beam
! Combined flux in latest and established models = 2.3578 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 31 components and 2.3578 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.241107Jy  sigma=0.001374
! Fit after  self-cal, rms=0.241174Jy  sigma=0.001372
! Inverting map 
! Your choice of large map pixels excluded 2.47% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1745 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.241174Jy  sigma=0.001372
! Fit after  self-cal, rms=0.236022Jy  sigma=0.001311
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.47% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1745 milli-arcsec
! Estimated beam: bmin=0.6495 mas, bmaj=1.543 mas, bpa=-5.052 degrees
! Estimated noise=311.645 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00833772 Jy
! Component: 100  -  total flux cleaned = -0.00758417 Jy
! Component: 150  -  total flux cleaned = -0.007055 Jy
! Component: 200  -  total flux cleaned = -0.00675788 Jy
! Total flux subtracted in 200 components = -0.00675788 Jy
! Clean residual min=-0.004609 max=0.004933 Jy/beam
! Clean residual mean=-0.000081 rms=0.001085 Jy/beam
! Combined flux in latest and established models = 2.35104 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 38 components and 2.35104 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.235245Jy  sigma=0.001305
! Fit after  self-cal, rms=0.235178Jy  sigma=0.001305
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.47% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1745 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.000178686 Jy
! Component: 100  -  total flux cleaned = 0.000687905 Jy
! Component: 150  -  total flux cleaned = 0.00102232 Jy
! Component: 200  -  total flux cleaned = 0.00132893 Jy
! Total flux subtracted in 200 components = 0.00132893 Jy
! Clean residual min=-0.004644 max=0.004813 Jy/beam
! Clean residual mean=-0.000098 rms=0.001051 Jy/beam
! Combined flux in latest and established models = 2.35237 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 46 components and 2.35237 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.235049Jy  sigma=0.001304
! Fit after  self-cal, rms=0.235025Jy  sigma=0.001304
! Inverting map 
! Your choice of large map pixels excluded 2.47% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1745 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.235025Jy  sigma=0.001304
! Fit after  self-cal, rms=0.235108Jy  sigma=0.001301
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.47% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1745 milli-arcsec
! Estimated beam: bmin=0.6505 mas, bmaj=1.544 mas, bpa=-5.032 degrees
! Estimated noise=311.519 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00561033 Jy
! Component: 100  -  total flux cleaned = -0.00576697 Jy
! Component: 150  -  total flux cleaned = -0.00564385 Jy
! Component: 200  -  total flux cleaned = -0.00542954 Jy
! Total flux subtracted in 200 components = -0.00542954 Jy
! Clean residual min=-0.003728 max=0.004208 Jy/beam
! Clean residual mean=-0.000080 rms=0.000900 Jy/beam
! Combined flux in latest and established models = 2.34694 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 48 components and 2.34694 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.234796Jy  sigma=0.001299
! Fit after  self-cal, rms=0.234778Jy  sigma=0.001299
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.47% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1745 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.000245987 Jy
! Component: 100  -  total flux cleaned = 0.000223722 Jy
! Component: 150  -  total flux cleaned = 0.000567505 Jy
! Component: 200  -  total flux cleaned = 0.000889326 Jy
! Total flux subtracted in 200 components = 0.000889326 Jy
! Clean residual min=-0.003704 max=0.004106 Jy/beam
! Clean residual mean=-0.000092 rms=0.000875 Jy/beam
! Combined flux in latest and established models = 2.34783 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 52 components and 2.34783 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.234705Jy  sigma=0.001298
! Fit after  self-cal, rms=0.234688Jy  sigma=0.001298
! Inverting map 
! Your choice of large map pixels excluded 2.47% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1745 milli-arcsec
! Added new window around map position (2.6, 6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00219643 Jy
! Component: 100  -  total flux cleaned = 0.00262566 Jy
! Component: 150  -  total flux cleaned = 0.00293531 Jy
! Component: 200  -  total flux cleaned = 0.00315535 Jy
! Total flux subtracted in 200 components = 0.00315535 Jy
! Clean residual min=-0.003753 max=0.003503 Jy/beam
! Clean residual mean=-0.000125 rms=0.000825 Jy/beam
! Combined flux in latest and established models = 2.35098 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 64 components and 2.35098 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.234589Jy  sigma=0.001297
! Fit after  self-cal, rms=0.234573Jy  sigma=0.001297
! Inverting map 
! Your choice of large map pixels excluded 2.47% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1745 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.234573Jy  sigma=0.001297
! Fit after  self-cal, rms=0.234584Jy  sigma=0.001296
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.47% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1745 milli-arcsec
! Estimated beam: bmin=2.202 mas, bmaj=2.736 mas, bpa=-5.982 degrees
! Estimated noise=427.231 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00281628 Jy
! Component: 100  -  total flux cleaned = -0.0030042 Jy
! Component: 150  -  total flux cleaned = -0.00289769 Jy
! Component: 200  -  total flux cleaned = -0.00280805 Jy
! Total flux subtracted in 200 components = -0.00280805 Jy
! Clean residual min=-0.003033 max=0.002778 Jy/beam
! Clean residual mean=-0.000442 rms=0.000911 Jy/beam
! Combined flux in latest and established models = 2.34817 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 74 components and 2.34817 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.234445Jy  sigma=0.001296
! Fit after  self-cal, rms=0.234404Jy  sigma=0.001296
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.47% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1745 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 = -1.31577e-05 Jy
! Component: 100  -  total flux cleaned = 0.000251374 Jy
! Component: 150  -  total flux cleaned = 0.000282771 Jy
! Component: 200  -  total flux cleaned = 0.000306459 Jy
! Total flux subtracted in 200 components = 0.000306459 Jy
! Clean residual min=-0.003045 max=0.002747 Jy/beam
! Clean residual mean=-0.000449 rms=0.000889 Jy/beam
! Combined flux in latest and established models = 2.34848 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 81 components and 2.34848 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.234397Jy  sigma=0.001296
! Fit after  self-cal, rms=0.234390Jy  sigma=0.001296
! Inverting map 
! Your choice of large map pixels excluded 2.47% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1745 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Your choice of large map pixels excluded 2.47% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1745 milli-arcsec
! Estimated beam: bmin=0.6511 mas, bmaj=1.546 mas, bpa=-5.029 degrees
! Estimated noise=311.413 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6511 x 1.546 at -5.029 degrees (North through East)
! Clean map  min=-0.0028519  max=2.1174 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.234390Jy  sigma=0.001296
! Fit after  self-cal, rms=1.006471Jy  sigma=0.001149
! Inverting map and beam 
! Your choice of large map pixels excluded 2.47% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1745 milli-arcsec
! Estimated beam: bmin=0.6516 mas, bmaj=1.546 mas, bpa=-5.025 degrees
! Estimated noise=311.258 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00291827 Jy
! Component: 100  -  total flux cleaned = -0.00324675 Jy
! Component: 150  -  total flux cleaned = -0.0034334 Jy
! Component: 200  -  total flux cleaned = -0.00351313 Jy
! Total flux subtracted in 200 components = -0.00351313 Jy
! Clean residual min=-0.003099 max=0.002439 Jy/beam
! Clean residual mean=-0.000017 rms=0.000653 Jy/beam
! Combined flux in latest and established models = 2.34497 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 88 components and 2.34497 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.006459Jy  sigma=0.001147
! Fit after  self-cal, rms=1.006449Jy  sigma=0.001147
! Inverting map 
! Your choice of large map pixels excluded 2.47% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1745 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000218387 Jy
! Component: 100  -  total flux cleaned = -7.08345e-05 Jy
! Component: 150  -  total flux cleaned = 6.39804e-05 Jy
! Component: 200  -  total flux cleaned = 0.000128887 Jy
! Total flux subtracted in 200 components = 0.000128887 Jy
! Clean residual min=-0.002822 max=0.002797 Jy/beam
! Clean residual mean=-0.000019 rms=0.000641 Jy/beam
! Combined flux in latest and established models = 2.3451 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 93 components and 2.3451 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.006438Jy  sigma=0.001147
! Fit after  self-cal, rms=1.006434Jy  sigma=0.001147
! Inverting map 
! Your choice of large map pixels excluded 2.47% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1745 milli-arcsec
! Added new window around map position (0, 1.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00071739 Jy
! Component: 100  -  total flux cleaned = 0.000651761 Jy
! Component: 150  -  total flux cleaned = 0.000501636 Jy
! Component: 200  -  total flux cleaned = 0.000499911 Jy
! Total flux subtracted in 200 components = 0.000499911 Jy
! Clean residual min=-0.002841 max=0.002245 Jy/beam
! Clean residual mean=-0.000023 rms=0.000609 Jy/beam
! Combined flux in latest and established models = 2.3456 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 103 components and 2.3456 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.006400Jy  sigma=0.001146
! Fit after  self-cal, rms=1.006407Jy  sigma=0.001146
! Inverting map 
! Your choice of large map pixels excluded 2.47% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1745 milli-arcsec
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.006407Jy  sigma=0.001146
! Fit after  self-cal, rms=1.010441Jy  sigma=0.001146
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.47% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1745 milli-arcsec
! Estimated beam: bmin=0.5544 mas, bmaj=1.151 mas, bpa=-4.604 degrees
! Estimated noise=681.999 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.61283 Jy
! Component: 100  -  total flux cleaned = 1.97286 Jy
! Component: 150  -  total flux cleaned = 2.0958 Jy
! Component: 200  -  total flux cleaned = 2.16004 Jy
! Total flux subtracted in 200 components = 2.16004 Jy
! Clean residual min=-0.008503 max=0.034197 Jy/beam
! Clean residual mean=0.000216 rms=0.003475 Jy/beam
! Combined flux in latest and established models = 2.16004 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 14 model components to the UV plane model.
! The established model now contains 14 components and 2.16004 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 2.47% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1745 milli-arcsec
! Estimated beam: bmin=0.652 mas, bmaj=1.547 mas, bpa=-5.035 degrees
! Estimated noise=311.214 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.0662056 Jy
! Component: 100  -  total flux cleaned = 0.103213 Jy
! Component: 150  -  total flux cleaned = 0.127038 Jy
! Component: 200  -  total flux cleaned = 0.142967 Jy
! Total flux subtracted in 200 components = 0.142967 Jy
! Clean residual min=-0.003491 max=0.008808 Jy/beam
! Clean residual mean=0.000397 rms=0.001648 Jy/beam
! Combined flux in latest and established models = 2.30301 Jy
! Adding 34 model components to the UV plane model.
! The established model now contains 40 components and 2.30301 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.47% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1745 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0111563 Jy
! Component: 100  -  total flux cleaned = 0.0191992 Jy
! Component: 150  -  total flux cleaned = 0.0252021 Jy
! Component: 200  -  total flux cleaned = 0.0288045 Jy
! Total flux subtracted in 200 components = 0.0288045 Jy
! Clean residual min=-0.003055 max=0.003573 Jy/beam
! Clean residual mean=0.000091 rms=0.000806 Jy/beam
! Combined flux in latest and established models = 2.33181 Jy
! Adding 30 model components to the UV plane model.
! The established model now contains 54 components and 2.33181 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.47% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1745 milli-arcsec
! Added new window around map position (1.2, 4.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00222111 Jy
! Component: 100  -  total flux cleaned = 0.00367488 Jy
! Component: 150  -  total flux cleaned = 0.00460467 Jy
! Component: 200  -  total flux cleaned = 0.00546622 Jy
! Total flux subtracted in 200 components = 0.00546622 Jy
! Clean residual min=-0.002965 max=0.002605 Jy/beam
! Clean residual mean=0.000035 rms=0.000691 Jy/beam
! Combined flux in latest and established models = 2.33728 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 69 components and 2.33728 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.47% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1745 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.47% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1745 milli-arcsec
! Estimated beam: bmin=2.202 mas, bmaj=2.738 mas, bpa=-6.112 degrees
! Estimated noise=426.325 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0036207 Jy
! Component: 100  -  total flux cleaned = 0.0052745 Jy
! Component: 150  -  total flux cleaned = 0.00571651 Jy
! Component: 200  -  total flux cleaned = 0.00602211 Jy
! Total flux subtracted in 200 components = 0.00602211 Jy
! Clean residual min=-0.002192 max=0.002054 Jy/beam
! Clean residual mean=-0.000070 rms=0.000698 Jy/beam
! Combined flux in latest and established models = 2.3433 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 = 4.27161e-05 Jy
! Component: 100  -  total flux cleaned = 8.07309e-05 Jy
! Component: 150  -  total flux cleaned = 0.000113724 Jy
! Component: 200  -  total flux cleaned = 0.000142873 Jy
! Total flux subtracted in 200 components = 0.000142873 Jy
! Clean residual min=-0.002115 max=0.001905 Jy/beam
! Clean residual mean=-0.000072 rms=0.000653 Jy/beam
! Combined flux in latest and established models = 2.34344 Jy
! Adding 45 model components to the UV plane model.
! The established model now contains 110 components and 2.34344 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.47% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1745 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 2.47% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1745 milli-arcsec
! Estimated beam: bmin=0.652 mas, bmaj=1.547 mas, bpa=-5.035 degrees
! Estimated noise=311.214 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000715308 Jy
! Component: 100  -  total flux cleaned = -0.000523491 Jy
! Component: 150  -  total flux cleaned = -0.000437473 Jy
! Component: 200  -  total flux cleaned = -0.000357904 Jy
! Total flux subtracted in 200 components = -0.000357904 Jy
! Clean residual min=-0.002786 max=0.001985 Jy/beam
! Clean residual mean=-0.000023 rms=0.000603 Jy/beam
! Combined flux in latest and established models = 2.34309 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 115 components and 2.34309 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.010726Jy  sigma=0.001149
! Fit after  self-cal, rms=1.010714Jy  sigma=0.001149
wmodel J1751+0939_X_2001_07_05_pus_map.mod
! Writing 115 model components to file: J1751+0939_X_2001_07_05_pus_map.mod
wobs J1751+0939_X_2001_07_05_pus_uvs.fits
! Writing UV FITS file: J1751+0939_X_2001_07_05_pus_uvs.fits
wwins J1751+0939_X_2001_07_05_pus_map.win
! wwins: Wrote 5 windows to J1751+0939_X_2001_07_05_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! Your choice of large map pixels excluded 2.47% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1745 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000597103 Jy
! Component: 100  -  total flux cleaned = -0.0011897 Jy
! Component: 150  -  total flux cleaned = -0.00181843 Jy
! Component: 200  -  total flux cleaned = -0.00233745 Jy
! Component: 250  -  total flux cleaned = -0.00255117 Jy
! Component: 300  -  total flux cleaned = -0.00275668 Jy
! Component: 350  -  total flux cleaned = -0.00275635 Jy
! Component: 400  -  total flux cleaned = -0.00285404 Jy
! Component: 450  -  total flux cleaned = -0.00282188 Jy
! Component: 500  -  total flux cleaned = -0.00282225 Jy
! Component: 550  -  total flux cleaned = -0.00288453 Jy
! Component: 600  -  total flux cleaned = -0.00291484 Jy
! Component: 650  -  total flux cleaned = -0.00291448 Jy
! Component: 700  -  total flux cleaned = -0.00294384 Jy
! Component: 750  -  total flux cleaned = -0.00294354 Jy
! Component: 800  -  total flux cleaned = -0.00297259 Jy
! Component: 850  -  total flux cleaned = -0.00302993 Jy
! Component: 900  -  total flux cleaned = -0.00305792 Jy
! Component: 950  -  total flux cleaned = -0.00305837 Jy
! Component: 1000  -  total flux cleaned = -0.00316956 Jy
! Total flux subtracted in 1024 components = -0.00319701 Jy
! Clean residual min=-0.001439 max=0.001730 Jy/beam
! Clean residual mean=0.000016 rms=0.000512 Jy/beam
! Combined flux in latest and established models = 2.33989 Jy
keep
! Adding 64 model components to the UV plane model.
! The established model now contains 176 components and 2.33989 Jy
wmap "J1751+0939_X_2001_07_05_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 2.47% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1745 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.652 x 1.547 at -5.035 degrees (North through East)
! Clean map  min=-0.0022377  max=2.119 Jy/beam
! Writing clean map to FITS file: J1751+0939_X_2001_07_05_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 2.11902 
invert
! Inverting map 
! Your choice of large map pixels excluded 2.47% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1745 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000511545 
device "J1751+0939_X_2001_07_05_pus\_map.eps/VPS"
! Attempting to open device: 'J1751+0939_X_2001_07_05_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.0724219 0.0724219 0.144844 0.289687 0.579375 1.15875 2.3175 4.635 9.27 18.54 37.08 74.16
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0015 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.119 
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.652 x 1.547 at -5.035 degrees (North through East)
! Clean map  min=-0.0022377  max=2.119 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1751+0939_X_2001_07_05_pus\_map.gif/vgif"
! Attempting to open device: 'J1751+0939_X_2001_07_05_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1751+0939_X_2001_07_05_pus_uvs.log closed on Wed Jul  4 21:43:33 2007