! Started logfile: J1357+7643_S_2003_09_17_pus_uvs.log on Mon May 21 21:54:07 2007
obs J1357+7643_S_2003_09_17_pus_uva.fits
! Reading UV FITS file: J1357+7643_S_2003_09_17_pus_uva.fits
! AN table 1: 132 integrations on 120 of 120 possible baselines.
! AN table 2: 173 integrations on 120 of 120 possible baselines.
! AN table 3: 103 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.235703 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1357+7643
! 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.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 1733 lines of history.
! 
! Reading 46160 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 1572 telescope corrections were flagged in sub-array 1.
!  A total of 1350 telescope corrections were flagged in sub-array 2.
!  A total of 895 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1572 telescope corrections were flagged in sub-array 1.
!  A total of 1350 telescope corrections were flagged in sub-array 2.
!  A total of 895 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1572 telescope corrections were flagged in sub-array 1.
!  A total of 1350 telescope corrections were flagged in sub-array 2.
!  A total of 895 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1572 telescope corrections were flagged in sub-array 1.
!  A total of 1350 telescope corrections were flagged in sub-array 2.
!  A total of 895 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.875112Jy  sigma=0.005157
! Fit after  self-cal, rms=0.448312Jy  sigma=0.002341
! 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.815 mas, bmaj=2.349 mas, bpa=-84.11 degrees
! Estimated noise=1154.87 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.553882 Jy
! Component: 100  -  total flux cleaned = 0.676909 Jy
! Total flux subtracted in 100 components = 0.676909 Jy
! Clean residual min=-0.017739 max=0.042821 Jy/beam
! Clean residual mean=0.000103 rms=0.004052 Jy/beam
! Combined flux in latest and established models = 0.676909 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.676909 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.367201Jy  sigma=0.001571
! Fit after  self-cal, rms=0.367172Jy  sigma=0.001571
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0467454 Jy
! Component: 100  -  total flux cleaned = 0.0733 Jy
! Total flux subtracted in 100 components = 0.0733 Jy
! Clean residual min=-0.016646 max=0.017475 Jy/beam
! Clean residual mean=0.000036 rms=0.003420 Jy/beam
! Combined flux in latest and established models = 0.750209 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 13 components and 0.750209 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.359673Jy  sigma=0.001511
! Fit after  self-cal, rms=0.359514Jy  sigma=0.001511
! 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.182 mas, bmaj=2.878 mas, bpa=-86.67 degrees
! Estimated noise=578.511 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.021537 Jy
! Component: 100  -  total flux cleaned = 0.0342407 Jy
! Component: 150  -  total flux cleaned = 0.04195 Jy
! Component: 200  -  total flux cleaned = 0.0466815 Jy
! Total flux subtracted in 200 components = 0.0466815 Jy
! Clean residual min=-0.023654 max=0.019785 Jy/beam
! Clean residual mean=-0.000271 rms=0.004862 Jy/beam
! Combined flux in latest and established models = 0.796891 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 25 components and 0.796891 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.358321Jy  sigma=0.001501
! Fit after  self-cal, rms=0.358234Jy  sigma=0.001501
! 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:
!   FD        0.95     GC        1.00*    HN        1.00*    KP        0.88     
!   LA        1.00*    MK        1.00*    NL        0.96     NY        1.01     
!   ON        0.98     OV        0.98     PT        1.00*    SC        0.99     
!   TS        0.97     KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 69 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.17     GC        1.07     HN        0.98     KP        0.97     
!   LA        0.96     MK        1.00     NL        0.79     NY        0.98     
!   ON        0.92     OV        0.75     PT        0.97     SC        1.06     
!   TS        1.00     KK        0.99     WZ        0.96     WF        1.00     
! 
!  A total of 102 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.96     GC        1.02     HN        1.00*    KP        1.06     
!   LA        0.91     MK        1.04     NL        0.95     NY        0.98     
!   ON        0.98     OV        1.22     PT        0.91     SC        1.00*    
!   TS        1.00     KK        0.97     WZ        1.00     WF        0.98     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.93     GC        1.00*    HN        1.00*    KP        0.99     
!   LA        1.00*    MK        1.00*    NL        1.01     NY        1.01     
!   ON        0.97     OV        0.92     PT        1.00*    SC        1.07     
!   TS        1.01     KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 69 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.22     GC        1.04     HN        1.03     KP        1.03     
!   LA        0.97     MK        1.07     NL        0.95     NY        1.00     
!   ON        0.94     OV        0.84     PT        0.95     SC        1.14     
!   TS        0.99     KK        0.99     WZ        0.94     WF        0.94     
! 
!  A total of 102 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.98     GC        0.99     HN        1.00*    KP        1.18     
!   LA        0.92     MK        1.10     NL        0.98     NY        1.00     
!   ON        0.99     OV        1.21     PT        0.90     SC        1.00*    
!   TS        1.00     KK        1.03     WZ        0.91     WF        0.99     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.95     GC        1.00*    HN        1.00*    KP        0.99     
!   LA        1.00*    MK        1.00*    NL        0.94     NY        0.99     
!   ON        1.00     OV        0.91     PT        1.00*    SC        1.07     
!   TS        1.01     KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 69 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.15     GC        1.09     HN        1.02     KP        1.02     
!   LA        0.94     MK        1.02     NL        0.92     NY        0.96     
!   ON        1.01     OV        0.87     PT        1.00     SC        1.13     
!   TS        1.04     KK        1.01     WZ        0.93     WF        0.99     
! 
!  A total of 102 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.96     GC        1.04     HN        1.00*    KP        1.11     
!   LA        0.88     MK        1.09     NL        0.93     NY        0.96     
!   ON        0.96     OV        1.75     PT        0.95     SC        1.00*    
!   TS        1.08     KK        1.03     WZ        0.95     WF        0.96     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.93     GC        1.00*    HN        1.00*    KP        0.99     
!   LA        1.00*    MK        1.00*    NL        0.96     NY        1.00     
!   ON        0.98     OV        0.85     PT        1.00*    SC        1.00     
!   TS        1.09     KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 69 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.11     GC        1.11     HN        1.06     KP        1.03     
!   LA        0.98     MK        0.94     NL        0.94     NY        0.95     
!   ON        0.97     OV        0.86     PT        0.95     SC        1.05     
!   TS        1.02     KK        1.02     WZ        1.00     WF        0.99     
! 
!  A total of 102 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.95     GC        1.06     HN        1.00*    KP        1.14     
!   LA        0.93     MK        1.02     NL        0.95     NY        0.96     
!   ON        0.98     OV        2.08     PT        0.90     SC        1.00*    
!   TS        1.04     KK        1.05     WZ        1.01     WF        1.00     
! 
! 
! Fit before self-cal, rms=0.358234Jy  sigma=0.001501
! Fit after  self-cal, rms=0.351255Jy  sigma=0.001391
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.196 mas, bmaj=2.873 mas, bpa=-86.34 degrees
! Estimated noise=581.013 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.000560911 Jy
! Component: 100  -  total flux cleaned = 0.000422356 Jy
! Component: 150  -  total flux cleaned = 0.000298502 Jy
! Component: 200  -  total flux cleaned = 0.000186517 Jy
! Total flux subtracted in 200 components = 0.000186517 Jy
! Clean residual min=-0.007790 max=0.007360 Jy/beam
! Clean residual mean=-0.000261 rms=0.001660 Jy/beam
! Combined flux in latest and established models = 0.797077 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 33 components and 0.797077 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.351127Jy  sigma=0.001390
! Fit after  self-cal, rms=0.351426Jy  sigma=0.001389
! 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.351426Jy  sigma=0.001389
! Fit after  self-cal, rms=0.347951Jy  sigma=0.001369
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.198 mas, bmaj=2.879 mas, bpa=-86.63 degrees
! Estimated noise=581.069 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00321546 Jy
! Component: 100  -  total flux cleaned = -0.00378519 Jy
! Component: 150  -  total flux cleaned = -0.00396956 Jy
! Component: 200  -  total flux cleaned = -0.00405132 Jy
! Total flux subtracted in 200 components = -0.00405132 Jy
! Clean residual min=-0.004467 max=0.004538 Jy/beam
! Clean residual mean=-0.000087 rms=0.001052 Jy/beam
! Combined flux in latest and established models = 0.793026 Jy
selfcal
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 33 components and 0.793026 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.347869Jy  sigma=0.001368
! Fit after  self-cal, rms=0.347874Jy  sigma=0.001368
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.000392146 Jy
! Component: 100  -  total flux cleaned = -0.000524322 Jy
! Component: 150  -  total flux cleaned = -0.000638164 Jy
! Component: 200  -  total flux cleaned = -0.000734877 Jy
! Total flux subtracted in 200 components = -0.000734877 Jy
! Clean residual min=-0.004305 max=0.004638 Jy/beam
! Clean residual mean=-0.000085 rms=0.001044 Jy/beam
! Combined flux in latest and established models = 0.792291 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 33 components and 0.792291 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.347845Jy  sigma=0.001368
! Fit after  self-cal, rms=0.347852Jy  sigma=0.001368
! Inverting map 
! Added new window around map position (-4, 3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00411523 Jy
! Component: 100  -  total flux cleaned = 0.00439744 Jy
! Component: 150  -  total flux cleaned = 0.00446733 Jy
! Component: 200  -  total flux cleaned = 0.00446441 Jy
! Total flux subtracted in 200 components = 0.00446441 Jy
! Clean residual min=-0.004020 max=0.003785 Jy/beam
! Clean residual mean=-0.000116 rms=0.000982 Jy/beam
! Combined flux in latest and established models = 0.796756 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 46 components and 0.796756 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.347781Jy  sigma=0.001368
! Fit after  self-cal, rms=0.347787Jy  sigma=0.001368
! 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.347787Jy  sigma=0.001368
! Fit after  self-cal, rms=0.347951Jy  sigma=0.001367
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.203 mas, bmaj=2.879 mas, bpa=-86.66 degrees
! Estimated noise=581.824 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00139147 Jy
! Component: 100  -  total flux cleaned = -0.00154841 Jy
! Component: 150  -  total flux cleaned = -0.00161867 Jy
! Component: 200  -  total flux cleaned = -0.00161713 Jy
! Total flux subtracted in 200 components = -0.00161713 Jy
! Clean residual min=-0.003817 max=0.003751 Jy/beam
! Clean residual mean=-0.000105 rms=0.000945 Jy/beam
! Combined flux in latest and established models = 0.795138 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 50 components and 0.795138 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.347909Jy  sigma=0.001367
! Fit after  self-cal, rms=0.347910Jy  sigma=0.001367
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.000189264 Jy
! Component: 100  -  total flux cleaned = 0.00013633 Jy
! Component: 150  -  total flux cleaned = 8.80316e-05 Jy
! Component: 200  -  total flux cleaned = 8.80835e-05 Jy
! Total flux subtracted in 200 components = 8.80835e-05 Jy
! Clean residual min=-0.003762 max=0.003699 Jy/beam
! Clean residual mean=-0.000107 rms=0.000933 Jy/beam
! Combined flux in latest and established models = 0.795227 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 55 components and 0.795227 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.347890Jy  sigma=0.001367
! Fit after  self-cal, rms=0.347897Jy  sigma=0.001367
! 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.347897Jy  sigma=0.001367
! Fit after  self-cal, rms=0.348371Jy  sigma=0.001367
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.853 mas, bmaj=9.759 mas, bpa=50.78 degrees
! Estimated noise=906.283 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000472844 Jy
! Component: 100  -  total flux cleaned = -0.000462408 Jy
! Component: 150  -  total flux cleaned = -0.000499986 Jy
! Component: 200  -  total flux cleaned = -0.000533099 Jy
! Total flux subtracted in 200 components = -0.000533099 Jy
! Clean residual min=-0.004443 max=0.003155 Jy/beam
! Clean residual mean=-0.000412 rms=0.001149 Jy/beam
! Combined flux in latest and established models = 0.794693 Jy
selfcal
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 59 components and 0.794693 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.348386Jy  sigma=0.001367
! Fit after  self-cal, rms=0.348373Jy  sigma=0.001367
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.000177532 Jy
! Component: 100  -  total flux cleaned = -0.000178027 Jy
! Component: 150  -  total flux cleaned = -0.000208445 Jy
! Component: 200  -  total flux cleaned = -0.000233788 Jy
! Total flux subtracted in 200 components = -0.000233788 Jy
! Clean residual min=-0.004403 max=0.003157 Jy/beam
! Clean residual mean=-0.000404 rms=0.001148 Jy/beam
! Combined flux in latest and established models = 0.79446 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 61 components and 0.79446 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.348384Jy  sigma=0.001367
! Fit after  self-cal, rms=0.348382Jy  sigma=0.001367
! 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.206 mas, bmaj=2.88 mas, bpa=-86.69 degrees
! Estimated noise=582.501 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.206 x 2.88 at -86.69 degrees (North through East)
! Clean map  min=-0.0036331  max=0.72459 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.348382Jy  sigma=0.001367
! Fit after  self-cal, rms=0.481757Jy  sigma=0.001243
! Inverting map and beam 
! Estimated beam: bmin=2.202 mas, bmaj=2.882 mas, bpa=-86.62 degrees
! Estimated noise=582.729 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000309331 Jy
! Component: 100  -  total flux cleaned = -0.000543607 Jy
! Component: 150  -  total flux cleaned = -0.000637861 Jy
! Component: 200  -  total flux cleaned = -0.000719567 Jy
! Total flux subtracted in 200 components = -0.000719567 Jy
! Clean residual min=-0.003334 max=0.003365 Jy/beam
! Clean residual mean=-0.000082 rms=0.000785 Jy/beam
! Combined flux in latest and established models = 0.79374 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 74 components and 0.79374 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.481707Jy  sigma=0.001242
! Fit after  self-cal, rms=0.481714Jy  sigma=0.001242
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 4.49292e-05 Jy
! Component: 100  -  total flux cleaned = 9.31735e-06 Jy
! Component: 150  -  total flux cleaned = 9.28341e-06 Jy
! Component: 200  -  total flux cleaned = 8.08698e-06 Jy
! Total flux subtracted in 200 components = 8.08698e-06 Jy
! Clean residual min=-0.003285 max=0.003460 Jy/beam
! Clean residual mean=-0.000082 rms=0.000783 Jy/beam
! Combined flux in latest and established models = 0.793748 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 81 components and 0.793748 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.481695Jy  sigma=0.001242
! Fit after  self-cal, rms=0.481695Jy  sigma=0.001242
! Inverting map 
! Added new window around map position (-5.5, -6.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00316693 Jy
! Component: 100  -  total flux cleaned = 0.00401648 Jy
! Component: 150  -  total flux cleaned = 0.00396552 Jy
! Component: 200  -  total flux cleaned = 0.00391696 Jy
! Total flux subtracted in 200 components = 0.00391696 Jy
! Clean residual min=-0.003035 max=0.002873 Jy/beam
! Clean residual mean=-0.000108 rms=0.000741 Jy/beam
! Combined flux in latest and established models = 0.797665 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 96 components and 0.797665 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.481637Jy  sigma=0.001242
! Fit after  self-cal, rms=0.481633Jy  sigma=0.001242
! 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.481633Jy  sigma=0.001242
! Fit after  self-cal, rms=0.521789Jy  sigma=0.001242
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.839 mas, bmaj=2.35 mas, bpa=-84.58 degrees
! Estimated noise=1166.93 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.556089 Jy
! Component: 100  -  total flux cleaned = 0.677818 Jy
! Component: 150  -  total flux cleaned = 0.717926 Jy
! Component: 200  -  total flux cleaned = 0.740032 Jy
! Total flux subtracted in 200 components = 0.740032 Jy
! Clean residual min=-0.005589 max=0.011704 Jy/beam
! Clean residual mean=0.000048 rms=0.001582 Jy/beam
! Combined flux in latest and established models = 0.740032 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.740032 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.203 mas, bmaj=2.883 mas, bpa=-86.67 degrees
! Estimated noise=584.032 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.0227408 Jy
! Component: 100  -  total flux cleaned = 0.0351445 Jy
! Component: 150  -  total flux cleaned = 0.0431017 Jy
! Component: 200  -  total flux cleaned = 0.0485913 Jy
! Total flux subtracted in 200 components = 0.0485913 Jy
! Clean residual min=-0.003369 max=0.004319 Jy/beam
! Clean residual mean=-0.000042 rms=0.000875 Jy/beam
! Combined flux in latest and established models = 0.788623 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 34 components and 0.788624 Jy
! Inverting map 
! Added new window around map position (-4, -1.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0044081 Jy
! Component: 100  -  total flux cleaned = 0.00743583 Jy
! Component: 150  -  total flux cleaned = 0.00967641 Jy
! Component: 200  -  total flux cleaned = 0.0103208 Jy
! Total flux subtracted in 200 components = 0.0103208 Jy
! Clean residual min=-0.003055 max=0.002770 Jy/beam
! Clean residual mean=-0.000109 rms=0.000751 Jy/beam
! Combined flux in latest and established models = 0.798944 Jy
! Adding 28 model components to the UV plane model.
! The established model now contains 54 components and 0.798944 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.859 mas, bmaj=9.752 mas, bpa=50.84 degrees
! Estimated noise=908.273 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00158867 Jy
! Component: 100  -  total flux cleaned = 0.00164081 Jy
! Component: 150  -  total flux cleaned = 0.00167553 Jy
! Component: 200  -  total flux cleaned = 0.00169755 Jy
! Total flux subtracted in 200 components = 0.00169755 Jy
! Clean residual min=-0.003946 max=0.002893 Jy/beam
! Clean residual mean=-0.000453 rms=0.001165 Jy/beam
! Combined flux in latest and established models = 0.800642 Jy
flux_cutoff = imstat(rms) * dynam
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  keep
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.74642e-05 Jy
! Component: 100  -  total flux cleaned = 3.34437e-05 Jy
! Component: 150  -  total flux cleaned = 4.7207e-05 Jy
! Component: 200  -  total flux cleaned = 4.68282e-05 Jy
! Total flux subtracted in 200 components = 4.68282e-05 Jy
! Clean residual min=-0.003938 max=0.002919 Jy/beam
! Clean residual mean=-0.000454 rms=0.001161 Jy/beam
! Combined flux in latest and established models = 0.800689 Jy
! Adding 24 model components to the UV plane model.
! The established model now contains 75 components and 0.800689 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.203 mas, bmaj=2.883 mas, bpa=-86.67 degrees
! Estimated noise=584.032 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000436499 Jy
! Component: 100  -  total flux cleaned = -0.000438517 Jy
! Component: 150  -  total flux cleaned = -0.000393172 Jy
! Component: 200  -  total flux cleaned = -0.000352942 Jy
! Total flux subtracted in 200 components = -0.000352942 Jy
! Clean residual min=-0.002990 max=0.002771 Jy/beam
! Clean residual mean=-0.000118 rms=0.000731 Jy/beam
! Combined flux in latest and established models = 0.800336 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 86 components and 0.800336 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.521719Jy  sigma=0.001242
! Fit after  self-cal, rms=0.521714Jy  sigma=0.001242
wmodel J1357+7643_S_2003_09_17_pus_map.mod
! Writing 86 model components to file: J1357+7643_S_2003_09_17_pus_map.mod
wobs J1357+7643_S_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J1357+7643_S_2003_09_17_pus_uvs.fits
wwins J1357+7643_S_2003_09_17_pus_map.win
! wwins: Wrote 4 windows to J1357+7643_S_2003_09_17_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.000868778 Jy
! Component: 100  -  total flux cleaned = -0.00141833 Jy
! Component: 150  -  total flux cleaned = -0.00199668 Jy
! Component: 200  -  total flux cleaned = -0.00255819 Jy
! Component: 250  -  total flux cleaned = -0.00319688 Jy
! Component: 300  -  total flux cleaned = -0.00390905 Jy
! Component: 350  -  total flux cleaned = -0.00434452 Jy
! Component: 400  -  total flux cleaned = -0.00477318 Jy
! Component: 450  -  total flux cleaned = -0.00527924 Jy
! Component: 500  -  total flux cleaned = -0.00577663 Jy
! Component: 550  -  total flux cleaned = -0.00622541 Jy
! Component: 600  -  total flux cleaned = -0.00666724 Jy
! Component: 650  -  total flux cleaned = -0.00714151 Jy
! Component: 700  -  total flux cleaned = -0.00753143 Jy
! Component: 750  -  total flux cleaned = -0.00795493 Jy
! Component: 800  -  total flux cleaned = -0.00822114 Jy
! Component: 850  -  total flux cleaned = -0.00855962 Jy
! Component: 900  -  total flux cleaned = -0.00870854 Jy
! Component: 950  -  total flux cleaned = -0.00889286 Jy
! Component: 1000  -  total flux cleaned = -0.0090757 Jy
! Component: 1050  -  total flux cleaned = -0.00932871 Jy
! Component: 1100  -  total flux cleaned = -0.0094716 Jy
! Component: 1150  -  total flux cleaned = -0.00972022 Jy
! Component: 1200  -  total flux cleaned = -0.00982564 Jy
! Component: 1250  -  total flux cleaned = -0.0101047 Jy
! Component: 1300  -  total flux cleaned = -0.0101738 Jy
! Component: 1350  -  total flux cleaned = -0.0103457 Jy
! Component: 1400  -  total flux cleaned = -0.0104822 Jy
! Component: 1450  -  total flux cleaned = -0.0106853 Jy
! Component: 1500  -  total flux cleaned = -0.0107526 Jy
! Component: 1550  -  total flux cleaned = -0.0110193 Jy
! Component: 1600  -  total flux cleaned = -0.0111516 Jy
! Component: 1650  -  total flux cleaned = -0.0113159 Jy
! Component: 1700  -  total flux cleaned = -0.0115116 Jy
! Component: 1750  -  total flux cleaned = -0.0116734 Jy
! Component: 1800  -  total flux cleaned = -0.0117378 Jy
! Component: 1850  -  total flux cleaned = -0.0119297 Jy
! Component: 1900  -  total flux cleaned = -0.0120887 Jy
! Component: 1950  -  total flux cleaned = -0.012215 Jy
! Component: 2000  -  total flux cleaned = -0.012309 Jy
! Total flux subtracted in 2048 components = -0.0124964 Jy
! Clean residual min=-0.001719 max=0.001791 Jy/beam
! Clean residual mean=-0.000054 rms=0.000573 Jy/beam
! Combined flux in latest and established models = 0.787839 Jy
keep
! Adding 166 model components to the UV plane model.
! The established model now contains 252 components and 0.787839 Jy
wmap "J1357+7643_S_2003_09_17_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.203 x 2.883 at -86.67 degrees (North through East)
! Clean map  min=-0.0025265  max=0.72666 Jy/beam
! Writing clean map to FITS file: J1357+7643_S_2003_09_17_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.726662 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000575065 
device "J1357+7643_S_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J1357+7643_S_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.237413 0.237413 0.474827 0.949654 1.89931 3.79862 7.59723 15.1945 30.3889 60.7778
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0017 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.726 
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.203 x 2.883 at -86.67 degrees (North through East)
! Clean map  min=-0.0025265  max=0.72666 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1357+7643_S_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J1357+7643_S_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1357+7643_S_2003_09_17_pus_uvs.log closed on Mon May 21 21:56:13 2007