! Started logfile: J1337-1257_S_2001_07_05_pus_uvs.log on Fri Aug 10 01:25:08 2007
obs J1337-1257_S_2001_07_05_pus_uva.fits
! Reading UV FITS file: J1337-1257_S_2001_07_05_pus_uva.fits
! AN table 1: 23 integrations on 171 of 171 possible baselines.
! AN table 2: 13 integrations on 171 of 171 possible baselines.
! AN table 3: 187 integrations on 171 of 171 possible baselines.
! AN table 4: 49 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.10206 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1337-1257
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! 
! 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.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1774 lines of history.
! 
! Reading 18988 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 
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 407 telescope corrections were flagged in sub-array 1.
!  A total of 108 telescope corrections were flagged in sub-array 2.
!  A total of 2743 telescope corrections were flagged in sub-array 3.
!  A total of 715 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 407 telescope corrections were flagged in sub-array 1.
!  A total of 108 telescope corrections were flagged in sub-array 2.
!  A total of 2743 telescope corrections were flagged in sub-array 3.
!  A total of 715 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 407 telescope corrections were flagged in sub-array 1.
!  A total of 108 telescope corrections were flagged in sub-array 2.
!  A total of 2743 telescope corrections were flagged in sub-array 3.
!  A total of 714 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 407 telescope corrections were flagged in sub-array 1.
!  A total of 108 telescope corrections were flagged in sub-array 2.
!  A total of 2743 telescope corrections were flagged in sub-array 3.
!  A total of 714 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.678331Jy  sigma=0.012864
! Fit after  self-cal, rms=1.262230Jy  sigma=0.009636
! 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.844 mas, bmaj=4.311 mas, bpa=6.865 degrees
! Estimated noise=1160.49 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.67451 Jy
! Component: 100  -  total flux cleaned = 2.09093 Jy
! Total flux subtracted in 100 components = 2.09093 Jy
! Clean residual min=-0.040237 max=0.153084 Jy/beam
! Clean residual mean=0.000281 rms=0.012560 Jy/beam
! Combined flux in latest and established models = 2.09093 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 2.09093 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.485198Jy  sigma=0.002987
! Fit after  self-cal, rms=0.485193Jy  sigma=0.002987
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.158581 Jy
! Component: 100  -  total flux cleaned = 0.24044 Jy
! Total flux subtracted in 100 components = 0.24044 Jy
! Clean residual min=-0.036089 max=0.046050 Jy/beam
! Clean residual mean=0.000057 rms=0.008168 Jy/beam
! Combined flux in latest and established models = 2.33137 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 24 components and 2.33137 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.431565Jy  sigma=0.002311
! Fit after  self-cal, rms=0.431315Jy  sigma=0.002309
! Inverting map 
! Added new window around map position (2, -4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.051557 Jy
! Component: 100  -  total flux cleaned = 0.0831422 Jy
! Total flux subtracted in 100 components = 0.0831422 Jy
! Clean residual min=-0.035056 max=0.032834 Jy/beam
! Clean residual mean=-0.000020 rms=0.007517 Jy/beam
! Combined flux in latest and established models = 2.41451 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 33 components and 2.41451 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.425327Jy  sigma=0.002217
! Fit after  self-cal, rms=0.425134Jy  sigma=0.002215
! 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.144 mas, bmaj=4.593 mas, bpa=7.755 degrees
! Estimated noise=737.992 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.0301824 Jy
! Component: 100  -  total flux cleaned = 0.0337399 Jy
! Component: 150  -  total flux cleaned = 0.0346265 Jy
! Component: 200  -  total flux cleaned = 0.0346419 Jy
! Total flux subtracted in 200 components = 0.0346419 Jy
! Clean residual min=-0.034116 max=0.032305 Jy/beam
! Clean residual mean=-0.000506 rms=0.007630 Jy/beam
! Combined flux in latest and established models = 2.44915 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 43 components and 2.44915 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.423130Jy  sigma=0.002192
! Fit after  self-cal, rms=0.423057Jy  sigma=0.002191
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   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*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.89     KK        1.06     KP        0.95     
!   LA        0.99     MC        1.00*    MK        1.01     NL        0.96     
!   NY        1.00*    OV        1.00     PT        0.96     SC        0.94     
!   TS        1.00*    WF        0.98     WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.09     FD        1.00     GC        1.15     GG        1.00*    
!   HH        1.00     HN        0.93     KK        1.02     KP        0.99     
!   LA        1.02     MC        1.03     MK        1.00     NL        0.97     
!   NY        1.00*    OV        1.05     PT        0.98     SC        0.96     
!   TS        0.95     WF        0.99     WZ        1.07     
! 
!  A total of 27 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.00     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.01     KK        1.03     KP        1.00     
!   LA        1.00     MC        1.00*    MK        0.94     NL        0.99     
!   NY        1.00*    OV        1.01     PT        0.97     SC        1.01     
!   TS        1.00*    WF        1.11     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   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*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.00     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.90     KK        1.06     KP        1.02     
!   LA        0.95     MC        1.00*    MK        0.98     NL        0.94     
!   NY        1.00*    OV        1.01     PT        1.00     SC        0.95     
!   TS        1.00*    WF        0.97     WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.08     FD        1.00     GC        1.09     GG        1.00*    
!   HH        1.03     HN        0.93     KK        1.01     KP        0.89     
!   LA        0.97     MC        0.97     MK        0.98     NL        0.95     
!   NY        1.00*    OV        1.07     PT        1.00     SC        0.98     
!   TS        0.94     WF        0.97     WZ        1.04     
! 
!  A total of 27 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.00     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.01     KK        1.00     KP        1.00     
!   LA        0.96     MC        1.00*    MK        0.93     NL        0.96     
!   NY        1.00*    OV        1.02     PT        1.00     SC        1.03     
!   TS        1.00*    WF        1.11     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   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*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.95     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.95     KK        1.06     KP        1.05     
!   LA        0.97     MC        1.00*    MK        1.01     NL        1.03     
!   NY        1.00*    OV        1.06     PT        0.95     SC        0.91     
!   TS        1.00*    WF        2.17     WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.11     FD        0.96     GC        1.12     GG        1.00*    
!   HH        1.01     HN        1.01     KK        1.01     KP        1.03     
!   LA        0.99     MC        0.98     MK        1.00     NL        0.98     
!   NY        1.00*    OV        1.08     PT        0.99     SC        0.96     
!   TS        0.94     WF        1.20     WZ        1.06     
! 
!  A total of 27 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        0.97     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.06     KK        1.13     KP        1.06     
!   LA        1.00     MC        1.00*    MK        0.96     NL        1.04     
!   NY        1.00*    OV        1.06     PT        0.98     SC        0.99     
!   TS        1.00*    WF        1.10     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   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*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.85     KK        1.02     KP        1.01     
!   LA        0.98     MC        1.00*    MK        1.00     NL        0.96     
!   NY        1.00*    OV        0.96     PT        0.93     SC        0.93     
!   TS        1.00*    WF        0.98     WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        0.98     GC        1.09     GG        1.00*    
!   HH        1.01     HN        0.90     KK        1.00     KP        1.02     
!   LA        1.00     MC        1.91     MK        0.99     NL        0.96     
!   NY        1.00*    OV        1.02     PT        1.03     SC        0.96     
!   TS        0.94     WF        0.98     WZ        1.03     
! 
!  A total of 27 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.95     KK        1.11     KP        1.02     
!   LA        0.99     MC        1.00*    MK        0.94     NL        0.98     
!   NY        1.00*    OV        0.98     PT        1.07     SC        0.99     
!   TS        1.00*    WF        1.11     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.423057Jy  sigma=0.002191
! Fit after  self-cal, rms=0.415993Jy  sigma=0.001588
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.164 mas, bmaj=4.716 mas, bpa=7.841 degrees
! Estimated noise=748.803 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.0123123 Jy
! Component: 100  -  total flux cleaned = -0.01275 Jy
! Component: 150  -  total flux cleaned = -0.0131115 Jy
! Component: 200  -  total flux cleaned = -0.0133834 Jy
! Total flux subtracted in 200 components = -0.0133834 Jy
! Clean residual min=-0.014332 max=0.013229 Jy/beam
! Clean residual mean=-0.000411 rms=0.003404 Jy/beam
! Combined flux in latest and established models = 2.43577 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 56 components and 2.43577 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.415116Jy  sigma=0.001580
! Fit after  self-cal, rms=0.416086Jy  sigma=0.001578
! 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.416086Jy  sigma=0.001578
! Fit after  self-cal, rms=0.414038Jy  sigma=0.001532
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.167 mas, bmaj=4.715 mas, bpa=7.944 degrees
! Estimated noise=747.734 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0120602 Jy
! Component: 100  -  total flux cleaned = -0.0126136 Jy
! Component: 150  -  total flux cleaned = -0.0126078 Jy
! Component: 200  -  total flux cleaned = -0.0126066 Jy
! Total flux subtracted in 200 components = -0.0126066 Jy
! Clean residual min=-0.008660 max=0.011025 Jy/beam
! Clean residual mean=0.000468 rms=0.002443 Jy/beam
! Combined flux in latest and established models = 2.42316 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 63 components and 2.42316 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.413537Jy  sigma=0.001528
! Fit after  self-cal, rms=0.413551Jy  sigma=0.001528
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, -30).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.010926 Jy
! Component: 100  -  total flux cleaned = 0.0160135 Jy
! Component: 150  -  total flux cleaned = 0.0182801 Jy
! Component: 200  -  total flux cleaned = 0.0196797 Jy
! Total flux subtracted in 200 components = 0.0196797 Jy
! Clean residual min=-0.009126 max=0.008403 Jy/beam
! Clean residual mean=0.000202 rms=0.002025 Jy/beam
! Combined flux in latest and established models = 2.44284 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 84 components and 2.44284 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.413159Jy  sigma=0.001523
! Fit after  self-cal, rms=0.413133Jy  sigma=0.001523
! 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.413133Jy  sigma=0.001523
! Fit after  self-cal, rms=0.414891Jy  sigma=0.001520
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.17 mas, bmaj=4.717 mas, bpa=8.015 degrees
! Estimated noise=747.087 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00662443 Jy
! Component: 100  -  total flux cleaned = -0.00579346 Jy
! Component: 150  -  total flux cleaned = -0.00473908 Jy
! Component: 200  -  total flux cleaned = -0.00351378 Jy
! Total flux subtracted in 200 components = -0.00351378 Jy
! Clean residual min=-0.007790 max=0.008469 Jy/beam
! Clean residual mean=0.000184 rms=0.001825 Jy/beam
! Combined flux in latest and established models = 2.43933 Jy
selfcal
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 95 components and 2.43933 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.414575Jy  sigma=0.001518
! Fit after  self-cal, rms=0.414577Jy  sigma=0.001518
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.5, -8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0064856 Jy
! Component: 100  -  total flux cleaned = 0.0078046 Jy
! Component: 150  -  total flux cleaned = 0.0088688 Jy
! Component: 200  -  total flux cleaned = 0.0100641 Jy
! Total flux subtracted in 200 components = 0.0100641 Jy
! Clean residual min=-0.007080 max=0.006169 Jy/beam
! Clean residual mean=0.000054 rms=0.001670 Jy/beam
! Combined flux in latest and established models = 2.44939 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 110 components and 2.44939 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.414393Jy  sigma=0.001515
! Fit after  self-cal, rms=0.414372Jy  sigma=0.001515
! 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.414372Jy  sigma=0.001515
! Fit after  self-cal, rms=0.415379Jy  sigma=0.001514
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.261 mas, bmaj=12.57 mas, bpa=-1.969 degrees
! Estimated noise=986.906 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0019723 Jy
! Component: 100  -  total flux cleaned = -0.000858871 Jy
! Component: 150  -  total flux cleaned = 0.000144784 Jy
! Component: 200  -  total flux cleaned = 0.000788877 Jy
! Total flux subtracted in 200 components = 0.000788876 Jy
! Clean residual min=-0.007298 max=0.006492 Jy/beam
! Clean residual mean=-0.000130 rms=0.002586 Jy/beam
! Combined flux in latest and established models = 2.45018 Jy
selfcal
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 131 components and 2.45018 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.415239Jy  sigma=0.001512
! Fit after  self-cal, rms=0.415207Jy  sigma=0.001512
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.00103809 Jy
! Component: 100  -  total flux cleaned = 0.00195469 Jy
! Component: 150  -  total flux cleaned = 0.00249578 Jy
! Component: 200  -  total flux cleaned = 0.00279972 Jy
! Total flux subtracted in 200 components = 0.00279972 Jy
! Clean residual min=-0.007112 max=0.006548 Jy/beam
! Clean residual mean=-0.000233 rms=0.002441 Jy/beam
! Combined flux in latest and established models = 2.45298 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 144 components and 2.45298 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.415197Jy  sigma=0.001512
! Fit after  self-cal, rms=0.415190Jy  sigma=0.001512
! 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.173 mas, bmaj=4.718 mas, bpa=8.065 degrees
! Estimated noise=746.349 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.173 x 4.718 at 8.065 degrees (North through East)
! Clean map  min=-0.0055696  max=2.1397 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.415190Jy  sigma=0.001512
! Fit after  self-cal, rms=0.407426Jy  sigma=0.001330
! Inverting map and beam 
! Estimated beam: bmin=2.176 mas, bmaj=4.717 mas, bpa=8.084 degrees
! Estimated noise=745.403 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00439598 Jy
! Component: 100  -  total flux cleaned = -0.00381528 Jy
! Component: 150  -  total flux cleaned = -0.00380846 Jy
! Component: 200  -  total flux cleaned = -0.00379842 Jy
! Total flux subtracted in 200 components = -0.00379842 Jy
! Clean residual min=-0.005235 max=0.005037 Jy/beam
! Clean residual mean=-0.000103 rms=0.001256 Jy/beam
! Combined flux in latest and established models = 2.44918 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 153 components and 2.44918 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.407280Jy  sigma=0.001328
! Fit after  self-cal, rms=0.407270Jy  sigma=0.001328
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000459391 Jy
! Component: 100  -  total flux cleaned = 0.000368963 Jy
! Component: 150  -  total flux cleaned = 0.000456517 Jy
! Component: 200  -  total flux cleaned = 0.000378864 Jy
! Total flux subtracted in 200 components = 0.000378864 Jy
! Clean residual min=-0.005035 max=0.005021 Jy/beam
! Clean residual mean=-0.000108 rms=0.001239 Jy/beam
! Combined flux in latest and established models = 2.44956 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 160 components and 2.44956 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.407219Jy  sigma=0.001328
! Fit after  self-cal, rms=0.407214Jy  sigma=0.001328
! 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.407214Jy  sigma=0.001328
! Fit after  self-cal, rms=0.407905Jy  sigma=0.001327
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.872 mas, bmaj=4.626 mas, bpa=6.441 degrees
! Estimated noise=1178.37 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.68101 Jy
! Component: 100  -  total flux cleaned = 2.0935 Jy
! Component: 150  -  total flux cleaned = 2.23642 Jy
! Component: 200  -  total flux cleaned = 2.3025 Jy
! Total flux subtracted in 200 components = 2.3025 Jy
! Clean residual min=-0.009427 max=0.031200 Jy/beam
! Clean residual mean=0.000169 rms=0.003048 Jy/beam
! Combined flux in latest and established models = 2.3025 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 20 model components to the UV plane model.
! The established model now contains 20 components and 2.3025 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.178 mas, bmaj=4.718 mas, bpa=8.124 degrees
! Estimated noise=745.101 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.0462248 Jy
! Component: 100  -  total flux cleaned = 0.0703575 Jy
! Component: 150  -  total flux cleaned = 0.0870626 Jy
! Component: 200  -  total flux cleaned = 0.0996687 Jy
! Total flux subtracted in 200 components = 0.0996687 Jy
! Clean residual min=-0.005269 max=0.008055 Jy/beam
! Clean residual mean=0.000469 rms=0.001825 Jy/beam
! Combined flux in latest and established models = 2.40217 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 53 components and 2.40217 Jy
! Inverting map 
! Added new window around map position (11.5, -24.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00982943 Jy
! Component: 100  -  total flux cleaned = 0.0174628 Jy
! Component: 150  -  total flux cleaned = 0.0235447 Jy
! Component: 200  -  total flux cleaned = 0.0284954 Jy
! Total flux subtracted in 200 components = 0.0284954 Jy
! Clean residual min=-0.004590 max=0.005137 Jy/beam
! Clean residual mean=0.000097 rms=0.001324 Jy/beam
! Combined flux in latest and established models = 2.43066 Jy
! Adding 42 model components to the UV plane model.
! The established model now contains 83 components and 2.43066 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.26 mas, bmaj=12.57 mas, bpa=-1.971 degrees
! Estimated noise=983.035 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00705874 Jy
! Component: 100  -  total flux cleaned = 0.0111352 Jy
! Component: 150  -  total flux cleaned = 0.013707 Jy
! Component: 200  -  total flux cleaned = 0.0154049 Jy
! Total flux subtracted in 200 components = 0.0154049 Jy
! Clean residual min=-0.005964 max=0.004419 Jy/beam
! Clean residual mean=-0.000277 rms=0.001765 Jy/beam
! Combined flux in latest and established models = 2.44607 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.00060817 Jy
! Component: 100  -  total flux cleaned = 0.000950364 Jy
! Component: 150  -  total flux cleaned = 0.00121264 Jy
! Component: 200  -  total flux cleaned = 0.00144123 Jy
! Total flux subtracted in 200 components = 0.00144123 Jy
! Clean residual min=-0.005848 max=0.004400 Jy/beam
! Clean residual mean=-0.000328 rms=0.001729 Jy/beam
! Combined flux in latest and established models = 2.44751 Jy
! Adding 67 model components to the UV plane model.
! The established model now contains 143 components and 2.44751 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.178 mas, bmaj=4.718 mas, bpa=8.124 degrees
! Estimated noise=745.101 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000579273 Jy
! Component: 100  -  total flux cleaned = -0.000593105 Jy
! Component: 150  -  total flux cleaned = -0.000504165 Jy
! Component: 200  -  total flux cleaned = -0.000249828 Jy
! Total flux subtracted in 200 components = -0.000249828 Jy
! Clean residual min=-0.004840 max=0.004696 Jy/beam
! Clean residual mean=-0.000121 rms=0.001161 Jy/beam
! Combined flux in latest and established models = 2.44726 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 154 components and 2.44726 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.407789Jy  sigma=0.001326
! Fit after  self-cal, rms=0.407753Jy  sigma=0.001326
wmodel J1337-1257_S_2001_07_05_pus_map.mod
! Writing 154 model components to file: J1337-1257_S_2001_07_05_pus_map.mod
wobs J1337-1257_S_2001_07_05_pus_uvs.fits
! Writing UV FITS file: J1337-1257_S_2001_07_05_pus_uvs.fits
wwins J1337-1257_S_2001_07_05_pus_map.win
! wwins: Wrote 5 windows to J1337-1257_S_2001_07_05_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.000870164 Jy
! Component: 100  -  total flux cleaned = -0.00194556 Jy
! Component: 150  -  total flux cleaned = -0.00251989 Jy
! Component: 200  -  total flux cleaned = -0.00285923 Jy
! Component: 250  -  total flux cleaned = -0.0029909 Jy
! Component: 300  -  total flux cleaned = -0.00324299 Jy
! Component: 350  -  total flux cleaned = -0.00342691 Jy
! Component: 400  -  total flux cleaned = -0.00348639 Jy
! Component: 450  -  total flux cleaned = -0.00377952 Jy
! Component: 500  -  total flux cleaned = -0.00395205 Jy
! Component: 550  -  total flux cleaned = -0.00423553 Jy
! Component: 600  -  total flux cleaned = -0.00445906 Jy
! Component: 650  -  total flux cleaned = -0.00462444 Jy
! Component: 700  -  total flux cleaned = -0.00478745 Jy
! Component: 750  -  total flux cleaned = -0.00489499 Jy
! Component: 800  -  total flux cleaned = -0.00505425 Jy
! Component: 850  -  total flux cleaned = -0.00515842 Jy
! Component: 900  -  total flux cleaned = -0.00521034 Jy
! Component: 950  -  total flux cleaned = -0.00536421 Jy
! Component: 1000  -  total flux cleaned = -0.00541557 Jy
! Component: 1050  -  total flux cleaned = -0.00556678 Jy
! Component: 1100  -  total flux cleaned = -0.00581533 Jy
! Component: 1150  -  total flux cleaned = -0.00571635 Jy
! Component: 1200  -  total flux cleaned = -0.00586322 Jy
! Component: 1250  -  total flux cleaned = -0.00605626 Jy
! Component: 1300  -  total flux cleaned = -0.00605638 Jy
! Component: 1350  -  total flux cleaned = -0.00624645 Jy
! Component: 1400  -  total flux cleaned = -0.00634015 Jy
! Component: 1450  -  total flux cleaned = -0.00647962 Jy
! Component: 1500  -  total flux cleaned = -0.00657176 Jy
! Component: 1550  -  total flux cleaned = -0.00661769 Jy
! Component: 1600  -  total flux cleaned = -0.00675364 Jy
! Component: 1650  -  total flux cleaned = -0.00688864 Jy
! Component: 1700  -  total flux cleaned = -0.0070222 Jy
! Component: 1750  -  total flux cleaned = -0.00711021 Jy
! Component: 1800  -  total flux cleaned = -0.00711026 Jy
! Component: 1850  -  total flux cleaned = -0.00719734 Jy
! Component: 1900  -  total flux cleaned = -0.00719745 Jy
! Component: 1950  -  total flux cleaned = -0.00732601 Jy
! Component: 2000  -  total flux cleaned = -0.00732592 Jy
! Total flux subtracted in 2048 components = -0.00732596 Jy
! Clean residual min=-0.002401 max=0.002400 Jy/beam
! Clean residual mean=-0.000035 rms=0.000800 Jy/beam
! Combined flux in latest and established models = 2.43993 Jy
keep
! Adding 156 model components to the UV plane model.
! The established model now contains 310 components and 2.43993 Jy
wmap "J1337-1257_S_2001_07_05_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.178 x 4.718 at 8.124 degrees (North through East)
! Clean map  min=-0.0034837  max=2.1393 Jy/beam
! Writing clean map to FITS file: J1337-1257_S_2001_07_05_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 2.1393 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000795937 
device "J1337-1257_S_2001_07_05_pus\_map.eps/VPS"
! Attempting to open device: 'J1337-1257_S_2001_07_05_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.111616 0.111616 0.223233 0.446466 0.892932 1.78586 3.57173 7.14345 14.2869 28.5738 57.1476
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0023 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.139 
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.178 x 4.718 at 8.124 degrees (North through East)
! Clean map  min=-0.0034837  max=2.1393 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1337-1257_S_2001_07_05_pus\_map.gif/vgif"
! Attempting to open device: 'J1337-1257_S_2001_07_05_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1337-1257_S_2001_07_05_pus_uvs.log closed on Fri Aug 10 01:26:48 2007