! Started logfile: J2246-1206_X_2000_12_04_pus_uvs.log on Fri Oct 12 17:42:36 2007
obs J2246-1206_X_2000_12_04_pus_uva.fits
! Reading UV FITS file: J2246-1206_X_2000_12_04_pus_uva.fits
! AN table 1: 23 integrations on 190 of 190 possible baselines.
! AN table 2: 11 integrations on 190 of 190 possible baselines.
! AN table 3: 82 integrations on 190 of 190 possible baselines.
! AN table 4: 13 integrations on 190 of 190 possible baselines.
! AN table 5: 78 integrations on 190 of 190 possible baselines.
! AN table 6: 14 integrations on 190 of 190 possible baselines.
! AN table 7: 210 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.137868 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2246-1206
! 
! 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 45160 visibilities.
select I
! Polarization I is unavailable.
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
print "field_size =",field_size
! field_size = 512 
print "field_cell =",field_cell
! field_cell = 0.2 
print "taper_size =",taper_size
! taper_size = 70 
![@muppet J2246-1206_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 = 512x512 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 226 telescope corrections were flagged in sub-array 1.
!  A total of 202 telescope corrections were flagged in sub-array 2.
!  A total of 1091 telescope corrections were flagged in sub-array 3.
!  A total of 260 telescope corrections were flagged in sub-array 4.
!  A total of 757 telescope corrections were flagged in sub-array 5.
!  A total of 247 telescope corrections were flagged in sub-array 6.
!  A total of 2725 telescope corrections were flagged in sub-array 7.
! 
! Correcting IF 2.
!  A total of 226 telescope corrections were flagged in sub-array 1.
!  A total of 202 telescope corrections were flagged in sub-array 2.
!  A total of 1091 telescope corrections were flagged in sub-array 3.
!  A total of 260 telescope corrections were flagged in sub-array 4.
!  A total of 757 telescope corrections were flagged in sub-array 5.
!  A total of 247 telescope corrections were flagged in sub-array 6.
!  A total of 2725 telescope corrections were flagged in sub-array 7.
! 
! Correcting IF 3.
!  A total of 226 telescope corrections were flagged in sub-array 1.
!  A total of 202 telescope corrections were flagged in sub-array 2.
!  A total of 1091 telescope corrections were flagged in sub-array 3.
!  A total of 260 telescope corrections were flagged in sub-array 4.
!  A total of 757 telescope corrections were flagged in sub-array 5.
!  A total of 247 telescope corrections were flagged in sub-array 6.
!  A total of 2725 telescope corrections were flagged in sub-array 7.
! 
! Correcting IF 4.
!  A total of 226 telescope corrections were flagged in sub-array 1.
!  A total of 202 telescope corrections were flagged in sub-array 2.
!  A total of 1091 telescope corrections were flagged in sub-array 3.
!  A total of 260 telescope corrections were flagged in sub-array 4.
!  A total of 757 telescope corrections were flagged in sub-array 5.
!  A total of 247 telescope corrections were flagged in sub-array 6.
!  A total of 2725 telescope corrections were flagged in sub-array 7.
! 
! Fit before self-cal, rms=1.032548Jy  sigma=0.010925
! Fit after  self-cal, rms=0.683958Jy  sigma=0.007420
! 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.91% of the data.
!  The x-axis pixel size should ideally be below 0.1634 milli-arcsec
! Estimated beam: bmin=0.6114 mas, bmaj=1.579 mas, bpa=-0.2242 degrees
! Estimated noise=814.554 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 = 1.08713 Jy
! Component: 100  -  total flux cleaned = 1.4337 Jy
! Total flux subtracted in 100 components = 1.4337 Jy
! Clean residual min=-0.042655 max=0.162755 Jy/beam
! Clean residual mean=0.000316 rms=0.013868 Jy/beam
! Combined flux in latest and established models = 1.4337 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 11 components and 1.4337 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.391549Jy  sigma=0.004172
! Fit after  self-cal, rms=0.389285Jy  sigma=0.004155
! Inverting map 
! Your choice of large map pixels excluded 0.91% of the data.
!  The x-axis pixel size should ideally be below 0.1634 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.185715 Jy
! Component: 100  -  total flux cleaned = 0.289064 Jy
! Total flux subtracted in 100 components = 0.289064 Jy
! Clean residual min=-0.023612 max=0.064567 Jy/beam
! Clean residual mean=0.000224 rms=0.007418 Jy/beam
! Combined flux in latest and established models = 1.72276 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 16 components and 1.72276 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.245946Jy  sigma=0.002458
! Fit after  self-cal, rms=0.244350Jy  sigma=0.002446
! Inverting map 
! Your choice of large map pixels excluded 0.91% of the data.
!  The x-axis pixel size should ideally be below 0.1634 milli-arcsec
! Added new window around map position (0, 1.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0712819 Jy
! Component: 100  -  total flux cleaned = 0.116256 Jy
! Total flux subtracted in 100 components = 0.116256 Jy
! Clean residual min=-0.019126 max=0.050609 Jy/beam
! Clean residual mean=0.000188 rms=0.005718 Jy/beam
! Combined flux in latest and established models = 1.83902 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 23 components and 1.83902 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.213574Jy  sigma=0.002042
! Fit after  self-cal, rms=0.212405Jy  sigma=0.002034
! Inverting map 
! Your choice of large map pixels excluded 0.91% of the data.
!  The x-axis pixel size should ideally be below 0.1634 milli-arcsec
! Added new window around map position (1.4, 2.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0498209 Jy
! Component: 100  -  total flux cleaned = 0.0796604 Jy
! Total flux subtracted in 100 components = 0.0796604 Jy
! Clean residual min=-0.020653 max=0.021096 Jy/beam
! Clean residual mean=0.000151 rms=0.004638 Jy/beam
! Combined flux in latest and established models = 1.91868 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 36 components and 1.91868 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.196284Jy  sigma=0.001818
! Fit after  self-cal, rms=0.194642Jy  sigma=0.001804
! Inverting map 
! Your choice of large map pixels excluded 0.91% of the data.
!  The x-axis pixel size should ideally be below 0.1634 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.91% of the data.
!  The x-axis pixel size should ideally be below 0.1634 milli-arcsec
! Estimated beam: bmin=0.9086 mas, bmaj=2.271 mas, bpa=-6.048 degrees
! Estimated noise=325.459 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.0388934 Jy
! Component: 100  -  total flux cleaned = 0.0611957 Jy
! Component: 150  -  total flux cleaned = 0.0751918 Jy
! Component: 200  -  total flux cleaned = 0.0840557 Jy
! Total flux subtracted in 200 components = 0.0840557 Jy
! Clean residual min=-0.021347 max=0.018258 Jy/beam
! Clean residual mean=0.000527 rms=0.005720 Jy/beam
! Combined flux in latest and established models = 2.00274 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 48 components and 2.00274 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.187573Jy  sigma=0.001695
! Fit after  self-cal, rms=0.186578Jy  sigma=0.001686
! Inverting map 
! Your choice of large map pixels excluded 0.91% of the data.
!  The x-axis pixel size should ideally be below 0.1634 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.97     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.06     KK        1.06     KP        1.01     
!   LA        1.00     MA        1.00*    MC        1.00*    MK        0.98     
!   NL        1.03     NY        1.00*    OV        0.98     PT        0.99     
!   SC        1.13     TS        1.00*    WF        1.09     WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  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*    
!   LA        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*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.03     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.02     KP        1.00     
!   LA        1.02     MA        1.00*    MC        1.00*    MK        0.99     
!   NL        1.00*    NY        1.00*    OV        0.97     PT        0.99     
!   SC        1.00*    TS        0.98     WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        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*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.99     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.09     KP        0.97     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        1.01     NY        1.00*    OV        0.97     PT        0.97     
!   SC        0.99     TS        1.00*    WF        1.05     WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        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*    
! 
!  Telescope amplitude corrections in sub-array 7:
!   BR        1.00*    FD        1.03     GC        1.00*    GG        1.00*    
!   HH        1.34     HN        0.99     KK        1.00*    KP        0.97     
!   LA        1.04     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.04     NY        1.00*    OV        1.00*    PT        1.02     
!   SC        1.05     TS        1.00*    WF        0.99     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.05     KK        1.04     KP        1.01     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        0.98     
!   NL        0.98     NY        1.00*    OV        0.97     PT        1.00     
!   SC        1.17     TS        1.00*    WF        1.08     WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  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*    
!   LA        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*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.04     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.01     KP        1.00     
!   LA        1.03     MA        1.00*    MC        1.00*    MK        1.01     
!   NL        1.00*    NY        1.00*    OV        0.97     PT        0.99     
!   SC        1.00*    TS        0.98     WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        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*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.99     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.09     KP        0.97     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        1.01     
!   NL        0.97     NY        1.00*    OV        0.97     PT        0.97     
!   SC        0.99     TS        1.00*    WF        1.04     WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        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*    
! 
!  Telescope amplitude corrections in sub-array 7:
!   BR        1.00*    FD        1.04     GC        1.00*    GG        1.00*    
!   HH        1.33     HN        0.99     KK        1.00*    KP        0.97     
!   LA        1.03     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        0.99     NY        1.00*    OV        1.00*    PT        1.02     
!   SC        1.05     TS        1.00*    WF        0.98     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        1.02     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.06     KK        1.00     KP        1.01     
!   LA        1.00     MA        1.00*    MC        1.00*    MK        0.99     
!   NL        0.97     NY        1.00*    OV        0.93     PT        0.97     
!   SC        1.11     TS        1.00*    WF        1.09     WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  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*    
!   LA        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*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.09     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.97     KP        1.00     
!   LA        1.03     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        1.00*    NY        1.00*    OV        0.94     PT        0.96     
!   SC        1.00*    TS        1.00     WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        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*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.96     FD        1.03     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.01     KK        1.05     KP        0.97     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        0.99     
!   NL        0.96     NY        1.00*    OV        0.94     PT        0.95     
!   SC        0.99     TS        1.00*    WF        1.04     WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        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*    
! 
!  Telescope amplitude corrections in sub-array 7:
!   BR        1.00*    FD        1.10     GC        1.00*    GG        1.00*    
!   HH        1.23     HN        1.00     KK        1.00*    KP        0.96     
!   LA        1.04     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        0.98     NY        1.00*    OV        1.00*    PT        1.00     
!   SC        1.04     TS        1.00*    WF        0.95     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.01     KP        1.02     
!   LA        1.00     MA        1.00*    MC        1.00*    MK        0.95     
!   NL        0.98     NY        1.00*    OV        0.97     PT        0.95     
!   SC        1.09     TS        1.00*    WF        1.11     WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  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*    
!   LA        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*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.08     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00     KP        1.01     
!   LA        1.02     MA        1.00*    MC        1.00*    MK        0.97     
!   NL        1.00*    NY        1.00*    OV        0.97     PT        0.95     
!   SC        1.00*    TS        1.01     WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        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*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00     FD        1.02     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.07     KP        0.97     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        0.97     
!   NL        0.96     NY        1.00*    OV        0.97     PT        0.93     
!   SC        0.98     TS        1.00*    WF        1.04     WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        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*    
! 
!  Telescope amplitude corrections in sub-array 7:
!   BR        1.00*    FD        1.08     GC        1.00*    GG        1.00*    
!   HH        1.16     HN        0.96     KK        1.00*    KP        0.97     
!   LA        1.04     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        0.99     NY        1.00*    OV        1.00*    PT        0.98     
!   SC        1.03     TS        1.00*    WF        1.00     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.186578Jy  sigma=0.001686
! Fit after  self-cal, rms=0.172925Jy  sigma=0.001420
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.915% of the data.
!  The x-axis pixel size should ideally be below 0.1634 milli-arcsec
! Estimated beam: bmin=0.91 mas, bmaj=2.314 mas, bpa=-6.502 degrees
! Estimated noise=326.274 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 (5.4, 6.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.018938 Jy
! Component: 100  -  total flux cleaned = 0.0313769 Jy
! Component: 150  -  total flux cleaned = 0.0391792 Jy
! Component: 200  -  total flux cleaned = 0.0418726 Jy
! Total flux subtracted in 200 components = 0.0418726 Jy
! Clean residual min=-0.006876 max=0.009936 Jy/beam
! Clean residual mean=0.000095 rms=0.001910 Jy/beam
! Combined flux in latest and established models = 2.04461 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 71 components and 2.04461 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.170466Jy  sigma=0.001386
! Fit after  self-cal, rms=0.170208Jy  sigma=0.001383
! Inverting map 
! Your choice of large map pixels excluded 0.915% of the data.
!  The x-axis pixel size should ideally be below 0.1634 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.170208Jy  sigma=0.001383
! Fit after  self-cal, rms=0.169955Jy  sigma=0.001380
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.915% of the data.
!  The x-axis pixel size should ideally be below 0.1634 milli-arcsec
! Estimated beam: bmin=0.9101 mas, bmaj=2.315 mas, bpa=-6.517 degrees
! Estimated noise=326.338 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00885853 Jy
! Component: 100  -  total flux cleaned = 0.0124912 Jy
! Component: 150  -  total flux cleaned = 0.0141008 Jy
! Component: 200  -  total flux cleaned = 0.0152883 Jy
! Total flux subtracted in 200 components = 0.0152883 Jy
! Clean residual min=-0.006287 max=0.007521 Jy/beam
! Clean residual mean=0.000107 rms=0.001513 Jy/beam
! Combined flux in latest and established models = 2.0599 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 82 components and 2.0599 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.169145Jy  sigma=0.001369
! Fit after  self-cal, rms=0.169004Jy  sigma=0.001368
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.915% of the data.
!  The x-axis pixel size should ideally be below 0.1634 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.00226865 Jy
! Component: 100  -  total flux cleaned = 0.00374014 Jy
! Component: 150  -  total flux cleaned = 0.00420459 Jy
! Component: 200  -  total flux cleaned = 0.00463279 Jy
! Total flux subtracted in 200 components = 0.00463279 Jy
! Clean residual min=-0.007404 max=0.006552 Jy/beam
! Clean residual mean=0.000087 rms=0.001404 Jy/beam
! Combined flux in latest and established models = 2.06453 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 89 components and 2.06453 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.168656Jy  sigma=0.001364
! Fit after  self-cal, rms=0.168587Jy  sigma=0.001363
! Inverting map 
! Your choice of large map pixels excluded 0.915% of the data.
!  The x-axis pixel size should ideally be below 0.1634 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.168587Jy  sigma=0.001363
! Fit after  self-cal, rms=0.168704Jy  sigma=0.001361
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.915% of the data.
!  The x-axis pixel size should ideally be below 0.1634 milli-arcsec
! Estimated beam: bmin=0.91 mas, bmaj=2.317 mas, bpa=-6.547 degrees
! Estimated noise=326.225 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00272815 Jy
! Component: 100  -  total flux cleaned = 0.00378564 Jy
! Component: 150  -  total flux cleaned = 0.00467479 Jy
! Component: 200  -  total flux cleaned = 0.00507443 Jy
! Total flux subtracted in 200 components = 0.00507443 Jy
! Clean residual min=-0.005382 max=0.005479 Jy/beam
! Clean residual mean=0.000099 rms=0.001201 Jy/beam
! Combined flux in latest and established models = 2.0696 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 94 components and 2.0696 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.168357Jy  sigma=0.001357
! Fit after  self-cal, rms=0.168291Jy  sigma=0.001356
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.915% of the data.
!  The x-axis pixel size should ideally be below 0.1634 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.00104077 Jy
! Component: 100  -  total flux cleaned = 0.00207203 Jy
! Component: 150  -  total flux cleaned = 0.0023066 Jy
! Component: 200  -  total flux cleaned = 0.00241215 Jy
! Total flux subtracted in 200 components = 0.00241215 Jy
! Clean residual min=-0.006014 max=0.004898 Jy/beam
! Clean residual mean=0.000090 rms=0.001150 Jy/beam
! Combined flux in latest and established models = 2.07202 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 98 components and 2.07202 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.168110Jy  sigma=0.001354
! Fit after  self-cal, rms=0.168076Jy  sigma=0.001354
! Inverting map 
! Your choice of large map pixels excluded 0.915% of the data.
!  The x-axis pixel size should ideally be below 0.1634 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.168076Jy  sigma=0.001354
! Fit after  self-cal, rms=0.168290Jy  sigma=0.001353
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.915% of the data.
!  The x-axis pixel size should ideally be below 0.1634 milli-arcsec
! Estimated beam: bmin=2.194 mas, bmaj=3.585 mas, bpa=-4.147 degrees
! Estimated noise=395.265 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00495123 Jy
! Component: 100  -  total flux cleaned = 0.00636749 Jy
! Component: 150  -  total flux cleaned = 0.00706589 Jy
! Component: 200  -  total flux cleaned = 0.00721639 Jy
! Total flux subtracted in 200 components = 0.00721639 Jy
! Clean residual min=-0.004103 max=0.004295 Jy/beam
! Clean residual mean=0.000142 rms=0.001088 Jy/beam
! Combined flux in latest and established models = 2.07923 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 110 components and 2.07923 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.168222Jy  sigma=0.001351
! Fit after  self-cal, rms=0.168141Jy  sigma=0.001351
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.915% of the data.
!  The x-axis pixel size should ideally be below 0.1634 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.000699412 Jy
! Component: 100  -  total flux cleaned = 0.00116307 Jy
! Component: 150  -  total flux cleaned = 0.00123398 Jy
! Component: 200  -  total flux cleaned = 0.00130299 Jy
! Total flux subtracted in 200 components = 0.00130299 Jy
! Clean residual min=-0.004446 max=0.004302 Jy/beam
! Clean residual mean=0.000127 rms=0.001045 Jy/beam
! Combined flux in latest and established models = 2.08053 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 116 components and 2.08053 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.168132Jy  sigma=0.001350
! Fit after  self-cal, rms=0.168098Jy  sigma=0.001350
! Inverting map 
! Your choice of large map pixels excluded 0.915% of the data.
!  The x-axis pixel size should ideally be below 0.1634 milli-arcsec
! Added new window around map position (9.6, 10.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00321698 Jy
! Component: 100  -  total flux cleaned = 0.00365025 Jy
! Component: 150  -  total flux cleaned = 0.00383845 Jy
! Component: 200  -  total flux cleaned = 0.00375014 Jy
! Total flux subtracted in 200 components = 0.00375014 Jy
! Clean residual min=-0.003861 max=0.002841 Jy/beam
! Clean residual mean=0.000071 rms=0.000894 Jy/beam
! Combined flux in latest and established models = 2.08428 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 142 components and 2.08428 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.168041Jy  sigma=0.001349
! Fit after  self-cal, rms=0.168031Jy  sigma=0.001349
! Inverting map 
! Your choice of large map pixels excluded 0.915% of the data.
!  The x-axis pixel size should ideally be below 0.1634 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.915% of the data.
!  The x-axis pixel size should ideally be below 0.1634 milli-arcsec
! Estimated beam: bmin=0.9099 mas, bmaj=2.319 mas, bpa=-6.58 degrees
! Estimated noise=326.151 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9099 x 2.319 at -6.58 degrees (North through East)
! Clean map  min=-0.0042039  max=1.496 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.168031Jy  sigma=0.001349
! Fit after  self-cal, rms=0.164981Jy  sigma=0.001214
! Inverting map and beam 
! Your choice of large map pixels excluded 0.915% of the data.
!  The x-axis pixel size should ideally be below 0.1634 milli-arcsec
! Estimated beam: bmin=0.9106 mas, bmaj=2.318 mas, bpa=-6.546 degrees
! Estimated noise=326.031 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000212734 Jy
! Component: 100  -  total flux cleaned = 0.0013344 Jy
! Component: 150  -  total flux cleaned = 0.0019533 Jy
! Component: 200  -  total flux cleaned = 0.00206893 Jy
! Total flux subtracted in 200 components = 0.00206893 Jy
! Clean residual min=-0.003573 max=0.003682 Jy/beam
! Clean residual mean=0.000062 rms=0.000792 Jy/beam
! Combined flux in latest and established models = 2.08635 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 155 components and 2.08635 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.164765Jy  sigma=0.001211
! Fit after  self-cal, rms=0.164738Jy  sigma=0.001211
! Inverting map 
! Your choice of large map pixels excluded 0.915% of the data.
!  The x-axis pixel size should ideally be below 0.1634 milli-arcsec
! Added new window around map position (0.2, 4.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00153084 Jy
! Component: 100  -  total flux cleaned = 0.00177228 Jy
! Component: 150  -  total flux cleaned = 0.00222885 Jy
! Component: 200  -  total flux cleaned = 0.00233335 Jy
! Total flux subtracted in 200 components = 0.00233335 Jy
! Clean residual min=-0.003215 max=0.003575 Jy/beam
! Clean residual mean=0.000054 rms=0.000742 Jy/beam
! Combined flux in latest and established models = 2.08869 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 169 components and 2.08869 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.164541Jy  sigma=0.001209
! Fit after  self-cal, rms=0.164517Jy  sigma=0.001209
! Inverting map 
! Your choice of large map pixels excluded 0.915% of the data.
!  The x-axis pixel size should ideally be below 0.1634 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.164517Jy  sigma=0.001209
! Fit after  self-cal, rms=0.164618Jy  sigma=0.001209
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.915% of the data.
!  The x-axis pixel size should ideally be below 0.1634 milli-arcsec
! Estimated beam: bmin=0.6187 mas, bmaj=1.733 mas, bpa=-1.927 degrees
! Estimated noise=793.852 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.0984 Jy
! Component: 100  -  total flux cleaned = 1.44937 Jy
! Component: 150  -  total flux cleaned = 1.62797 Jy
! Component: 200  -  total flux cleaned = 1.73079 Jy
! Total flux subtracted in 200 components = 1.73079 Jy
! Clean residual min=-0.016986 max=0.055134 Jy/beam
! Clean residual mean=0.000264 rms=0.005927 Jy/beam
! Combined flux in latest and established models = 1.73079 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 15 model components to the UV plane model.
! The established model now contains 15 components and 1.73079 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 0.915% of the data.
!  The x-axis pixel size should ideally be below 0.1634 milli-arcsec
! Estimated beam: bmin=0.9105 mas, bmaj=2.32 mas, bpa=-6.565 degrees
! Estimated noise=325.946 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.115275 Jy
! Component: 100  -  total flux cleaned = 0.181593 Jy
! Component: 150  -  total flux cleaned = 0.222279 Jy
! Component: 200  -  total flux cleaned = 0.248842 Jy
! Total flux subtracted in 200 components = 0.248842 Jy
! Clean residual min=-0.009778 max=0.016940 Jy/beam
! Clean residual mean=0.000335 rms=0.003405 Jy/beam
! Combined flux in latest and established models = 1.97963 Jy
! Adding 55 model components to the UV plane model.
! The established model now contains 62 components and 1.97963 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.915% of the data.
!  The x-axis pixel size should ideally be below 0.1634 milli-arcsec
! Added new window around map position (2.8, 5.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0206135 Jy
! Component: 100  -  total flux cleaned = 0.0368292 Jy
! Component: 150  -  total flux cleaned = 0.0499028 Jy
! Component: 200  -  total flux cleaned = 0.0605611 Jy
! Total flux subtracted in 200 components = 0.0605611 Jy
! Clean residual min=-0.005607 max=0.007654 Jy/beam
! Clean residual mean=0.000201 rms=0.001637 Jy/beam
! Combined flux in latest and established models = 2.04019 Jy
! Adding 48 model components to the UV plane model.
! The established model now contains 99 components and 2.04019 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.915% of the data.
!  The x-axis pixel size should ideally be below 0.1634 milli-arcsec
! Added new window around map position (0.6, -0.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0091467 Jy
! Component: 100  -  total flux cleaned = 0.0166398 Jy
! Component: 150  -  total flux cleaned = 0.0229595 Jy
! Component: 200  -  total flux cleaned = 0.0283171 Jy
! Total flux subtracted in 200 components = 0.0283171 Jy
! Clean residual min=-0.004088 max=0.004224 Jy/beam
! Clean residual mean=0.000123 rms=0.000993 Jy/beam
! Combined flux in latest and established models = 2.06851 Jy
! Adding 40 model components to the UV plane model.
! The established model now contains 122 components and 2.06851 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.915% of the data.
!  The x-axis pixel size should ideally be below 0.1634 milli-arcsec
! Added new window around map position (-1.2, 2.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00457429 Jy
! Component: 100  -  total flux cleaned = 0.00744267 Jy
! Component: 150  -  total flux cleaned = 0.00929526 Jy
! Component: 200  -  total flux cleaned = 0.0107335 Jy
! Total flux subtracted in 200 components = 0.0107335 Jy
! Clean residual min=-0.003198 max=0.003306 Jy/beam
! Clean residual mean=0.000088 rms=0.000787 Jy/beam
! Combined flux in latest and established models = 2.07924 Jy
! Adding 43 model components to the UV plane model.
! The established model now contains 142 components and 2.07924 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.915% of the data.
!  The x-axis pixel size should ideally be below 0.1634 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.915% of the data.
!  The x-axis pixel size should ideally be below 0.1634 milli-arcsec
! Estimated beam: bmin=2.194 mas, bmaj=3.586 mas, bpa=-4.199 degrees
! Estimated noise=394.82 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0038451 Jy
! Component: 100  -  total flux cleaned = 0.00535442 Jy
! Component: 150  -  total flux cleaned = 0.00617095 Jy
! Component: 200  -  total flux cleaned = 0.00657245 Jy
! Total flux subtracted in 200 components = 0.00657245 Jy
! Clean residual min=-0.002514 max=0.002407 Jy/beam
! Clean residual mean=0.000127 rms=0.000692 Jy/beam
! Combined flux in latest and established models = 2.08582 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.000290772 Jy
! Component: 100  -  total flux cleaned = 0.000424147 Jy
! Component: 150  -  total flux cleaned = 0.000607803 Jy
! Component: 200  -  total flux cleaned = 0.000721143 Jy
! Total flux subtracted in 200 components = 0.000721143 Jy
! Clean residual min=-0.002268 max=0.002364 Jy/beam
! Clean residual mean=0.000120 rms=0.000629 Jy/beam
! Combined flux in latest and established models = 2.08654 Jy
! Adding 73 model components to the UV plane model.
! The established model now contains 209 components and 2.08654 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.915% of the data.
!  The x-axis pixel size should ideally be below 0.1634 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 0.915% of the data.
!  The x-axis pixel size should ideally be below 0.1634 milli-arcsec
! Estimated beam: bmin=0.9105 mas, bmaj=2.32 mas, bpa=-6.565 degrees
! Estimated noise=325.946 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000536941 Jy
! Component: 100  -  total flux cleaned = -0.000328952 Jy
! Component: 150  -  total flux cleaned = -0.000141971 Jy
! Component: 200  -  total flux cleaned = -5.4608e-05 Jy
! Total flux subtracted in 200 components = -5.4608e-05 Jy
! Clean residual min=-0.002552 max=0.002936 Jy/beam
! Clean residual mean=0.000059 rms=0.000613 Jy/beam
! Combined flux in latest and established models = 2.08648 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 225 components and 2.08648 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.164028Jy  sigma=0.001204
! Fit after  self-cal, rms=0.163971Jy  sigma=0.001203
wmodel J2246-1206_X_2000_12_04_pus_map.mod
! Writing 225 model components to file: J2246-1206_X_2000_12_04_pus_map.mod
wobs J2246-1206_X_2000_12_04_pus_uvs.fits
! Writing UV FITS file: J2246-1206_X_2000_12_04_pus_uvs.fits
wwins J2246-1206_X_2000_12_04_pus_map.win
! wwins: Wrote 9 windows to J2246-1206_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 0.915% of the data.
!  The x-axis pixel size should ideally be below 0.1634 milli-arcsec
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000192503 Jy
! Component: 100  -  total flux cleaned = -1.77467e-05 Jy
! Component: 150  -  total flux cleaned = 0.000233775 Jy
! Component: 200  -  total flux cleaned = 0.000554264 Jy
! Component: 250  -  total flux cleaned = 0.000902207 Jy
! Component: 300  -  total flux cleaned = 0.00116312 Jy
! Component: 350  -  total flux cleaned = 0.0014513 Jy
! Component: 400  -  total flux cleaned = 0.00169652 Jy
! Component: 450  -  total flux cleaned = 0.00203942 Jy
! Component: 500  -  total flux cleaned = 0.00237493 Jy
! Component: 550  -  total flux cleaned = 0.00270318 Jy
! Component: 600  -  total flux cleaned = 0.00308817 Jy
! Component: 650  -  total flux cleaned = 0.00330798 Jy
! Component: 700  -  total flux cleaned = 0.00352491 Jy
! Component: 750  -  total flux cleaned = 0.0038287 Jy
! Component: 800  -  total flux cleaned = 0.00409729 Jy
! Component: 850  -  total flux cleaned = 0.00430361 Jy
! Component: 900  -  total flux cleaned = 0.00459463 Jy
! Component: 950  -  total flux cleaned = 0.00482406 Jy
! Component: 1000  -  total flux cleaned = 0.00510707 Jy
! Component: 1050  -  total flux cleaned = 0.00527465 Jy
! Component: 1100  -  total flux cleaned = 0.00541281 Jy
! Component: 1150  -  total flux cleaned = 0.00557701 Jy
! Component: 1200  -  total flux cleaned = 0.00576633 Jy
! Component: 1250  -  total flux cleaned = 0.00589984 Jy
! Component: 1300  -  total flux cleaned = 0.0060587 Jy
! Component: 1350  -  total flux cleaned = 0.00616305 Jy
! Component: 1400  -  total flux cleaned = 0.00629262 Jy
! Component: 1450  -  total flux cleaned = 0.0063949 Jy
! Component: 1500  -  total flux cleaned = 0.00649665 Jy
! Component: 1550  -  total flux cleaned = 0.00659737 Jy
! Component: 1600  -  total flux cleaned = 0.00669688 Jy
! Component: 1650  -  total flux cleaned = 0.00682005 Jy
! Component: 1700  -  total flux cleaned = 0.00694221 Jy
! Component: 1750  -  total flux cleaned = 0.00696624 Jy
! Component: 1800  -  total flux cleaned = 0.00706273 Jy
! Component: 1850  -  total flux cleaned = 0.00715801 Jy
! Component: 1900  -  total flux cleaned = 0.00720522 Jy
! Component: 1950  -  total flux cleaned = 0.00720536 Jy
! Component: 2000  -  total flux cleaned = 0.00739219 Jy
! Total flux subtracted in 2048 components = 0.00739206 Jy
! Clean residual min=-0.001157 max=0.001192 Jy/beam
! Clean residual mean=0.000045 rms=0.000418 Jy/beam
! Combined flux in latest and established models = 2.09387 Jy
keep
! Adding 123 model components to the UV plane model.
! The established model now contains 339 components and 2.09387 Jy
![Exited script file: muppet]
wmap "J2246-1206_X_2000_12_04_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 0.915% of the data.
!  The x-axis pixel size should ideally be below 0.1634 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9105 x 2.32 at -6.565 degrees (North through East)
! Clean map  min=-0.0023424  max=1.5 Jy/beam
! Writing clean map to FITS file: J2246-1206_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 1.49998 
invert
! Inverting map 
! Your choice of large map pixels excluded 0.915% of the data.
!  The x-axis pixel size should ideally be below 0.1634 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000418587 
device "J2246-1206_X_2000_12_04_pus\_map.eps/VPS"
! Attempting to open device: 'J2246-1206_X_2000_12_04_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.0837185 0.0837185 0.167437 0.334874 0.669748 1.3395 2.67899 5.35798 10.716 21.4319 42.8639 85.7277
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0012 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.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.9105 x 2.32 at -6.565 degrees (North through East)
! Clean map  min=-0.0023424  max=1.5 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2246-1206_X_2000_12_04_pus\_map.gif/vgif"
! Attempting to open device: 'J2246-1206_X_2000_12_04_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2246-1206_X_2000_12_04_pus_uvs.log closed on Fri Oct 12 17:43:00 2007