! Started logfile: J1625-2527_X_2000_05_22_pus_uvs.log on Mon Nov 12 16:30:24 2007
obs J1625-2527_X_2000_05_22_pus_uva.fits
! Reading UV FITS file: J1625-2527_X_2000_05_22_pus_uva.fits
! AN table 1: 66 integrations on 190 of 190 possible baselines.
! AN table 2: 9 integrations on 190 of 190 possible baselines.
! AN table 3: 42 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0981556 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1625-2527
! 
! 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 1884 lines of history.
! 
! Reading 8728 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 J1625-2527_X_2000_05_22_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 834 telescope corrections were flagged in sub-array 1.
!  A total of 180 telescope corrections were flagged in sub-array 2.
!  A total of 805 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 834 telescope corrections were flagged in sub-array 1.
!  A total of 180 telescope corrections were flagged in sub-array 2.
!  A total of 805 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 834 telescope corrections were flagged in sub-array 1.
!  A total of 180 telescope corrections were flagged in sub-array 2.
!  A total of 805 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 834 telescope corrections were flagged in sub-array 1.
!  A total of 180 telescope corrections were flagged in sub-array 2.
!  A total of 805 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.843996Jy  sigma=0.008439
! Fit after  self-cal, rms=0.421770Jy  sigma=0.003937
! 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.658% of the data.
!  The x-axis pixel size should ideally be below 0.1967 milli-arcsec
! Estimated beam: bmin=0.7158 mas, bmaj=1.297 mas, bpa=-5.42 degrees
! Estimated noise=1230.27 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.457296 Jy
! Component: 100  -  total flux cleaned = 0.569966 Jy
! Total flux subtracted in 100 components = 0.569966 Jy
! Clean residual min=-0.019226 max=0.051622 Jy/beam
! Clean residual mean=0.000799 rms=0.008891 Jy/beam
! Combined flux in latest and established models = 0.569966 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 13 components and 0.569966 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.183103Jy  sigma=0.001836
! Fit after  self-cal, rms=0.183097Jy  sigma=0.001836
! Inverting map 
! Your choice of large map pixels excluded 0.658% of the data.
!  The x-axis pixel size should ideally be below 0.1967 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.658% of the data.
!  The x-axis pixel size should ideally be below 0.1967 milli-arcsec
! Estimated beam: bmin=0.9053 mas, bmaj=2.126 mas, bpa=0.8859 degrees
! Estimated noise=770.192 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, 1.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0873971 Jy
! Component: 100  -  total flux cleaned = 0.128264 Jy
! Component: 150  -  total flux cleaned = 0.151076 Jy
! Component: 200  -  total flux cleaned = 0.165232 Jy
! Total flux subtracted in 200 components = 0.165232 Jy
! Clean residual min=-0.006786 max=0.009234 Jy/beam
! Clean residual mean=0.000139 rms=0.002677 Jy/beam
! Combined flux in latest and established models = 0.735198 Jy
! Performing phase self-cal
! Adding 59 model components to the UV plane model.
! The established model now contains 64 components and 0.735198 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.149218Jy  sigma=0.001282
! Fit after  self-cal, rms=0.149184Jy  sigma=0.001281
! Inverting map 
! Your choice of large map pixels excluded 0.658% of the data.
!  The x-axis pixel size should ideally be below 0.1967 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.97     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.09     KK        1.00*    KP        1.00     
!   MA        1.00*    MC        1.00*    MK        1.02     NL        1.00     
!   NY        1.00*    OV        0.97     PT        0.98     SC        1.02     
!   TS        1.00*    WF        1.03     WZ        1.00*    LA        1.00     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    LA        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        0.97     HN        1.00*    KK        1.00*    KP        1.00*    
!   MA        1.12     MC        1.04     MK        1.00*    NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        0.89     LA        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.07     KK        1.00*    KP        0.95     
!   MA        1.00*    MC        1.00*    MK        1.00     NL        1.03     
!   NY        1.00*    OV        1.02     PT        0.96     SC        1.03     
!   TS        1.00*    WF        1.01     WZ        1.00*    LA        0.96     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    LA        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.02     HN        1.00*    KK        1.00*    KP        1.00*    
!   MA        1.29     MC        1.00     MK        1.00*    NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        0.97     LA        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.06     KK        1.00*    KP        1.00     
!   MA        1.00*    MC        1.00*    MK        1.02     NL        1.01     
!   NY        1.00*    OV        0.98     PT        0.96     SC        1.02     
!   TS        1.00*    WF        1.01     WZ        1.00*    LA        1.01     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    LA        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        0.87     HN        1.00*    KK        1.00*    KP        1.00*    
!   MA        1.19     MC        0.99     MK        1.00*    NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.01     LA        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.97     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.07     KK        1.00*    KP        1.00     
!   MA        1.00*    MC        1.00*    MK        1.03     NL        1.00     
!   NY        1.00*    OV        0.99     PT        0.97     SC        1.01     
!   TS        1.00*    WF        0.99     WZ        1.00*    LA        0.98     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    LA        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        0.91     HN        1.00*    KK        1.00*    KP        1.00*    
!   MA        1.49     MC        0.98     MK        1.00*    NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00     LA        1.00*    
! 
! 
! Fit before self-cal, rms=0.149184Jy  sigma=0.001281
! Fit after  self-cal, rms=0.150061Jy  sigma=0.001248
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.659% of the data.
!  The x-axis pixel size should ideally be below 0.1967 milli-arcsec
! Estimated beam: bmin=0.9144 mas, bmaj=2.155 mas, bpa=0.9417 degrees
! Estimated noise=767.002 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.6, 3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0072595 Jy
! Component: 100  -  total flux cleaned = 0.00879854 Jy
! Component: 150  -  total flux cleaned = 0.00880669 Jy
! Component: 200  -  total flux cleaned = 0.00880817 Jy
! Total flux subtracted in 200 components = 0.00880817 Jy
! Clean residual min=-0.003314 max=0.003436 Jy/beam
! Clean residual mean=-0.000188 rms=0.001067 Jy/beam
! Combined flux in latest and established models = 0.744006 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 89 components and 0.744006 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.149689Jy  sigma=0.001243
! Fit after  self-cal, rms=0.149775Jy  sigma=0.001243
! Inverting map 
! Your choice of large map pixels excluded 0.659% of the data.
!  The x-axis pixel size should ideally be below 0.1967 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.149775Jy  sigma=0.001243
! Fit after  self-cal, rms=0.149779Jy  sigma=0.001242
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.659% of the data.
!  The x-axis pixel size should ideally be below 0.1967 milli-arcsec
! Estimated beam: bmin=0.9147 mas, bmaj=2.154 mas, bpa=0.9248 degrees
! Estimated noise=766.428 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0016184 Jy
! Component: 100  -  total flux cleaned = 0.00161285 Jy
! Component: 150  -  total flux cleaned = 0.00168141 Jy
! Component: 200  -  total flux cleaned = 0.0017444 Jy
! Total flux subtracted in 200 components = 0.0017444 Jy
! Clean residual min=-0.002999 max=0.003170 Jy/beam
! Clean residual mean=-0.000116 rms=0.000922 Jy/beam
! Combined flux in latest and established models = 0.745751 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 99 components and 0.745751 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.149670Jy  sigma=0.001241
! Fit after  self-cal, rms=0.149656Jy  sigma=0.001241
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.659% of the data.
!  The x-axis pixel size should ideally be below 0.1967 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.000360601 Jy
! Component: 100  -  total flux cleaned = 0.000412933 Jy
! Component: 150  -  total flux cleaned = 0.000512311 Jy
! Component: 200  -  total flux cleaned = 0.000600612 Jy
! Total flux subtracted in 200 components = 0.000600612 Jy
! Clean residual min=-0.002917 max=0.003150 Jy/beam
! Clean residual mean=-0.000127 rms=0.000882 Jy/beam
! Combined flux in latest and established models = 0.746351 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 107 components and 0.746351 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.149605Jy  sigma=0.001241
! Fit after  self-cal, rms=0.149602Jy  sigma=0.001241
! Inverting map 
! Your choice of large map pixels excluded 0.659% of the data.
!  The x-axis pixel size should ideally be below 0.1967 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.149602Jy  sigma=0.001241
! Fit after  self-cal, rms=0.149691Jy  sigma=0.001241
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.659% of the data.
!  The x-axis pixel size should ideally be below 0.1967 milli-arcsec
! Estimated beam: bmin=0.9152 mas, bmaj=2.154 mas, bpa=0.9227 degrees
! Estimated noise=765.939 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -1.65761e-05 Jy
! Component: 100  -  total flux cleaned = -1.83166e-05 Jy
! Component: 150  -  total flux cleaned = 2.69511e-05 Jy
! Component: 200  -  total flux cleaned = 0.00011009 Jy
! Total flux subtracted in 200 components = 0.00011009 Jy
! Clean residual min=-0.002828 max=0.003147 Jy/beam
! Clean residual mean=-0.000079 rms=0.000825 Jy/beam
! Combined flux in latest and established models = 0.746461 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 113 components and 0.746461 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.149649Jy  sigma=0.001241
! Fit after  self-cal, rms=0.149646Jy  sigma=0.001241
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.659% of the data.
!  The x-axis pixel size should ideally be below 0.1967 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.000203174 Jy
! Component: 100  -  total flux cleaned = 0.00028143 Jy
! Component: 150  -  total flux cleaned = 0.000350593 Jy
! Component: 200  -  total flux cleaned = 0.000416136 Jy
! Total flux subtracted in 200 components = 0.000416136 Jy
! Clean residual min=-0.002781 max=0.003085 Jy/beam
! Clean residual mean=-0.000086 rms=0.000802 Jy/beam
! Combined flux in latest and established models = 0.746878 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 118 components and 0.746878 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.149622Jy  sigma=0.001240
! Fit after  self-cal, rms=0.149621Jy  sigma=0.001240
! Inverting map 
! Your choice of large map pixels excluded 0.659% of the data.
!  The x-axis pixel size should ideally be below 0.1967 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.149621Jy  sigma=0.001240
! Fit after  self-cal, rms=0.149700Jy  sigma=0.001240
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.659% of the data.
!  The x-axis pixel size should ideally be below 0.1967 milli-arcsec
! Estimated beam: bmin=2.295 mas, bmaj=6.038 mas, bpa=2.871 degrees
! Estimated noise=885.241 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000342671 Jy
! Component: 100  -  total flux cleaned = 0.000343721 Jy
! Component: 150  -  total flux cleaned = 0.000318284 Jy
! Component: 200  -  total flux cleaned = 0.000268797 Jy
! Total flux subtracted in 200 components = 0.000268797 Jy
! Clean residual min=-0.002129 max=0.002244 Jy/beam
! Clean residual mean=-0.000133 rms=0.000770 Jy/beam
! Combined flux in latest and established models = 0.747146 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 130 components and 0.747146 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.149691Jy  sigma=0.001240
! Fit after  self-cal, rms=0.149688Jy  sigma=0.001240
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.659% of the data.
!  The x-axis pixel size should ideally be below 0.1967 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.000118005 Jy
! Component: 100  -  total flux cleaned = 0.000120972 Jy
! Component: 150  -  total flux cleaned = 9.94697e-05 Jy
! Component: 200  -  total flux cleaned = 9.94219e-05 Jy
! Total flux subtracted in 200 components = 9.94219e-05 Jy
! Clean residual min=-0.002229 max=0.002107 Jy/beam
! Clean residual mean=-0.000143 rms=0.000746 Jy/beam
! Combined flux in latest and established models = 0.747246 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 134 components and 0.747246 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.149685Jy  sigma=0.001240
! Fit after  self-cal, rms=0.149681Jy  sigma=0.001240
! Inverting map 
! Your choice of large map pixels excluded 0.659% of the data.
!  The x-axis pixel size should ideally be below 0.1967 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.659% of the data.
!  The x-axis pixel size should ideally be below 0.1967 milli-arcsec
! Estimated beam: bmin=0.9156 mas, bmaj=2.154 mas, bpa=0.9201 degrees
! Estimated noise=765.589 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9156 x 2.154 at 0.9201 degrees (North through East)
! Clean map  min=-0.0045094  max=0.59889 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.149681Jy  sigma=0.001240
! Fit after  self-cal, rms=0.142152Jy  sigma=0.001135
! Inverting map and beam 
! Your choice of large map pixels excluded 0.659% of the data.
!  The x-axis pixel size should ideally be below 0.1967 milli-arcsec
! Estimated beam: bmin=0.9157 mas, bmaj=2.152 mas, bpa=0.9465 degrees
! Estimated noise=765.281 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000118543 Jy
! Component: 100  -  total flux cleaned = -0.00011845 Jy
! Component: 150  -  total flux cleaned = -0.000151244 Jy
! Component: 200  -  total flux cleaned = -0.000123669 Jy
! Total flux subtracted in 200 components = -0.000123669 Jy
! Clean residual min=-0.002652 max=0.002883 Jy/beam
! Clean residual mean=-0.000085 rms=0.000735 Jy/beam
! Combined flux in latest and established models = 0.747122 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 145 components and 0.747122 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.142125Jy  sigma=0.001135
! Fit after  self-cal, rms=0.142127Jy  sigma=0.001135
! Inverting map 
! Your choice of large map pixels excluded 0.659% of the data.
!  The x-axis pixel size should ideally be below 0.1967 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000115502 Jy
! Component: 100  -  total flux cleaned = 0.000142927 Jy
! Component: 150  -  total flux cleaned = 0.000168053 Jy
! Component: 200  -  total flux cleaned = 0.000192136 Jy
! Total flux subtracted in 200 components = 0.000192136 Jy
! Clean residual min=-0.002619 max=0.002835 Jy/beam
! Clean residual mean=-0.000088 rms=0.000724 Jy/beam
! Combined flux in latest and established models = 0.747314 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 151 components and 0.747314 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.142112Jy  sigma=0.001135
! Fit after  self-cal, rms=0.142113Jy  sigma=0.001135
! Inverting map 
! Your choice of large map pixels excluded 0.659% of the data.
!  The x-axis pixel size should ideally be below 0.1967 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.142113Jy  sigma=0.001135
! Fit after  self-cal, rms=0.142125Jy  sigma=0.001135
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.659% of the data.
!  The x-axis pixel size should ideally be below 0.1967 milli-arcsec
! Estimated beam: bmin=0.7233 mas, bmaj=1.279 mas, bpa=-5.233 degrees
! Estimated noise=1243.38 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.456785 Jy
! Component: 100  -  total flux cleaned = 0.567989 Jy
! Component: 150  -  total flux cleaned = 0.622869 Jy
! Component: 200  -  total flux cleaned = 0.654774 Jy
! Total flux subtracted in 200 components = 0.654774 Jy
! Clean residual min=-0.008764 max=0.016516 Jy/beam
! Clean residual mean=0.000490 rms=0.003719 Jy/beam
! Combined flux in latest and established models = 0.654774 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 29 model components to the UV plane model.
! The established model now contains 29 components and 0.654774 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 0.659% of the data.
!  The x-axis pixel size should ideally be below 0.1967 milli-arcsec
! Estimated beam: bmin=0.9156 mas, bmaj=2.151 mas, bpa=0.9484 degrees
! Estimated noise=764.882 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.0329198 Jy
! Component: 100  -  total flux cleaned = 0.0510603 Jy
! Component: 150  -  total flux cleaned = 0.062828 Jy
! Component: 200  -  total flux cleaned = 0.0711316 Jy
! Total flux subtracted in 200 components = 0.0711316 Jy
! Clean residual min=-0.003610 max=0.005218 Jy/beam
! Clean residual mean=0.000203 rms=0.001590 Jy/beam
! Combined flux in latest and established models = 0.725905 Jy
! Adding 70 model components to the UV plane model.
! The established model now contains 91 components and 0.725905 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.659% of the data.
!  The x-axis pixel size should ideally be below 0.1967 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.659% of the data.
!  The x-axis pixel size should ideally be below 0.1967 milli-arcsec
! Estimated beam: bmin=2.295 mas, bmaj=6.038 mas, bpa=2.875 degrees
! Estimated noise=884.61 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00901478 Jy
! Component: 100  -  total flux cleaned = 0.0142466 Jy
! Component: 150  -  total flux cleaned = 0.0174921 Jy
! Component: 200  -  total flux cleaned = 0.0186658 Jy
! Total flux subtracted in 200 components = 0.0186658 Jy
! Clean residual min=-0.002606 max=0.002698 Jy/beam
! Clean residual mean=-0.000082 rms=0.000929 Jy/beam
! Combined flux in latest and established models = 0.744571 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.000555638 Jy
! Component: 100  -  total flux cleaned = 0.0009533 Jy
! Component: 150  -  total flux cleaned = 0.00132726 Jy
! Component: 200  -  total flux cleaned = 0.00160031 Jy
! Total flux subtracted in 200 components = 0.00160031 Jy
! Clean residual min=-0.001993 max=0.002390 Jy/beam
! Clean residual mean=-0.000110 rms=0.000769 Jy/beam
! Combined flux in latest and established models = 0.746172 Jy
! Adding 62 model components to the UV plane model.
! The established model now contains 145 components and 0.746172 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.659% of the data.
!  The x-axis pixel size should ideally be below 0.1967 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 0.659% of the data.
!  The x-axis pixel size should ideally be below 0.1967 milli-arcsec
! Estimated beam: bmin=0.9156 mas, bmaj=2.151 mas, bpa=0.9484 degrees
! Estimated noise=764.882 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000237838 Jy
! Component: 100  -  total flux cleaned = -0.000347237 Jy
! Component: 150  -  total flux cleaned = -0.000254901 Jy
! Component: 200  -  total flux cleaned = -0.000254561 Jy
! Total flux subtracted in 200 components = -0.000254561 Jy
! Clean residual min=-0.002734 max=0.002820 Jy/beam
! Clean residual mean=-0.000052 rms=0.000764 Jy/beam
! Combined flux in latest and established models = 0.745917 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 161 components and 0.745917 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.142181Jy  sigma=0.001136
! Fit after  self-cal, rms=0.142184Jy  sigma=0.001136
wmodel J1625-2527_X_2000_05_22_pus_map.mod
! Writing 161 model components to file: J1625-2527_X_2000_05_22_pus_map.mod
wobs J1625-2527_X_2000_05_22_pus_uvs.fits
! Writing UV FITS file: J1625-2527_X_2000_05_22_pus_uvs.fits
wwins J1625-2527_X_2000_05_22_pus_map.win
! wwins: Wrote 3 windows to J1625-2527_X_2000_05_22_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.659% of the data.
!  The x-axis pixel size should ideally be below 0.1967 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000581281 Jy
! Component: 100  -  total flux cleaned = 0.000853038 Jy
! Component: 150  -  total flux cleaned = 0.00093788 Jy
! Component: 200  -  total flux cleaned = 0.00105701 Jy
! Component: 250  -  total flux cleaned = 0.00105657 Jy
! Component: 300  -  total flux cleaned = 0.000839435 Jy
! Component: 350  -  total flux cleaned = 0.000700651 Jy
! Component: 400  -  total flux cleaned = 0.000599542 Jy
! Component: 450  -  total flux cleaned = 0.000405837 Jy
! Component: 500  -  total flux cleaned = 0.000218565 Jy
! Component: 550  -  total flux cleaned = 3.73976e-05 Jy
! Component: 600  -  total flux cleaned = -0.000168106 Jy
! Component: 650  -  total flux cleaned = -0.000368187 Jy
! Component: 700  -  total flux cleaned = -0.000563068 Jy
! Component: 750  -  total flux cleaned = -0.000726246 Jy
! Component: 800  -  total flux cleaned = -0.000886311 Jy
! Component: 850  -  total flux cleaned = -0.000939016 Jy
! Component: 900  -  total flux cleaned = -0.00104159 Jy
! Component: 950  -  total flux cleaned = -0.00119215 Jy
! Component: 1000  -  total flux cleaned = -0.00121636 Jy
! Total flux subtracted in 1024 components = -0.00121628 Jy
! Clean residual min=-0.001210 max=0.001336 Jy/beam
! Clean residual mean=-0.000055 rms=0.000476 Jy/beam
! Combined flux in latest and established models = 0.744701 Jy
keep
! Adding 52 model components to the UV plane model.
! The established model now contains 213 components and 0.744701 Jy
![Exited script file: muppet]
wmap "J1625-2527_X_2000_05_22_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 0.659% of the data.
!  The x-axis pixel size should ideally be below 0.1967 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9156 x 2.151 at 0.9484 degrees (North through East)
! Clean map  min=-0.0034622  max=0.60026 Jy/beam
! Writing clean map to FITS file: J1625-2527_X_2000_05_22_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.60026 
invert
! Inverting map 
! Your choice of large map pixels excluded 0.659% of the data.
!  The x-axis pixel size should ideally be below 0.1967 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000475486 
device "J1625-2527_X_2000_05_22_pus\_map.eps/VPS"
! Attempting to open device: 'J1625-2527_X_2000_05_22_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.23764 0.23764 0.47528 0.950559 1.90112 3.80224 7.60447 15.2089 30.4179 60.8358
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0014 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.6 
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.9156 x 2.151 at 0.9484 degrees (North through East)
! Clean map  min=-0.0034622  max=0.60026 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1625-2527_X_2000_05_22_pus\_map.gif/vgif"
! Attempting to open device: 'J1625-2527_X_2000_05_22_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1625-2527_X_2000_05_22_pus_uvs.log closed on Mon Nov 12 16:30:29 2007