! Started logfile: J0325+2224_X_1999_12_20_pus_uvs.log on Fri Dec 14 17:11:16 2007
obs J0325+2224_X_1999_12_20_pus_uva.fits
! Reading UV FITS file: J0325+2224_X_1999_12_20_pus_uva.fits
! AN table 1: 203 integrations on 190 of 190 possible baselines.
! AN table 2: 109 integrations on 190 of 190 possible baselines.
! AN table 3: 123 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.212874 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0325+2224
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2418 lines of history.
! 
! Reading 70376 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 J0325+2224_X_1999_12_20_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 2143 telescope corrections were flagged in sub-array 1.
!  A total of 1140 telescope corrections were flagged in sub-array 2.
!  A total of 1757 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 2143 telescope corrections were flagged in sub-array 1.
!  A total of 1140 telescope corrections were flagged in sub-array 2.
!  A total of 1757 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 2163 telescope corrections were flagged in sub-array 1.
!  A total of 1140 telescope corrections were flagged in sub-array 2.
!  A total of 1757 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 2163 telescope corrections were flagged in sub-array 1.
!  A total of 1140 telescope corrections were flagged in sub-array 2.
!  A total of 1757 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.933322Jy  sigma=0.008319
! Fit after  self-cal, rms=0.587407Jy  sigma=0.004857
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.185 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1686 milli-arcsec
! Estimated beam: bmin=0.5554 mas, bmaj=1.007 mas, bpa=-6.821 degrees
! Estimated noise=779.639 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.362819 Jy
! Component: 100  -  total flux cleaned = 0.491074 Jy
! Total flux subtracted in 100 components = 0.491074 Jy
! Clean residual min=-0.014188 max=0.058753 Jy/beam
! Clean residual mean=0.000494 rms=0.005282 Jy/beam
! Combined flux in latest and established models = 0.491074 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.491074 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.282273Jy  sigma=0.001779
! Fit after  self-cal, rms=0.280883Jy  sigma=0.001769
! Inverting map 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.185 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1686 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0664981 Jy
! Component: 100  -  total flux cleaned = 0.100755 Jy
! Total flux subtracted in 100 components = 0.100755 Jy
! Clean residual min=-0.007764 max=0.022499 Jy/beam
! Clean residual mean=0.000203 rms=0.002817 Jy/beam
! Combined flux in latest and established models = 0.591829 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 9 components and 0.591829 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.262383Jy  sigma=0.001407
! Fit after  self-cal, rms=0.261900Jy  sigma=0.001403
! Inverting map 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.185 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1686 milli-arcsec
! Added new window around map position (0.6, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0248913 Jy
! Component: 100  -  total flux cleaned = 0.0390322 Jy
! Total flux subtracted in 100 components = 0.0390322 Jy
! Clean residual min=-0.006878 max=0.013756 Jy/beam
! Clean residual mean=0.000093 rms=0.002197 Jy/beam
! Combined flux in latest and established models = 0.630861 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 18 components and 0.630861 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.259150Jy  sigma=0.001333
! Fit after  self-cal, rms=0.258877Jy  sigma=0.001331
! Inverting map 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.185 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1686 milli-arcsec
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
win_mult = win_mult * 1.6
clean_niter = clean_niter * 2
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.185 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1686 milli-arcsec
! Estimated beam: bmin=0.6648 mas, bmaj=1.361 mas, bpa=-8.99 degrees
! Estimated noise=315.43 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.0175186 Jy
! Component: 100  -  total flux cleaned = 0.0271767 Jy
! Component: 150  -  total flux cleaned = 0.0333141 Jy
! Component: 200  -  total flux cleaned = 0.037254 Jy
! Total flux subtracted in 200 components = 0.037254 Jy
! Clean residual min=-0.006415 max=0.009405 Jy/beam
! Clean residual mean=-0.000344 rms=0.002062 Jy/beam
! Combined flux in latest and established models = 0.668115 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 31 components and 0.668115 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.258159Jy  sigma=0.001304
! Fit after  self-cal, rms=0.258027Jy  sigma=0.001303
! Inverting map 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.185 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1686 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.95     GC        1.08     HH        0.92     
!   HN        1.14     KK        1.00*    KP        1.00*    LA        0.98     
!   MC        0.96     MK        1.00*    NY        0.98     ON        0.98     
!   OV        1.00     PT        0.97     SC        1.00     TS        1.00*    
!   WF        1.07     WZ        0.96     GN        1.00*    NL        1.00     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.98     GC        1.00*    HH        1.00*    
!   HN        0.98     KK        0.99     KP        0.99     LA        1.00     
!   MC        1.00*    MK        0.98     NY        1.00*    ON        1.00*    
!   OV        0.99     PT        0.99     SC        1.04     TS        1.00*    
!   WF        1.03     WZ        1.00*    GN        1.00     NL        0.99     
! 
!  A total of 99 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.97     GC        0.93     HH        1.00*    
!   HN        1.19     KK        0.96     KP        0.93     LA        0.97     
!   MC        1.00*    MK        0.99     NY        1.12     ON        1.00*    
!   OV        1.00     PT        0.98     SC        1.00*    TS        1.00     
!   WF        1.23     WZ        1.00*    GN        1.14     NL        1.00     
! 
! 
! Correcting IF 2.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.96     GC        1.03     HH        1.71     
!   HN        1.14     KK        1.00*    KP        1.00*    LA        0.97     
!   MC        0.99     MK        1.00*    NY        1.01     ON        0.97     
!   OV        1.01     PT        0.96     SC        0.96     TS        1.00*    
!   WF        1.07     WZ        0.98     GN        1.00*    NL        1.00     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.99     GC        1.00*    HH        1.00*    
!   HN        0.97     KK        0.99     KP        0.94     LA        1.00     
!   MC        1.00*    MK        0.99     NY        1.00*    ON        1.00*    
!   OV        0.99     PT        0.98     SC        1.01     TS        1.00*    
!   WF        1.04     WZ        1.00*    GN        0.99     NL        0.99     
! 
!  A total of 99 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        0.98     GC        0.88     HH        1.00*    
!   HN        1.18     KK        0.95     KP        0.89     LA        0.97     
!   MC        1.00*    MK        0.98     NY        1.13     ON        1.00*    
!   OV        1.01     PT        0.97     SC        1.00*    TS        0.97     
!   WF        1.17     WZ        1.00*    GN        1.13     NL        0.99     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.96     GC        1.07     HH        0.99     
!   HN        1.19     KK        1.00*    KP        1.00*    LA        0.98     
!   MC        0.93     MK        1.00*    NY        0.94     ON        0.99     
!   OV        1.01     PT        0.99     SC        0.96     TS        1.00*    
!   WF        1.07     WZ        0.97     GN        1.00*    NL        1.00     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.00     GC        1.00*    HH        1.00*    
!   HN        1.00     KK        1.01     KP        0.98     LA        0.99     
!   MC        1.00*    MK        1.00     NY        1.00*    ON        1.00*    
!   OV        0.98     PT        1.00     SC        1.99     TS        1.00*    
!   WF        1.03     WZ        1.00*    GN        0.99     NL        0.99     
! 
!  A total of 99 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        0.99     GC        0.93     HH        1.00*    
!   HN        1.23     KK        0.96     KP        0.90     LA        0.97     
!   MC        1.00*    MK        1.00     NY        1.09     ON        1.00*    
!   OV        1.01     PT        0.98     SC        1.00*    TS        0.97     
!   WF        1.17     WZ        1.00*    GN        1.12     NL        0.99     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.97     GC        1.08     HH        1.16     
!   HN        1.25     KK        1.00*    KP        1.00*    LA        0.99     
!   MC        0.95     MK        1.00*    NY        1.01     ON        0.98     
!   OV        1.01     PT        0.98     SC        0.97     TS        1.00*    
!   WF        1.08     WZ        0.99     GN        1.00*    NL        1.02     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.01     GC        1.00*    HH        1.00*    
!   HN        0.98     KK        1.00     KP        0.96     LA        1.00     
!   MC        1.00*    MK        0.97     NY        1.00*    ON        1.00*    
!   OV        0.98     PT        1.00     SC        1.01     TS        1.00*    
!   WF        1.06     WZ        1.00*    GN        0.98     NL        1.00     
! 
!  A total of 99 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.98     GC        0.93     HH        1.00*    
!   HN        1.22     KK        0.98     KP        0.89     LA        0.99     
!   MC        1.00*    MK        0.97     NY        1.17     ON        1.00*    
!   OV        1.01     PT        0.98     SC        1.00*    TS        0.98     
!   WF        1.21     WZ        1.00*    GN        1.15     NL        1.00     
! 
! 
! Fit before self-cal, rms=0.258027Jy  sigma=0.001303
! Fit after  self-cal, rms=0.274287Jy  sigma=0.001248
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.185 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1686 milli-arcsec
! Estimated beam: bmin=0.6653 mas, bmaj=1.376 mas, bpa=-9.332 degrees
! Estimated noise=316.669 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 (2, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00554196 Jy
! Component: 100  -  total flux cleaned = 0.00647669 Jy
! Component: 150  -  total flux cleaned = 0.00658654 Jy
! Component: 200  -  total flux cleaned = 0.00685182 Jy
! Total flux subtracted in 200 components = 0.00685182 Jy
! Clean residual min=-0.001955 max=0.003319 Jy/beam
! Clean residual mean=0.000319 rms=0.000646 Jy/beam
! Combined flux in latest and established models = 0.674967 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 50 components and 0.674967 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.274097Jy  sigma=0.001246
! Fit after  self-cal, rms=0.274464Jy  sigma=0.001246
! Inverting map 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.185 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1686 milli-arcsec
! Added new window around map position (5, -0.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.002682 Jy
! Component: 100  -  total flux cleaned = 0.00301632 Jy
! Component: 150  -  total flux cleaned = 0.0033814 Jy
! Component: 200  -  total flux cleaned = 0.00357577 Jy
! Total flux subtracted in 200 components = 0.00357577 Jy
! Clean residual min=-0.001783 max=0.002806 Jy/beam
! Clean residual mean=0.000270 rms=0.000584 Jy/beam
! Combined flux in latest and established models = 0.678543 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 62 components and 0.678543 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.274398Jy  sigma=0.001245
! Fit after  self-cal, rms=0.274395Jy  sigma=0.001245
! Inverting map 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.185 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1686 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.274395Jy  sigma=0.001245
! Fit after  self-cal, rms=0.274768Jy  sigma=0.001243
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.185 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1686 milli-arcsec
! Estimated beam: bmin=0.6665 mas, bmaj=1.373 mas, bpa=-9.326 degrees
! Estimated noise=316.712 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00193312 Jy
! Component: 100  -  total flux cleaned = 0.00241627 Jy
! Component: 150  -  total flux cleaned = 0.00257755 Jy
! Component: 200  -  total flux cleaned = 0.00276478 Jy
! Total flux subtracted in 200 components = 0.00276478 Jy
! Clean residual min=-0.001519 max=0.002031 Jy/beam
! Clean residual mean=0.000133 rms=0.000462 Jy/beam
! Combined flux in latest and established models = 0.681308 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 77 components and 0.681308 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.274731Jy  sigma=0.001242
! Fit after  self-cal, rms=0.274691Jy  sigma=0.001242
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.185 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1686 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)
! Added new window around map position (3.6, -11.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00136085 Jy
! Component: 100  -  total flux cleaned = 0.00168946 Jy
! Component: 150  -  total flux cleaned = 0.00185478 Jy
! Component: 200  -  total flux cleaned = 0.00189171 Jy
! Total flux subtracted in 200 components = 0.00189171 Jy
! Clean residual min=-0.001493 max=0.001819 Jy/beam
! Clean residual mean=0.000119 rms=0.000449 Jy/beam
! Combined flux in latest and established models = 0.6832 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 86 components and 0.6832 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.274663Jy  sigma=0.001242
! Fit after  self-cal, rms=0.274667Jy  sigma=0.001242
! Inverting map 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.185 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1686 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.274667Jy  sigma=0.001242
! Fit after  self-cal, rms=0.278715Jy  sigma=0.001243
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.185 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1686 milli-arcsec
! Estimated beam: bmin=0.6668 mas, bmaj=1.373 mas, bpa=-9.368 degrees
! Estimated noise=317.094 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000475604 Jy
! Component: 100  -  total flux cleaned = 0.000674055 Jy
! Component: 150  -  total flux cleaned = 0.00084981 Jy
! Component: 200  -  total flux cleaned = 0.00092914 Jy
! Total flux subtracted in 200 components = 0.00092914 Jy
! Clean residual min=-0.001619 max=0.001718 Jy/beam
! Clean residual mean=0.000100 rms=0.000453 Jy/beam
! Combined flux in latest and established models = 0.684129 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 89 components and 0.684129 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.278690Jy  sigma=0.001243
! Fit after  self-cal, rms=0.278697Jy  sigma=0.001243
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.185 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1686 milli-arcsec
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000118822 Jy
! Component: 100  -  total flux cleaned = 0.000153858 Jy
! Component: 150  -  total flux cleaned = 0.000188425 Jy
! Component: 200  -  total flux cleaned = 0.000254325 Jy
! Total flux subtracted in 200 components = 0.000254325 Jy
! Clean residual min=-0.001627 max=0.001695 Jy/beam
! Clean residual mean=0.000097 rms=0.000444 Jy/beam
! Combined flux in latest and established models = 0.684383 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 93 components and 0.684383 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.278682Jy  sigma=0.001243
! Fit after  self-cal, rms=0.278685Jy  sigma=0.001243
! Inverting map 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.185 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1686 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.278685Jy  sigma=0.001243
! Fit after  self-cal, rms=0.278643Jy  sigma=0.001243
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.185 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1686 milli-arcsec
! Estimated beam: bmin=2.336 mas, bmaj=2.572 mas, bpa=-21.19 degrees
! Estimated noise=416.682 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00120989 Jy
! Component: 100  -  total flux cleaned = 0.00124293 Jy
! Component: 150  -  total flux cleaned = 0.00144302 Jy
! Component: 200  -  total flux cleaned = 0.00158738 Jy
! Total flux subtracted in 200 components = 0.00158738 Jy
! Clean residual min=-0.001237 max=0.002082 Jy/beam
! Clean residual mean=0.000261 rms=0.000546 Jy/beam
! Combined flux in latest and established models = 0.68597 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 103 components and 0.68597 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.278635Jy  sigma=0.001242
! Fit after  self-cal, rms=0.278634Jy  sigma=0.001242
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.185 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1686 milli-arcsec
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000184744 Jy
! Component: 100  -  total flux cleaned = 0.00030801 Jy
! Component: 150  -  total flux cleaned = 0.00036158 Jy
! Component: 200  -  total flux cleaned = 0.00036194 Jy
! Total flux subtracted in 200 components = 0.00036194 Jy
! Clean residual min=-0.001233 max=0.002055 Jy/beam
! Clean residual mean=0.000251 rms=0.000542 Jy/beam
! Combined flux in latest and established models = 0.686332 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 108 components and 0.686332 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.278631Jy  sigma=0.001242
! Fit after  self-cal, rms=0.278632Jy  sigma=0.001242
! Inverting map 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.185 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1686 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.185 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1686 milli-arcsec
! Estimated beam: bmin=0.6669 mas, bmaj=1.374 mas, bpa=-9.379 degrees
! Estimated noise=317.324 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6669 x 1.374 at -9.379 degrees (North through East)
! Clean map  min=-0.0014251  max=0.49759 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 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.185 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1686 milli-arcsec
! Estimated beam: bmin=0.5538 mas, bmaj=1.021 mas, bpa=-7.201 degrees
! Estimated noise=781.63 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.363684 Jy
! Component: 100  -  total flux cleaned = 0.496715 Jy
! Component: 150  -  total flux cleaned = 0.563315 Jy
! Component: 200  -  total flux cleaned = 0.598512 Jy
! Total flux subtracted in 200 components = 0.598512 Jy
! Clean residual min=-0.005260 max=0.017084 Jy/beam
! Clean residual mean=0.000237 rms=0.001830 Jy/beam
! Combined flux in latest and established models = 0.598512 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 9 model components to the UV plane model.
! The established model now contains 9 components and 0.598512 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.185 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1686 milli-arcsec
! Estimated beam: bmin=0.6669 mas, bmaj=1.374 mas, bpa=-9.379 degrees
! Estimated noise=317.324 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.0309876 Jy
! Component: 100  -  total flux cleaned = 0.0472734 Jy
! Component: 150  -  total flux cleaned = 0.0573931 Jy
! Component: 200  -  total flux cleaned = 0.0641088 Jy
! Total flux subtracted in 200 components = 0.0641088 Jy
! Clean residual min=-0.002259 max=0.003722 Jy/beam
! Clean residual mean=0.000337 rms=0.000819 Jy/beam
! Combined flux in latest and established models = 0.66262 Jy
! Adding 37 model components to the UV plane model.
! The established model now contains 42 components and 0.662621 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.185 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1686 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00481839 Jy
! Component: 100  -  total flux cleaned = 0.00850102 Jy
! Component: 150  -  total flux cleaned = 0.011378 Jy
! Component: 200  -  total flux cleaned = 0.0136971 Jy
! Total flux subtracted in 200 components = 0.0136971 Jy
! Clean residual min=-0.001963 max=0.001917 Jy/beam
! Clean residual mean=0.000191 rms=0.000518 Jy/beam
! Combined flux in latest and established models = 0.676318 Jy
! Adding 36 model components to the UV plane model.
! The established model now contains 67 components and 0.676318 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.185 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1686 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.185 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1686 milli-arcsec
! Estimated beam: bmin=2.336 mas, bmaj=2.572 mas, bpa=-21.19 degrees
! Estimated noise=416.682 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00342864 Jy
! Component: 100  -  total flux cleaned = 0.00549438 Jy
! Component: 150  -  total flux cleaned = 0.00695078 Jy
! Component: 200  -  total flux cleaned = 0.00799768 Jy
! Total flux subtracted in 200 components = 0.00799768 Jy
! Clean residual min=-0.001292 max=0.002236 Jy/beam
! Clean residual mean=0.000312 rms=0.000545 Jy/beam
! Combined flux in latest and established models = 0.684315 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.00041871 Jy
! Component: 100  -  total flux cleaned = 0.000786829 Jy
! Component: 150  -  total flux cleaned = 0.0010749 Jy
! Component: 200  -  total flux cleaned = 0.00130296 Jy
! Total flux subtracted in 200 components = 0.00130296 Jy
! Clean residual min=-0.001319 max=0.002214 Jy/beam
! Clean residual mean=0.000275 rms=0.000535 Jy/beam
! Combined flux in latest and established models = 0.685618 Jy
! Adding 66 model components to the UV plane model.
! The established model now contains 117 components and 0.685618 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.185 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1686 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.185 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1686 milli-arcsec
! Estimated beam: bmin=0.6669 mas, bmaj=1.374 mas, bpa=-9.379 degrees
! Estimated noise=317.324 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00013035 Jy
! Component: 100  -  total flux cleaned = -0.000248207 Jy
! Component: 150  -  total flux cleaned = -0.000248733 Jy
! Component: 200  -  total flux cleaned = -0.000188105 Jy
! Total flux subtracted in 200 components = -0.000188105 Jy
! Clean residual min=-0.001888 max=0.001575 Jy/beam
! Clean residual mean=0.000098 rms=0.000446 Jy/beam
! Combined flux in latest and established models = 0.68543 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 129 components and 0.68543 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.278678Jy  sigma=0.001243
! Fit after  self-cal, rms=0.278626Jy  sigma=0.001242
wmodel J0325+2224_X_1999_12_20_pus_map.mod
! Writing 129 model components to file: J0325+2224_X_1999_12_20_pus_map.mod
wobs J0325+2224_X_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J0325+2224_X_1999_12_20_pus_uvs.fits
wwins J0325+2224_X_1999_12_20_pus_map.win
! wwins: Wrote 5 windows to J0325+2224_X_1999_12_20_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.185 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1686 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000152311 Jy
! Component: 100  -  total flux cleaned = 0.000152398 Jy
! Component: 150  -  total flux cleaned = 0.000469938 Jy
! Component: 200  -  total flux cleaned = 0.000725018 Jy
! Component: 250  -  total flux cleaned = 0.000947675 Jy
! Component: 300  -  total flux cleaned = 0.00114022 Jy
! Component: 350  -  total flux cleaned = 0.00139864 Jy
! Component: 400  -  total flux cleaned = 0.00169722 Jy
! Component: 450  -  total flux cleaned = 0.00194502 Jy
! Component: 500  -  total flux cleaned = 0.00223275 Jy
! Component: 550  -  total flux cleaned = 0.00255918 Jy
! Component: 600  -  total flux cleaned = 0.00281614 Jy
! Component: 650  -  total flux cleaned = 0.00309045 Jy
! Component: 700  -  total flux cleaned = 0.00336052 Jy
! Component: 750  -  total flux cleaned = 0.00354489 Jy
! Component: 800  -  total flux cleaned = 0.00372712 Jy
! Component: 850  -  total flux cleaned = 0.00396669 Jy
! Component: 900  -  total flux cleaned = 0.00414401 Jy
! Component: 950  -  total flux cleaned = 0.0042999 Jy
! Component: 1000  -  total flux cleaned = 0.00443484 Jy
! Total flux subtracted in 1024 components = 0.00453056 Jy
! Clean residual min=-0.001036 max=0.000985 Jy/beam
! Clean residual mean=0.000061 rms=0.000367 Jy/beam
! Combined flux in latest and established models = 0.689961 Jy
keep
! Adding 79 model components to the UV plane model.
! The established model now contains 208 components and 0.689961 Jy
![Exited script file: muppet]
wmap "J0325+2224_X_1999_12_20_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.185 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1686 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6669 x 1.374 at -9.379 degrees (North through East)
! Clean map  min=-0.001711  max=0.4994 Jy/beam
! Writing clean map to FITS file: J0325+2224_X_1999_12_20_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.499401 
invert
! Inverting map 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.185 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1686 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000366879 
device "J0325+2224_X_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J0325+2224_X_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.220391 0.220391 0.440782 0.881565 1.76313 3.52626 7.05252 14.105 28.2101 56.4201
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0011 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.499 
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.6669 x 1.374 at -9.379 degrees (North through East)
! Clean map  min=-0.001711  max=0.4994 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0325+2224_X_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J0325+2224_X_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0325+2224_X_1999_12_20_pus_uvs.log closed on Fri Dec 14 17:11:36 2007