! Started logfile: J1337-1257_X_2000_12_04_pus_uvs.log on Fri Oct 12 15:24:53 2007
obs J1337-1257_X_2000_12_04_pus_uva.fits
! Reading UV FITS file: J1337-1257_X_2000_12_04_pus_uva.fits
! AN table 1: 131 integrations on 190 of 190 possible baselines.
! AN table 2: 11 integrations on 190 of 190 possible baselines.
! AN table 3: 64 integrations on 190 of 190 possible baselines.
! AN table 4: 44 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0949263 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1337-1257
! 
! 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 18036 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 J1337-1257_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 1800 telescope corrections were flagged in sub-array 1.
!  A total of 165 telescope corrections were flagged in sub-array 2.
!  A total of 951 telescope corrections were flagged in sub-array 3.
!  A total of 847 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1800 telescope corrections were flagged in sub-array 1.
!  A total of 165 telescope corrections were flagged in sub-array 2.
!  A total of 951 telescope corrections were flagged in sub-array 3.
!  A total of 847 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1800 telescope corrections were flagged in sub-array 1.
!  A total of 165 telescope corrections were flagged in sub-array 2.
!  A total of 951 telescope corrections were flagged in sub-array 3.
!  A total of 847 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1800 telescope corrections were flagged in sub-array 1.
!  A total of 165 telescope corrections were flagged in sub-array 2.
!  A total of 951 telescope corrections were flagged in sub-array 3.
!  A total of 847 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=4.849239Jy  sigma=0.048344
! Fit after  self-cal, rms=4.249013Jy  sigma=0.042641
! 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 4.61% of the data.
!  The x-axis pixel size should ideally be below 0.1613 milli-arcsec
! Estimated beam: bmin=0.602 mas, bmaj=1.301 mas, bpa=-1.055 degrees
! Estimated noise=1645.4 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.77561 Jy
! Component: 100  -  total flux cleaned = 4.90844 Jy
! Total flux subtracted in 100 components = 4.90844 Jy
! Clean residual min=-0.127224 max=0.450739 Jy/beam
! Clean residual mean=0.005056 rms=0.044057 Jy/beam
! Combined flux in latest and established models = 4.90844 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 4.90844 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.905923Jy  sigma=0.008379
! Fit after  self-cal, rms=0.903813Jy  sigma=0.008370
! Inverting map 
! Your choice of large map pixels excluded 4.61% of the data.
!  The x-axis pixel size should ideally be below 0.1613 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.496593 Jy
! Component: 100  -  total flux cleaned = 0.748494 Jy
! Total flux subtracted in 100 components = 0.748494 Jy
! Clean residual min=-0.094037 max=0.144240 Jy/beam
! Clean residual mean=0.001281 rms=0.022522 Jy/beam
! Combined flux in latest and established models = 5.65693 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 11 components and 5.65693 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.574191Jy  sigma=0.004275
! Fit after  self-cal, rms=0.571679Jy  sigma=0.004265
! Inverting map 
! Your choice of large map pixels excluded 4.61% of the data.
!  The x-axis pixel size should ideally be below 0.1613 milli-arcsec
! Added new window around map position (0.6, -1.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.151255 Jy
! Component: 100  -  total flux cleaned = 0.240349 Jy
! Total flux subtracted in 100 components = 0.240349 Jy
! Clean residual min=-0.090870 max=0.082422 Jy/beam
! Clean residual mean=0.000093 rms=0.019580 Jy/beam
! Combined flux in latest and established models = 5.89728 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 16 components and 5.89728 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.550769Jy  sigma=0.003960
! Fit after  self-cal, rms=0.547180Jy  sigma=0.003930
! Inverting map 
! Your choice of large map pixels excluded 4.61% of the data.
!  The x-axis pixel size should ideally be below 0.1613 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 4.61% of the data.
!  The x-axis pixel size should ideally be below 0.1613 milli-arcsec
! Estimated beam: bmin=0.9004 mas, bmaj=2.074 mas, bpa=-2.752 degrees
! Estimated noise=576.657 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.0165118 Jy
! Component: 100  -  total flux cleaned = -0.019825 Jy
! Component: 150  -  total flux cleaned = -0.0198565 Jy
! Component: 200  -  total flux cleaned = -0.0211641 Jy
! Total flux subtracted in 200 components = -0.0211641 Jy
! Clean residual min=-0.105344 max=0.071824 Jy/beam
! Clean residual mean=-0.000130 rms=0.023252 Jy/beam
! Combined flux in latest and established models = 5.87611 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 24 components and 5.87611 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.544607Jy  sigma=0.003906
! Fit after  self-cal, rms=0.544217Jy  sigma=0.003904
! Inverting map 
! Your choice of large map pixels excluded 4.61% of the data.
!  The x-axis pixel size should ideally be below 0.1613 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 45 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.00     GC        1.00*    GG        1.00*    
!   HH        1.08     HN        1.00     KK        0.89     KP        1.05     
!   LA        1.03     MA        0.98     MC        1.03     MK        1.01     
!   NL        1.00     NY        1.00*    OV        1.03     PT        1.02     
!   SC        1.05     TS        1.00*    WF        1.07     WZ        1.02     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.06     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.08     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.02     PT        1.05     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 96 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.95     KK        1.08     KP        0.95     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        0.99     
!   NL        0.95     NY        1.00*    OV        0.97     PT        0.98     
!   SC        1.06     TS        1.00*    WF        0.97     WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 4.
!  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*    
! 
! 
! Correcting IF 2.
!  A total of 45 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.10     HN        1.00     KK        1.10     KP        1.05     
!   LA        1.02     MA        1.00     MC        1.05     MK        1.01     
!   NL        0.96     NY        1.00*    OV        1.03     PT        1.02     
!   SC        1.05     TS        1.00*    WF        0.99     WZ        1.02     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.07     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.07     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.03     PT        1.04     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 96 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.04     KP        0.95     
!   LA        0.97     MA        1.00*    MC        1.00*    MK        1.01     
!   NL        0.91     NY        1.00*    OV        0.97     PT        0.98     
!   SC        1.08     TS        1.00*    WF        0.97     WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 4.
!  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*    
! 
! 
! Correcting IF 3.
!  A total of 45 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        1.05     GC        1.00*    GG        1.00*    
!   HH        1.01     HN        1.00     KK        1.06     KP        1.04     
!   LA        1.03     MA        1.03     MC        1.04     MK        1.02     
!   NL        0.95     NY        1.00*    OV        0.99     PT        0.98     
!   SC        1.05     TS        1.00*    WF        1.01     WZ        1.04     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        1.12     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.08     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        0.99     PT        1.02     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 96 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        1.02     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.95     KK        1.03     KP        0.95     
!   LA        0.97     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        0.90     NY        1.00*    OV        0.93     PT        0.95     
!   SC        1.07     TS        1.00*    WF        0.98     WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 4.
!  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*    
! 
! 
! Correcting IF 4.
!  A total of 45 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.04     GC        1.00*    GG        1.00*    
!   HH        1.01     HN        0.96     KK        1.08     KP        1.04     
!   LA        1.02     MA        1.02     MC        1.06     MK        0.98     
!   NL        0.96     NY        1.00*    OV        1.02     PT        0.97     
!   SC        1.03     TS        1.00*    WF        1.00     WZ        1.05     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.10     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.08     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.02     PT        1.01     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 96 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.00     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.91     KK        1.06     KP        0.95     
!   LA        0.96     MA        1.00*    MC        1.00*    MK        0.97     
!   NL        0.91     NY        1.00*    OV        0.95     PT        0.93     
!   SC        1.07     TS        1.00*    WF        0.96     WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 4.
!  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*    
! 
! 
! Fit before self-cal, rms=0.544217Jy  sigma=0.003904
! Fit after  self-cal, rms=0.453805Jy  sigma=0.002304
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 4.8% of the data.
!  The x-axis pixel size should ideally be below 0.1613 milli-arcsec
! Estimated beam: bmin=0.9081 mas, bmaj=2.098 mas, bpa=-3.985 degrees
! Estimated noise=585.938 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.015613 Jy
! Component: 100  -  total flux cleaned = -0.0163133 Jy
! Component: 150  -  total flux cleaned = -0.0168551 Jy
! Component: 200  -  total flux cleaned = -0.0173623 Jy
! Total flux subtracted in 200 components = -0.0173623 Jy
! Clean residual min=-0.035778 max=0.027899 Jy/beam
! Clean residual mean=-0.000913 rms=0.008682 Jy/beam
! Combined flux in latest and established models = 5.85875 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 29 components and 5.85875 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.450618Jy  sigma=0.002287
! Fit after  self-cal, rms=0.450608Jy  sigma=0.002285
! Inverting map 
! Your choice of large map pixels excluded 4.8% of the data.
!  The x-axis pixel size should ideally be below 0.1613 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.450608Jy  sigma=0.002285
! Fit after  self-cal, rms=1.940014Jy  sigma=0.001751
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.8% of the data.
!  The x-axis pixel size should ideally be below 0.1613 milli-arcsec
! Estimated beam: bmin=0.9107 mas, bmaj=2.082 mas, bpa=-4.197 degrees
! Estimated noise=585.424 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00913203 Jy
! Component: 100  -  total flux cleaned = -0.00909133 Jy
! Component: 150  -  total flux cleaned = -0.00864903 Jy
! Component: 200  -  total flux cleaned = -0.00941817 Jy
! Total flux subtracted in 200 components = -0.00941817 Jy
! Clean residual min=-0.017037 max=0.013174 Jy/beam
! Clean residual mean=-0.000734 rms=0.003446 Jy/beam
! Combined flux in latest and established models = 5.84933 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 34 components and 5.84933 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.939799Jy  sigma=0.001738
! Fit after  self-cal, rms=1.939842Jy  sigma=0.001737
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.8% of the data.
!  The x-axis pixel size should ideally be below 0.1613 milli-arcsec
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 4.93172e-05 Jy
! Component: 100  -  total flux cleaned = 5.07133e-05 Jy
! Component: 150  -  total flux cleaned = -0.000295744 Jy
! Component: 200  -  total flux cleaned = -0.00062697 Jy
! Total flux subtracted in 200 components = -0.00062697 Jy
! Clean residual min=-0.015978 max=0.011818 Jy/beam
! Clean residual mean=-0.000715 rms=0.003323 Jy/beam
! Combined flux in latest and established models = 5.84871 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 36 components and 5.84871 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.939707Jy  sigma=0.001732
! Fit after  self-cal, rms=1.939699Jy  sigma=0.001731
! Inverting map 
! Your choice of large map pixels excluded 4.8% of the data.
!  The x-axis pixel size should ideally be below 0.1613 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=1.939699Jy  sigma=0.001731
! Fit after  self-cal, rms=2.066752Jy  sigma=0.001726
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.8% of the data.
!  The x-axis pixel size should ideally be below 0.1613 milli-arcsec
! Estimated beam: bmin=0.912 mas, bmaj=2.083 mas, bpa=-4.243 degrees
! Estimated noise=585.75 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00671362 Jy
! Component: 100  -  total flux cleaned = -0.00670498 Jy
! Component: 150  -  total flux cleaned = -0.00704267 Jy
! Component: 200  -  total flux cleaned = -0.0073831 Jy
! Total flux subtracted in 200 components = -0.0073831 Jy
! Clean residual min=-0.014743 max=0.012606 Jy/beam
! Clean residual mean=-0.000723 rms=0.003097 Jy/beam
! Combined flux in latest and established models = 5.84133 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 36 components and 5.84133 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.066653Jy  sigma=0.001719
! Fit after  self-cal, rms=2.066719Jy  sigma=0.001719
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.8% of the data.
!  The x-axis pixel size should ideally be below 0.1613 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.000473341 Jy
! Component: 100  -  total flux cleaned = -0.000466962 Jy
! Component: 150  -  total flux cleaned = -0.00104059 Jy
! Component: 200  -  total flux cleaned = -0.00130611 Jy
! Total flux subtracted in 200 components = -0.00130611 Jy
! Clean residual min=-0.013940 max=0.011959 Jy/beam
! Clean residual mean=-0.000688 rms=0.003013 Jy/beam
! Combined flux in latest and established models = 5.84002 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 36 components and 5.84002 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.066649Jy  sigma=0.001716
! Fit after  self-cal, rms=2.066650Jy  sigma=0.001715
! Inverting map 
! Your choice of large map pixels excluded 4.8% of the data.
!  The x-axis pixel size should ideally be below 0.1613 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=2.066650Jy  sigma=0.001715
! Fit after  self-cal, rms=2.206532Jy  sigma=0.001711
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.8% of the data.
!  The x-axis pixel size should ideally be below 0.1613 milli-arcsec
! Estimated beam: bmin=2.077 mas, bmaj=3.718 mas, bpa=-6.703 degrees
! Estimated noise=699.091 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00469331 Jy
! Component: 100  -  total flux cleaned = -0.00469943 Jy
! Component: 150  -  total flux cleaned = -0.0050383 Jy
! Component: 200  -  total flux cleaned = -0.00532896 Jy
! Total flux subtracted in 200 components = -0.00532896 Jy
! Clean residual min=-0.008741 max=0.008167 Jy/beam
! Clean residual mean=-0.001454 rms=0.002429 Jy/beam
! Combined flux in latest and established models = 5.83469 Jy
selfcal
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 39 components and 5.83469 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.206543Jy  sigma=0.001710
! Fit after  self-cal, rms=2.206586Jy  sigma=0.001708
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.8% of the data.
!  The x-axis pixel size should ideally be below 0.1613 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.000315416 Jy
! Component: 100  -  total flux cleaned = 0.000330395 Jy
! Component: 150  -  total flux cleaned = 9.16618e-05 Jy
! Component: 200  -  total flux cleaned = -6.52378e-06 Jy
! Total flux subtracted in 200 components = -6.52378e-06 Jy
! Clean residual min=-0.008603 max=0.007733 Jy/beam
! Clean residual mean=-0.001451 rms=0.002384 Jy/beam
! Combined flux in latest and established models = 5.83469 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 41 components and 5.83469 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.206563Jy  sigma=0.001709
! Fit after  self-cal, rms=2.206585Jy  sigma=0.001708
! Inverting map 
! Your choice of large map pixels excluded 4.8% of the data.
!  The x-axis pixel size should ideally be below 0.1613 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 4.8% of the data.
!  The x-axis pixel size should ideally be below 0.1613 milli-arcsec
! Estimated beam: bmin=0.9132 mas, bmaj=2.084 mas, bpa=-4.281 degrees
! Estimated noise=586.089 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9132 x 2.084 at -4.281 degrees (North through East)
! Clean map  min=-0.010991  max=5.2168 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=2.206585Jy  sigma=0.001708
! Fit after  self-cal, rms=2.351798Jy  sigma=0.001375
! Inverting map and beam 
! Your choice of large map pixels excluded 4.8% of the data.
!  The x-axis pixel size should ideally be below 0.1613 milli-arcsec
! Estimated beam: bmin=0.9135 mas, bmaj=2.086 mas, bpa=-4.307 degrees
! Estimated noise=585.575 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00458796 Jy
! Component: 100  -  total flux cleaned = -0.00493217 Jy
! Component: 150  -  total flux cleaned = -0.00579114 Jy
! Component: 200  -  total flux cleaned = -0.00656779 Jy
! Total flux subtracted in 200 components = -0.00656779 Jy
! Clean residual min=-0.010540 max=0.010676 Jy/beam
! Clean residual mean=-0.000319 rms=0.002456 Jy/beam
! Combined flux in latest and established models = 5.82812 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 41 components and 5.82812 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.351791Jy  sigma=0.001372
! Fit after  self-cal, rms=2.351912Jy  sigma=0.001372
! Inverting map 
! Your choice of large map pixels excluded 4.8% of the data.
!  The x-axis pixel size should ideally be below 0.1613 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00108506 Jy
! Component: 100  -  total flux cleaned = -0.000852796 Jy
! Component: 150  -  total flux cleaned = -0.000870617 Jy
! Component: 200  -  total flux cleaned = -0.000886894 Jy
! Total flux subtracted in 200 components = -0.000886894 Jy
! Clean residual min=-0.010325 max=0.010683 Jy/beam
! Clean residual mean=-0.000296 rms=0.002433 Jy/beam
! Combined flux in latest and established models = 5.82723 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 43 components and 5.82723 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.351869Jy  sigma=0.001370
! Fit after  self-cal, rms=2.351876Jy  sigma=0.001369
! Inverting map 
! Your choice of large map pixels excluded 4.8% of the data.
!  The x-axis pixel size should ideally be below 0.1613 milli-arcsec
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.351876Jy  sigma=0.001369
! Fit after  self-cal, rms=2.489341Jy  sigma=0.001366
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 4.8% of the data.
!  The x-axis pixel size should ideally be below 0.1613 milli-arcsec
! Estimated beam: bmin=0.6183 mas, bmaj=1.319 mas, bpa=-3.58 degrees
! Estimated noise=1670.44 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 3.8272 Jy
! Component: 100  -  total flux cleaned = 4.93712 Jy
! Component: 150  -  total flux cleaned = 5.38156 Jy
! Component: 200  -  total flux cleaned = 5.60037 Jy
! Total flux subtracted in 200 components = 5.60037 Jy
! Clean residual min=-0.040028 max=0.103823 Jy/beam
! Clean residual mean=0.001025 rms=0.012410 Jy/beam
! Combined flux in latest and established models = 5.60038 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 14 model components to the UV plane model.
! The established model now contains 14 components and 5.60038 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 4.8% of the data.
!  The x-axis pixel size should ideally be below 0.1613 milli-arcsec
! Estimated beam: bmin=0.9145 mas, bmaj=2.085 mas, bpa=-4.337 degrees
! Estimated noise=585.828 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.127446 Jy
! Component: 100  -  total flux cleaned = 0.17991 Jy
! Component: 150  -  total flux cleaned = 0.204897 Jy
! Component: 200  -  total flux cleaned = 0.215488 Jy
! Total flux subtracted in 200 components = 0.215488 Jy
! Clean residual min=-0.011587 max=0.016380 Jy/beam
! Clean residual mean=-0.000087 rms=0.002763 Jy/beam
! Combined flux in latest and established models = 5.81586 Jy
! Adding 19 model components to the UV plane model.
! The established model now contains 24 components and 5.81586 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.8% of the data.
!  The x-axis pixel size should ideally be below 0.1613 milli-arcsec
! Added new window around map position (1.8, -3.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0100098 Jy
! Component: 100  -  total flux cleaned = 0.0108203 Jy
! Component: 150  -  total flux cleaned = 0.0112149 Jy
! Component: 200  -  total flux cleaned = 0.011568 Jy
! Total flux subtracted in 200 components = 0.011568 Jy
! Clean residual min=-0.010441 max=0.011664 Jy/beam
! Clean residual mean=-0.000386 rms=0.002358 Jy/beam
! Combined flux in latest and established models = 5.82743 Jy
! Adding 12 model components to the UV plane model.
! The established model now contains 32 components and 5.82743 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.8% of the data.
!  The x-axis pixel size should ideally be below 0.1613 milli-arcsec
! Added new window around map position (1.4, 1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00233531 Jy
! Component: 100  -  total flux cleaned = 0.00277994 Jy
! Component: 150  -  total flux cleaned = 0.00195314 Jy
! Component: 200  -  total flux cleaned = 0.00157196 Jy
! Total flux subtracted in 200 components = 0.00157196 Jy
! Clean residual min=-0.010039 max=0.009488 Jy/beam
! Clean residual mean=-0.000429 rms=0.002217 Jy/beam
! Combined flux in latest and established models = 5.829 Jy
! Adding 13 model components to the UV plane model.
! The established model now contains 42 components and 5.829 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.8% of the data.
!  The x-axis pixel size should ideally be below 0.1613 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 4.8% of the data.
!  The x-axis pixel size should ideally be below 0.1613 milli-arcsec
! Estimated beam: bmin=2.078 mas, bmaj=3.722 mas, bpa=-6.734 degrees
! Estimated noise=697.929 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000670654 Jy
! Component: 100  -  total flux cleaned = -0.00100855 Jy
! Component: 150  -  total flux cleaned = -0.00100789 Jy
! Component: 200  -  total flux cleaned = -0.0010076 Jy
! Total flux subtracted in 200 components = -0.0010076 Jy
! Clean residual min=-0.005872 max=0.003598 Jy/beam
! Clean residual mean=-0.000853 rms=0.001504 Jy/beam
! Combined flux in latest and established models = 5.828 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 = -1.49023e-07 Jy
! Component: 100  -  total flux cleaned = 1.76272e-06 Jy
! Component: 150  -  total flux cleaned = 6.11362e-05 Jy
! Component: 200  -  total flux cleaned = 5.9427e-05 Jy
! Total flux subtracted in 200 components = 5.9427e-05 Jy
! Clean residual min=-0.005708 max=0.003635 Jy/beam
! Clean residual mean=-0.000857 rms=0.001483 Jy/beam
! Combined flux in latest and established models = 5.82806 Jy
! Adding 25 model components to the UV plane model.
! The established model now contains 63 components and 5.82806 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.8% of the data.
!  The x-axis pixel size should ideally be below 0.1613 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 4.8% of the data.
!  The x-axis pixel size should ideally be below 0.1613 milli-arcsec
! Estimated beam: bmin=0.9145 mas, bmaj=2.085 mas, bpa=-4.337 degrees
! Estimated noise=585.828 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00171378 Jy
! Component: 100  -  total flux cleaned = 0.00170553 Jy
! Component: 150  -  total flux cleaned = 0.00136503 Jy
! Component: 200  -  total flux cleaned = 0.00104937 Jy
! Total flux subtracted in 200 components = 0.00104937 Jy
! Clean residual min=-0.009683 max=0.009716 Jy/beam
! Clean residual mean=-0.000433 rms=0.002106 Jy/beam
! Combined flux in latest and established models = 5.8291 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 66 components and 5.82911 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.489488Jy  sigma=0.001383
! Fit after  self-cal, rms=2.489830Jy  sigma=0.001377
wmodel J1337-1257_X_2000_12_04_pus_map.mod
! Writing 66 model components to file: J1337-1257_X_2000_12_04_pus_map.mod
wobs J1337-1257_X_2000_12_04_pus_uvs.fits
! Writing UV FITS file: J1337-1257_X_2000_12_04_pus_uvs.fits
wwins J1337-1257_X_2000_12_04_pus_map.win
! wwins: Wrote 4 windows to J1337-1257_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 4.8% of the data.
!  The x-axis pixel size should ideally be below 0.1613 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000758785 Jy
! Component: 100  -  total flux cleaned = -0.00323823 Jy
! Component: 150  -  total flux cleaned = -0.00511384 Jy
! Component: 200  -  total flux cleaned = -0.00607044 Jy
! Component: 250  -  total flux cleaned = -0.00646736 Jy
! Component: 300  -  total flux cleaned = -0.00698682 Jy
! Component: 350  -  total flux cleaned = -0.00736968 Jy
! Component: 400  -  total flux cleaned = -0.00774596 Jy
! Component: 450  -  total flux cleaned = -0.00799347 Jy
! Component: 500  -  total flux cleaned = -0.00823808 Jy
! Component: 550  -  total flux cleaned = -0.00847885 Jy
! Component: 600  -  total flux cleaned = -0.00859707 Jy
! Component: 650  -  total flux cleaned = -0.00883102 Jy
! Component: 700  -  total flux cleaned = -0.00906242 Jy
! Component: 750  -  total flux cleaned = -0.00917529 Jy
! Component: 800  -  total flux cleaned = -0.00917532 Jy
! Component: 850  -  total flux cleaned = -0.00928801 Jy
! Component: 900  -  total flux cleaned = -0.00928753 Jy
! Component: 950  -  total flux cleaned = -0.00939693 Jy
! Component: 1000  -  total flux cleaned = -0.00950527 Jy
! Total flux subtracted in 1024 components = -0.0093963 Jy
! Clean residual min=-0.005415 max=0.006051 Jy/beam
! Clean residual mean=-0.000233 rms=0.001785 Jy/beam
! Combined flux in latest and established models = 5.81971 Jy
keep
! Adding 45 model components to the UV plane model.
! The established model now contains 107 components and 5.81971 Jy
![Exited script file: muppet]
wmap "J1337-1257_X_2000_12_04_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 4.8% of the data.
!  The x-axis pixel size should ideally be below 0.1613 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9145 x 2.085 at -4.337 degrees (North through East)
! Clean map  min=-0.0072199  max=5.2187 Jy/beam
! Writing clean map to FITS file: J1337-1257_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 5.2187 
invert
! Inverting map 
! Your choice of large map pixels excluded 4.8% of the data.
!  The x-axis pixel size should ideally be below 0.1613 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00178355 
device "J1337-1257_X_2000_12_04_pus\_map.eps/VPS"
! Attempting to open device: 'J1337-1257_X_2000_12_04_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.102528 0.102528 0.205056 0.410113 0.820226 1.64045 3.2809 6.56181 13.1236 26.2472 52.4944
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0053 
print "peak=",int(1000*peak_flux)/1000
! peak= 5.218 
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.9145 x 2.085 at -4.337 degrees (North through East)
! Clean map  min=-0.0072199  max=5.2187 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1337-1257_X_2000_12_04_pus\_map.gif/vgif"
! Attempting to open device: 'J1337-1257_X_2000_12_04_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1337-1257_X_2000_12_04_pus_uvs.log closed on Fri Oct 12 15:25:01 2007