! Started logfile: J1357+7643_S_2003_05_07_pus_uvs.log on Sun Dec 24 10:52:40 2006
obs J1357+7643_S_2003_05_07_pus_uva.fits
! Reading UV FITS file: J1357+7643_S_2003_05_07_pus_uva.fits
! AN table 1: 29 integrations on 171 of 171 possible baselines.
! AN table 2: 64 integrations on 171 of 171 possible baselines.
! AN table 3: 133 integrations on 171 of 171 possible baselines.
! AN table 4: 165 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.190126 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1357+7643
! 
! 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.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1680 lines of history.
! 
! Reading 50848 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
float field_size
field_size = 512
float field_cell
field_cell = 0.5
float 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 430 telescope corrections were flagged in sub-array 1.
!  A total of 834 telescope corrections were flagged in sub-array 2.
!  A total of 1193 telescope corrections were flagged in sub-array 3.
!  A total of 2208 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 430 telescope corrections were flagged in sub-array 1.
!  A total of 834 telescope corrections were flagged in sub-array 2.
!  A total of 1238 telescope corrections were flagged in sub-array 3.
!  A total of 2195 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 430 telescope corrections were flagged in sub-array 1.
!  A total of 834 telescope corrections were flagged in sub-array 2.
!  A total of 1238 telescope corrections were flagged in sub-array 3.
!  A total of 2210 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 430 telescope corrections were flagged in sub-array 1.
!  A total of 834 telescope corrections were flagged in sub-array 2.
!  A total of 1193 telescope corrections were flagged in sub-array 3.
!  A total of 2237 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.777423Jy  sigma=0.005410
! Fit after  self-cal, rms=0.392271Jy  sigma=0.002450
! 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=2.079 mas, bmaj=2.17 mas, bpa=38.34 degrees
! Estimated noise=945.695 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 = 0.542738 Jy
! Component: 100  -  total flux cleaned = 0.66416 Jy
! Total flux subtracted in 100 components = 0.66416 Jy
! Clean residual min=-0.013119 max=0.042776 Jy/beam
! Clean residual mean=0.000056 rms=0.003645 Jy/beam
! Combined flux in latest and established models = 0.66416 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.66416 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.285265Jy  sigma=0.001653
! Fit after  self-cal, rms=0.285269Jy  sigma=0.001653
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0441073 Jy
! Component: 100  -  total flux cleaned = 0.0653678 Jy
! Total flux subtracted in 100 components = 0.0653678 Jy
! Clean residual min=-0.013686 max=0.019459 Jy/beam
! Clean residual mean=0.000035 rms=0.003068 Jy/beam
! Combined flux in latest and established models = 0.729528 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 17 components and 0.729528 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.275704Jy  sigma=0.001525
! Fit after  self-cal, rms=0.275705Jy  sigma=0.001525
! Inverting map 
! Added new window around map position (4, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0175118 Jy
! Component: 100  -  total flux cleaned = 0.0274921 Jy
! Total flux subtracted in 100 components = 0.0274921 Jy
! Clean residual min=-0.013466 max=0.015949 Jy/beam
! Clean residual mean=0.000026 rms=0.002951 Jy/beam
! Combined flux in latest and established models = 0.75702 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 22 components and 0.75702 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.274604Jy  sigma=0.001504
! Fit after  self-cal, rms=0.274562Jy  sigma=0.001503
! 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.648 mas, bmaj=3.257 mas, bpa=73.24 degrees
! Estimated noise=453.545 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.0146047 Jy
! Component: 100  -  total flux cleaned = 0.0206215 Jy
! Component: 150  -  total flux cleaned = 0.0233919 Jy
! Component: 200  -  total flux cleaned = 0.0238506 Jy
! Total flux subtracted in 200 components = 0.0238506 Jy
! Clean residual min=-0.008596 max=0.011548 Jy/beam
! Clean residual mean=-0.000012 rms=0.002259 Jy/beam
! Combined flux in latest and established models = 0.78087 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 37 components and 0.78087 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.274372Jy  sigma=0.001493
! Fit after  self-cal, rms=0.274365Jy  sigma=0.001492
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.07     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.16     LA        1.11     MA        1.00*    
!   MC        1.00*    MK        1.01     NL        0.98     ON        1.00*    
!   OV        1.70     PT        1.06     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        0.99     WZ        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.97     GG        1.00*    HN        0.87     
!   KK        0.99     KP        0.97     LA        1.02     MA        1.00*    
!   MC        1.00*    MK        0.95     NL        0.91     ON        1.00*    
!   OV        1.04     PT        1.01     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        0.84     WZ        0.90     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.98     GG        1.00*    HN        0.96     
!   KK        1.00*    KP        1.03     LA        1.01     MA        0.83     
!   MC        1.02     MK        0.98     NL        0.96     ON        1.00     
!   OV        1.02     PT        0.99     SC        0.94     TC        1.00*    
!   TS        0.96     WF        1.05     WZ        1.03     
! 
!  A total of 237 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        1.01     GG        1.00*    HN        1.02     
!   KK        0.94     KP        1.17     LA        1.04     MA        1.00*    
!   MC        0.91     MK        0.91     NL        0.94     ON        0.94     
!   OV        1.56     PT        1.01     SC        1.01     TC        1.00*    
!   TS        0.99     WF        0.84     WZ        0.96     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.13     FD        1.07     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.09     LA        1.04     MA        1.00*    
!   MC        1.00*    MK        1.00     NL        1.00     ON        1.00*    
!   OV        1.52     PT        1.08     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.01     WZ        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.02     GG        1.00*    HN        0.94     
!   KK        0.99     KP        0.98     LA        0.97     MA        1.00*    
!   MC        1.00*    MK        1.01     NL        0.97     ON        1.00*    
!   OV        1.00     PT        1.00     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        0.99     WZ        4.50     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.03     GG        1.00*    HN        0.99     
!   KK        1.00*    KP        1.00     LA        0.97     MA        0.97     
!   MC        1.02     MK        1.07     NL        0.98     ON        1.07     
!   OV        0.98     PT        1.00     SC        0.95     TC        1.00*    
!   TS        1.00*    WF        1.03     WZ        1.02     
! 
!  A total of 237 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.05     GG        1.00*    HN        1.01     
!   KK        1.00     KP        1.05     LA        0.98     MA        0.93     
!   MC        0.98     MK        0.97     NL        0.97     ON        1.04     
!   OV        1.15     PT        1.00     SC        1.03     TC        1.00*    
!   TS        1.00     WF        0.98     WZ        0.95     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.03     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.13     LA        1.02     MA        1.00*    
!   MC        1.00*    MK        1.01     NL        1.05     ON        1.00*    
!   OV        3.29     PT        1.09     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        0.98     WZ        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.98     GG        1.00*    HN        0.97     
!   KK        0.99     KP        0.99     LA        0.97     MA        1.00*    
!   MC        1.00*    MK        0.99     NL        0.97     ON        1.00*    
!   OV        0.85     PT        1.01     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        0.96     WZ        0.86     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.97     GG        1.00*    HN        1.01     
!   KK        1.00*    KP        1.01     LA        0.99     MA        1.03     
!   MC        0.96     MK        1.02     NL        0.98     ON        1.06     
!   OV        0.90     PT        1.02     SC        1.11     TC        1.00*    
!   TS        1.00*    WF        1.03     WZ        1.09     
! 
!  A total of 240 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        0.98     GG        1.00*    HN        1.03     
!   KK        0.99     KP        1.03     LA        0.97     MA        0.97     
!   MC        0.98     MK        0.94     NL        0.98     ON        1.03     
!   OV        1.27     PT        1.03     SC        1.25     TC        1.00*    
!   TS        1.02     WF        1.00     WZ        0.99     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.05     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.09     LA        1.03     MA        1.00*    
!   MC        1.00*    MK        1.07     NL        0.99     ON        1.00*    
!   OV        3.62     PT        1.03     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00     WZ        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.99     GG        1.00*    HN        0.94     
!   KK        1.01     KP        0.96     LA        0.99     MA        1.00*    
!   MC        1.00*    MK        1.02     NL        0.90     ON        1.00*    
!   OV        1.21     PT        0.97     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.01     WZ        1.09     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.99     GG        1.00*    HN        0.98     
!   KK        1.00*    KP        0.98     LA        0.98     MA        1.52     
!   MC        0.96     MK        1.09     NL        0.90     ON        0.99     
!   OV        0.85     PT        0.98     SC        1.11     TC        1.00*    
!   TS        0.95     WF        1.03     WZ        1.01     
! 
!  A total of 213 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        1.00     GG        1.00*    HN        1.12     
!   KK        0.98     KP        1.03     LA        0.99     MA        1.24     
!   MC        0.93     MK        1.00     NL        0.91     ON        0.97     
!   OV        1.10     PT        0.97     SC        1.20     TC        1.00*    
!   TS        1.00     WF        0.99     WZ        1.03     
! 
! 
! Fit before self-cal, rms=0.274365Jy  sigma=0.001492
! Fit after  self-cal, rms=0.292428Jy  sigma=0.001387
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.633 mas, bmaj=3.256 mas, bpa=71.94 degrees
! Estimated noise=457.057 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.00137118 Jy
! Component: 100  -  total flux cleaned = -0.00179897 Jy
! Component: 150  -  total flux cleaned = -0.0019758 Jy
! Component: 200  -  total flux cleaned = -0.0019111 Jy
! Total flux subtracted in 200 components = -0.0019111 Jy
! Clean residual min=-0.005142 max=0.006447 Jy/beam
! Clean residual mean=-0.000073 rms=0.001544 Jy/beam
! Combined flux in latest and established models = 0.778959 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 42 components and 0.778959 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.292333Jy  sigma=0.001387
! Fit after  self-cal, rms=0.292668Jy  sigma=0.001386
! 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.292668Jy  sigma=0.001386
! Fit after  self-cal, rms=0.295815Jy  sigma=0.001373
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.631 mas, bmaj=3.264 mas, bpa=72.06 degrees
! Estimated noise=457.062 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00132935 Jy
! Component: 100  -  total flux cleaned = -0.00153259 Jy
! Component: 150  -  total flux cleaned = -0.00136461 Jy
! Component: 200  -  total flux cleaned = -0.00122206 Jy
! Total flux subtracted in 200 components = -0.00122206 Jy
! Clean residual min=-0.004421 max=0.005196 Jy/beam
! Clean residual mean=-0.000025 rms=0.001238 Jy/beam
! Combined flux in latest and established models = 0.777737 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 45 components and 0.777737 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.295735Jy  sigma=0.001373
! Fit after  self-cal, rms=0.295775Jy  sigma=0.001372
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 (-9.5, -3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00262584 Jy
! Component: 100  -  total flux cleaned = 0.00297166 Jy
! Component: 150  -  total flux cleaned = 0.00296976 Jy
! Component: 200  -  total flux cleaned = 0.00296933 Jy
! Total flux subtracted in 200 components = 0.00296933 Jy
! Clean residual min=-0.004374 max=0.003912 Jy/beam
! Clean residual mean=-0.000041 rms=0.001213 Jy/beam
! Combined flux in latest and established models = 0.780707 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 59 components and 0.780707 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.295618Jy  sigma=0.001372
! Fit after  self-cal, rms=0.295609Jy  sigma=0.001371
! 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.295609Jy  sigma=0.001371
! Fit after  self-cal, rms=0.318456Jy  sigma=0.001337
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.629 mas, bmaj=3.272 mas, bpa=72.25 degrees
! Estimated noise=457.585 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00046138 Jy
! Component: 100  -  total flux cleaned = 0.000162966 Jy
! Component: 150  -  total flux cleaned = 0.000382194 Jy
! Component: 200  -  total flux cleaned = 0.000446751 Jy
! Total flux subtracted in 200 components = 0.000446751 Jy
! Clean residual min=-0.003283 max=0.002492 Jy/beam
! Clean residual mean=-0.000072 rms=0.000651 Jy/beam
! Combined flux in latest and established models = 0.781154 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 68 components and 0.781153 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.318404Jy  sigma=0.001336
! Fit after  self-cal, rms=0.318528Jy  sigma=0.001336
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.000153805 Jy
! Component: 100  -  total flux cleaned = 2.07203e-05 Jy
! Component: 150  -  total flux cleaned = 7.34088e-05 Jy
! Component: 200  -  total flux cleaned = 7.43549e-05 Jy
! Total flux subtracted in 200 components = 7.43549e-05 Jy
! Clean residual min=-0.003313 max=0.002459 Jy/beam
! Clean residual mean=-0.000072 rms=0.000642 Jy/beam
! Combined flux in latest and established models = 0.781228 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 75 components and 0.781228 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.318503Jy  sigma=0.001336
! Fit after  self-cal, rms=0.318500Jy  sigma=0.001336
! 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.318500Jy  sigma=0.001336
! Fit after  self-cal, rms=0.319181Jy  sigma=0.001336
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.888 mas, bmaj=10.94 mas, bpa=86.07 degrees
! Estimated noise=604.853 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000689076 Jy
! Component: 100  -  total flux cleaned = 0.000634035 Jy
! Component: 150  -  total flux cleaned = 0.000564226 Jy
! Component: 200  -  total flux cleaned = 0.000545816 Jy
! Total flux subtracted in 200 components = 0.000545816 Jy
! Clean residual min=-0.002542 max=0.002442 Jy/beam
! Clean residual mean=-0.000176 rms=0.000775 Jy/beam
! Combined flux in latest and established models = 0.781774 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 80 components and 0.781774 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.319179Jy  sigma=0.001336
! Fit after  self-cal, rms=0.319180Jy  sigma=0.001336
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 = 8.02254e-05 Jy
! Component: 100  -  total flux cleaned = 6.06022e-05 Jy
! Component: 150  -  total flux cleaned = 9.86928e-06 Jy
! Component: 200  -  total flux cleaned = 9.88594e-06 Jy
! Total flux subtracted in 200 components = 9.88594e-06 Jy
! Clean residual min=-0.002544 max=0.002423 Jy/beam
! Clean residual mean=-0.000176 rms=0.000768 Jy/beam
! Combined flux in latest and established models = 0.781784 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 84 components and 0.781784 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.319179Jy  sigma=0.001336
! Fit after  self-cal, rms=0.319177Jy  sigma=0.001336
! 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.627 mas, bmaj=3.278 mas, bpa=72.29 degrees
! Estimated noise=457.646 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.627 x 3.278 at 72.29 degrees (North through East)
! Clean map  min=-0.0030907  max=0.72442 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.319177Jy  sigma=0.001336
! Fit after  self-cal, rms=0.349220Jy  sigma=0.001250
! Inverting map and beam 
! Estimated beam: bmin=2.627 mas, bmaj=3.273 mas, bpa=72.3 degrees
! Estimated noise=457.151 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00125566 Jy
! Component: 100  -  total flux cleaned = -0.00125737 Jy
! Component: 150  -  total flux cleaned = -0.00120674 Jy
! Component: 200  -  total flux cleaned = -0.00115929 Jy
! Total flux subtracted in 200 components = -0.00115929 Jy
! Clean residual min=-0.002678 max=0.002233 Jy/beam
! Clean residual mean=-0.000070 rms=0.000586 Jy/beam
! Combined flux in latest and established models = 0.780624 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 89 components and 0.780624 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.349203Jy  sigma=0.001249
! Fit after  self-cal, rms=0.349201Jy  sigma=0.001249
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -7.90696e-05 Jy
! Component: 100  -  total flux cleaned = 4.91605e-05 Jy
! Component: 150  -  total flux cleaned = 0.00012684 Jy
! Component: 200  -  total flux cleaned = 0.00016544 Jy
! Total flux subtracted in 200 components = 0.00016544 Jy
! Clean residual min=-0.002668 max=0.002179 Jy/beam
! Clean residual mean=-0.000071 rms=0.000582 Jy/beam
! Combined flux in latest and established models = 0.78079 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 91 components and 0.78079 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.349189Jy  sigma=0.001249
! Fit after  self-cal, rms=0.349188Jy  sigma=0.001249
! 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.349188Jy  sigma=0.001249
! Fit after  self-cal, rms=0.349553Jy  sigma=0.001249
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.073 mas, bmaj=2.167 mas, bpa=45.47 degrees
! Estimated noise=958.528 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.546496 Jy
! Component: 100  -  total flux cleaned = 0.667494 Jy
! Component: 150  -  total flux cleaned = 0.709619 Jy
! Component: 200  -  total flux cleaned = 0.733092 Jy
! Total flux subtracted in 200 components = 0.733092 Jy
! Clean residual min=-0.006041 max=0.012201 Jy/beam
! Clean residual mean=0.000010 rms=0.001501 Jy/beam
! Combined flux in latest and established models = 0.733092 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 15 model components to the UV plane model.
! The established model now contains 15 components and 0.733092 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.627 mas, bmaj=3.277 mas, bpa=72.33 degrees
! Estimated noise=456.976 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.0231429 Jy
! Component: 100  -  total flux cleaned = 0.0335961 Jy
! Component: 150  -  total flux cleaned = 0.0392427 Jy
! Component: 200  -  total flux cleaned = 0.0426742 Jy
! Total flux subtracted in 200 components = 0.0426742 Jy
! Clean residual min=-0.002441 max=0.002409 Jy/beam
! Clean residual mean=-0.000044 rms=0.000613 Jy/beam
! Combined flux in latest and established models = 0.775766 Jy
! Adding 35 model components to the UV plane model.
! The established model now contains 46 components and 0.775766 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=8.888 mas, bmaj=10.94 mas, bpa=86.15 degrees
! Estimated noise=603.736 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00293228 Jy
! Component: 100  -  total flux cleaned = 0.00422813 Jy
! Component: 150  -  total flux cleaned = 0.00467328 Jy
! Component: 200  -  total flux cleaned = 0.00475166 Jy
! Total flux subtracted in 200 components = 0.00475166 Jy
! Clean residual min=-0.002264 max=0.002123 Jy/beam
! Clean residual mean=-0.000173 rms=0.000719 Jy/beam
! Combined flux in latest and established models = 0.780518 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 = 3.30207e-05 Jy
! Component: 100  -  total flux cleaned = 4.76971e-05 Jy
! Component: 150  -  total flux cleaned = 6.07744e-05 Jy
! Component: 200  -  total flux cleaned = 6.12036e-05 Jy
! Total flux subtracted in 200 components = 6.12036e-05 Jy
! Clean residual min=-0.002281 max=0.002099 Jy/beam
! Clean residual mean=-0.000174 rms=0.000715 Jy/beam
! Combined flux in latest and established models = 0.780579 Jy
! Adding 20 model components to the UV plane model.
! The established model now contains 57 components and 0.780579 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.627 mas, bmaj=3.277 mas, bpa=72.33 degrees
! Estimated noise=456.976 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000196015 Jy
! Component: 100  -  total flux cleaned = -0.00013789 Jy
! Component: 150  -  total flux cleaned = -0.000189307 Jy
! Component: 200  -  total flux cleaned = -0.000188619 Jy
! Total flux subtracted in 200 components = -0.000188619 Jy
! Clean residual min=-0.002516 max=0.001994 Jy/beam
! Clean residual mean=-0.000069 rms=0.000574 Jy/beam
! Combined flux in latest and established models = 0.78039 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 70 components and 0.78039 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.349554Jy  sigma=0.001249
! Fit after  self-cal, rms=0.349551Jy  sigma=0.001249
wmodel J1357+7643_S_2003_05_07_pus_map.mod
! Writing 70 model components to file: J1357+7643_S_2003_05_07_pus_map.mod
wobs J1357+7643_S_2003_05_07_pus_uvs.fits
! Writing UV FITS file: J1357+7643_S_2003_05_07_pus_uvs.fits
wwins J1357+7643_S_2003_05_07_pus_map.win
! wwins: Wrote 3 windows to J1357+7643_S_2003_05_07_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.00111147 Jy
! Component: 100  -  total flux cleaned = -0.00182616 Jy
! Component: 150  -  total flux cleaned = -0.00250406 Jy
! Component: 200  -  total flux cleaned = -0.0029407 Jy
! Component: 250  -  total flux cleaned = -0.00325956 Jy
! Component: 300  -  total flux cleaned = -0.00353644 Jy
! Component: 350  -  total flux cleaned = -0.0037409 Jy
! Component: 400  -  total flux cleaned = -0.00407565 Jy
! Component: 450  -  total flux cleaned = -0.00430635 Jy
! Component: 500  -  total flux cleaned = -0.00456632 Jy
! Component: 550  -  total flux cleaned = -0.00479061 Jy
! Component: 600  -  total flux cleaned = -0.00498054 Jy
! Component: 650  -  total flux cleaned = -0.00516857 Jy
! Component: 700  -  total flux cleaned = -0.00541655 Jy
! Component: 750  -  total flux cleaned = -0.00563118 Jy
! Component: 800  -  total flux cleaned = -0.00596406 Jy
! Component: 850  -  total flux cleaned = -0.00611308 Jy
! Component: 900  -  total flux cleaned = -0.00626132 Jy
! Component: 950  -  total flux cleaned = -0.00637857 Jy
! Component: 1000  -  total flux cleaned = -0.00649497 Jy
! Component: 1050  -  total flux cleaned = -0.0066967 Jy
! Component: 1100  -  total flux cleaned = -0.00675365 Jy
! Component: 1150  -  total flux cleaned = -0.00689531 Jy
! Component: 1200  -  total flux cleaned = -0.00695133 Jy
! Component: 1250  -  total flux cleaned = -0.007007 Jy
! Component: 1300  -  total flux cleaned = -0.00717285 Jy
! Component: 1350  -  total flux cleaned = -0.00720022 Jy
! Component: 1400  -  total flux cleaned = -0.00733626 Jy
! Component: 1450  -  total flux cleaned = -0.00733623 Jy
! Component: 1500  -  total flux cleaned = -0.00741662 Jy
! Component: 1550  -  total flux cleaned = -0.00741687 Jy
! Component: 1600  -  total flux cleaned = -0.00757622 Jy
! Component: 1650  -  total flux cleaned = -0.00768135 Jy
! Component: 1700  -  total flux cleaned = -0.00765521 Jy
! Component: 1750  -  total flux cleaned = -0.00770722 Jy
! Component: 1800  -  total flux cleaned = -0.00778475 Jy
! Component: 1850  -  total flux cleaned = -0.0077849 Jy
! Component: 1900  -  total flux cleaned = -0.00783611 Jy
! Component: 1950  -  total flux cleaned = -0.00786148 Jy
! Component: 2000  -  total flux cleaned = -0.00791197 Jy
! Total flux subtracted in 2048 components = -0.00793694 Jy
! Clean residual min=-0.001458 max=0.001479 Jy/beam
! Clean residual mean=-0.000019 rms=0.000468 Jy/beam
! Combined flux in latest and established models = 0.772453 Jy
keep
! Adding 152 model components to the UV plane model.
! The established model now contains 222 components and 0.772453 Jy
wmap "J1357+7643_S_2003_05_07_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.627 x 3.277 at 72.33 degrees (North through East)
! Clean map  min=-0.0022289  max=0.72514 Jy/beam
! Writing clean map to FITS file: J1357+7643_S_2003_05_07_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.725139 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000469287 
device "J1357+7643_S_2003_05_07_pus\_map.eps/VPS"
! Attempting to open device: 'J1357+7643_S_2003_05_07_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.19415 0.19415 0.388301 0.776602 1.5532 3.10641 6.21282 12.4256 24.8513 49.7025 99.4051
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0014 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.725 
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.627 x 3.277 at 72.33 degrees (North through East)
! Clean map  min=-0.0022289  max=0.72514 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1357+7643_S_2003_05_07_pus\_map.gif/vgif"
! Attempting to open device: 'J1357+7643_S_2003_05_07_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1357+7643_S_2003_05_07_pus_uvs.log closed on Sun Dec 24 10:55:06 2006