! Started logfile: J0748+2400_S_2001_10_29_pus_uvs.log on Wed Feb 27 15:15:55 2008
obs J0748+2400_S_2001_10_29_pus_uva.fits
! Reading UV FITS file: J0748+2400_S_2001_10_29_pus_uva.fits
! AN table 1: 78 integrations on 153 of 153 possible baselines.
! AN table 2: 373 integrations on 153 of 153 possible baselines.
! AN table 3: 381 integrations on 153 of 153 possible baselines.
! AN table 4: 254 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.123593 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0748+2400
! 
! 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 82144 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 J0748+2400_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 852 telescope corrections were flagged in sub-array 1.
!  A total of 5366 telescope corrections were flagged in sub-array 2.
!  A total of 5057 telescope corrections were flagged in sub-array 3.
!  A total of 2862 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 852 telescope corrections were flagged in sub-array 1.
!  A total of 5366 telescope corrections were flagged in sub-array 2.
!  A total of 5057 telescope corrections were flagged in sub-array 3.
!  A total of 2862 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 852 telescope corrections were flagged in sub-array 1.
!  A total of 5366 telescope corrections were flagged in sub-array 2.
!  A total of 5057 telescope corrections were flagged in sub-array 3.
!  A total of 2862 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 852 telescope corrections were flagged in sub-array 1.
!  A total of 5578 telescope corrections were flagged in sub-array 2.
!  A total of 5129 telescope corrections were flagged in sub-array 3.
!  A total of 3225 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.768766Jy  sigma=0.006402
! Fit after  self-cal, rms=0.702021Jy  sigma=0.005886
! 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.731 mas, bmaj=4.599 mas, bpa=-5.131 degrees
! Estimated noise=730.556 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.237806 Jy
! Component: 100  -  total flux cleaned = 0.30136 Jy
! Total flux subtracted in 100 components = 0.30136 Jy
! Clean residual min=-0.010782 max=0.054916 Jy/beam
! Clean residual mean=0.000123 rms=0.003580 Jy/beam
! Combined flux in latest and established models = 0.30136 Jy
! Performing phase self-cal
! Adding 3 model components to the UV plane model.
! The established model now contains 3 components and 0.30136 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.216694Jy  sigma=0.001528
! Fit after  self-cal, rms=0.216388Jy  sigma=0.001527
! Inverting map 
! Added new window around map position (-3, 2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0473668 Jy
! Component: 100  -  total flux cleaned = 0.0715363 Jy
! Total flux subtracted in 100 components = 0.0715363 Jy
! Clean residual min=-0.007170 max=0.025667 Jy/beam
! Clean residual mean=0.000087 rms=0.002279 Jy/beam
! Combined flux in latest and established models = 0.372896 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 17 components and 0.372896 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.202594Jy  sigma=0.001374
! Fit after  self-cal, rms=0.200866Jy  sigma=0.001357
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0222774 Jy
! Component: 100  -  total flux cleaned = 0.0344862 Jy
! Total flux subtracted in 100 components = 0.0344862 Jy
! Clean residual min=-0.005553 max=0.012685 Jy/beam
! Clean residual mean=0.000069 rms=0.001634 Jy/beam
! Combined flux in latest and established models = 0.407383 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 24 components and 0.407383 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.197596Jy  sigma=0.001317
! Fit after  self-cal, rms=0.197218Jy  sigma=0.001313
! Inverting map 
! Added new window around map position (-6.5, 7).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0133105 Jy
! Component: 100  -  total flux cleaned = 0.0221006 Jy
! Total flux subtracted in 100 components = 0.0221006 Jy
! Clean residual min=-0.004909 max=0.007513 Jy/beam
! Clean residual mean=0.000053 rms=0.001347 Jy/beam
! Combined flux in latest and established models = 0.429483 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 34 components and 0.429483 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.195964Jy  sigma=0.001298
! Fit after  self-cal, rms=0.195842Jy  sigma=0.001297
! 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.199 mas, bmaj=5.361 mas, bpa=-8.795 degrees
! Estimated noise=307.497 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.0117672 Jy
! Component: 100  -  total flux cleaned = 0.0189855 Jy
! Component: 150  -  total flux cleaned = 0.0240433 Jy
! Component: 200  -  total flux cleaned = 0.0277698 Jy
! Total flux subtracted in 200 components = 0.0277698 Jy
! Clean residual min=-0.002906 max=0.004483 Jy/beam
! Clean residual mean=0.000092 rms=0.000929 Jy/beam
! Combined flux in latest and established models = 0.457253 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 59 components and 0.457253 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.195141Jy  sigma=0.001287
! Fit after  self-cal, rms=0.195060Jy  sigma=0.001287
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.04     LA        0.99     
!   MA        1.00*    MC        1.00*    MK        0.95     NL        1.05     
!   OV        0.98     PT        1.02     SC        1.00*    TS        0.98     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 147 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.94     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.03     KK        0.99     KP        0.99     LA        0.92     
!   MA        0.83     MC        1.01     MK        1.04     NL        0.96     
!   OV        1.01     PT        0.98     SC        1.05     TS        1.02     
!   WF        1.03     WZ        1.03     
! 
!  A total of 141 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.14     KK        0.98     KP        1.07     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        0.99     NL        0.98     
!   OV        0.99     PT        1.01     SC        1.00*    TS        1.00     
!   WF        1.03     WZ        1.00*    
! 
!  A total of 210 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.89     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.02     KK        1.05     KP        0.90     LA        0.96     
!   MA        1.03     MC        1.07     MK        1.01     NL        0.97     
!   OV        0.84     PT        0.99     SC        0.98     TS        1.00*    
!   WF        0.94     WZ        0.97     
! 
! 
! Correcting IF 2.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.06     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        0.79     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        0.96     NL        1.01     
!   OV        0.99     PT        1.01     SC        1.00*    TS        1.05     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 147 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.00*    
!   HN        0.99     KK        0.99     KP        0.98     LA        0.89     
!   MA        0.90     MC        0.92     MK        1.03     NL        0.96     
!   OV        1.04     PT        0.98     SC        1.01     TS        1.07     
!   WF        1.00     WZ        1.03     
! 
!  A total of 141 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.15     KK        1.02     KP        0.93     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        1.01     NL        0.99     
!   OV        1.03     PT        0.97     SC        1.00*    TS        1.01     
!   WF        1.03     WZ        1.00*    
! 
!  A total of 210 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.09     KP        1.05     LA        0.91     
!   MA        0.98     MC        0.98     MK        1.07     NL        0.98     
!   OV        1.02     PT        0.97     SC        1.01     TS        1.00*    
!   WF        1.03     WZ        0.95     
! 
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.04     LA        0.97     
!   MA        1.00*    MC        1.00*    MK        0.92     NL        1.04     
!   OV        0.98     PT        1.02     SC        1.00*    TS        0.99     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 147 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        1.00*    
!   HN        1.02     KK        0.99     KP        0.95     LA        0.94     
!   MA        1.39     MC        1.27     MK        1.02     NL        0.97     
!   OV        1.02     PT        0.97     SC        1.03     TS        1.07     
!   WF        1.01     WZ        1.06     
! 
!  A total of 141 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.13     KK        1.04     KP        1.03     LA        0.94     
!   MA        1.00*    MC        1.00*    MK        0.97     NL        1.01     
!   OV        1.03     PT        0.99     SC        1.00*    TS        1.00     
!   WF        0.95     WZ        1.00*    
! 
!  A total of 210 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.01     KK        1.13     KP        1.00     LA        0.95     
!   MA        0.98     MC        1.06     MK        1.02     NL        0.98     
!   OV        1.04     PT        0.98     SC        0.97     TS        1.00*    
!   WF        0.89     WZ        0.98     
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.02     LA        1.03     
!   MA        1.00*    MC        1.00*    MK        0.95     NL        1.07     
!   OV        0.99     PT        1.02     SC        1.00*    TS        1.00     
!   WF        1.00*    WZ        1.00*    
! 
!  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        1.00*    
!   HN        1.01     KK        0.98     KP        0.96     LA        0.94     
!   MA        1.00*    MC        1.00*    MK        1.02     NL        1.00     
!   OV        1.02     PT        1.00     SC        1.04     TS        1.08     
!   WF        1.00     WZ        1.00*    
! 
!  A total of 69 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.17     KK        1.00     KP        1.04     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        1.01     NL        1.03     
!   OV        1.00     PT        0.99     SC        1.00*    TS        1.01     
!   WF        1.02     WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.99     KK        1.06     KP        0.99     LA        0.96     
!   MA        1.00*    MC        1.00*    MK        1.06     NL        1.03     
!   OV        0.98     PT        1.09     SC        0.98     TS        1.00*    
!   WF        1.01     WZ        0.98     
! 
! 
! Fit before self-cal, rms=0.195060Jy  sigma=0.001287
! Fit after  self-cal, rms=0.191148Jy  sigma=0.001273
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.228 mas, bmaj=5.391 mas, bpa=-9.099 degrees
! Estimated noise=307.585 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 (-9.5, 6.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00352849 Jy
! Component: 100  -  total flux cleaned = 0.00552367 Jy
! Component: 150  -  total flux cleaned = 0.00600406 Jy
! Component: 200  -  total flux cleaned = 0.00638606 Jy
! Total flux subtracted in 200 components = 0.00638606 Jy
! Clean residual min=-0.001382 max=0.001853 Jy/beam
! Clean residual mean=0.000066 rms=0.000415 Jy/beam
! Combined flux in latest and established models = 0.463639 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 77 components and 0.463639 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.191070Jy  sigma=0.001273
! Fit after  self-cal, rms=0.191134Jy  sigma=0.001273
! 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.191134Jy  sigma=0.001273
! Fit after  self-cal, rms=0.191557Jy  sigma=0.001272
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.228 mas, bmaj=5.392 mas, bpa=-9.099 degrees
! Estimated noise=307.947 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0019453 Jy
! Component: 100  -  total flux cleaned = 0.00274308 Jy
! Component: 150  -  total flux cleaned = 0.00304811 Jy
! Component: 200  -  total flux cleaned = 0.00324247 Jy
! Total flux subtracted in 200 components = 0.00324247 Jy
! Clean residual min=-0.001238 max=0.001788 Jy/beam
! Clean residual mean=0.000046 rms=0.000389 Jy/beam
! Combined flux in latest and established models = 0.466882 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 92 components and 0.466882 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.191531Jy  sigma=0.001272
! Fit after  self-cal, rms=0.191546Jy  sigma=0.001272
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 (-33.5, 19).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00167478 Jy
! Component: 100  -  total flux cleaned = 0.00231099 Jy
! Component: 150  -  total flux cleaned = 0.00269578 Jy
! Component: 200  -  total flux cleaned = 0.00296812 Jy
! Total flux subtracted in 200 components = 0.00296812 Jy
! Clean residual min=-0.001202 max=0.001456 Jy/beam
! Clean residual mean=0.000027 rms=0.000367 Jy/beam
! Combined flux in latest and established models = 0.46985 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 107 components and 0.46985 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.191523Jy  sigma=0.001272
! Fit after  self-cal, rms=0.191519Jy  sigma=0.001272
! 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.191519Jy  sigma=0.001272
! Fit after  self-cal, rms=0.191868Jy  sigma=0.001272
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.227 mas, bmaj=5.393 mas, bpa=-9.119 degrees
! Estimated noise=308.287 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00116025 Jy
! Component: 100  -  total flux cleaned = 0.00190148 Jy
! Component: 150  -  total flux cleaned = 0.00232709 Jy
! Component: 200  -  total flux cleaned = 0.00252981 Jy
! Total flux subtracted in 200 components = 0.00252981 Jy
! Clean residual min=-0.001193 max=0.001473 Jy/beam
! Clean residual mean=0.000018 rms=0.000360 Jy/beam
! Combined flux in latest and established models = 0.472379 Jy
selfcal
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 122 components and 0.472379 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.191856Jy  sigma=0.001272
! Fit after  self-cal, rms=0.191860Jy  sigma=0.001272
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.000354889 Jy
! Component: 100  -  total flux cleaned = 0.000578426 Jy
! Component: 150  -  total flux cleaned = 0.000646419 Jy
! Component: 200  -  total flux cleaned = 0.000711262 Jy
! Total flux subtracted in 200 components = 0.000711262 Jy
! Clean residual min=-0.001165 max=0.001461 Jy/beam
! Clean residual mean=0.000014 rms=0.000353 Jy/beam
! Combined flux in latest and established models = 0.473091 Jy
! Performing phase self-cal
! Adding 41 model components to the UV plane model.
! The established model now contains 134 components and 0.473091 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.191854Jy  sigma=0.001272
! Fit after  self-cal, rms=0.191854Jy  sigma=0.001272
! 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.191854Jy  sigma=0.001272
! Fit after  self-cal, rms=0.192124Jy  sigma=0.001272
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.969 mas, bmaj=9.472 mas, bpa=-12.86 degrees
! Estimated noise=453.96 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00124278 Jy
! Component: 100  -  total flux cleaned = 0.00183581 Jy
! Component: 150  -  total flux cleaned = 0.00198638 Jy
! Component: 200  -  total flux cleaned = 0.00210847 Jy
! Total flux subtracted in 200 components = 0.00210847 Jy
! Clean residual min=-0.001614 max=0.001592 Jy/beam
! Clean residual mean=0.000014 rms=0.000485 Jy/beam
! Combined flux in latest and established models = 0.475199 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 156 components and 0.475199 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.192123Jy  sigma=0.001272
! Fit after  self-cal, rms=0.192123Jy  sigma=0.001272
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.000259282 Jy
! Component: 100  -  total flux cleaned = 0.000286048 Jy
! Component: 150  -  total flux cleaned = 0.000296919 Jy
! Component: 200  -  total flux cleaned = 0.000328843 Jy
! Total flux subtracted in 200 components = 0.000328843 Jy
! Clean residual min=-0.001624 max=0.001531 Jy/beam
! Clean residual mean=0.000009 rms=0.000475 Jy/beam
! Combined flux in latest and established models = 0.475528 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 165 components and 0.475528 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.192123Jy  sigma=0.001272
! Fit after  self-cal, rms=0.192123Jy  sigma=0.001272
! 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.227 mas, bmaj=5.394 mas, bpa=-9.131 degrees
! Estimated noise=308.626 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.227 x 5.394 at -9.131 degrees (North through East)
! Clean map  min=-0.0011895  max=0.29965 Jy/beam
if(peak(flux) > thresh)
  selfcal true, true
  clean clean_niter,clean_gain
  selfcal
  flux_cutoff = imstat(rms) * dynam
  repeat
    if (peak(flux) > flux_cutoff) peakwin win_mult
    clean clean_niter,clean_gain
    flux_cutoff = imstat(rms) * dynam
    selfcal
    new_peak = peak(flux)
    until(new_peak<=flux_cutoff)
  selfcal true, true
  end if
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=1.755 mas, bmaj=4.611 mas, bpa=-5.497 degrees
! Estimated noise=741.835 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.237795 Jy
! Component: 100  -  total flux cleaned = 0.317878 Jy
! Component: 150  -  total flux cleaned = 0.360479 Jy
! Component: 200  -  total flux cleaned = 0.386279 Jy
! Total flux subtracted in 200 components = 0.386279 Jy
! Clean residual min=-0.005177 max=0.013441 Jy/beam
! Clean residual mean=0.000082 rms=0.001587 Jy/beam
! Combined flux in latest and established models = 0.386279 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 12 model components to the UV plane model.
! The established model now contains 12 components and 0.386279 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.227 mas, bmaj=5.394 mas, bpa=-9.131 degrees
! Estimated noise=308.626 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.0267444 Jy
! Component: 100  -  total flux cleaned = 0.043076 Jy
! Component: 150  -  total flux cleaned = 0.0538426 Jy
! Component: 200  -  total flux cleaned = 0.0611806 Jy
! Total flux subtracted in 200 components = 0.0611806 Jy
! Clean residual min=-0.002025 max=0.004201 Jy/beam
! Clean residual mean=0.000179 rms=0.000725 Jy/beam
! Combined flux in latest and established models = 0.44746 Jy
! Adding 47 model components to the UV plane model.
! The established model now contains 49 components and 0.44746 Jy
! Inverting map 
! Added new window around map position (-5, 1.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00535815 Jy
! Component: 100  -  total flux cleaned = 0.0094435 Jy
! Component: 150  -  total flux cleaned = 0.0126184 Jy
! Component: 200  -  total flux cleaned = 0.0151976 Jy
! Total flux subtracted in 200 components = 0.0151976 Jy
! Clean residual min=-0.001396 max=0.001674 Jy/beam
! Clean residual mean=0.000085 rms=0.000441 Jy/beam
! Combined flux in latest and established models = 0.462658 Jy
! Adding 49 model components to the UV plane model.
! The established model now contains 92 components and 0.462658 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.969 mas, bmaj=9.472 mas, bpa=-12.86 degrees
! Estimated noise=453.96 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00437592 Jy
! Component: 100  -  total flux cleaned = 0.00703342 Jy
! Component: 150  -  total flux cleaned = 0.00887719 Jy
! Component: 200  -  total flux cleaned = 0.0102035 Jy
! Total flux subtracted in 200 components = 0.0102035 Jy
! Clean residual min=-0.001445 max=0.001603 Jy/beam
! Clean residual mean=0.000059 rms=0.000510 Jy/beam
! Combined flux in latest and established models = 0.472861 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.00096633 Jy
! Component: 100  -  total flux cleaned = 0.00167448 Jy
! Component: 150  -  total flux cleaned = 0.00196155 Jy
! Component: 200  -  total flux cleaned = 0.0021824 Jy
! Total flux subtracted in 200 components = 0.0021824 Jy
! Clean residual min=-0.001531 max=0.001455 Jy/beam
! Clean residual mean=0.000018 rms=0.000475 Jy/beam
! Combined flux in latest and established models = 0.475043 Jy
! Adding 92 model components to the UV plane model.
! The established model now contains 173 components and 0.475044 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.227 mas, bmaj=5.394 mas, bpa=-9.131 degrees
! Estimated noise=308.626 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00017583 Jy
! Component: 100  -  total flux cleaned = 1.36375e-05 Jy
! Component: 150  -  total flux cleaned = 0.000144871 Jy
! Component: 200  -  total flux cleaned = 0.000264715 Jy
! Total flux subtracted in 200 components = 0.000264715 Jy
! Clean residual min=-0.001214 max=0.001430 Jy/beam
! Clean residual mean=0.000005 rms=0.000351 Jy/beam
! Combined flux in latest and established models = 0.475308 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 191 components and 0.475308 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.192136Jy  sigma=0.001272
! Fit after  self-cal, rms=0.192119Jy  sigma=0.001272
wmodel J0748+2400_S_2001_10_29_pus_map.mod
! Writing 191 model components to file: J0748+2400_S_2001_10_29_pus_map.mod
wobs J0748+2400_S_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J0748+2400_S_2001_10_29_pus_uvs.fits
wwins J0748+2400_S_2001_10_29_pus_map.win
! wwins: Wrote 6 windows to J0748+2400_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.000511282 Jy
! Component: 100  -  total flux cleaned = 0.000577709 Jy
! Component: 150  -  total flux cleaned = 0.000535051 Jy
! Component: 200  -  total flux cleaned = 0.000493456 Jy
! Component: 250  -  total flux cleaned = 0.000473155 Jy
! Component: 300  -  total flux cleaned = 0.000433303 Jy
! Component: 350  -  total flux cleaned = 0.00041386 Jy
! Component: 400  -  total flux cleaned = 0.000375644 Jy
! Component: 450  -  total flux cleaned = 0.000338191 Jy
! Component: 500  -  total flux cleaned = 0.000319688 Jy
! Component: 550  -  total flux cleaned = 0.000228105 Jy
! Component: 600  -  total flux cleaned = 0.000173818 Jy
! Component: 650  -  total flux cleaned = 0.000138034 Jy
! Component: 700  -  total flux cleaned = 0.000102505 Jy
! Component: 750  -  total flux cleaned = 0.0001023 Jy
! Component: 800  -  total flux cleaned = 8.48834e-05 Jy
! Component: 850  -  total flux cleaned = 1.60434e-05 Jy
! Component: 900  -  total flux cleaned = -1.79636e-05 Jy
! Component: 950  -  total flux cleaned = -1.79608e-05 Jy
! Component: 1000  -  total flux cleaned = -3.47761e-05 Jy
! Component: 1050  -  total flux cleaned = -6.77954e-05 Jy
! Component: 1100  -  total flux cleaned = -6.78456e-05 Jy
! Component: 1150  -  total flux cleaned = -0.000116758 Jy
! Component: 1200  -  total flux cleaned = -0.000148952 Jy
! Component: 1250  -  total flux cleaned = -0.000148866 Jy
! Component: 1300  -  total flux cleaned = -0.000117055 Jy
! Component: 1350  -  total flux cleaned = -0.000132901 Jy
! Component: 1400  -  total flux cleaned = -0.000117186 Jy
! Component: 1450  -  total flux cleaned = -0.000117192 Jy
! Component: 1500  -  total flux cleaned = -0.000132682 Jy
! Component: 1550  -  total flux cleaned = -0.000132649 Jy
! Component: 1600  -  total flux cleaned = -0.00013248 Jy
! Component: 1650  -  total flux cleaned = -0.000102234 Jy
! Component: 1700  -  total flux cleaned = -0.000147367 Jy
! Component: 1750  -  total flux cleaned = -0.000132462 Jy
! Component: 1800  -  total flux cleaned = -0.000162261 Jy
! Component: 1850  -  total flux cleaned = -0.000147445 Jy
! Component: 1900  -  total flux cleaned = -0.000162142 Jy
! Component: 1950  -  total flux cleaned = -0.000176695 Jy
! Component: 2000  -  total flux cleaned = -0.000147603 Jy
! Total flux subtracted in 2048 components = -0.000147662 Jy
! Clean residual min=-0.001007 max=0.000844 Jy/beam
! Clean residual mean=0.000004 rms=0.000282 Jy/beam
! Combined flux in latest and established models = 0.475161 Jy
keep
! Adding 159 model components to the UV plane model.
! The established model now contains 350 components and 0.47516 Jy
![Exited script file: muppet]
wmap "J0748+2400_S_2001_10_29_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.227 x 5.394 at -9.131 degrees (North through East)
! Clean map  min=-0.001071  max=0.29924 Jy/beam
! Writing clean map to FITS file: J0748+2400_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 0.299241 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000281752 
device "J0748+2400_S_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J0748+2400_S_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.282467 0.282467 0.564933 1.12987 2.25973 4.51946 9.03893 18.0779 36.1557 72.3114
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0008 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.299 
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.227 x 5.394 at -9.131 degrees (North through East)
! Clean map  min=-0.001071  max=0.29924 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0748+2400_S_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J0748+2400_S_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0748+2400_S_2001_10_29_pus_uvs.log closed on Wed Feb 27 15:16:28 2008