! Started logfile: J1357+7643_S_1999_05_10_pus_uvs.log on Mon Jan 21 17:40:23 2008
obs J1357+7643_S_1999_05_10_pus_uva.fits
! Reading UV FITS file: J1357+7643_S_1999_05_10_pus_uva.fits
! AN table 1: 100 integrations on 153 of 153 possible baselines.
! AN table 2: 11 integrations on 153 of 153 possible baselines.
! AN table 3: 478 integrations on 153 of 153 possible baselines.
! AN table 4: 20 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.315207 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.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1998 lines of history.
! 
! Reading 117480 visibilities.
select I
! Polarization I is unavailable.
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
print "field_size =",field_size
! field_size = 512 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
![@muppet J1357+7643_S_1999_05_10_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 862 telescope corrections were flagged in sub-array 1.
!  A total of 198 telescope corrections were flagged in sub-array 2.
!  A total of 4541 telescope corrections were flagged in sub-array 3.
!  A total of 360 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 862 telescope corrections were flagged in sub-array 1.
!  A total of 198 telescope corrections were flagged in sub-array 2.
!  A total of 4541 telescope corrections were flagged in sub-array 3.
!  A total of 360 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 862 telescope corrections were flagged in sub-array 1.
!  A total of 198 telescope corrections were flagged in sub-array 2.
!  A total of 4541 telescope corrections were flagged in sub-array 3.
!  A total of 360 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 945 telescope corrections were flagged in sub-array 1.
!  A total of 198 telescope corrections were flagged in sub-array 2.
!  A total of 4725 telescope corrections were flagged in sub-array 3.
!  A total of 360 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.717667Jy  sigma=0.004760
! Fit after  self-cal, rms=0.519090Jy  sigma=0.003810
! 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.023 mas, bmaj=2.253 mas, bpa=74.51 degrees
! Estimated noise=665.039 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.421988 Jy
! Component: 100  -  total flux cleaned = 0.514041 Jy
! Total flux subtracted in 100 components = 0.514041 Jy
! Clean residual min=-0.009597 max=0.026088 Jy/beam
! Clean residual mean=0.000029 rms=0.002169 Jy/beam
! Combined flux in latest and established models = 0.514041 Jy
! Performing phase self-cal
! Adding 2 model components to the UV plane model.
! The established model now contains 2 components and 0.514041 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.260178Jy  sigma=0.001530
! Fit after  self-cal, rms=0.260179Jy  sigma=0.001530
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0265985 Jy
! Component: 100  -  total flux cleaned = 0.0409282 Jy
! Total flux subtracted in 100 components = 0.0409282 Jy
! Clean residual min=-0.009954 max=0.011000 Jy/beam
! Clean residual mean=0.000018 rms=0.001914 Jy/beam
! Combined flux in latest and established models = 0.55497 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 10 components and 0.55497 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.256724Jy  sigma=0.001486
! Fit after  self-cal, rms=0.256700Jy  sigma=0.001486
! 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.46 mas, bmaj=2.91 mas, bpa=-65.92 degrees
! Estimated noise=280.354 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 (-1.5, -2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0155984 Jy
! Component: 100  -  total flux cleaned = 0.0244341 Jy
! Component: 150  -  total flux cleaned = 0.0300483 Jy
! Component: 200  -  total flux cleaned = 0.0340041 Jy
! Total flux subtracted in 200 components = 0.0340041 Jy
! Clean residual min=-0.005134 max=0.006215 Jy/beam
! Clean residual mean=0.000075 rms=0.001184 Jy/beam
! Combined flux in latest and established models = 0.588974 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 34 components and 0.588974 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.255794Jy  sigma=0.001474
! Fit after  self-cal, rms=0.255762Jy  sigma=0.001474
! 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.97     FD        0.97     GC        1.02     HH        1.00*    
!   HN        0.98     KK        1.03     KP        0.80     LA        0.99     
!   MC        0.95     MK        0.95     NL        0.97     NY        0.95     
!   ON        0.88     OV        1.00     PT        1.02     SC        1.00*    
!   WF        1.03     WZ        0.94     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        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*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 435 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00     GC        1.04     HH        1.00*    
!   HN        1.00     KK        1.02     KP        1.24     LA        1.00     
!   MC        1.08     MK        0.95     NL        0.99     NY        0.96     
!   ON        0.99     OV        1.03     PT        1.01     SC        1.06     
!   WF        0.98     WZ        1.00     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        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*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.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.96     FD        1.05     GC        1.01     HH        1.00*    
!   HN        1.00     KK        1.01     KP        1.00     LA        0.96     
!   MC        0.94     MK        1.02     NL        0.97     NY        0.94     
!   ON        0.90     OV        0.97     PT        0.97     SC        1.00*    
!   WF        1.02     WZ        0.95     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        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*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 435 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.04     GC        1.03     HH        1.00*    
!   HN        1.01     KK        1.02     KP        1.05     LA        0.96     
!   MC        1.08     MK        1.03     NL        0.99     NY        0.97     
!   ON        1.03     OV        0.98     PT        0.99     SC        1.09     
!   WF        0.97     WZ        1.01     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        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*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.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.97     FD        1.02     GC        1.00     HH        1.00*    
!   HN        1.00     KK        1.02     KP        0.98     LA        0.97     
!   MC        0.92     MK        0.96     NL        1.01     NY        0.96     
!   ON        0.90     OV        0.96     PT        0.93     SC        1.00*    
!   WF        1.05     WZ        4.62     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        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*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 435 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.00     GC        1.03     HH        1.00*    
!   HN        1.00     KK        1.00     KP        1.00     LA        0.99     
!   MC        0.80     MK        0.97     NL        1.01     NY        1.02     
!   ON        1.01     OV        0.98     PT        0.94     SC        1.07     
!   WF        1.00     WZ        0.96     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        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*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.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.92     FD        1.00     GC        1.00     HH        1.00*    
!   HN        1.00     KK        1.01     KP        0.94     LA        0.97     
!   MC        0.78     MK        1.00     NL        1.00     NY        0.98     
!   ON        0.97     OV        0.93     PT        0.99     SC        1.00*    
!   WF        1.05     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        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*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 429 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        0.99     GC        1.03     HH        1.00*    
!   HN        0.99     KK        1.00     KP        1.02     LA        0.97     
!   MC        1.00     MK        0.98     NL        1.00     NY        1.04     
!   ON        1.03     OV        0.94     PT        0.98     SC        1.08     
!   WF        0.97     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        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*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Fit before self-cal, rms=0.255762Jy  sigma=0.001474
! Fit after  self-cal, rms=0.373633Jy  sigma=0.001430
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.479 mas, bmaj=2.901 mas, bpa=-66.61 degrees
! Estimated noise=280.543 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.00188367 Jy
! Component: 100  -  total flux cleaned = 0.00220698 Jy
! Component: 150  -  total flux cleaned = 0.00237382 Jy
! Component: 200  -  total flux cleaned = 0.00257079 Jy
! Total flux subtracted in 200 components = 0.00257079 Jy
! Clean residual min=-0.002551 max=0.002338 Jy/beam
! Clean residual mean=0.000007 rms=0.000579 Jy/beam
! Combined flux in latest and established models = 0.591544 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 42 components and 0.591544 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.373607Jy  sigma=0.001429
! Fit after  self-cal, rms=0.373897Jy  sigma=0.001429
! 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.373897Jy  sigma=0.001429
! Fit after  self-cal, rms=0.384112Jy  sigma=0.001413
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.473 mas, bmaj=2.906 mas, bpa=-66.43 degrees
! Estimated noise=281.051 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00116125 Jy
! Component: 100  -  total flux cleaned = 0.00157503 Jy
! Component: 150  -  total flux cleaned = 0.00176822 Jy
! Component: 200  -  total flux cleaned = 0.0019347 Jy
! Total flux subtracted in 200 components = 0.0019347 Jy
! Clean residual min=-0.001779 max=0.001720 Jy/beam
! Clean residual mean=0.000008 rms=0.000449 Jy/beam
! Combined flux in latest and established models = 0.593479 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 52 components and 0.593479 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.384088Jy  sigma=0.001413
! Fit after  self-cal, rms=0.384133Jy  sigma=0.001413
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.000138376 Jy
! Component: 100  -  total flux cleaned = 0.000220779 Jy
! Component: 150  -  total flux cleaned = 0.000270261 Jy
! Component: 200  -  total flux cleaned = 0.00027022 Jy
! Total flux subtracted in 200 components = 0.00027022 Jy
! Clean residual min=-0.001793 max=0.001715 Jy/beam
! Clean residual mean=0.000007 rms=0.000448 Jy/beam
! Combined flux in latest and established models = 0.593749 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 56 components and 0.593749 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.384125Jy  sigma=0.001413
! Fit after  self-cal, rms=0.384123Jy  sigma=0.001413
! 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.384123Jy  sigma=0.001413
! Fit after  self-cal, rms=0.384178Jy  sigma=0.001413
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.471 mas, bmaj=2.905 mas, bpa=-66.58 degrees
! Estimated noise=281.293 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000985376 Jy
! Component: 100  -  total flux cleaned = 0.00115775 Jy
! Component: 150  -  total flux cleaned = 0.0012288 Jy
! Component: 200  -  total flux cleaned = 0.00122781 Jy
! Total flux subtracted in 200 components = 0.00122781 Jy
! Clean residual min=-0.001782 max=0.001713 Jy/beam
! Clean residual mean=0.000011 rms=0.000445 Jy/beam
! Combined flux in latest and established models = 0.594977 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 60 components and 0.594977 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.384164Jy  sigma=0.001413
! Fit after  self-cal, rms=0.384165Jy  sigma=0.001413
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 = -5.25618e-06 Jy
! Component: 100  -  total flux cleaned = 1.30982e-05 Jy
! Component: 150  -  total flux cleaned = 1.33044e-05 Jy
! Component: 200  -  total flux cleaned = 2.93807e-05 Jy
! Total flux subtracted in 200 components = 2.93807e-05 Jy
! Clean residual min=-0.001785 max=0.001706 Jy/beam
! Clean residual mean=0.000010 rms=0.000445 Jy/beam
! Combined flux in latest and established models = 0.595006 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 64 components and 0.595006 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.384159Jy  sigma=0.001413
! Fit after  self-cal, rms=0.384158Jy  sigma=0.001413
! 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.384158Jy  sigma=0.001413
! Fit after  self-cal, rms=0.384165Jy  sigma=0.001413
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.624 mas, bmaj=8.97 mas, bpa=-38.89 degrees
! Estimated noise=422.641 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00176165 Jy
! Component: 100  -  total flux cleaned = 0.00259092 Jy
! Component: 150  -  total flux cleaned = 0.00269308 Jy
! Component: 200  -  total flux cleaned = 0.00277969 Jy
! Total flux subtracted in 200 components = 0.00277969 Jy
! Clean residual min=-0.001725 max=0.002255 Jy/beam
! Clean residual mean=0.000028 rms=0.000684 Jy/beam
! Combined flux in latest and established models = 0.597786 Jy
selfcal
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 70 components and 0.597786 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.384170Jy  sigma=0.001413
! Fit after  self-cal, rms=0.384172Jy  sigma=0.001413
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.000101939 Jy
! Component: 100  -  total flux cleaned = 0.000181349 Jy
! Component: 150  -  total flux cleaned = 0.000236228 Jy
! Component: 200  -  total flux cleaned = 0.00028411 Jy
! Total flux subtracted in 200 components = 0.00028411 Jy
! Clean residual min=-0.001726 max=0.002229 Jy/beam
! Clean residual mean=0.000025 rms=0.000684 Jy/beam
! Combined flux in latest and established models = 0.59807 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 75 components and 0.59807 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.384175Jy  sigma=0.001413
! Fit after  self-cal, rms=0.384175Jy  sigma=0.001413
! 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.469 mas, bmaj=2.904 mas, bpa=-66.73 degrees
! Estimated noise=281.604 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.469 x 2.904 at -66.73 degrees (North through East)
! Clean map  min=-0.0014981  max=0.54789 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.384175Jy  sigma=0.001413
! Fit after  self-cal, rms=0.730314Jy  sigma=0.001332
! Inverting map and beam 
! Estimated beam: bmin=2.465 mas, bmaj=2.903 mas, bpa=-67.02 degrees
! Estimated noise=281.882 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000826091 Jy
! Component: 100  -  total flux cleaned = 0.000681461 Jy
! Component: 150  -  total flux cleaned = 0.000531358 Jy
! Component: 200  -  total flux cleaned = 0.000427829 Jy
! Total flux subtracted in 200 components = 0.000427829 Jy
! Clean residual min=-0.001582 max=0.001670 Jy/beam
! Clean residual mean=0.000005 rms=0.000399 Jy/beam
! Combined flux in latest and established models = 0.598498 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 83 components and 0.598498 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.730287Jy  sigma=0.001332
! Fit after  self-cal, rms=0.730290Jy  sigma=0.001332
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000102669 Jy
! Component: 100  -  total flux cleaned = -0.000189814 Jy
! Component: 150  -  total flux cleaned = -0.000249217 Jy
! Component: 200  -  total flux cleaned = -0.000303261 Jy
! Total flux subtracted in 200 components = -0.000303261 Jy
! Clean residual min=-0.001598 max=0.001669 Jy/beam
! Clean residual mean=0.000006 rms=0.000399 Jy/beam
! Combined flux in latest and established models = 0.598195 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 86 components and 0.598195 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.730284Jy  sigma=0.001332
! Fit after  self-cal, rms=0.730284Jy  sigma=0.001332
! 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.730284Jy  sigma=0.001332
! Fit after  self-cal, rms=0.762112Jy  sigma=0.001332
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.009 mas, bmaj=2.26 mas, bpa=74.05 degrees
! Estimated noise=682.278 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.423266 Jy
! Component: 100  -  total flux cleaned = 0.51581 Jy
! Component: 150  -  total flux cleaned = 0.54257 Jy
! Component: 200  -  total flux cleaned = 0.557352 Jy
! Total flux subtracted in 200 components = 0.557352 Jy
! Clean residual min=-0.004391 max=0.007772 Jy/beam
! Clean residual mean=0.000011 rms=0.001085 Jy/beam
! Combined flux in latest and established models = 0.557352 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 14 model components to the UV plane model.
! The established model now contains 14 components and 0.557352 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.463 mas, bmaj=2.902 mas, bpa=-67.23 degrees
! Estimated noise=282.346 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.015478 Jy
! Component: 100  -  total flux cleaned = 0.0240908 Jy
! Component: 150  -  total flux cleaned = 0.0293419 Jy
! Component: 200  -  total flux cleaned = 0.032827 Jy
! Total flux subtracted in 200 components = 0.032827 Jy
! Clean residual min=-0.001804 max=0.002155 Jy/beam
! Clean residual mean=0.000039 rms=0.000458 Jy/beam
! Combined flux in latest and established models = 0.590179 Jy
! Adding 44 model components to the UV plane model.
! The established model now contains 54 components and 0.590179 Jy
! Inverting map 
! Added new window around map position (-7, -2.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00258016 Jy
! Component: 100  -  total flux cleaned = 0.00447899 Jy
! Component: 150  -  total flux cleaned = 0.0059339 Jy
! Component: 200  -  total flux cleaned = 0.00706427 Jy
! Total flux subtracted in 200 components = 0.00706427 Jy
! Clean residual min=-0.001656 max=0.001737 Jy/beam
! Clean residual mean=0.000017 rms=0.000399 Jy/beam
! Combined flux in latest and established models = 0.597243 Jy
! Adding 31 model components to the UV plane model.
! The established model now contains 73 components and 0.597243 Jy
! Inverting map 
! Added new window around map position (-5.5, -17.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00122359 Jy
! Component: 100  -  total flux cleaned = 0.00159312 Jy
! Component: 150  -  total flux cleaned = 0.00197932 Jy
! Component: 200  -  total flux cleaned = 0.00226014 Jy
! Total flux subtracted in 200 components = 0.00226014 Jy
! Clean residual min=-0.001638 max=0.001607 Jy/beam
! Clean residual mean=0.000009 rms=0.000393 Jy/beam
! Combined flux in latest and established models = 0.599503 Jy
! Adding 23 model components to the UV plane model.
! The established model now contains 88 components and 0.599503 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.626 mas, bmaj=8.973 mas, bpa=-38.94 degrees
! Estimated noise=424.347 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00148123 Jy
! Component: 100  -  total flux cleaned = 0.00214924 Jy
! Component: 150  -  total flux cleaned = 0.00229588 Jy
! Component: 200  -  total flux cleaned = 0.00241554 Jy
! Total flux subtracted in 200 components = 0.00241554 Jy
! Clean residual min=-0.001831 max=0.001936 Jy/beam
! Clean residual mean=0.000000 rms=0.000635 Jy/beam
! Combined flux in latest and established models = 0.601919 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.86252e-05 Jy
! Component: 100  -  total flux cleaned = 7.41546e-05 Jy
! Component: 150  -  total flux cleaned = 0.000117319 Jy
! Component: 200  -  total flux cleaned = 0.000137576 Jy
! Total flux subtracted in 200 components = 0.000137576 Jy
! Clean residual min=-0.001826 max=0.001915 Jy/beam
! Clean residual mean=-0.000002 rms=0.000633 Jy/beam
! Combined flux in latest and established models = 0.602056 Jy
! Adding 19 model components to the UV plane model.
! The established model now contains 102 components and 0.602056 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.463 mas, bmaj=2.902 mas, bpa=-67.23 degrees
! Estimated noise=282.346 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000875078 Jy
! Component: 100  -  total flux cleaned = -0.00107491 Jy
! Component: 150  -  total flux cleaned = -0.00112525 Jy
! Component: 200  -  total flux cleaned = -0.00112505 Jy
! Total flux subtracted in 200 components = -0.00112505 Jy
! Clean residual min=-0.001576 max=0.001628 Jy/beam
! Clean residual mean=0.000004 rms=0.000388 Jy/beam
! Combined flux in latest and established models = 0.600931 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 115 components and 0.600931 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.762079Jy  sigma=0.001332
! Fit after  self-cal, rms=0.762097Jy  sigma=0.001332
wmodel J1357+7643_S_1999_05_10_pus_map.mod
! Writing 115 model components to file: J1357+7643_S_1999_05_10_pus_map.mod
wobs J1357+7643_S_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J1357+7643_S_1999_05_10_pus_uvs.fits
wwins J1357+7643_S_1999_05_10_pus_map.win
! wwins: Wrote 4 windows to J1357+7643_S_1999_05_10_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.000149848 Jy
! Component: 100  -  total flux cleaned = 0.000335632 Jy
! Component: 150  -  total flux cleaned = 0.000463469 Jy
! Component: 200  -  total flux cleaned = 0.000587636 Jy
! Component: 250  -  total flux cleaned = 0.0007089 Jy
! Component: 300  -  total flux cleaned = 0.000803698 Jy
! Component: 350  -  total flux cleaned = 0.000873078 Jy
! Component: 400  -  total flux cleaned = 0.000964213 Jy
! Component: 450  -  total flux cleaned = 0.00103166 Jy
! Component: 500  -  total flux cleaned = 0.00114258 Jy
! Component: 550  -  total flux cleaned = 0.00125188 Jy
! Component: 600  -  total flux cleaned = 0.00138085 Jy
! Component: 650  -  total flux cleaned = 0.00144446 Jy
! Component: 700  -  total flux cleaned = 0.0015496 Jy
! Component: 750  -  total flux cleaned = 0.00165363 Jy
! Component: 800  -  total flux cleaned = 0.00169478 Jy
! Component: 850  -  total flux cleaned = 0.001756 Jy
! Component: 900  -  total flux cleaned = 0.00181647 Jy
! Component: 950  -  total flux cleaned = 0.0018364 Jy
! Component: 1000  -  total flux cleaned = 0.00181657 Jy
! Component: 1050  -  total flux cleaned = 0.00183663 Jy
! Component: 1100  -  total flux cleaned = 0.00189547 Jy
! Component: 1150  -  total flux cleaned = 0.00193431 Jy
! Component: 1200  -  total flux cleaned = 0.00189553 Jy
! Component: 1250  -  total flux cleaned = 0.00193406 Jy
! Component: 1300  -  total flux cleaned = 0.00193403 Jy
! Component: 1350  -  total flux cleaned = 0.00191512 Jy
! Component: 1400  -  total flux cleaned = 0.00191529 Jy
! Component: 1450  -  total flux cleaned = 0.00191546 Jy
! Component: 1500  -  total flux cleaned = 0.00191559 Jy
! Component: 1550  -  total flux cleaned = 0.00195277 Jy
! Component: 1600  -  total flux cleaned = 0.0019159 Jy
! Component: 1650  -  total flux cleaned = 0.00189763 Jy
! Component: 1700  -  total flux cleaned = 0.00195239 Jy
! Component: 1750  -  total flux cleaned = 0.00189789 Jy
! Component: 1800  -  total flux cleaned = 0.00193402 Jy
! Component: 1850  -  total flux cleaned = 0.00191595 Jy
! Component: 1900  -  total flux cleaned = 0.00191599 Jy
! Component: 1950  -  total flux cleaned = 0.00191596 Jy
! Component: 2000  -  total flux cleaned = 0.00189824 Jy
! Total flux subtracted in 2048 components = 0.00188061 Jy
! Clean residual min=-0.001190 max=0.001091 Jy/beam
! Clean residual mean=-0.000001 rms=0.000326 Jy/beam
! Combined flux in latest and established models = 0.602812 Jy
keep
! Adding 166 model components to the UV plane model.
! The established model now contains 281 components and 0.602812 Jy
![Exited script file: muppet]
wmap "J1357+7643_S_1999_05_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.463 x 2.902 at -67.23 degrees (North through East)
! Clean map  min=-0.0012464  max=0.54959 Jy/beam
! Writing clean map to FITS file: J1357+7643_S_1999_05_10_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.549592 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000325652 
device "J1357+7643_S_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J1357+7643_S_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.17776 0.17776 0.35552 0.71104 1.42208 2.84416 5.68832 11.3766 22.7533 45.5066 91.0131
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0009 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.549 
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.463 x 2.902 at -67.23 degrees (North through East)
! Clean map  min=-0.0012464  max=0.54959 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1357+7643_S_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J1357+7643_S_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1357+7643_S_1999_05_10_pus_uvs.log closed on Mon Jan 21 17:40:55 2008