! Started logfile: J1337-1257_S_2000_05_22_pus_uvs.log on Tue Nov 20 12:12:47 2007
obs J1337-1257_S_2000_05_22_pus_uva.fits
! Reading UV FITS file: J1337-1257_S_2000_05_22_pus_uva.fits
! AN table 1: 35 integrations on 190 of 190 possible baselines.
! AN table 2: 10 integrations on 190 of 190 possible baselines.
! AN table 3: 9 integrations on 190 of 190 possible baselines.
! AN table 4: 62 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.144782 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 2003 lines of history.
! 
! Reading 12764 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_05_22_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 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 523 telescope corrections were flagged in sub-array 1.
!  A total of 200 telescope corrections were flagged in sub-array 2.
!  A total of 180 telescope corrections were flagged in sub-array 3.
!  A total of 680 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 523 telescope corrections were flagged in sub-array 1.
!  A total of 200 telescope corrections were flagged in sub-array 2.
!  A total of 180 telescope corrections were flagged in sub-array 3.
!  A total of 680 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 523 telescope corrections were flagged in sub-array 1.
!  A total of 200 telescope corrections were flagged in sub-array 2.
!  A total of 180 telescope corrections were flagged in sub-array 3.
!  A total of 680 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 523 telescope corrections were flagged in sub-array 1.
!  A total of 200 telescope corrections were flagged in sub-array 2.
!  A total of 180 telescope corrections were flagged in sub-array 3.
!  A total of 680 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.721133Jy  sigma=0.015197
! Fit after  self-cal, rms=1.538337Jy  sigma=0.013758
! 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.92 mas, bmaj=4.367 mas, bpa=8.171 degrees
! Estimated noise=1474.25 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.87446 Jy
! Component: 100  -  total flux cleaned = 2.31004 Jy
! Total flux subtracted in 100 components = 2.31004 Jy
! Clean residual min=-0.045259 max=0.159666 Jy/beam
! Clean residual mean=0.000313 rms=0.014333 Jy/beam
! Combined flux in latest and established models = 2.31004 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 2.31004 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.360874Jy  sigma=0.003161
! Fit after  self-cal, rms=0.360845Jy  sigma=0.003161
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.165732 Jy
! Component: 100  -  total flux cleaned = 0.246172 Jy
! Total flux subtracted in 100 components = 0.246172 Jy
! Clean residual min=-0.030840 max=0.050350 Jy/beam
! Clean residual mean=0.000271 rms=0.008046 Jy/beam
! Combined flux in latest and established models = 2.55621 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 24 components and 2.55621 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.257189Jy  sigma=0.002068
! Fit after  self-cal, rms=0.256415Jy  sigma=0.002063
! 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=2.844 mas, bmaj=7.08 mas, bpa=-2.736 degrees
! Estimated noise=745.783 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.0570006 Jy
! Component: 100  -  total flux cleaned = 0.0807044 Jy
! Component: 150  -  total flux cleaned = 0.0916219 Jy
! Component: 200  -  total flux cleaned = 0.0955604 Jy
! Total flux subtracted in 200 components = 0.0955604 Jy
! Clean residual min=-0.022808 max=0.025505 Jy/beam
! Clean residual mean=0.000909 rms=0.006063 Jy/beam
! Combined flux in latest and established models = 2.65177 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 37 components and 2.65177 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.246830Jy  sigma=0.001945
! Fit after  self-cal, rms=0.246669Jy  sigma=0.001944
! Inverting map 
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        1.00*    FD        1.06     GC        1.00*    GG        1.00*    
!   HH        1.00     HN        0.94     KK        1.00*    KP        1.10     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.02     
!   NY        1.00*    OV        1.00*    PT        1.07     SC        1.02     
!   TS        1.00*    WF        1.06     WZ        1.09     LA        1.04     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    LA        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    LA        0.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00     KK        0.98     KP        1.03     
!   MA        1.00*    MC        1.00*    MK        1.01     NL        0.99     
!   NY        1.00*    OV        1.03     PT        1.00     SC        1.03     
!   TS        1.00*    WF        0.98     WZ        1.00*    LA        1.02     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.07     GC        1.00*    GG        1.00*    
!   HH        0.98     HN        1.01     KK        1.00*    KP        1.05     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.03     
!   NY        1.00*    OV        1.00*    PT        1.06     SC        1.05     
!   TS        1.00*    WF        1.04     WZ        1.10     LA        0.98     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    LA        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    LA        0.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        1.03     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.06     KK        1.08     KP        0.99     
!   MA        1.00*    MC        1.00*    MK        0.96     NL        1.04     
!   NY        1.00*    OV        1.01     PT        1.01     SC        1.04     
!   TS        1.00*    WF        1.01     WZ        1.00*    LA        0.95     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.03     GC        1.00*    GG        1.00*    
!   HH        0.91     HN        0.95     KK        1.00*    KP        1.04     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        0.97     
!   NY        1.00*    OV        1.00*    PT        1.01     SC        1.02     
!   TS        1.00*    WF        1.03     WZ        1.07     LA        1.03     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    LA        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    LA        0.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.01     KK        0.98     KP        0.96     
!   MA        1.00*    MC        1.00*    MK        0.95     NL        0.96     
!   NY        1.00*    OV        1.02     PT        0.95     SC        0.98     
!   TS        1.00*    WF        1.00     WZ        1.00*    LA        0.98     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.02     GC        1.00*    GG        1.00*    
!   HH        1.04     HN        0.97     KK        1.00*    KP        1.03     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        0.98     
!   NY        1.00*    OV        1.00*    PT        0.95     SC        1.01     
!   TS        1.00*    WF        1.02     WZ        1.05     LA        1.01     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    LA        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    LA        0.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.01     KK        1.02     KP        0.98     
!   MA        1.00*    MC        1.00*    MK        0.99     NL        0.98     
!   NY        1.00*    OV        0.97     PT        1.00     SC        0.98     
!   TS        1.00*    WF        0.99     WZ        1.00*    LA        0.98     
! 
! 
! Fit before self-cal, rms=0.246669Jy  sigma=0.001944
! Fit after  self-cal, rms=0.211381Jy  sigma=0.001594
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.858 mas, bmaj=7.057 mas, bpa=-2.673 degrees
! Estimated noise=748.185 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.00159784 Jy
! Component: 100  -  total flux cleaned = -0.000908665 Jy
! Component: 150  -  total flux cleaned = -0.00070106 Jy
! Component: 200  -  total flux cleaned = -0.000705027 Jy
! Total flux subtracted in 200 components = -0.000705027 Jy
! Clean residual min=-0.018329 max=0.023146 Jy/beam
! Clean residual mean=0.000657 rms=0.004846 Jy/beam
! Combined flux in latest and established models = 2.65107 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 42 components and 2.65107 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.210954Jy  sigma=0.001590
! Fit after  self-cal, rms=0.210866Jy  sigma=0.001589
! 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=0.210866Jy  sigma=0.001589
! Fit after  self-cal, rms=0.204601Jy  sigma=0.001516
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.863 mas, bmaj=7.062 mas, bpa=-2.657 degrees
! Estimated noise=748.399 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00321083 Jy
! Component: 100  -  total flux cleaned = -0.00336542 Jy
! Component: 150  -  total flux cleaned = -0.00386394 Jy
! Component: 200  -  total flux cleaned = -0.00417006 Jy
! Total flux subtracted in 200 components = -0.00417006 Jy
! Clean residual min=-0.015224 max=0.023314 Jy/beam
! Clean residual mean=0.000608 rms=0.004206 Jy/beam
! Combined flux in latest and established models = 2.6469 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 49 components and 2.6469 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.204266Jy  sigma=0.001513
! Fit after  self-cal, rms=0.204174Jy  sigma=0.001513
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.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0201209 Jy
! Component: 100  -  total flux cleaned = 0.0230039 Jy
! Component: 150  -  total flux cleaned = 0.0227125 Jy
! Component: 200  -  total flux cleaned = 0.0222263 Jy
! Total flux subtracted in 200 components = 0.0222263 Jy
! Clean residual min=-0.013702 max=0.014390 Jy/beam
! Clean residual mean=0.000379 rms=0.003670 Jy/beam
! Combined flux in latest and established models = 2.66913 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 67 components and 2.66913 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.202185Jy  sigma=0.001492
! Fit after  self-cal, rms=0.202048Jy  sigma=0.001491
! 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=0.202048Jy  sigma=0.001491
! Fit after  self-cal, rms=0.187670Jy  sigma=0.001333
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.862 mas, bmaj=7.073 mas, bpa=-2.642 degrees
! Estimated noise=747.665 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00500457 Jy
! Component: 100  -  total flux cleaned = 0.00424583 Jy
! Component: 150  -  total flux cleaned = 0.00358865 Jy
! Component: 200  -  total flux cleaned = 0.00314708 Jy
! Total flux subtracted in 200 components = 0.00314708 Jy
! Clean residual min=-0.006729 max=0.012601 Jy/beam
! Clean residual mean=0.000147 rms=0.001837 Jy/beam
! Combined flux in latest and established models = 2.67227 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 79 components and 2.67227 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.187149Jy  sigma=0.001329
! Fit after  self-cal, rms=0.187097Jy  sigma=0.001328
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 (15.5, -26).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0104477 Jy
! Component: 100  -  total flux cleaned = 0.0147645 Jy
! Component: 150  -  total flux cleaned = 0.0155042 Jy
! Component: 200  -  total flux cleaned = 0.0156324 Jy
! Total flux subtracted in 200 components = 0.0156324 Jy
! Clean residual min=-0.006769 max=0.005196 Jy/beam
! Clean residual mean=-0.000023 rms=0.001364 Jy/beam
! Combined flux in latest and established models = 2.68791 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 99 components and 2.6879 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.186533Jy  sigma=0.001321
! Fit after  self-cal, rms=0.186492Jy  sigma=0.001321
! 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=0.186492Jy  sigma=0.001321
! Fit after  self-cal, rms=0.186426Jy  sigma=0.001320
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.534 mas, bmaj=15.68 mas, bpa=-4.406 degrees
! Estimated noise=895.71 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00187683 Jy
! Component: 100  -  total flux cleaned = 0.00261902 Jy
! Component: 150  -  total flux cleaned = 0.00323175 Jy
! Component: 200  -  total flux cleaned = 0.00337169 Jy
! Total flux subtracted in 200 components = 0.00337169 Jy
! Clean residual min=-0.004922 max=0.003667 Jy/beam
! Clean residual mean=-0.000186 rms=0.001483 Jy/beam
! Combined flux in latest and established models = 2.69128 Jy
selfcal
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 123 components and 2.69128 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.186306Jy  sigma=0.001319
! Fit after  self-cal, rms=0.186278Jy  sigma=0.001319
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.000606656 Jy
! Component: 100  -  total flux cleaned = 0.000891201 Jy
! Component: 150  -  total flux cleaned = 0.000887225 Jy
! Component: 200  -  total flux cleaned = 0.000887946 Jy
! Total flux subtracted in 200 components = 0.000887946 Jy
! Clean residual min=-0.004894 max=0.003432 Jy/beam
! Clean residual mean=-0.000208 rms=0.001435 Jy/beam
! Combined flux in latest and established models = 2.69216 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 138 components and 2.69216 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.186232Jy  sigma=0.001318
! Fit after  self-cal, rms=0.186201Jy  sigma=0.001318
! 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=2.864 mas, bmaj=7.072 mas, bpa=-2.615 degrees
! Estimated noise=747.38 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.864 x 7.072 at -2.615 degrees (North through East)
! Clean map  min=-0.0049672  max=2.4594 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.186201Jy  sigma=0.001318
! Fit after  self-cal, rms=0.170229Jy  sigma=0.001151
! Inverting map and beam 
! Estimated beam: bmin=2.864 mas, bmaj=7.075 mas, bpa=-2.626 degrees
! Estimated noise=746.717 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000357305 Jy
! Component: 100  -  total flux cleaned = -0.000365031 Jy
! Component: 150  -  total flux cleaned = -0.000457834 Jy
! Component: 200  -  total flux cleaned = -0.000629801 Jy
! Total flux subtracted in 200 components = -0.000629801 Jy
! Clean residual min=-0.004803 max=0.004084 Jy/beam
! Clean residual mean=-0.000114 rms=0.001086 Jy/beam
! Combined flux in latest and established models = 2.69153 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 148 components and 2.69153 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.170085Jy  sigma=0.001150
! Fit after  self-cal, rms=0.170066Jy  sigma=0.001150
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0002187 Jy
! Component: 100  -  total flux cleaned = 0.000219731 Jy
! Component: 150  -  total flux cleaned = 0.000147854 Jy
! Component: 200  -  total flux cleaned = 0.000148364 Jy
! Total flux subtracted in 200 components = 0.000148364 Jy
! Clean residual min=-0.004902 max=0.004080 Jy/beam
! Clean residual mean=-0.000116 rms=0.001066 Jy/beam
! Combined flux in latest and established models = 2.69168 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 157 components and 2.69168 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.169990Jy  sigma=0.001150
! Fit after  self-cal, rms=0.169978Jy  sigma=0.001150
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.169978Jy  sigma=0.001150
! Fit after  self-cal, rms=0.169935Jy  sigma=0.001149
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=1.933 mas, bmaj=4.379 mas, bpa=8.427 degrees
! Estimated noise=1479.07 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.87999 Jy
! Component: 100  -  total flux cleaned = 2.31268 Jy
! Component: 150  -  total flux cleaned = 2.46798 Jy
! Component: 200  -  total flux cleaned = 2.53977 Jy
! Total flux subtracted in 200 components = 2.53977 Jy
! Clean residual min=-0.013352 max=0.033557 Jy/beam
! Clean residual mean=0.000100 rms=0.003927 Jy/beam
! Combined flux in latest and established models = 2.53977 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 23 model components to the UV plane model.
! The established model now contains 23 components and 2.53977 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.865 mas, bmaj=7.073 mas, bpa=-2.603 degrees
! Estimated noise=746.405 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.0577679 Jy
! Component: 100  -  total flux cleaned = 0.0860591 Jy
! Component: 150  -  total flux cleaned = 0.103866 Jy
! Component: 200  -  total flux cleaned = 0.116218 Jy
! Total flux subtracted in 200 components = 0.116218 Jy
! Clean residual min=-0.005112 max=0.007934 Jy/beam
! Clean residual mean=0.000232 rms=0.001934 Jy/beam
! Combined flux in latest and established models = 2.65599 Jy
! Adding 49 model components to the UV plane model.
! The established model now contains 62 components and 2.65599 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.534 mas, bmaj=15.68 mas, bpa=-4.389 degrees
! Estimated noise=894.436 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0132161 Jy
! Component: 100  -  total flux cleaned = 0.0210674 Jy
! Component: 150  -  total flux cleaned = 0.0260262 Jy
! Component: 200  -  total flux cleaned = 0.0292969 Jy
! Total flux subtracted in 200 components = 0.0292969 Jy
! Clean residual min=-0.004377 max=0.003883 Jy/beam
! Clean residual mean=-0.000130 rms=0.001423 Jy/beam
! Combined flux in latest and established models = 2.68529 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.00219291 Jy
! Component: 100  -  total flux cleaned = 0.00370235 Jy
! Component: 150  -  total flux cleaned = 0.00474819 Jy
! Component: 200  -  total flux cleaned = 0.00524145 Jy
! Total flux subtracted in 200 components = 0.00524145 Jy
! Clean residual min=-0.004127 max=0.003337 Jy/beam
! Clean residual mean=-0.000243 rms=0.001229 Jy/beam
! Combined flux in latest and established models = 2.69053 Jy
! Adding 62 model components to the UV plane model.
! The established model now contains 122 components and 2.69053 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.865 mas, bmaj=7.073 mas, bpa=-2.603 degrees
! Estimated noise=746.405 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000942708 Jy
! Component: 100  -  total flux cleaned = -0.000539343 Jy
! Component: 150  -  total flux cleaned = -0.000186415 Jy
! Component: 200  -  total flux cleaned = 2.86563e-05 Jy
! Total flux subtracted in 200 components = 2.86563e-05 Jy
! Clean residual min=-0.004091 max=0.004251 Jy/beam
! Clean residual mean=-0.000111 rms=0.001060 Jy/beam
! Combined flux in latest and established models = 2.69056 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 134 components and 2.69056 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.170201Jy  sigma=0.001151
! Fit after  self-cal, rms=0.170089Jy  sigma=0.001150
wmodel J1337-1257_S_2000_05_22_pus_map.mod
! Writing 134 model components to file: J1337-1257_S_2000_05_22_pus_map.mod
wobs J1337-1257_S_2000_05_22_pus_uvs.fits
! Writing UV FITS file: J1337-1257_S_2000_05_22_pus_uvs.fits
wwins J1337-1257_S_2000_05_22_pus_map.win
! wwins: Wrote 3 windows to J1337-1257_S_2000_05_22_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000655489 Jy
! Component: 100  -  total flux cleaned = -0.00142777 Jy
! Component: 150  -  total flux cleaned = -0.00228583 Jy
! Component: 200  -  total flux cleaned = -0.00329126 Jy
! Component: 250  -  total flux cleaned = -0.00407527 Jy
! Component: 300  -  total flux cleaned = -0.00483327 Jy
! Component: 350  -  total flux cleaned = -0.00556732 Jy
! Component: 400  -  total flux cleaned = -0.0060063 Jy
! Component: 450  -  total flux cleaned = -0.00643473 Jy
! Component: 500  -  total flux cleaned = -0.00685401 Jy
! Component: 550  -  total flux cleaned = -0.00736659 Jy
! Component: 600  -  total flux cleaned = -0.0076681 Jy
! Component: 650  -  total flux cleaned = -0.0080142 Jy
! Component: 700  -  total flux cleaned = -0.00825704 Jy
! Component: 750  -  total flux cleaned = -0.00859209 Jy
! Component: 800  -  total flux cleaned = -0.00878093 Jy
! Component: 850  -  total flux cleaned = -0.00910553 Jy
! Component: 900  -  total flux cleaned = -0.00928819 Jy
! Component: 950  -  total flux cleaned = -0.00951364 Jy
! Component: 1000  -  total flux cleaned = -0.00960337 Jy
! Component: 1050  -  total flux cleaned = -0.00986683 Jy
! Component: 1100  -  total flux cleaned = -0.00995257 Jy
! Component: 1150  -  total flux cleaned = -0.00995272 Jy
! Component: 1200  -  total flux cleaned = -0.0100803 Jy
! Component: 1250  -  total flux cleaned = -0.0101222 Jy
! Component: 1300  -  total flux cleaned = -0.0102468 Jy
! Component: 1350  -  total flux cleaned = -0.0103295 Jy
! Component: 1400  -  total flux cleaned = -0.0104929 Jy
! Component: 1450  -  total flux cleaned = -0.0105736 Jy
! Component: 1500  -  total flux cleaned = -0.0106539 Jy
! Component: 1550  -  total flux cleaned = -0.0108126 Jy
! Component: 1600  -  total flux cleaned = -0.010852 Jy
! Component: 1650  -  total flux cleaned = -0.0109302 Jy
! Component: 1700  -  total flux cleaned = -0.0110076 Jy
! Component: 1750  -  total flux cleaned = -0.0110457 Jy
! Component: 1800  -  total flux cleaned = -0.0110462 Jy
! Component: 1850  -  total flux cleaned = -0.0111221 Jy
! Component: 1900  -  total flux cleaned = -0.0111968 Jy
! Component: 1950  -  total flux cleaned = -0.011234 Jy
! Component: 2000  -  total flux cleaned = -0.0113078 Jy
! Total flux subtracted in 2048 components = -0.0113443 Jy
! Clean residual min=-0.001892 max=0.002361 Jy/beam
! Clean residual mean=-0.000026 rms=0.000707 Jy/beam
! Combined flux in latest and established models = 2.67921 Jy
keep
! Adding 119 model components to the UV plane model.
! The established model now contains 252 components and 2.67921 Jy
![Exited script file: muppet]
wmap "J1337-1257_S_2000_05_22_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.865 x 7.073 at -2.603 degrees (North through East)
! Clean map  min=-0.0039455  max=2.4595 Jy/beam
! Writing clean map to FITS file: J1337-1257_S_2000_05_22_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 2.4595 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000705193 
device "J1337-1257_S_2000_05_22_pus\_map.eps/VPS"
! Attempting to open device: 'J1337-1257_S_2000_05_22_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.0860167 0.0860167 0.172033 0.344067 0.688133 1.37627 2.75253 5.50507 11.0101 22.0203 44.0405 88.0811
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0021 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.459 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.865 x 7.073 at -2.603 degrees (North through East)
! Clean map  min=-0.0039455  max=2.4595 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1337-1257_S_2000_05_22_pus\_map.gif/vgif"
! Attempting to open device: 'J1337-1257_S_2000_05_22_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1337-1257_S_2000_05_22_pus_uvs.log closed on Tue Nov 20 12:12:55 2007