! Started logfile: J1337-1257_S_2000_12_04_pus_uvs.log on Wed Oct 17 17:09:38 2007
obs J1337-1257_S_2000_12_04_pus_uva.fits
! Reading UV FITS file: J1337-1257_S_2000_12_04_pus_uva.fits
! AN table 1: 47 integrations on 190 of 190 possible baselines.
! AN table 2: 95 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  2.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2169 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 = 512 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
![@muppet J1337-1257_S_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.500x0.500 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 650 telescope corrections were flagged in sub-array 1.
!  A total of 1315 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 650 telescope corrections were flagged in sub-array 1.
!  A total of 1315 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 650 telescope corrections were flagged in sub-array 1.
!  A total of 1315 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 650 telescope corrections were flagged in sub-array 1.
!  A total of 1315 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=2.596218Jy  sigma=0.020149
! Fit after  self-cal, rms=1.891742Jy  sigma=0.014720
! 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 
! Estimated beam: bmin=1.996 mas, bmaj=4.165 mas, bpa=7.869 degrees
! Estimated noise=1785.19 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 = 2.07562 Jy
! Component: 100  -  total flux cleaned = 2.58456 Jy
! Total flux subtracted in 100 components = 2.58456 Jy
! Clean residual min=-0.064204 max=0.195552 Jy/beam
! Clean residual mean=0.000546 rms=0.019894 Jy/beam
! Combined flux in latest and established models = 2.58456 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 2.58456 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.884621Jy  sigma=0.005124
! Fit after  self-cal, rms=0.884447Jy  sigma=0.005123
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.204509 Jy
! Component: 100  -  total flux cleaned = 0.310446 Jy
! Total flux subtracted in 100 components = 0.310446 Jy
! Clean residual min=-0.069114 max=0.067719 Jy/beam
! Clean residual mean=0.000638 rms=0.013644 Jy/beam
! Combined flux in latest and established models = 2.89501 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 15 components and 2.89501 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.847479Jy  sigma=0.004673
! Fit after  self-cal, rms=0.847064Jy  sigma=0.004672
! Inverting map 
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 
! Estimated beam: bmin=3.019 mas, bmaj=6.79 mas, bpa=0.593 degrees
! Estimated noise=715.146 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.00440404 Jy
! Component: 100  -  total flux cleaned = -0.00348312 Jy
! Component: 150  -  total flux cleaned = -0.00261628 Jy
! Component: 200  -  total flux cleaned = -0.00181862 Jy
! Total flux subtracted in 200 components = -0.00181862 Jy
! Clean residual min=-0.082611 max=0.052909 Jy/beam
! Clean residual mean=0.005482 rms=0.016625 Jy/beam
! Combined flux in latest and established models = 2.89319 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 20 components and 2.89319 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.842115Jy  sigma=0.004668
! Fit after  self-cal, rms=0.841991Jy  sigma=0.004668
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        0.94     HN        0.97     KK        1.08     KP        0.93     
!   LA        1.02     MA        1.90     MC        1.03     MK        1.02     
!   NL        0.97     NY        1.00*    OV        0.97     PT        0.98     
!   SC        1.04     TS        1.00*    WF        1.38     WZ        1.11     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.03     GC        1.00*    GG        1.00*    
!   HH        0.99     HN        0.98     KK        1.00*    KP        1.01     
!   LA        1.07     MA        1.33     MC        2.02     MK        1.00*    
!   NL        0.99     NY        1.00*    OV        1.04     PT        1.04     
!   SC        1.05     TS        1.00*    WF        1.05     WZ        1.07     
! 
!  A total of 96 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.96     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.95     KK        1.00     KP        1.00     
!   LA        1.00     MA        1.00*    MC        1.00*    MK        0.98     
!   NL        0.92     NY        1.00*    OV        0.94     PT        0.96     
!   SC        1.01     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 2.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        0.98     HN        0.95     KK        1.11     KP        0.96     
!   LA        0.99     MA        1.11     MC        0.94     MK        1.02     
!   NL        0.93     NY        1.00*    OV        0.94     PT        0.99     
!   SC        0.98     TS        1.00*    WF        1.46     WZ        1.13     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.03     GC        1.00*    GG        1.00*    
!   HH        1.00     HN        0.97     KK        1.00*    KP        1.02     
!   LA        1.04     MA        0.94     MC        1.16     MK        1.00*    
!   NL        0.95     NY        1.00*    OV        1.02     PT        1.05     
!   SC        1.01     TS        1.00*    WF        0.97     WZ        1.06     
! 
!  A total of 96 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.97     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.92     KK        0.96     KP        0.95     
!   LA        0.96     MA        1.00*    MC        1.00*    MK        0.98     
!   NL        0.88     NY        1.00*    OV        0.91     PT        0.97     
!   SC        0.97     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*    
! 
! 
! Correcting IF 3.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        0.88     HN        0.99     KK        1.04     KP        1.01     
!   LA        1.03     MA        1.14     MC        1.09     MK        0.98     
!   NL        1.02     NY        1.00*    OV        1.01     PT        1.01     
!   SC        0.97     TS        1.00*    WF        0.93     WZ        0.95     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.71     FD        1.34     GC        1.00*    GG        1.00*    
!   HH        0.88     HN        0.78     KK        1.00*    KP        1.08     
!   LA        1.24     MA        2.67     MC        3.52     MK        1.00*    
!   NL        1.23     NY        1.00*    OV        1.59     PT        1.00     
!   SC        1.12     TS        1.00*    WF        0.84     WZ        0.80     
! 
!  A total of 96 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.97     KK        0.90     KP        1.01     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        0.93     
!   NL        0.97     NY        1.00*    OV        0.98     PT        0.99     
!   SC        0.96     TS        1.00*    WF        0.90     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 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.96     GC        1.00*    GG        1.00*    
!   HH        0.87     HN        0.94     KK        1.08     KP        0.95     
!   LA        0.95     MA        0.92     MC        1.17     MK        1.01     
!   NL        0.95     NY        1.00*    OV        0.95     PT        0.97     
!   SC        0.99     TS        1.00*    WF        1.03     WZ        1.15     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.00     GC        1.00*    GG        1.00*    
!   HH        0.95     HN        0.96     KK        1.00*    KP        1.01     
!   LA        1.01     MA        6.61     MC        6.49     MK        1.00*    
!   NL        0.96     NY        1.00*    OV        1.01     PT        0.96     
!   SC        1.03     TS        1.00*    WF        0.95     WZ        1.00     
! 
!  A total of 96 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.92     FD        0.95     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.93     KK        0.94     KP        0.94     
!   LA        0.94     MA        1.00*    MC        1.00*    MK        0.96     
!   NL        0.90     NY        1.00*    OV        0.92     PT        0.96     
!   SC        0.98     TS        1.00*    WF        0.94     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.841991Jy  sigma=0.004668
! Fit after  self-cal, rms=6.949987Jy  sigma=0.003783
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.121 mas, bmaj=6.684 mas, bpa=0.2054 degrees
! Estimated noise=729.586 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.000225385 Jy
! Component: 100  -  total flux cleaned = -0.000218664 Jy
! Component: 150  -  total flux cleaned = -0.000190051 Jy
! Component: 200  -  total flux cleaned = -0.000162194 Jy
! Total flux subtracted in 200 components = -0.000162194 Jy
! Clean residual min=-0.012490 max=0.015489 Jy/beam
! Clean residual mean=0.001364 rms=0.003876 Jy/beam
! Combined flux in latest and established models = 2.89302 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 23 components and 2.89302 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=6.949928Jy  sigma=0.003781
! Fit after  self-cal, rms=6.971991Jy  sigma=0.003771
! Inverting map 
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=6.971991Jy  sigma=0.003771
! Fit after  self-cal, rms=5.779968Jy  sigma=0.003687
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.127 mas, bmaj=6.691 mas, bpa=0.1715 degrees
! Estimated noise=729.816 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00163266 Jy
! Component: 100  -  total flux cleaned = -0.00162559 Jy
! Component: 150  -  total flux cleaned = -0.00164383 Jy
! Component: 200  -  total flux cleaned = -0.00162523 Jy
! Total flux subtracted in 200 components = -0.00162523 Jy
! Clean residual min=-0.011922 max=0.013442 Jy/beam
! Clean residual mean=0.000406 rms=0.002914 Jy/beam
! Combined flux in latest and established models = 2.8914 Jy
selfcal
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 24 components and 2.8914 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=5.779914Jy  sigma=0.003685
! Fit after  self-cal, rms=5.779995Jy  sigma=0.003685
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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 (6, -7).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00838424 Jy
! Component: 100  -  total flux cleaned = 0.0098232 Jy
! Component: 150  -  total flux cleaned = 0.0101304 Jy
! Component: 200  -  total flux cleaned = 0.0106425 Jy
! Total flux subtracted in 200 components = 0.0106425 Jy
! Clean residual min=-0.011277 max=0.009029 Jy/beam
! Clean residual mean=0.000278 rms=0.002673 Jy/beam
! Combined flux in latest and established models = 2.90204 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 41 components and 2.90204 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=5.779872Jy  sigma=0.003681
! Fit after  self-cal, rms=5.780292Jy  sigma=0.003681
! Inverting map 
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=5.780292Jy  sigma=0.003681
! Fit after  self-cal, rms=5.962522Jy  sigma=0.003681
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.131 mas, bmaj=6.696 mas, bpa=0.1387 degrees
! Estimated noise=729.785 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00220548 Jy
! Component: 100  -  total flux cleaned = 0.00270877 Jy
! Component: 150  -  total flux cleaned = 0.00292898 Jy
! Component: 200  -  total flux cleaned = 0.00354956 Jy
! Total flux subtracted in 200 components = 0.00354956 Jy
! Clean residual min=-0.010260 max=0.008460 Jy/beam
! Clean residual mean=0.000133 rms=0.002582 Jy/beam
! Combined flux in latest and established models = 2.90559 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 44 components and 2.90559 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=5.962446Jy  sigma=0.003679
! Fit after  self-cal, rms=5.962543Jy  sigma=0.003679
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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.000859361 Jy
! Component: 100  -  total flux cleaned = 0.0012247 Jy
! Component: 150  -  total flux cleaned = 0.0012264 Jy
! Component: 200  -  total flux cleaned = 0.00139107 Jy
! Total flux subtracted in 200 components = 0.00139107 Jy
! Clean residual min=-0.009624 max=0.008414 Jy/beam
! Clean residual mean=0.000116 rms=0.002545 Jy/beam
! Combined flux in latest and established models = 2.90698 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 50 components and 2.90698 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=5.962509Jy  sigma=0.003678
! Fit after  self-cal, rms=5.962559Jy  sigma=0.003678
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 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=5.962559Jy  sigma=0.003678
! Fit after  self-cal, rms=6.097373Jy  sigma=0.003678
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.265 mas, bmaj=13.12 mas, bpa=-6.247 degrees
! Estimated noise=865.052 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00133882 Jy
! Component: 100  -  total flux cleaned = 0.00133216 Jy
! Component: 150  -  total flux cleaned = 0.00122935 Jy
! Component: 200  -  total flux cleaned = 0.00123404 Jy
! Total flux subtracted in 200 components = 0.00123404 Jy
! Clean residual min=-0.010549 max=0.010418 Jy/beam
! Clean residual mean=0.000097 rms=0.003235 Jy/beam
! Combined flux in latest and established models = 2.90822 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 66 components and 2.90822 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=6.097349Jy  sigma=0.003677
! Fit after  self-cal, rms=6.097414Jy  sigma=0.003677
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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.000352866 Jy
! Component: 100  -  total flux cleaned = 0.000350538 Jy
! Component: 150  -  total flux cleaned = 0.000349246 Jy
! Component: 200  -  total flux cleaned = 0.000343994 Jy
! Total flux subtracted in 200 components = 0.000343994 Jy
! Clean residual min=-0.010451 max=0.010240 Jy/beam
! Clean residual mean=0.000087 rms=0.003209 Jy/beam
! Combined flux in latest and established models = 2.90856 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 70 components and 2.90856 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=6.097397Jy  sigma=0.003677
! Fit after  self-cal, rms=6.097407Jy  sigma=0.003677
! Inverting map 
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 
! Estimated beam: bmin=3.134 mas, bmaj=6.7 mas, bpa=0.1222 degrees
! Estimated noise=729.629 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.134 x 6.7 at 0.1222 degrees (North through East)
! Clean map  min=-0.0087338  max=2.705 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=6.097407Jy  sigma=0.003677
! Fit after  self-cal, rms=6.225388Jy  sigma=0.002926
! Inverting map and beam 
! Estimated beam: bmin=3.131 mas, bmaj=6.703 mas, bpa=0.1291 degrees
! Estimated noise=729.816 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000484713 Jy
! Component: 100  -  total flux cleaned = -0.000148097 Jy
! Component: 150  -  total flux cleaned = 0.000169776 Jy
! Component: 200  -  total flux cleaned = 0.000464096 Jy
! Total flux subtracted in 200 components = 0.000464096 Jy
! Clean residual min=-0.008142 max=0.008219 Jy/beam
! Clean residual mean=0.000053 rms=0.002336 Jy/beam
! Combined flux in latest and established models = 2.90902 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 77 components and 2.90902 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=6.225331Jy  sigma=0.002925
! Fit after  self-cal, rms=6.225049Jy  sigma=0.002925
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 6.9993e-05 Jy
! Component: 100  -  total flux cleaned = 0.000331466 Jy
! Component: 150  -  total flux cleaned = 0.000572562 Jy
! Component: 200  -  total flux cleaned = 0.000690894 Jy
! Total flux subtracted in 200 components = 0.000690894 Jy
! Clean residual min=-0.008099 max=0.008294 Jy/beam
! Clean residual mean=0.000043 rms=0.002322 Jy/beam
! Combined flux in latest and established models = 2.90971 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 82 components and 2.90971 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=6.225018Jy  sigma=0.002925
! Fit after  self-cal, rms=6.224914Jy  sigma=0.002925
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=6.224914Jy  sigma=0.002925
! Fit after  self-cal, rms=6.317861Jy  sigma=0.002925
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 
! Estimated beam: bmin=2.053 mas, bmaj=4.171 mas, bpa=7.774 degrees
! Estimated noise=1801.33 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.0626 Jy
! Component: 100  -  total flux cleaned = 2.55051 Jy
! Component: 150  -  total flux cleaned = 2.71155 Jy
! Component: 200  -  total flux cleaned = 2.78466 Jy
! Total flux subtracted in 200 components = 2.78466 Jy
! Clean residual min=-0.016164 max=0.034639 Jy/beam
! Clean residual mean=-0.000021 rms=0.004757 Jy/beam
! Combined flux in latest and established models = 2.78466 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 22 model components to the UV plane model.
! The established model now contains 22 components and 2.78466 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.132 mas, bmaj=6.703 mas, bpa=0.1339 degrees
! Estimated noise=729.879 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.0606961 Jy
! Component: 100  -  total flux cleaned = 0.0893498 Jy
! Component: 150  -  total flux cleaned = 0.105265 Jy
! Component: 200  -  total flux cleaned = 0.114883 Jy
! Total flux subtracted in 200 components = 0.114883 Jy
! Clean residual min=-0.008701 max=0.008675 Jy/beam
! Clean residual mean=0.000126 rms=0.002472 Jy/beam
! Combined flux in latest and established models = 2.89954 Jy
! Adding 40 model components to the UV plane model.
! The established model now contains 52 components and 2.89954 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.266 mas, bmaj=13.13 mas, bpa=-6.294 degrees
! Estimated noise=864.904 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00745071 Jy
! Component: 100  -  total flux cleaned = 0.00903129 Jy
! Component: 150  -  total flux cleaned = 0.00993758 Jy
! Component: 200  -  total flux cleaned = 0.0107244 Jy
! Total flux subtracted in 200 components = 0.0107244 Jy
! Clean residual min=-0.010095 max=0.008965 Jy/beam
! Clean residual mean=-0.000007 rms=0.003102 Jy/beam
! Combined flux in latest and established models = 2.91027 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.00038658 Jy
! Component: 100  -  total flux cleaned = 0.000448447 Jy
! Component: 150  -  total flux cleaned = 0.000564006 Jy
! Component: 200  -  total flux cleaned = 0.00056394 Jy
! Total flux subtracted in 200 components = 0.00056394 Jy
! Clean residual min=-0.009980 max=0.008701 Jy/beam
! Clean residual mean=-0.000020 rms=0.003071 Jy/beam
! Combined flux in latest and established models = 2.91083 Jy
! Adding 31 model components to the UV plane model.
! The established model now contains 80 components and 2.91083 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.132 mas, bmaj=6.703 mas, bpa=0.1339 degrees
! Estimated noise=729.879 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00094649 Jy
! Component: 100  -  total flux cleaned = -0.00109347 Jy
! Component: 150  -  total flux cleaned = -0.000957833 Jy
! Component: 200  -  total flux cleaned = -0.000831157 Jy
! Total flux subtracted in 200 components = -0.000831157 Jy
! Clean residual min=-0.008431 max=0.007984 Jy/beam
! Clean residual mean=-0.000002 rms=0.002296 Jy/beam
! Combined flux in latest and established models = 2.91 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 90 components and 2.91 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=6.317662Jy  sigma=0.002924
! Fit after  self-cal, rms=6.316957Jy  sigma=0.002924
wmodel J1337-1257_S_2000_12_04_pus_map.mod
! Writing 90 model components to file: J1337-1257_S_2000_12_04_pus_map.mod
wobs J1337-1257_S_2000_12_04_pus_uvs.fits
! Writing UV FITS file: J1337-1257_S_2000_12_04_pus_uvs.fits
wwins J1337-1257_S_2000_12_04_pus_map.win
! wwins: Wrote 2 windows to J1337-1257_S_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 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000753232 Jy
! Component: 100  -  total flux cleaned = -0.000756165 Jy
! Component: 150  -  total flux cleaned = -0.000626316 Jy
! Component: 200  -  total flux cleaned = -0.000628275 Jy
! Component: 250  -  total flux cleaned = -0.000745286 Jy
! Component: 300  -  total flux cleaned = -0.000855176 Jy
! Component: 350  -  total flux cleaned = -0.000853361 Jy
! Component: 400  -  total flux cleaned = -0.000960446 Jy
! Component: 450  -  total flux cleaned = -0.000962014 Jy
! Component: 500  -  total flux cleaned = -0.000964087 Jy
! Component: 550  -  total flux cleaned = -0.00106357 Jy
! Component: 600  -  total flux cleaned = -0.000869859 Jy
! Component: 650  -  total flux cleaned = -0.000966619 Jy
! Component: 700  -  total flux cleaned = -0.0011521 Jy
! Component: 750  -  total flux cleaned = -0.0012421 Jy
! Component: 800  -  total flux cleaned = -0.00141972 Jy
! Component: 850  -  total flux cleaned = -0.00150647 Jy
! Component: 900  -  total flux cleaned = -0.001592 Jy
! Component: 950  -  total flux cleaned = -0.00150667 Jy
! Component: 1000  -  total flux cleaned = -0.0015054 Jy
! Component: 1050  -  total flux cleaned = -0.00126112 Jy
! Component: 1100  -  total flux cleaned = -0.00142138 Jy
! Component: 1150  -  total flux cleaned = -0.0012625 Jy
! Component: 1200  -  total flux cleaned = -0.00118468 Jy
! Component: 1250  -  total flux cleaned = -0.00110766 Jy
! Component: 1300  -  total flux cleaned = -0.000806469 Jy
! Component: 1350  -  total flux cleaned = -0.000807156 Jy
! Component: 1400  -  total flux cleaned = -0.000659403 Jy
! Component: 1450  -  total flux cleaned = -0.000370017 Jy
! Component: 1500  -  total flux cleaned = -0.000299151 Jy
! Component: 1550  -  total flux cleaned = -0.000157675 Jy
! Component: 1600  -  total flux cleaned = -1.84275e-05 Jy
! Component: 1650  -  total flux cleaned = 0.000187367 Jy
! Component: 1700  -  total flux cleaned = 0.000254965 Jy
! Component: 1750  -  total flux cleaned = 0.000589875 Jy
! Component: 1800  -  total flux cleaned = 0.000522997 Jy
! Component: 1850  -  total flux cleaned = 0.000720033 Jy
! Component: 1900  -  total flux cleaned = 0.000784657 Jy
! Component: 1950  -  total flux cleaned = 0.000849182 Jy
! Component: 2000  -  total flux cleaned = 0.000976524 Jy
! Total flux subtracted in 2048 components = 0.00103953 Jy
! Clean residual min=-0.003674 max=0.003668 Jy/beam
! Clean residual mean=0.000025 rms=0.001305 Jy/beam
! Combined flux in latest and established models = 2.91104 Jy
keep
! Adding 152 model components to the UV plane model.
! The established model now contains 242 components and 2.91104 Jy
![Exited script file: muppet]
wmap "J1337-1257_S_2000_12_04_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.132 x 6.703 at 0.1339 degrees (North through East)
! Clean map  min=-0.0058877  max=2.7106 Jy/beam
! Writing clean map to FITS file: J1337-1257_S_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 2.71062 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00130154 
device "J1337-1257_S_2000_12_04_pus\_map.eps/VPS"
! Attempting to open device: 'J1337-1257_S_2000_12_04_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.144049 0.144049 0.288097 0.576195 1.15239 2.30478 4.60956 9.21911 18.4382 36.8765 73.7529
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0039 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.71 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.132 x 6.703 at 0.1339 degrees (North through East)
! Clean map  min=-0.0058877  max=2.7106 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1337-1257_S_2000_12_04_pus\_map.gif/vgif"
! Attempting to open device: 'J1337-1257_S_2000_12_04_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1337-1257_S_2000_12_04_pus_uvs.log closed on Wed Oct 17 17:09:50 2007