! Started logfile: J0825+0309_X_1998_10_01_pus_uvs.log on Wed Feb  6 12:27:18 2008
obs J0825+0309_X_1998_10_01_pus_uva.fits
! Reading UV FITS file: J0825+0309_X_1998_10_01_pus_uva.fits
! AN table 1: 64 integrations on 136 of 136 possible baselines.
! AN table 2: 217 integrations on 136 of 136 possible baselines.
! AN table 3: 217 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.114369 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0825+0309
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  8.40798e+09        4e+06          1        4e+06
!  02        2  8.47798e+09        4e+06          1        4e+06
!  03        3  8.79298e+09        4e+06          1        4e+06
!  04        4  8.89798e+09        4e+06          1        4e+06
! 
! Polarization(s): RR
! 
! Read 2049 lines of history.
! 
! Reading 30984 visibilities.
select I
! Polarization I is unavailable.
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
print "field_size =",field_size
! field_size = 256 
print "field_cell =",field_cell
! field_cell = 0.2 
print "taper_size =",taper_size
! taper_size = 70 
![@muppet J0825+0309_X_1998_10_01_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 256x256 pixels with 0.200x0.200 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 755 telescope corrections were flagged in sub-array 1.
!  A total of 3025 telescope corrections were flagged in sub-array 2.
!  A total of 2576 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 755 telescope corrections were flagged in sub-array 1.
!  A total of 3025 telescope corrections were flagged in sub-array 2.
!  A total of 2576 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 755 telescope corrections were flagged in sub-array 1.
!  A total of 3025 telescope corrections were flagged in sub-array 2.
!  A total of 2576 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 755 telescope corrections were flagged in sub-array 1.
!  A total of 3025 telescope corrections were flagged in sub-array 2.
!  A total of 2576 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.681646Jy  sigma=0.006324
! Fit after  self-cal, rms=0.474590Jy  sigma=0.004298
! 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 0.346% of the data.
!  The x-axis pixel size should ideally be below 0.1926 milli-arcsec
! Estimated beam: bmin=0.6417 mas, bmaj=1.481 mas, bpa=-3.22 degrees
! Estimated noise=636.052 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.502028 Jy
! Component: 100  -  total flux cleaned = 0.663994 Jy
! Total flux subtracted in 100 components = 0.663994 Jy
! Clean residual min=-0.019458 max=0.082786 Jy/beam
! Clean residual mean=0.000983 rms=0.008360 Jy/beam
! Combined flux in latest and established models = 0.663994 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 0.663994 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.347044Jy  sigma=0.003161
! Fit after  self-cal, rms=0.345622Jy  sigma=0.003151
! Inverting map 
! Your choice of large map pixels excluded 0.346% of the data.
!  The x-axis pixel size should ideally be below 0.1926 milli-arcsec
! Added new window around map position (0.6, 0.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0892599 Jy
! Component: 100  -  total flux cleaned = 0.141868 Jy
! Total flux subtracted in 100 components = 0.141868 Jy
! Clean residual min=-0.014034 max=0.043972 Jy/beam
! Clean residual mean=0.000616 rms=0.005283 Jy/beam
! Combined flux in latest and established models = 0.805863 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 13 components and 0.805863 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.310223Jy  sigma=0.002682
! Fit after  self-cal, rms=0.308960Jy  sigma=0.002671
! Inverting map 
! Your choice of large map pixels excluded 0.346% of the data.
!  The x-axis pixel size should ideally be below 0.1926 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0407474 Jy
! Component: 100  -  total flux cleaned = 0.0673167 Jy
! Total flux subtracted in 100 components = 0.0673167 Jy
! Clean residual min=-0.011885 max=0.031300 Jy/beam
! Clean residual mean=0.000434 rms=0.004107 Jy/beam
! Combined flux in latest and established models = 0.873179 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 20 components and 0.873179 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.299490Jy  sigma=0.002534
! Fit after  self-cal, rms=0.298753Jy  sigma=0.002527
! Inverting map 
! Your choice of large map pixels excluded 0.346% of the data.
!  The x-axis pixel size should ideally be below 0.1926 milli-arcsec
! Added new window around map position (0.8, 3).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0322071 Jy
! Component: 100  -  total flux cleaned = 0.0529458 Jy
! Total flux subtracted in 100 components = 0.0529458 Jy
! Clean residual min=-0.010421 max=0.018537 Jy/beam
! Clean residual mean=0.000271 rms=0.003175 Jy/beam
! Combined flux in latest and established models = 0.926125 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 33 components and 0.926125 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.293223Jy  sigma=0.002449
! Fit after  self-cal, rms=0.292843Jy  sigma=0.002445
! Inverting map 
! Your choice of large map pixels excluded 0.346% of the data.
!  The x-axis pixel size should ideally be below 0.1926 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 0.346% of the data.
!  The x-axis pixel size should ideally be below 0.1926 milli-arcsec
! Estimated beam: bmin=0.7761 mas, bmaj=1.812 mas, bpa=-7.878 degrees
! Estimated noise=423.718 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.0319446 Jy
! Component: 100  -  total flux cleaned = 0.0495815 Jy
! Component: 150  -  total flux cleaned = 0.0609446 Jy
! Component: 200  -  total flux cleaned = 0.0684352 Jy
! Total flux subtracted in 200 components = 0.0684352 Jy
! Clean residual min=-0.008589 max=0.013535 Jy/beam
! Clean residual mean=0.000233 rms=0.002432 Jy/beam
! Combined flux in latest and established models = 0.99456 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 47 components and 0.99456 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.289738Jy  sigma=0.002398
! Fit after  self-cal, rms=0.289358Jy  sigma=0.002394
! Inverting map 
! Your choice of large map pixels excluded 0.346% of the data.
!  The x-axis pixel size should ideally be below 0.1926 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 54 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.02     GC        0.95     HN        1.00*    
!   KK        1.02     KP        0.99     LA        1.06     MK        0.96     
!   NL        1.05     NY        1.00*    ON        1.00*    OV        1.00     
!   PT        1.02     SC        1.00*    WF        1.00*    MC        1.00*    
!   GN        1.00*    
! 
!  A total of 222 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.94     FD        1.00     GC        1.00     HN        1.01     
!   KK        1.00     KP        0.99     LA        0.97     MK        0.97     
!   NL        0.96     NY        1.00*    ON        1.00*    OV        0.99     
!   PT        1.00     SC        1.09     WF        1.00*    MC        1.00*    
!   GN        1.00*    
! 
!  A total of 108 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.03     GC        1.06     HN        0.99     
!   KK        1.11     KP        0.96     LA        0.99     MK        1.03     
!   NL        1.08     NY        1.00*    ON        1.00*    OV        1.00     
!   PT        1.01     SC        0.98     WF        1.00     MC        1.09     
!   GN        0.97     
! 
! 
! Correcting IF 2.
!  A total of 54 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.03     GC        1.01     HN        1.00*    
!   KK        0.99     KP        1.01     LA        1.00     MK        0.93     
!   NL        1.04     NY        1.00*    ON        1.00*    OV        1.00     
!   PT        1.02     SC        1.00*    WF        1.00*    MC        1.00*    
!   GN        1.00*    
! 
!  A total of 222 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        1.00     GC        1.04     HN        1.05     
!   KK        1.00     KP        1.00     LA        0.95     MK        0.95     
!   NL        0.99     NY        1.00*    ON        1.00*    OV        0.98     
!   PT        1.00     SC        1.06     WF        1.00*    MC        1.00*    
!   GN        1.00*    
! 
!  A total of 108 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.03     GC        1.09     HN        1.04     
!   KK        1.06     KP        0.96     LA        0.95     MK        0.99     
!   NL        1.09     NY        1.00*    ON        1.00*    OV        1.00     
!   PT        1.00     SC        0.97     WF        0.99     MC        0.99     
!   GN        0.95     
! 
! 
! Correcting IF 3.
!  A total of 54 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.01     GC        0.98     HN        1.00*    
!   KK        0.93     KP        1.01     LA        1.01     MK        0.94     
!   NL        1.02     NY        1.00*    ON        1.00*    OV        0.96     
!   PT        1.04     SC        1.00*    WF        1.00*    MC        1.00*    
!   GN        1.00*    
! 
!  A total of 222 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.98     GC        1.06     HN        1.01     
!   KK        0.99     KP        1.01     LA        0.96     MK        1.00     
!   NL        0.97     NY        1.00*    ON        1.00*    OV        0.95     
!   PT        1.03     SC        1.11     WF        1.00*    MC        1.00*    
!   GN        1.00*    
! 
!  A total of 108 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.99     GC        1.06     HN        0.99     
!   KK        1.09     KP        1.01     LA        0.97     MK        1.04     
!   NL        1.05     NY        1.00*    ON        1.00*    OV        0.97     
!   PT        0.99     SC        0.99     WF        0.99     MC        1.07     
!   GN        0.95     
! 
! 
! Correcting IF 4.
!  A total of 54 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.97     GC        0.92     HN        1.00*    
!   KK        1.00     KP        0.99     LA        1.01     MK        0.94     
!   NL        1.05     NY        1.00*    ON        1.00*    OV        0.97     
!   PT        0.97     SC        1.00*    WF        1.00*    MC        1.00*    
!   GN        1.00*    
! 
!  A total of 222 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.95     GC        1.02     HN        1.08     
!   KK        1.00     KP        0.98     LA        0.96     MK        0.92     
!   NL        0.98     NY        1.00*    ON        1.00*    OV        1.01     
!   PT        0.95     SC        1.03     WF        1.00*    MC        1.00*    
!   GN        1.00*    
! 
!  A total of 108 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.97     GC        1.06     HN        1.01     
!   KK        1.10     KP        0.99     LA        0.98     MK        0.97     
!   NL        1.07     NY        1.00*    ON        1.00*    OV        0.97     
!   PT        0.95     SC        0.95     WF        1.01     MC        1.01     
!   GN        0.97     
! 
! 
! Fit before self-cal, rms=0.289358Jy  sigma=0.002394
! Fit after  self-cal, rms=0.286389Jy  sigma=0.002379
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.361% of the data.
!  The x-axis pixel size should ideally be below 0.1926 milli-arcsec
! Estimated beam: bmin=0.802 mas, bmaj=1.807 mas, bpa=-6.593 degrees
! Estimated noise=425.835 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.00188518 Jy
! Component: 100  -  total flux cleaned = 0.00232466 Jy
! Component: 150  -  total flux cleaned = 0.00269691 Jy
! Component: 200  -  total flux cleaned = 0.0029945 Jy
! Total flux subtracted in 200 components = 0.0029945 Jy
! Clean residual min=-0.004590 max=0.005437 Jy/beam
! Clean residual mean=0.000133 rms=0.001413 Jy/beam
! Combined flux in latest and established models = 0.997555 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 54 components and 0.997555 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.286040Jy  sigma=0.002376
! Fit after  self-cal, rms=0.286055Jy  sigma=0.002375
! Inverting map 
! Your choice of large map pixels excluded 0.361% of the data.
!  The x-axis pixel size should ideally be below 0.1926 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.286055Jy  sigma=0.002375
! Fit after  self-cal, rms=0.286556Jy  sigma=0.002371
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.361% of the data.
!  The x-axis pixel size should ideally be below 0.1926 milli-arcsec
! Estimated beam: bmin=0.8023 mas, bmaj=1.808 mas, bpa=-6.598 degrees
! Estimated noise=425.761 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00014983 Jy
! Component: 100  -  total flux cleaned = 0.000326532 Jy
! Component: 150  -  total flux cleaned = 0.000580401 Jy
! Component: 200  -  total flux cleaned = 0.000787736 Jy
! Total flux subtracted in 200 components = 0.000787736 Jy
! Clean residual min=-0.004369 max=0.004177 Jy/beam
! Clean residual mean=0.000058 rms=0.001205 Jy/beam
! Combined flux in latest and established models = 0.998342 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 55 components and 0.998342 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.286369Jy  sigma=0.002369
! Fit after  self-cal, rms=0.286330Jy  sigma=0.002369
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.361% of the data.
!  The x-axis pixel size should ideally be below 0.1926 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 = -4.51436e-05 Jy
! Component: 100  -  total flux cleaned = 0.000441191 Jy
! Component: 150  -  total flux cleaned = 0.000616999 Jy
! Component: 200  -  total flux cleaned = 0.000762101 Jy
! Total flux subtracted in 200 components = 0.000762101 Jy
! Clean residual min=-0.004329 max=0.003906 Jy/beam
! Clean residual mean=0.000048 rms=0.001163 Jy/beam
! Combined flux in latest and established models = 0.999105 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 58 components and 0.999104 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.286225Jy  sigma=0.002368
! Fit after  self-cal, rms=0.286190Jy  sigma=0.002367
! Inverting map 
! Your choice of large map pixels excluded 0.361% of the data.
!  The x-axis pixel size should ideally be below 0.1926 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.286190Jy  sigma=0.002367
! Fit after  self-cal, rms=0.286763Jy  sigma=0.002367
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.361% of the data.
!  The x-axis pixel size should ideally be below 0.1926 milli-arcsec
! Estimated beam: bmin=0.8037 mas, bmaj=1.808 mas, bpa=-6.596 degrees
! Estimated noise=425.879 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000614458 Jy
! Component: 100  -  total flux cleaned = -0.000402483 Jy
! Component: 150  -  total flux cleaned = -0.000400575 Jy
! Component: 200  -  total flux cleaned = -0.000329384 Jy
! Total flux subtracted in 200 components = -0.000329384 Jy
! Clean residual min=-0.004218 max=0.003775 Jy/beam
! Clean residual mean=0.000042 rms=0.001121 Jy/beam
! Combined flux in latest and established models = 0.998775 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 59 components and 0.998775 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.286688Jy  sigma=0.002366
! Fit after  self-cal, rms=0.286676Jy  sigma=0.002366
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.361% of the data.
!  The x-axis pixel size should ideally be below 0.1926 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 = -5.59785e-05 Jy
! Component: 100  -  total flux cleaned = 0.000128747 Jy
! Component: 150  -  total flux cleaned = 0.000196617 Jy
! Component: 200  -  total flux cleaned = 0.000135505 Jy
! Total flux subtracted in 200 components = 0.000135505 Jy
! Clean residual min=-0.004173 max=0.003721 Jy/beam
! Clean residual mean=0.000040 rms=0.001101 Jy/beam
! Combined flux in latest and established models = 0.998911 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 62 components and 0.998911 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.286628Jy  sigma=0.002366
! Fit after  self-cal, rms=0.286615Jy  sigma=0.002365
! Inverting map 
! Your choice of large map pixels excluded 0.361% of the data.
!  The x-axis pixel size should ideally be below 0.1926 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.286615Jy  sigma=0.002365
! Fit after  self-cal, rms=0.286652Jy  sigma=0.002365
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.361% of the data.
!  The x-axis pixel size should ideally be below 0.1926 milli-arcsec
! Estimated beam: bmin=2.219 mas, bmaj=3.109 mas, bpa=1.088 degrees
! Estimated noise=552.174 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00127914 Jy
! Component: 100  -  total flux cleaned = 0.00145442 Jy
! Component: 150  -  total flux cleaned = 0.0015264 Jy
! Component: 200  -  total flux cleaned = 0.00155032 Jy
! Total flux subtracted in 200 components = 0.00155032 Jy
! Clean residual min=-0.004869 max=0.005184 Jy/beam
! Clean residual mean=0.000022 rms=0.001570 Jy/beam
! Combined flux in latest and established models = 1.00046 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 67 components and 1.00046 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.286635Jy  sigma=0.002365
! Fit after  self-cal, rms=0.286628Jy  sigma=0.002365
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.361% of the data.
!  The x-axis pixel size should ideally be below 0.1926 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.73737e-05 Jy
! Component: 100  -  total flux cleaned = 0.000136245 Jy
! Component: 150  -  total flux cleaned = 0.000247342 Jy
! Component: 200  -  total flux cleaned = 0.000289964 Jy
! Total flux subtracted in 200 components = 0.000289964 Jy
! Clean residual min=-0.004866 max=0.005193 Jy/beam
! Clean residual mean=0.000013 rms=0.001582 Jy/beam
! Combined flux in latest and established models = 1.00075 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 70 components and 1.00075 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.286614Jy  sigma=0.002365
! Fit after  self-cal, rms=0.286608Jy  sigma=0.002365
! Inverting map 
! Your choice of large map pixels excluded 0.361% of the data.
!  The x-axis pixel size should ideally be below 0.1926 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 0.361% of the data.
!  The x-axis pixel size should ideally be below 0.1926 milli-arcsec
! Estimated beam: bmin=0.8045 mas, bmaj=1.808 mas, bpa=-6.582 degrees
! Estimated noise=425.883 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8045 x 1.808 at -6.582 degrees (North through East)
! Clean map  min=-0.0039216  max=0.64248 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.286608Jy  sigma=0.002365
! Fit after  self-cal, rms=0.305999Jy  sigma=0.002201
! Inverting map and beam 
! Your choice of large map pixels excluded 0.361% of the data.
!  The x-axis pixel size should ideally be below 0.1926 milli-arcsec
! Estimated beam: bmin=0.8043 mas, bmaj=1.806 mas, bpa=-6.601 degrees
! Estimated noise=425.815 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000713603 Jy
! Component: 100  -  total flux cleaned = -0.000873781 Jy
! Component: 150  -  total flux cleaned = -0.00107932 Jy
! Component: 200  -  total flux cleaned = -0.00131443 Jy
! Total flux subtracted in 200 components = -0.00131443 Jy
! Clean residual min=-0.004060 max=0.004030 Jy/beam
! Clean residual mean=0.000057 rms=0.001077 Jy/beam
! Combined flux in latest and established models = 0.999436 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 73 components and 0.999436 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.305964Jy  sigma=0.002200
! Fit after  self-cal, rms=0.305956Jy  sigma=0.002200
! Inverting map 
! Your choice of large map pixels excluded 0.361% of the data.
!  The x-axis pixel size should ideally be below 0.1926 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -8.81509e-05 Jy
! Component: 100  -  total flux cleaned = -0.000255479 Jy
! Component: 150  -  total flux cleaned = -0.00040572 Jy
! Component: 200  -  total flux cleaned = -0.000451995 Jy
! Total flux subtracted in 200 components = -0.000451995 Jy
! Clean residual min=-0.004073 max=0.004071 Jy/beam
! Clean residual mean=0.000063 rms=0.001069 Jy/beam
! Combined flux in latest and established models = 0.998984 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 75 components and 0.998985 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.305936Jy  sigma=0.002200
! Fit after  self-cal, rms=0.305929Jy  sigma=0.002200
! Inverting map 
! Your choice of large map pixels excluded 0.361% of the data.
!  The x-axis pixel size should ideally be below 0.1926 milli-arcsec
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.305929Jy  sigma=0.002200
! Fit after  self-cal, rms=0.323667Jy  sigma=0.002200
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 0.361% of the data.
!  The x-axis pixel size should ideally be below 0.1926 milli-arcsec
! Estimated beam: bmin=0.6493 mas, bmaj=1.481 mas, bpa=-3.244 degrees
! Estimated noise=635.093 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.503166 Jy
! Component: 100  -  total flux cleaned = 0.682213 Jy
! Component: 150  -  total flux cleaned = 0.767938 Jy
! Component: 200  -  total flux cleaned = 0.823678 Jy
! Total flux subtracted in 200 components = 0.823678 Jy
! Clean residual min=-0.009542 max=0.030647 Jy/beam
! Clean residual mean=0.000533 rms=0.003952 Jy/beam
! Combined flux in latest and established models = 0.823678 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 13 model components to the UV plane model.
! The established model now contains 13 components and 0.823678 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 0.361% of the data.
!  The x-axis pixel size should ideally be below 0.1926 milli-arcsec
! Estimated beam: bmin=0.8042 mas, bmaj=1.806 mas, bpa=-6.62 degrees
! Estimated noise=425.814 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.0638761 Jy
! Component: 100  -  total flux cleaned = 0.100913 Jy
! Component: 150  -  total flux cleaned = 0.124383 Jy
! Component: 200  -  total flux cleaned = 0.139977 Jy
! Total flux subtracted in 200 components = 0.139977 Jy
! Clean residual min=-0.004479 max=0.009879 Jy/beam
! Clean residual mean=0.000519 rms=0.001912 Jy/beam
! Combined flux in latest and established models = 0.963655 Jy
! Adding 53 model components to the UV plane model.
! The established model now contains 56 components and 0.963655 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.361% of the data.
!  The x-axis pixel size should ideally be below 0.1926 milli-arcsec
! Added new window around map position (1.6, 2.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0108874 Jy
! Component: 100  -  total flux cleaned = 0.0183167 Jy
! Component: 150  -  total flux cleaned = 0.0235622 Jy
! Component: 200  -  total flux cleaned = 0.0274567 Jy
! Total flux subtracted in 200 components = 0.0274567 Jy
! Clean residual min=-0.004115 max=0.004315 Jy/beam
! Clean residual mean=0.000153 rms=0.001098 Jy/beam
! Combined flux in latest and established models = 0.991112 Jy
! Adding 41 model components to the UV plane model.
! The established model now contains 88 components and 0.991112 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.361% of the data.
!  The x-axis pixel size should ideally be below 0.1926 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 0.361% of the data.
!  The x-axis pixel size should ideally be below 0.1926 milli-arcsec
! Estimated beam: bmin=2.22 mas, bmaj=3.109 mas, bpa=1.116 degrees
! Estimated noise=552.053 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00540869 Jy
! Component: 100  -  total flux cleaned = 0.00816976 Jy
! Component: 150  -  total flux cleaned = 0.00969294 Jy
! Component: 200  -  total flux cleaned = 0.0101269 Jy
! Total flux subtracted in 200 components = 0.0101269 Jy
! Clean residual min=-0.005192 max=0.004880 Jy/beam
! Clean residual mean=0.000044 rms=0.001571 Jy/beam
! Combined flux in latest and established models = 1.00124 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.000128537 Jy
! Component: 100  -  total flux cleaned = 0.000187826 Jy
! Component: 150  -  total flux cleaned = 0.000268466 Jy
! Component: 200  -  total flux cleaned = 0.0003198 Jy
! Total flux subtracted in 200 components = 0.0003198 Jy
! Clean residual min=-0.005183 max=0.004887 Jy/beam
! Clean residual mean=0.000034 rms=0.001564 Jy/beam
! Combined flux in latest and established models = 1.00156 Jy
! Adding 34 model components to the UV plane model.
! The established model now contains 109 components and 1.00156 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.361% of the data.
!  The x-axis pixel size should ideally be below 0.1926 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 0.361% of the data.
!  The x-axis pixel size should ideally be below 0.1926 milli-arcsec
! Estimated beam: bmin=0.8042 mas, bmaj=1.806 mas, bpa=-6.62 degrees
! Estimated noise=425.814 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000818082 Jy
! Component: 100  -  total flux cleaned = -0.000639527 Jy
! Component: 150  -  total flux cleaned = -0.000638252 Jy
! Component: 200  -  total flux cleaned = -0.000684497 Jy
! Total flux subtracted in 200 components = -0.000684497 Jy
! Clean residual min=-0.004044 max=0.003578 Jy/beam
! Clean residual mean=0.000023 rms=0.001009 Jy/beam
! Combined flux in latest and established models = 1.00087 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 120 components and 1.00087 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.323564Jy  sigma=0.002199
! Fit after  self-cal, rms=0.323570Jy  sigma=0.002199
wmodel J0825+0309_X_1998_10_01_pus_map.mod
! Writing 120 model components to file: J0825+0309_X_1998_10_01_pus_map.mod
wobs J0825+0309_X_1998_10_01_pus_uvs.fits
! Writing UV FITS file: J0825+0309_X_1998_10_01_pus_uvs.fits
wwins J0825+0309_X_1998_10_01_pus_map.win
! wwins: Wrote 4 windows to J0825+0309_X_1998_10_01_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! Your choice of large map pixels excluded 0.361% of the data.
!  The x-axis pixel size should ideally be below 0.1926 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000299366 Jy
! Component: 100  -  total flux cleaned = 0.000910888 Jy
! Component: 150  -  total flux cleaned = 0.0014279 Jy
! Component: 200  -  total flux cleaned = 0.0014847 Jy
! Component: 250  -  total flux cleaned = 0.00148547 Jy
! Component: 300  -  total flux cleaned = 0.00153564 Jy
! Component: 350  -  total flux cleaned = 0.00148734 Jy
! Component: 400  -  total flux cleaned = 0.00153456 Jy
! Component: 450  -  total flux cleaned = 0.00157979 Jy
! Component: 500  -  total flux cleaned = 0.00153464 Jy
! Component: 550  -  total flux cleaned = 0.0016227 Jy
! Component: 600  -  total flux cleaned = 0.00162285 Jy
! Component: 650  -  total flux cleaned = 0.00162361 Jy
! Component: 700  -  total flux cleaned = 0.00166577 Jy
! Component: 750  -  total flux cleaned = 0.0017073 Jy
! Component: 800  -  total flux cleaned = 0.00170786 Jy
! Component: 850  -  total flux cleaned = 0.00178661 Jy
! Component: 900  -  total flux cleaned = 0.00174752 Jy
! Component: 950  -  total flux cleaned = 0.00182435 Jy
! Component: 1000  -  total flux cleaned = 0.00186182 Jy
! Total flux subtracted in 1024 components = 0.0018988 Jy
! Clean residual min=-0.001972 max=0.002081 Jy/beam
! Clean residual mean=0.000024 rms=0.000758 Jy/beam
! Combined flux in latest and established models = 1.00277 Jy
keep
! Adding 68 model components to the UV plane model.
! The established model now contains 188 components and 1.00277 Jy
![Exited script file: muppet]
wmap "J0825+0309_X_1998_10_01_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 0.361% of the data.
!  The x-axis pixel size should ideally be below 0.1926 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8042 x 1.806 at -6.62 degrees (North through East)
! Clean map  min=-0.0033489  max=0.64155 Jy/beam
! Writing clean map to FITS file: J0825+0309_X_1998_10_01_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.641551 
invert
! Inverting map 
! Your choice of large map pixels excluded 0.361% of the data.
!  The x-axis pixel size should ideally be below 0.1926 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000756033 
device "J0825+0309_X_1998_10_01_pus\_map.eps/VPS"
! Attempting to open device: 'J0825+0309_X_1998_10_01_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.353534 0.353534 0.707067 1.41413 2.82827 5.65654 11.3131 22.6262 45.2523 90.5046
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0022 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.641 
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.8042 x 1.806 at -6.62 degrees (North through East)
! Clean map  min=-0.0033489  max=0.64155 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0825+0309_X_1998_10_01_pus\_map.gif/vgif"
! Attempting to open device: 'J0825+0309_X_1998_10_01_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0825+0309_X_1998_10_01_pus_uvs.log closed on Wed Feb  6 12:27:31 2008