! Started logfile: J2225-0457_X_2000_12_04_pus_uvs.log on Fri Oct 12 15:34:44 2007
obs J2225-0457_X_2000_12_04_pus_uva.fits
! Reading UV FITS file: J2225-0457_X_2000_12_04_pus_uva.fits
! AN table 1: 48 integrations on 190 of 190 possible baselines.
! AN table 2: 121 integrations on 190 of 190 possible baselines.
! AN table 3: 206 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0574456 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2225-0457
! 
! 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 2126 lines of history.
! 
! Reading 16372 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 J2225-0457_X_2000_12_04_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 811 telescope corrections were flagged in sub-array 1.
!  A total of 1911 telescope corrections were flagged in sub-array 2.
!  A total of 3251 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 811 telescope corrections were flagged in sub-array 1.
!  A total of 1911 telescope corrections were flagged in sub-array 2.
!  A total of 3251 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 811 telescope corrections were flagged in sub-array 1.
!  A total of 1911 telescope corrections were flagged in sub-array 2.
!  A total of 3251 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 811 telescope corrections were flagged in sub-array 1.
!  A total of 1911 telescope corrections were flagged in sub-array 2.
!  A total of 3251 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=3.645063Jy  sigma=0.036158
! Fit after  self-cal, rms=3.334015Jy  sigma=0.033464
! 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 1.15% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=0.6496 mas, bmaj=1.316 mas, bpa=-8.765 degrees
! Estimated noise=1056.5 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 3.14605 Jy
! Component: 100  -  total flux cleaned = 3.96893 Jy
! Total flux subtracted in 100 components = 3.96893 Jy
! Clean residual min=-0.097416 max=0.355133 Jy/beam
! Clean residual mean=0.005214 rms=0.036468 Jy/beam
! Combined flux in latest and established models = 3.96893 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 3.96893 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.750796Jy  sigma=0.007386
! Fit after  self-cal, rms=0.750188Jy  sigma=0.007380
! Inverting map 
! Your choice of large map pixels excluded 1.15% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.389319 Jy
! Component: 100  -  total flux cleaned = 0.588465 Jy
! Total flux subtracted in 100 components = 0.588465 Jy
! Clean residual min=-0.069466 max=0.095831 Jy/beam
! Clean residual mean=0.002459 rms=0.018043 Jy/beam
! Combined flux in latest and established models = 4.55739 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 9 components and 4.55739 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.450663Jy  sigma=0.003948
! Fit after  self-cal, rms=0.450113Jy  sigma=0.003944
! Inverting map 
! Your choice of large map pixels excluded 1.15% of the data.
!  The x-axis pixel size should ideally be below 0.1902 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 1.15% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=0.8109 mas, bmaj=1.959 mas, bpa=-12.31 degrees
! Estimated noise=592.449 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.161897 Jy
! Component: 100  -  total flux cleaned = 0.241779 Jy
! Component: 150  -  total flux cleaned = 0.285357 Jy
! Component: 200  -  total flux cleaned = 0.309604 Jy
! Total flux subtracted in 200 components = 0.309604 Jy
! Clean residual min=-0.045782 max=0.084339 Jy/beam
! Clean residual mean=0.005194 rms=0.020140 Jy/beam
! Combined flux in latest and established models = 4.867 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 18 components and 4.867 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.399635Jy  sigma=0.003208
! Fit after  self-cal, rms=0.399213Jy  sigma=0.003205
! Inverting map 
! Your choice of large map pixels excluded 1.15% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.06     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.00*    KP        0.99     
!   LA        1.04     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.03     NY        1.00*    OV        1.06     PT        1.02     
!   SC        1.08     TS        1.00*    WF        0.98     WZ        1.00*    
! 
!  A total of 81 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        0.99     GC        1.01     GG        1.00*    
!   HH        1.10     HN        1.00*    KK        0.99     KP        0.98     
!   LA        1.00     MA        0.94     MC        1.00     MK        1.00     
!   NL        1.01     NY        1.00*    OV        1.04     PT        0.99     
!   SC        1.00*    TS        1.15     WF        1.22     WZ        0.90     
! 
!  A total of 219 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.03     GC        1.00*    GG        1.00*    
!   HH        1.11     HN        1.01     KK        1.07     KP        1.00     
!   LA        1.00     MA        0.91     MC        0.90     MK        1.02     
!   NL        1.03     NY        1.00*    OV        0.99     PT        1.00     
!   SC        1.05     TS        1.00*    WF        1.02     WZ        0.91     
! 
! 
! Correcting IF 2.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.06     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.00*    KP        0.99     
!   LA        1.03     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        0.98     NY        1.00*    OV        1.06     PT        1.02     
!   SC        1.10     TS        1.00*    WF        0.98     WZ        1.00*    
! 
!  A total of 81 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.00     GC        1.01     GG        1.00*    
!   HH        1.10     HN        1.00*    KK        0.96     KP        0.98     
!   LA        0.99     MA        0.93     MC        1.01     MK        1.01     
!   NL        0.96     NY        1.00*    OV        1.04     PT        0.99     
!   SC        1.00*    TS        1.16     WF        1.23     WZ        0.89     
! 
!  A total of 219 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.04     GC        1.00*    GG        1.00*    
!   HH        1.12     HN        1.01     KK        1.07     KP        1.00     
!   LA        0.99     MA        0.93     MC        0.93     MK        1.03     
!   NL        0.98     NY        1.00*    OV        0.99     PT        1.00     
!   SC        1.06     TS        1.00*    WF        1.03     WZ        0.91     
! 
! 
! Correcting IF 3.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.10     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.00*    KP        0.98     
!   LA        1.04     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        0.97     NY        1.00*    OV        1.02     PT        0.98     
!   SC        1.09     TS        1.00*    WF        0.98     WZ        1.00*    
! 
!  A total of 81 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.04     GC        1.01     GG        1.00*    
!   HH        1.03     HN        1.00*    KK        0.93     KP        0.97     
!   LA        0.99     MA        0.92     MC        1.03     MK        1.00     
!   NL        0.95     NY        1.00*    OV        0.99     PT        0.96     
!   SC        1.00*    TS        1.20     WF        1.20     WZ        0.91     
! 
!  A total of 219 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.07     GC        1.00*    GG        1.00*    
!   HH        1.05     HN        1.01     KK        1.02     KP        0.99     
!   LA        0.99     MA        0.91     MC        0.92     MK        1.02     
!   NL        0.97     NY        1.00*    OV        0.95     PT        0.97     
!   SC        1.05     TS        1.00*    WF        1.01     WZ        0.94     
! 
! 
! Correcting IF 4.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.10     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.00*    KP        0.99     
!   LA        1.02     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        0.98     NY        1.00*    OV        1.05     PT        0.97     
!   SC        1.07     TS        1.00*    WF        0.99     WZ        1.00*    
! 
!  A total of 81 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.03     GC        1.02     GG        1.00*    
!   HH        1.06     HN        1.00*    KK        0.95     KP        0.98     
!   LA        0.99     MA        0.92     MC        1.04     MK        0.97     
!   NL        0.97     NY        1.00*    OV        1.02     PT        0.94     
!   SC        1.00*    TS        1.20     WF        1.24     WZ        0.93     
! 
!  A total of 219 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.06     GC        1.00*    GG        1.00*    
!   HH        1.08     HN        0.97     KK        1.03     KP        1.00     
!   LA        0.98     MA        0.92     MC        0.93     MK        1.00     
!   NL        0.98     NY        1.00*    OV        0.98     PT        0.95     
!   SC        1.03     TS        1.00*    WF        1.02     WZ        0.95     
! 
! 
! Fit before self-cal, rms=0.399213Jy  sigma=0.003205
! Fit after  self-cal, rms=0.233450Jy  sigma=0.001943
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 1.22% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=0.8323 mas, bmaj=2.038 mas, bpa=-12.56 degrees
! Estimated noise=624.831 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 (3, -0.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0543477 Jy
! Component: 100  -  total flux cleaned = 0.0758263 Jy
! Component: 150  -  total flux cleaned = 0.0805923 Jy
! Component: 200  -  total flux cleaned = 0.0832658 Jy
! Total flux subtracted in 200 components = 0.0832658 Jy
! Clean residual min=-0.022564 max=0.023062 Jy/beam
! Clean residual mean=0.000724 rms=0.005606 Jy/beam
! Combined flux in latest and established models = 4.95026 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 44 components and 4.95026 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.221422Jy  sigma=0.001789
! Fit after  self-cal, rms=0.219913Jy  sigma=0.001773
! Inverting map 
! Your choice of large map pixels excluded 1.22% of the data.
!  The x-axis pixel size should ideally be below 0.1902 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.219913Jy  sigma=0.001773
! Fit after  self-cal, rms=0.210204Jy  sigma=0.001632
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.22% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=0.8319 mas, bmaj=2.038 mas, bpa=-12.55 degrees
! Estimated noise=624.396 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0224134 Jy
! Component: 100  -  total flux cleaned = 0.0285827 Jy
! Component: 150  -  total flux cleaned = 0.0319027 Jy
! Component: 200  -  total flux cleaned = 0.0338617 Jy
! Total flux subtracted in 200 components = 0.0338617 Jy
! Clean residual min=-0.017364 max=0.017911 Jy/beam
! Clean residual mean=0.000563 rms=0.004223 Jy/beam
! Combined flux in latest and established models = 4.98412 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 54 components and 4.98412 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206652Jy  sigma=0.001591
! Fit after  self-cal, rms=0.206313Jy  sigma=0.001587
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.22% of the data.
!  The x-axis pixel size should ideally be below 0.1902 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.0057132 Jy
! Component: 100  -  total flux cleaned = 0.00750454 Jy
! Component: 150  -  total flux cleaned = 0.00879662 Jy
! Component: 200  -  total flux cleaned = 0.00938288 Jy
! Total flux subtracted in 200 components = 0.00938288 Jy
! Clean residual min=-0.016895 max=0.017494 Jy/beam
! Clean residual mean=0.000389 rms=0.004103 Jy/beam
! Combined flux in latest and established models = 4.99351 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 57 components and 4.99351 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.205095Jy  sigma=0.001575
! Fit after  self-cal, rms=0.205050Jy  sigma=0.001575
! Inverting map 
! Your choice of large map pixels excluded 1.22% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
! Added new window around map position (6.2, 0.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0187034 Jy
! Component: 100  -  total flux cleaned = 0.0256175 Jy
! Component: 150  -  total flux cleaned = 0.0275138 Jy
! Component: 200  -  total flux cleaned = 0.0280813 Jy
! Total flux subtracted in 200 components = 0.0280813 Jy
! Clean residual min=-0.016434 max=0.010254 Jy/beam
! Clean residual mean=-0.000002 rms=0.003269 Jy/beam
! Combined flux in latest and established models = 5.02159 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 72 components and 5.02159 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.203088Jy  sigma=0.001551
! Fit after  self-cal, rms=0.202877Jy  sigma=0.001549
! Inverting map 
! Your choice of large map pixels excluded 1.22% of the data.
!  The x-axis pixel size should ideally be below 0.1902 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.202877Jy  sigma=0.001549
! Fit after  self-cal, rms=0.201298Jy  sigma=0.001529
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.22% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=0.8324 mas, bmaj=2.038 mas, bpa=-12.57 degrees
! Estimated noise=624.396 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00756059 Jy
! Component: 100  -  total flux cleaned = 0.0110428 Jy
! Component: 150  -  total flux cleaned = 0.0133454 Jy
! Component: 200  -  total flux cleaned = 0.0141301 Jy
! Total flux subtracted in 200 components = 0.0141301 Jy
! Clean residual min=-0.012917 max=0.008576 Jy/beam
! Clean residual mean=0.000141 rms=0.002903 Jy/beam
! Combined flux in latest and established models = 5.03572 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 80 components and 5.03572 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.200138Jy  sigma=0.001518
! Fit after  self-cal, rms=0.200066Jy  sigma=0.001517
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.22% of the data.
!  The x-axis pixel size should ideally be below 0.1902 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.0031462 Jy
! Component: 100  -  total flux cleaned = 0.00389563 Jy
! Component: 150  -  total flux cleaned = 0.00436149 Jy
! Component: 200  -  total flux cleaned = 0.00481113 Jy
! Total flux subtracted in 200 components = 0.00481113 Jy
! Clean residual min=-0.012112 max=0.008356 Jy/beam
! Clean residual mean=0.000064 rms=0.002792 Jy/beam
! Combined flux in latest and established models = 5.04053 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 87 components and 5.04053 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.199436Jy  sigma=0.001512
! Fit after  self-cal, rms=0.199408Jy  sigma=0.001512
! Inverting map 
! Your choice of large map pixels excluded 1.22% of the data.
!  The x-axis pixel size should ideally be below 0.1902 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.199408Jy  sigma=0.001512
! Fit after  self-cal, rms=0.199203Jy  sigma=0.001509
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.22% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=2.315 mas, bmaj=3.791 mas, bpa=-2.745 degrees
! Estimated noise=792.581 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00120953 Jy
! Component: 100  -  total flux cleaned = 0.0037443 Jy
! Component: 150  -  total flux cleaned = 0.00553934 Jy
! Component: 200  -  total flux cleaned = 0.00689253 Jy
! Total flux subtracted in 200 components = 0.00689253 Jy
! Clean residual min=-0.010136 max=0.010221 Jy/beam
! Clean residual mean=0.000245 rms=0.003642 Jy/beam
! Combined flux in latest and established models = 5.04742 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 109 components and 5.04742 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.198942Jy  sigma=0.001506
! Fit after  self-cal, rms=0.198768Jy  sigma=0.001505
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.22% of the data.
!  The x-axis pixel size should ideally be below 0.1902 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.00117673 Jy
! Component: 100  -  total flux cleaned = 0.00254841 Jy
! Component: 150  -  total flux cleaned = 0.00337632 Jy
! Component: 200  -  total flux cleaned = 0.00378762 Jy
! Total flux subtracted in 200 components = 0.00378762 Jy
! Clean residual min=-0.010735 max=0.010526 Jy/beam
! Clean residual mean=0.000118 rms=0.003507 Jy/beam
! Combined flux in latest and established models = 5.05121 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 121 components and 5.05121 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.198683Jy  sigma=0.001504
! Fit after  self-cal, rms=0.198584Jy  sigma=0.001503
! Inverting map 
! Your choice of large map pixels excluded 1.22% of the data.
!  The x-axis pixel size should ideally be below 0.1902 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 1.22% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=0.8328 mas, bmaj=2.039 mas, bpa=-12.58 degrees
! Estimated noise=624.446 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8328 x 2.039 at -12.58 degrees (North through East)
! Clean map  min=-0.0099577  max=4.2384 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.198584Jy  sigma=0.001503
! Fit after  self-cal, rms=0.169242Jy  sigma=0.001193
! Inverting map and beam 
! Your choice of large map pixels excluded 1.22% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=0.8328 mas, bmaj=2.039 mas, bpa=-12.55 degrees
! Estimated noise=623.835 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00150493 Jy
! Component: 100  -  total flux cleaned = 0.00174748 Jy
! Component: 150  -  total flux cleaned = 0.00117266 Jy
! Component: 200  -  total flux cleaned = 0.000821474 Jy
! Total flux subtracted in 200 components = 0.000821474 Jy
! Clean residual min=-0.007835 max=0.006072 Jy/beam
! Clean residual mean=0.000116 rms=0.002028 Jy/beam
! Combined flux in latest and established models = 5.05203 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 128 components and 5.05203 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.168557Jy  sigma=0.001187
! Fit after  self-cal, rms=0.168534Jy  sigma=0.001186
! Inverting map 
! Your choice of large map pixels excluded 1.22% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000954567 Jy
! Component: 100  -  total flux cleaned = 0.000952557 Jy
! Component: 150  -  total flux cleaned = 0.000791342 Jy
! Component: 200  -  total flux cleaned = 0.000486198 Jy
! Total flux subtracted in 200 components = 0.000486198 Jy
! Clean residual min=-0.007418 max=0.006063 Jy/beam
! Clean residual mean=0.000107 rms=0.001976 Jy/beam
! Combined flux in latest and established models = 5.05251 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 129 components and 5.05251 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.168143Jy  sigma=0.001183
! Fit after  self-cal, rms=0.168130Jy  sigma=0.001183
! Inverting map 
! Your choice of large map pixels excluded 1.22% of the data.
!  The x-axis pixel size should ideally be below 0.1902 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.168130Jy  sigma=0.001183
! Fit after  self-cal, rms=0.167993Jy  sigma=0.001182
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 1.22% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=0.6693 mas, bmaj=1.34 mas, bpa=-10.9 degrees
! Estimated noise=1111.95 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 3.20051 Jy
! Component: 100  -  total flux cleaned = 4.02286 Jy
! Component: 150  -  total flux cleaned = 4.3957 Jy
! Component: 200  -  total flux cleaned = 4.58111 Jy
! Total flux subtracted in 200 components = 4.58111 Jy
! Clean residual min=-0.030559 max=0.086711 Jy/beam
! Clean residual mean=0.002052 rms=0.011220 Jy/beam
! Combined flux in latest and established models = 4.58112 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 7 model components to the UV plane model.
! The established model now contains 7 components and 4.58112 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 1.22% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=0.8331 mas, bmaj=2.039 mas, bpa=-12.56 degrees
! Estimated noise=623.88 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.145543 Jy
! Component: 100  -  total flux cleaned = 0.232175 Jy
! Component: 150  -  total flux cleaned = 0.290944 Jy
! Component: 200  -  total flux cleaned = 0.333024 Jy
! Total flux subtracted in 200 components = 0.333024 Jy
! Clean residual min=-0.011373 max=0.027837 Jy/beam
! Clean residual mean=0.002628 rms=0.006043 Jy/beam
! Combined flux in latest and established models = 4.91414 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 34 components and 4.91414 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.22% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
! Added new window around map position (0.2, -1.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0325623 Jy
! Component: 100  -  total flux cleaned = 0.0567363 Jy
! Component: 150  -  total flux cleaned = 0.0752485 Jy
! Component: 200  -  total flux cleaned = 0.0897546 Jy
! Total flux subtracted in 200 components = 0.0897546 Jy
! Clean residual min=-0.008185 max=0.012475 Jy/beam
! Clean residual mean=0.000941 rms=0.002829 Jy/beam
! Combined flux in latest and established models = 5.0039 Jy
! Adding 36 model components to the UV plane model.
! The established model now contains 58 components and 5.00389 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.22% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
! Added new window around map position (-0.2, 2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00953245 Jy
! Component: 100  -  total flux cleaned = 0.0151258 Jy
! Component: 150  -  total flux cleaned = 0.0200044 Jy
! Component: 200  -  total flux cleaned = 0.0230102 Jy
! Total flux subtracted in 200 components = 0.0230102 Jy
! Clean residual min=-0.007491 max=0.007989 Jy/beam
! Clean residual mean=0.000529 rms=0.002199 Jy/beam
! Combined flux in latest and established models = 5.02691 Jy
! Adding 35 model components to the UV plane model.
! The established model now contains 76 components and 5.0269 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.22% of the data.
!  The x-axis pixel size should ideally be below 0.1902 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 1.22% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=2.314 mas, bmaj=3.793 mas, bpa=-2.691 degrees
! Estimated noise=791.387 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00984265 Jy
! Component: 100  -  total flux cleaned = 0.0155344 Jy
! Component: 150  -  total flux cleaned = 0.0190444 Jy
! Component: 200  -  total flux cleaned = 0.0199542 Jy
! Total flux subtracted in 200 components = 0.0199542 Jy
! Clean residual min=-0.006532 max=0.007545 Jy/beam
! Clean residual mean=0.000444 rms=0.002579 Jy/beam
! Combined flux in latest and established models = 5.04686 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.000474065 Jy
! Component: 100  -  total flux cleaned = 0.000912524 Jy
! Component: 150  -  total flux cleaned = 0.00121702 Jy
! Component: 200  -  total flux cleaned = 0.00141065 Jy
! Total flux subtracted in 200 components = 0.00141065 Jy
! Clean residual min=-0.006413 max=0.007228 Jy/beam
! Clean residual mean=0.000388 rms=0.002539 Jy/beam
! Combined flux in latest and established models = 5.04827 Jy
! Adding 52 model components to the UV plane model.
! The established model now contains 123 components and 5.04827 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.22% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 1.22% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=0.8331 mas, bmaj=2.039 mas, bpa=-12.56 degrees
! Estimated noise=623.88 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00122284 Jy
! Component: 100  -  total flux cleaned = -0.00199328 Jy
! Component: 150  -  total flux cleaned = -0.00271593 Jy
! Component: 200  -  total flux cleaned = -0.00340065 Jy
! Total flux subtracted in 200 components = -0.00340065 Jy
! Clean residual min=-0.006399 max=0.006593 Jy/beam
! Clean residual mean=0.000236 rms=0.001874 Jy/beam
! Combined flux in latest and established models = 5.04487 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 136 components and 5.04487 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.169677Jy  sigma=0.001193
! Fit after  self-cal, rms=0.169405Jy  sigma=0.001191
wmodel J2225-0457_X_2000_12_04_pus_map.mod
! Writing 136 model components to file: J2225-0457_X_2000_12_04_pus_map.mod
wobs J2225-0457_X_2000_12_04_pus_uvs.fits
! Writing UV FITS file: J2225-0457_X_2000_12_04_pus_uvs.fits
wwins J2225-0457_X_2000_12_04_pus_map.win
! wwins: Wrote 5 windows to J2225-0457_X_2000_12_04_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 1.22% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000394798 Jy
! Component: 100  -  total flux cleaned = -0.00018567 Jy
! Component: 150  -  total flux cleaned = 0.000530538 Jy
! Component: 200  -  total flux cleaned = 0.000925189 Jy
! Component: 250  -  total flux cleaned = 0.00121276 Jy
! Component: 300  -  total flux cleaned = 0.00130448 Jy
! Component: 350  -  total flux cleaned = 0.00139478 Jy
! Component: 400  -  total flux cleaned = 0.00175044 Jy
! Component: 450  -  total flux cleaned = 0.0019239 Jy
! Component: 500  -  total flux cleaned = 0.00217929 Jy
! Component: 550  -  total flux cleaned = 0.00243022 Jy
! Component: 600  -  total flux cleaned = 0.00292169 Jy
! Component: 650  -  total flux cleaned = 0.0030826 Jy
! Component: 700  -  total flux cleaned = 0.00347966 Jy
! Component: 750  -  total flux cleaned = 0.00363599 Jy
! Component: 800  -  total flux cleaned = 0.00386733 Jy
! Component: 850  -  total flux cleaned = 0.00409532 Jy
! Component: 900  -  total flux cleaned = 0.00439552 Jy
! Component: 950  -  total flux cleaned = 0.00454298 Jy
! Component: 1000  -  total flux cleaned = 0.00483477 Jy
! Total flux subtracted in 1024 components = 0.00490716 Jy
! Clean residual min=-0.003892 max=0.004112 Jy/beam
! Clean residual mean=0.000148 rms=0.001465 Jy/beam
! Combined flux in latest and established models = 5.04978 Jy
keep
! Adding 68 model components to the UV plane model.
! The established model now contains 198 components and 5.04977 Jy
![Exited script file: muppet]
wmap "J2225-0457_X_2000_12_04_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 1.22% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8331 x 2.039 at -12.56 degrees (North through East)
! Clean map  min=-0.005886  max=4.2485 Jy/beam
! Writing clean map to FITS file: J2225-0457_X_2000_12_04_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 4.24854 
invert
! Inverting map 
! Your choice of large map pixels excluded 1.22% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00146615 
device "J2225-0457_X_2000_12_04_pus\_map.eps/VPS"
! Attempting to open device: 'J2225-0457_X_2000_12_04_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.103528 0.103528 0.207056 0.414112 0.828224 1.65645 3.3129 6.6258 13.2516 26.5032 53.0064
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0043 
print "peak=",int(1000*peak_flux)/1000
! peak= 4.248 
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.8331 x 2.039 at -12.56 degrees (North through East)
! Clean map  min=-0.005886  max=4.2485 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2225-0457_X_2000_12_04_pus\_map.gif/vgif"
! Attempting to open device: 'J2225-0457_X_2000_12_04_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2225-0457_X_2000_12_04_pus_uvs.log closed on Fri Oct 12 15:34:55 2007