! Started logfile: J1751+0939_S_2001_10_29_pus_uvs.log on Wed Feb 27 15:29:29 2008
obs J1751+0939_S_2001_10_29_pus_uva.fits
! Reading UV FITS file: J1751+0939_S_2001_10_29_pus_uva.fits
! AN table 1: 9 integrations on 153 of 153 possible baselines.
! AN table 2: 192 integrations on 153 of 153 possible baselines.
! AN table 3: 94 integrations on 153 of 153 possible baselines.
! AN table 4: 35 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.110101 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  2.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2604 lines of history.
! 
! Reading 22236 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 = 512 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
![@muppet J1751+0939_S_2001_10_29_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 = 512x512 pixels with 0.500x0.500 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 112 telescope corrections were flagged in sub-array 1.
!  A total of 2623 telescope corrections were flagged in sub-array 2.
!  A total of 1278 telescope corrections were flagged in sub-array 3.
!  A total of 453 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 112 telescope corrections were flagged in sub-array 1.
!  A total of 2623 telescope corrections were flagged in sub-array 2.
!  A total of 1278 telescope corrections were flagged in sub-array 3.
!  A total of 453 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 112 telescope corrections were flagged in sub-array 1.
!  A total of 2623 telescope corrections were flagged in sub-array 2.
!  A total of 1278 telescope corrections were flagged in sub-array 3.
!  A total of 453 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 121 telescope corrections were flagged in sub-array 1.
!  A total of 2641 telescope corrections were flagged in sub-array 2.
!  A total of 1278 telescope corrections were flagged in sub-array 3.
!  A total of 453 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.006146Jy  sigma=0.007845
! Fit after  self-cal, rms=0.522370Jy  sigma=0.004191
! 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 
! Estimated beam: bmin=1.807 mas, bmaj=4.113 mas, bpa=5.343 degrees
! Estimated noise=1168.58 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.07107 Jy
! Component: 100  -  total flux cleaned = 1.30717 Jy
! Total flux subtracted in 100 components = 1.30717 Jy
! Clean residual min=-0.023431 max=0.077943 Jy/beam
! Clean residual mean=0.000009 rms=0.008045 Jy/beam
! Combined flux in latest and established models = 1.30717 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 1.30717 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.314993Jy  sigma=0.002395
! Fit after  self-cal, rms=0.314978Jy  sigma=0.002395
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0880764 Jy
! Component: 100  -  total flux cleaned = 0.13725 Jy
! Total flux subtracted in 100 components = 0.13725 Jy
! Clean residual min=-0.018286 max=0.025239 Jy/beam
! Clean residual mean=0.000030 rms=0.005680 Jy/beam
! Combined flux in latest and established models = 1.44442 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 19 components and 1.44442 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.272403Jy  sigma=0.001986
! Fit after  self-cal, rms=0.272004Jy  sigma=0.001984
! Inverting map 
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 
! Estimated beam: bmin=2.327 mas, bmaj=6.278 mas, bpa=-4.813 degrees
! Estimated noise=617.972 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.0641953 Jy
! Component: 100  -  total flux cleaned = 0.0941668 Jy
! Component: 150  -  total flux cleaned = 0.110721 Jy
! Component: 200  -  total flux cleaned = 0.120368 Jy
! Total flux subtracted in 200 components = 0.120368 Jy
! Clean residual min=-0.019374 max=0.024291 Jy/beam
! Clean residual mean=-0.000091 rms=0.005837 Jy/beam
! Combined flux in latest and established models = 1.56478 Jy
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 45 components and 1.56478 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.259844Jy  sigma=0.001846
! Fit after  self-cal, rms=0.259725Jy  sigma=0.001845
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.01     
!   HN        1.03     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.40     MC        1.00*    MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.04     TS        1.00*    
!   WF        1.03     WZ        1.02     
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.93     FD        1.00*    GG        1.00*    HH        1.06     
!   HN        1.04     KK        0.91     KP        1.00     LA        0.98     
!   MA        0.98     MC        0.98     MK        1.01     NL        0.98     
!   OV        0.96     PT        1.00     SC        1.01     TS        1.03     
!   WF        1.04     WZ        0.98     
! 
!  A total of 54 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00     LA        1.01     
!   MA        1.00*    MC        1.00*    MK        1.01     NL        1.00*    
!   OV        1.06     PT        1.03     SC        1.00*    TS        0.95     
!   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        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.04     KP        1.00     LA        1.01     
!   MA        1.00*    MC        1.00*    MK        1.05     NL        0.98     
!   OV        1.01     PT        1.00     SC        1.00*    TS        1.00*    
!   WF        1.04     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.01     
!   HN        1.01     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.78     MC        1.00*    MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.08     TS        1.00*    
!   WF        1.00     WZ        1.05     
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.00*    GG        1.00*    HH        1.08     
!   HN        1.04     KK        0.97     KP        0.79     LA        0.96     
!   MA        0.79     MC        1.23     MK        1.01     NL        0.99     
!   OV        0.97     PT        0.97     SC        1.01     TS        1.10     
!   WF        1.03     WZ        0.99     
! 
!  A total of 54 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.09     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        0.99     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        1.03     NL        1.00*    
!   OV        1.09     PT        1.02     SC        1.00*    TS        0.97     
!   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        1.03     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.98     KK        1.06     KP        1.05     LA        0.99     
!   MA        1.00*    MC        1.00*    MK        1.09     NL        1.00     
!   OV        1.03     PT        1.01     SC        1.00*    TS        1.00*    
!   WF        1.03     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.04     
!   HN        1.07     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.12     MC        1.00*    MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.04     TS        1.00*    
!   WF        1.09     WZ        1.02     
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.00*    GG        1.00*    HH        1.06     
!   HN        1.03     KK        0.98     KP        0.98     LA        1.00     
!   MA        0.94     MC        0.96     MK        0.98     NL        1.00     
!   OV        0.98     PT        1.02     SC        1.01     TS        1.08     
!   WF        1.15     WZ        0.94     
! 
!  A total of 54 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.09     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        0.97     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        0.99     NL        1.00*    
!   OV        1.05     PT        1.01     SC        1.00*    TS        0.98     
!   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        1.01     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.02     KP        1.04     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        1.04     NL        0.99     
!   OV        1.06     PT        1.07     SC        1.00*    TS        1.00*    
!   WF        1.06     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.97     
!   HN        1.10     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.01     TS        1.00*    
!   WF        1.00     WZ        0.99     
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.00*    GG        1.00*    HH        0.99     
!   HN        1.01     KK        0.94     KP        0.99     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        1.01     NL        1.01     
!   OV        0.96     PT        1.14     SC        1.02     TS        1.09     
!   WF        1.02     WZ        0.93     
! 
!  A total of 54 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.07     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.02     LA        1.02     
!   MA        1.00*    MC        1.00*    MK        1.01     NL        1.00*    
!   OV        1.06     PT        1.03     SC        1.00*    TS        0.98     
!   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        1.01     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        0.97     KP        1.01     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        1.07     NL        1.01     
!   OV        1.01     PT        0.97     SC        1.00*    TS        1.00*    
!   WF        1.03     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.259725Jy  sigma=0.001845
! Fit after  self-cal, rms=0.226723Jy  sigma=0.001550
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.328 mas, bmaj=6.311 mas, bpa=-4.969 degrees
! Estimated noise=620.134 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 (5.5, 6.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0139516 Jy
! Component: 100  -  total flux cleaned = 0.020146 Jy
! Component: 150  -  total flux cleaned = 0.0222069 Jy
! Component: 200  -  total flux cleaned = 0.0231511 Jy
! Total flux subtracted in 200 components = 0.0231511 Jy
! Clean residual min=-0.006377 max=0.007350 Jy/beam
! Clean residual mean=0.000428 rms=0.001801 Jy/beam
! Combined flux in latest and established models = 1.58793 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 65 components and 1.58793 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.225681Jy  sigma=0.001541
! Fit after  self-cal, rms=0.225761Jy  sigma=0.001541
! Inverting map 
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.225761Jy  sigma=0.001541
! Fit after  self-cal, rms=0.223696Jy  sigma=0.001505
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.329 mas, bmaj=6.303 mas, bpa=-4.983 degrees
! Estimated noise=621.192 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00723141 Jy
! Component: 100  -  total flux cleaned = 0.0105229 Jy
! Component: 150  -  total flux cleaned = 0.0117051 Jy
! Component: 200  -  total flux cleaned = 0.0125705 Jy
! Total flux subtracted in 200 components = 0.0125705 Jy
! Clean residual min=-0.004412 max=0.005445 Jy/beam
! Clean residual mean=0.000180 rms=0.001232 Jy/beam
! Combined flux in latest and established models = 1.60051 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 81 components and 1.60051 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223378Jy  sigma=0.001503
! Fit after  self-cal, rms=0.223335Jy  sigma=0.001503
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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 (34.5, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00510641 Jy
! Component: 100  -  total flux cleaned = 0.00713945 Jy
! Component: 150  -  total flux cleaned = 0.00764131 Jy
! Component: 200  -  total flux cleaned = 0.00781739 Jy
! Total flux subtracted in 200 components = 0.00781739 Jy
! Clean residual min=-0.004292 max=0.004165 Jy/beam
! Clean residual mean=0.000103 rms=0.001133 Jy/beam
! Combined flux in latest and established models = 1.60832 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 94 components and 1.60832 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223148Jy  sigma=0.001501
! Fit after  self-cal, rms=0.223142Jy  sigma=0.001501
! Inverting map 
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.223142Jy  sigma=0.001501
! Fit after  self-cal, rms=0.223153Jy  sigma=0.001501
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.328 mas, bmaj=6.298 mas, bpa=-5.002 degrees
! Estimated noise=621.59 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0036619 Jy
! Component: 100  -  total flux cleaned = 0.00463556 Jy
! Component: 150  -  total flux cleaned = 0.00514194 Jy
! Component: 200  -  total flux cleaned = 0.00537401 Jy
! Total flux subtracted in 200 components = 0.00537401 Jy
! Clean residual min=-0.004370 max=0.004149 Jy/beam
! Clean residual mean=0.000050 rms=0.001115 Jy/beam
! Combined flux in latest and established models = 1.6137 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 103 components and 1.6137 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223042Jy  sigma=0.001500
! Fit after  self-cal, rms=0.223039Jy  sigma=0.001500
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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.000973443 Jy
! Component: 100  -  total flux cleaned = 0.00104633 Jy
! Component: 150  -  total flux cleaned = 0.00104647 Jy
! Component: 200  -  total flux cleaned = 0.00111074 Jy
! Total flux subtracted in 200 components = 0.00111074 Jy
! Clean residual min=-0.004338 max=0.003983 Jy/beam
! Clean residual mean=0.000039 rms=0.001092 Jy/beam
! Combined flux in latest and established models = 1.61481 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 108 components and 1.61481 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222979Jy  sigma=0.001500
! Fit after  self-cal, rms=0.222981Jy  sigma=0.001500
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 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.222981Jy  sigma=0.001500
! Fit after  self-cal, rms=0.222966Jy  sigma=0.001500
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.494 mas, bmaj=11.18 mas, bpa=-7.552 degrees
! Estimated noise=867.587 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00331628 Jy
! Component: 100  -  total flux cleaned = 0.00476943 Jy
! Component: 150  -  total flux cleaned = 0.00509679 Jy
! Component: 200  -  total flux cleaned = 0.00529508 Jy
! Total flux subtracted in 200 components = 0.00529508 Jy
! Clean residual min=-0.004542 max=0.004368 Jy/beam
! Clean residual mean=-0.000075 rms=0.001509 Jy/beam
! Combined flux in latest and established models = 1.6201 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 119 components and 1.6201 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222954Jy  sigma=0.001500
! Fit after  self-cal, rms=0.222945Jy  sigma=0.001500
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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.000291782 Jy
! Component: 100  -  total flux cleaned = 0.000395135 Jy
! Component: 150  -  total flux cleaned = 0.000453245 Jy
! Component: 200  -  total flux cleaned = 0.000480845 Jy
! Total flux subtracted in 200 components = 0.000480845 Jy
! Clean residual min=-0.004510 max=0.004294 Jy/beam
! Clean residual mean=-0.000087 rms=0.001497 Jy/beam
! Combined flux in latest and established models = 1.62058 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 121 components and 1.62058 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222937Jy  sigma=0.001500
! Fit after  self-cal, rms=0.222935Jy  sigma=0.001500
! Inverting map 
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 
! Estimated beam: bmin=2.328 mas, bmaj=6.296 mas, bpa=-5.015 degrees
! Estimated noise=621.846 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.328 x 6.296 at -5.015 degrees (North through East)
! Clean map  min=-0.0039772  max=1.4276 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.222935Jy  sigma=0.001500
! Fit after  self-cal, rms=0.198915Jy  sigma=0.001229
! Inverting map and beam 
! Estimated beam: bmin=2.327 mas, bmaj=6.294 mas, bpa=-5.005 degrees
! Estimated noise=622.123 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00253331 Jy
! Component: 100  -  total flux cleaned = -0.00285335 Jy
! Component: 150  -  total flux cleaned = -0.00312179 Jy
! Component: 200  -  total flux cleaned = -0.00347306 Jy
! Total flux subtracted in 200 components = -0.00347306 Jy
! Clean residual min=-0.003830 max=0.003641 Jy/beam
! Clean residual mean=0.000059 rms=0.000930 Jy/beam
! Combined flux in latest and established models = 1.61711 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 129 components and 1.61711 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.198842Jy  sigma=0.001229
! Fit after  self-cal, rms=0.198845Jy  sigma=0.001229
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0001565 Jy
! Component: 100  -  total flux cleaned = -0.0003561 Jy
! Component: 150  -  total flux cleaned = -0.000402999 Jy
! Component: 200  -  total flux cleaned = -0.000448163 Jy
! Total flux subtracted in 200 components = -0.000448163 Jy
! Clean residual min=-0.003815 max=0.003530 Jy/beam
! Clean residual mean=0.000063 rms=0.000923 Jy/beam
! Combined flux in latest and established models = 1.61666 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 139 components and 1.61666 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.198816Jy  sigma=0.001228
! Fit after  self-cal, rms=0.198819Jy  sigma=0.001228
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.198819Jy  sigma=0.001228
! Fit after  self-cal, rms=0.198792Jy  sigma=0.001228
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 
! Estimated beam: bmin=1.805 mas, bmaj=4.101 mas, bpa=4.824 degrees
! Estimated noise=1194.49 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.08551 Jy
! Component: 100  -  total flux cleaned = 1.32677 Jy
! Component: 150  -  total flux cleaned = 1.42312 Jy
! Component: 200  -  total flux cleaned = 1.47661 Jy
! Total flux subtracted in 200 components = 1.47661 Jy
! Clean residual min=-0.008986 max=0.028911 Jy/beam
! Clean residual mean=0.000016 rms=0.003052 Jy/beam
! Combined flux in latest and established models = 1.47661 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 16 model components to the UV plane model.
! The established model now contains 16 components and 1.47661 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.327 mas, bmaj=6.295 mas, bpa=-5.016 degrees
! Estimated noise=622.188 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.0512197 Jy
! Component: 100  -  total flux cleaned = 0.0782778 Jy
! Component: 150  -  total flux cleaned = 0.0951013 Jy
! Component: 200  -  total flux cleaned = 0.106508 Jy
! Total flux subtracted in 200 components = 0.106508 Jy
! Clean residual min=-0.005076 max=0.007642 Jy/beam
! Clean residual mean=0.000395 rms=0.001546 Jy/beam
! Combined flux in latest and established models = 1.58312 Jy
! Adding 52 model components to the UV plane model.
! The established model now contains 56 components and 1.58312 Jy
! Inverting map 
! Added new window around map position (0, 5.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00869968 Jy
! Component: 100  -  total flux cleaned = 0.0151384 Jy
! Component: 150  -  total flux cleaned = 0.020184 Jy
! Component: 200  -  total flux cleaned = 0.0235963 Jy
! Total flux subtracted in 200 components = 0.0235963 Jy
! Clean residual min=-0.004246 max=0.003704 Jy/beam
! Clean residual mean=0.000153 rms=0.001057 Jy/beam
! Combined flux in latest and established models = 1.60671 Jy
! Adding 33 model components to the UV plane model.
! The established model now contains 82 components and 1.60671 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.498 mas, bmaj=11.18 mas, bpa=-7.595 degrees
! Estimated noise=868.185 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00548715 Jy
! Component: 100  -  total flux cleaned = 0.00850831 Jy
! Component: 150  -  total flux cleaned = 0.00962746 Jy
! Component: 200  -  total flux cleaned = 0.0101548 Jy
! Total flux subtracted in 200 components = 0.0101548 Jy
! Clean residual min=-0.003390 max=0.004380 Jy/beam
! Clean residual mean=0.000124 rms=0.001202 Jy/beam
! Combined flux in latest and established models = 1.61687 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.000276779 Jy
! Component: 100  -  total flux cleaned = 0.000469299 Jy
! Component: 150  -  total flux cleaned = 0.000569163 Jy
! Component: 200  -  total flux cleaned = 0.000712603 Jy
! Total flux subtracted in 200 components = 0.000712603 Jy
! Clean residual min=-0.003445 max=0.004234 Jy/beam
! Clean residual mean=0.000101 rms=0.001181 Jy/beam
! Combined flux in latest and established models = 1.61758 Jy
! Adding 46 model components to the UV plane model.
! The established model now contains 121 components and 1.61758 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.327 mas, bmaj=6.295 mas, bpa=-5.016 degrees
! Estimated noise=622.188 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000882611 Jy
! Component: 100  -  total flux cleaned = -0.0010712 Jy
! Component: 150  -  total flux cleaned = -0.00115485 Jy
! Component: 200  -  total flux cleaned = -0.00130113 Jy
! Total flux subtracted in 200 components = -0.00130113 Jy
! Clean residual min=-0.004322 max=0.003564 Jy/beam
! Clean residual mean=0.000052 rms=0.000939 Jy/beam
! Combined flux in latest and established models = 1.61628 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 139 components and 1.61628 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.198856Jy  sigma=0.001229
! Fit after  self-cal, rms=0.198841Jy  sigma=0.001229
wmodel J1751+0939_S_2001_10_29_pus_map.mod
! Writing 139 model components to file: J1751+0939_S_2001_10_29_pus_map.mod
wobs J1751+0939_S_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J1751+0939_S_2001_10_29_pus_uvs.fits
wwins J1751+0939_S_2001_10_29_pus_map.win
! wwins: Wrote 4 windows to J1751+0939_S_2001_10_29_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000608507 Jy
! Component: 100  -  total flux cleaned = -0.000183907 Jy
! Component: 150  -  total flux cleaned = 4.34455e-05 Jy
! Component: 200  -  total flux cleaned = 0.000154135 Jy
! Component: 250  -  total flux cleaned = 0.000155069 Jy
! Component: 300  -  total flux cleaned = 0.000206308 Jy
! Component: 350  -  total flux cleaned = 0.000404251 Jy
! Component: 400  -  total flux cleaned = 0.000500875 Jy
! Component: 450  -  total flux cleaned = 0.000689884 Jy
! Component: 500  -  total flux cleaned = 0.000782332 Jy
! Component: 550  -  total flux cleaned = 0.000963343 Jy
! Component: 600  -  total flux cleaned = 0.0010962 Jy
! Component: 650  -  total flux cleaned = 0.00122751 Jy
! Component: 700  -  total flux cleaned = 0.00144274 Jy
! Component: 750  -  total flux cleaned = 0.0014857 Jy
! Component: 800  -  total flux cleaned = 0.00177976 Jy
! Component: 850  -  total flux cleaned = 0.00182127 Jy
! Component: 900  -  total flux cleaned = 0.00198571 Jy
! Component: 950  -  total flux cleaned = 0.00206658 Jy
! Component: 1000  -  total flux cleaned = 0.0021865 Jy
! Component: 1050  -  total flux cleaned = 0.00218647 Jy
! Component: 1100  -  total flux cleaned = 0.00218671 Jy
! Component: 1150  -  total flux cleaned = 0.00230347 Jy
! Component: 1200  -  total flux cleaned = 0.00234211 Jy
! Component: 1250  -  total flux cleaned = 0.00234225 Jy
! Component: 1300  -  total flux cleaned = 0.00241767 Jy
! Component: 1350  -  total flux cleaned = 0.00241734 Jy
! Component: 1400  -  total flux cleaned = 0.00245448 Jy
! Component: 1450  -  total flux cleaned = 0.00241782 Jy
! Component: 1500  -  total flux cleaned = 0.00249072 Jy
! Component: 1550  -  total flux cleaned = 0.0024908 Jy
! Component: 1600  -  total flux cleaned = 0.00256265 Jy
! Component: 1650  -  total flux cleaned = 0.00263353 Jy
! Component: 1700  -  total flux cleaned = 0.00259814 Jy
! Component: 1750  -  total flux cleaned = 0.00270319 Jy
! Component: 1800  -  total flux cleaned = 0.00273789 Jy
! Component: 1850  -  total flux cleaned = 0.00273768 Jy
! Component: 1900  -  total flux cleaned = 0.00284022 Jy
! Component: 1950  -  total flux cleaned = 0.00284003 Jy
! Component: 2000  -  total flux cleaned = 0.00287367 Jy
! Total flux subtracted in 2048 components = 0.00287375 Jy
! Clean residual min=-0.002087 max=0.001834 Jy/beam
! Clean residual mean=0.000033 rms=0.000651 Jy/beam
! Combined flux in latest and established models = 1.61915 Jy
keep
! Adding 148 model components to the UV plane model.
! The established model now contains 287 components and 1.61915 Jy
![Exited script file: muppet]
wmap "J1751+0939_S_2001_10_29_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.327 x 6.295 at -5.016 degrees (North through East)
! Clean map  min=-0.0039034  max=1.4296 Jy/beam
! Writing clean map to FITS file: J1751+0939_S_2001_10_29_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.42962 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000649238 
device "J1751+0939_S_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J1751+0939_S_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.13624 0.13624 0.27248 0.54496 1.08992 2.17984 4.35968 8.71937 17.4387 34.8775 69.7549
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0019 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.429 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.327 x 6.295 at -5.016 degrees (North through East)
! Clean map  min=-0.0039034  max=1.4296 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1751+0939_S_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J1751+0939_S_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1751+0939_S_2001_10_29_pus_uvs.log closed on Wed Feb 27 15:29:42 2008