! Started logfile: J0359+5057_S_1999_12_20_pus_uvs.log on Thu Dec 20 16:36:57 2007
obs J0359+5057_S_1999_12_20_pus_uva.fits
! Reading UV FITS file: J0359+5057_S_1999_12_20_pus_uva.fits
! AN table 1: 12 integrations on 190 of 190 possible baselines.
! AN table 2: 11 integrations on 190 of 190 possible baselines.
! AN table 3: 24 integrations on 190 of 190 possible baselines.
! AN table 4: 64 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0192508 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0359+5057
! 
! 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 2298 lines of history.
! 
! Reading 1624 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 = 1024 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
![@muppet J0359+5057_S_1999_12_20_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 = 1024x1024 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 193 telescope corrections were flagged in sub-array 1.
!  A total of 220 telescope corrections were flagged in sub-array 2.
!  A total of 421 telescope corrections were flagged in sub-array 3.
!  A total of 1107 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 193 telescope corrections were flagged in sub-array 1.
!  A total of 220 telescope corrections were flagged in sub-array 2.
!  A total of 421 telescope corrections were flagged in sub-array 3.
!  A total of 1107 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 193 telescope corrections were flagged in sub-array 1.
!  A total of 220 telescope corrections were flagged in sub-array 2.
!  A total of 421 telescope corrections were flagged in sub-array 3.
!  A total of 1107 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 193 telescope corrections were flagged in sub-array 1.
!  A total of 220 telescope corrections were flagged in sub-array 2.
!  A total of 421 telescope corrections were flagged in sub-array 3.
!  A total of 1107 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.780573Jy  sigma=0.006822
! Fit after  self-cal, rms=0.536280Jy  sigma=0.004963
! 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=12.95 mas, bmaj=17.48 mas, bpa=-83.79 degrees
! Estimated noise=2678.93 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.956663 Jy
! Component: 100  -  total flux cleaned = 1.25075 Jy
! Total flux subtracted in 100 components = 1.25075 Jy
! Clean residual min=-0.133358 max=0.284186 Jy/beam
! Clean residual mean=0.008489 rms=0.050811 Jy/beam
! Combined flux in latest and established models = 1.25075 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 25 components and 1.25075 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.421257Jy  sigma=0.003801
! Fit after  self-cal, rms=0.420894Jy  sigma=0.003797
! 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=13.88 mas, bmaj=19.51 mas, bpa=-78.74 degrees
! Estimated noise=2051.54 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 (13.5, 21).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.253302 Jy
! Component: 100  -  total flux cleaned = 0.374413 Jy
! Component: 150  -  total flux cleaned = 0.453149 Jy
! Component: 200  -  total flux cleaned = 0.506308 Jy
! Total flux subtracted in 200 components = 0.506308 Jy
! Clean residual min=-0.057478 max=0.110929 Jy/beam
! Clean residual mean=0.004750 rms=0.022283 Jy/beam
! Combined flux in latest and established models = 1.75706 Jy
! Performing phase self-cal
! Adding 42 model components to the UV plane model.
! The established model now contains 67 components and 1.75706 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.233637Jy  sigma=0.002056
! Fit after  self-cal, rms=0.211145Jy  sigma=0.001821
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00     LA        0.88     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.09     PT        0.93     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        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*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.17     LA        0.92     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.00*    PT        0.99     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        0.90     NL        1.04     
! 
!  A total of 141 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.07     FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        0.99     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.02     PT        1.00     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.05     LA        0.87     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.03     PT        0.91     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        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*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.10     LA        0.94     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.00*    PT        0.93     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        0.88     NL        1.03     
! 
!  A total of 141 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.05     FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        0.97     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.00     PT        0.96     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.01     LA        0.91     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.02     PT        0.92     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        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*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.13     LA        0.96     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.00*    PT        0.95     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        0.88     NL        0.94     
! 
!  A total of 141 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.04     FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        0.99     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.06     PT        0.98     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.03     LA        0.92     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.02     PT        0.93     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        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*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.21     LA        0.96     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.00*    PT        0.98     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        0.92     NL        0.92     
! 
!  A total of 141 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        0.97     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.99     PT        1.00     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
! 
! Fit before self-cal, rms=0.211145Jy  sigma=0.001821
! Fit after  self-cal, rms=0.190004Jy  sigma=0.001411
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=10.99 mas, bmaj=37.81 mas, bpa=-73.55 degrees
! Estimated noise=2950.41 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.0266572 Jy
! Component: 100  -  total flux cleaned = 0.020275 Jy
! Component: 150  -  total flux cleaned = 0.0151349 Jy
! Component: 200  -  total flux cleaned = 0.010901 Jy
! Total flux subtracted in 200 components = 0.010901 Jy
! Clean residual min=-0.029488 max=0.039379 Jy/beam
! Clean residual mean=0.001553 rms=0.010597 Jy/beam
! Combined flux in latest and established models = 1.76796 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 93 components and 1.76796 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.171895Jy  sigma=0.001268
! Fit after  self-cal, rms=0.171541Jy  sigma=0.001260
! 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.171541Jy  sigma=0.001260
! Fit after  self-cal, rms=0.170572Jy  sigma=0.001249
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=10.99 mas, bmaj=37.73 mas, bpa=-73.55 degrees
! Estimated noise=2957.41 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0107943 Jy
! Component: 100  -  total flux cleaned = 0.00806932 Jy
! Component: 150  -  total flux cleaned = 0.00458802 Jy
! Component: 200  -  total flux cleaned = 0.00107801 Jy
! Total flux subtracted in 200 components = 0.00107801 Jy
! Clean residual min=-0.026034 max=0.029625 Jy/beam
! Clean residual mean=0.001093 rms=0.008578 Jy/beam
! Combined flux in latest and established models = 1.76904 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 115 components and 1.76904 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.165187Jy  sigma=0.001207
! Fit after  self-cal, rms=0.165072Jy  sigma=0.001205
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.000114713 Jy
! Component: 100  -  total flux cleaned = -0.00254339 Jy
! Component: 150  -  total flux cleaned = -0.00468551 Jy
! Component: 200  -  total flux cleaned = -0.00628535 Jy
! Total flux subtracted in 200 components = -0.00628535 Jy
! Clean residual min=-0.024075 max=0.026132 Jy/beam
! Clean residual mean=0.001239 rms=0.007809 Jy/beam
! Combined flux in latest and established models = 1.76275 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 141 components and 1.76275 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.163366Jy  sigma=0.001193
! Fit after  self-cal, rms=0.163295Jy  sigma=0.001192
! 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.163295Jy  sigma=0.001192
! Fit after  self-cal, rms=0.162796Jy  sigma=0.001186
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=11.01 mas, bmaj=37.64 mas, bpa=-73.57 degrees
! Estimated noise=2961.13 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00256202 Jy
! Component: 100  -  total flux cleaned = 0.00126358 Jy
! Component: 150  -  total flux cleaned = -0.000190401 Jy
! Component: 200  -  total flux cleaned = -0.00124389 Jy
! Total flux subtracted in 200 components = -0.00124389 Jy
! Clean residual min=-0.022648 max=0.022527 Jy/beam
! Clean residual mean=0.000767 rms=0.007263 Jy/beam
! Combined flux in latest and established models = 1.76151 Jy
selfcal
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 158 components and 1.76151 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.161476Jy  sigma=0.001177
! Fit after  self-cal, rms=0.161489Jy  sigma=0.001177
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.000497685 Jy
! Component: 100  -  total flux cleaned = -0.00118255 Jy
! Component: 150  -  total flux cleaned = -0.00202656 Jy
! Component: 200  -  total flux cleaned = -0.0026152 Jy
! Total flux subtracted in 200 components = -0.0026152 Jy
! Clean residual min=-0.022166 max=0.020604 Jy/beam
! Clean residual mean=0.000814 rms=0.006952 Jy/beam
! Combined flux in latest and established models = 1.75889 Jy
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 181 components and 1.75889 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.160885Jy  sigma=0.001173
! Fit after  self-cal, rms=0.160851Jy  sigma=0.001173
! 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.160851Jy  sigma=0.001173
! Fit after  self-cal, rms=0.160849Jy  sigma=0.001171
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=12.42 mas, bmaj=37.07 mas, bpa=-73.69 degrees
! Estimated noise=2976.27 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00209026 Jy
! Component: 100  -  total flux cleaned = 0.00118384 Jy
! Component: 150  -  total flux cleaned = 0.000387183 Jy
! Component: 200  -  total flux cleaned = -0.00050739 Jy
! Total flux subtracted in 200 components = -0.00050739 Jy
! Clean residual min=-0.022055 max=0.019525 Jy/beam
! Clean residual mean=0.000709 rms=0.007096 Jy/beam
! Combined flux in latest and established models = 1.75839 Jy
selfcal
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 200 components and 1.75839 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.160253Jy  sigma=0.001167
! Fit after  self-cal, rms=0.160203Jy  sigma=0.001167
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.000329914 Jy
! Component: 100  -  total flux cleaned = 1.6115e-05 Jy
! Component: 150  -  total flux cleaned = -0.000133534 Jy
! Component: 200  -  total flux cleaned = -0.000411829 Jy
! Total flux subtracted in 200 components = -0.000411829 Jy
! Clean residual min=-0.021766 max=0.019178 Jy/beam
! Clean residual mean=0.000708 rms=0.006906 Jy/beam
! Combined flux in latest and established models = 1.75797 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 217 components and 1.75797 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.159907Jy  sigma=0.001165
! Fit after  self-cal, rms=0.159855Jy  sigma=0.001165
! 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=11.04 mas, bmaj=37.6 mas, bpa=-73.6 degrees
! Estimated noise=2966.46 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 11.04 x 37.6 at -73.6 degrees (North through East)
! Clean map  min=-0.051451  max=1.1442 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.159855Jy  sigma=0.001165
! Fit after  self-cal, rms=0.136137Jy  sigma=0.000944
! Inverting map and beam 
! Estimated beam: bmin=11.05 mas, bmaj=37.55 mas, bpa=-73.61 degrees
! Estimated noise=2969.39 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00102242 Jy
! Component: 100  -  total flux cleaned = 0.000332335 Jy
! Component: 150  -  total flux cleaned = -0.000275811 Jy
! Component: 200  -  total flux cleaned = -0.00068961 Jy
! Total flux subtracted in 200 components = -0.00068961 Jy
! Clean residual min=-0.019252 max=0.018083 Jy/beam
! Clean residual mean=0.000477 rms=0.006218 Jy/beam
! Combined flux in latest and established models = 1.75728 Jy
! Performing phase self-cal
! Adding 58 model components to the UV plane model.
! The established model now contains 259 components and 1.75728 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.135685Jy  sigma=0.000942
! Fit after  self-cal, rms=0.135646Jy  sigma=0.000941
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000296097 Jy
! Component: 100  -  total flux cleaned = 3.77011e-05 Jy
! Component: 150  -  total flux cleaned = -7.92761e-05 Jy
! Component: 200  -  total flux cleaned = -8.11481e-05 Jy
! Total flux subtracted in 200 components = -8.11481e-05 Jy
! Clean residual min=-0.019145 max=0.017692 Jy/beam
! Clean residual mean=0.000469 rms=0.006092 Jy/beam
! Combined flux in latest and established models = 1.7572 Jy
! Performing phase self-cal
! Adding 46 model components to the UV plane model.
! The established model now contains 275 components and 1.7572 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.135415Jy  sigma=0.000940
! Fit after  self-cal, rms=0.135372Jy  sigma=0.000940
! 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.135372Jy  sigma=0.000940
! Fit after  self-cal, rms=0.135401Jy  sigma=0.000939
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=10.25 mas, bmaj=29.57 mas, bpa=-73.49 degrees
! Estimated noise=3775.98 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.920338 Jy
! Component: 100  -  total flux cleaned = 1.27798 Jy
! Component: 150  -  total flux cleaned = 1.46329 Jy
! Component: 200  -  total flux cleaned = 1.57623 Jy
! Total flux subtracted in 200 components = 1.57623 Jy
! Clean residual min=-0.057969 max=0.069892 Jy/beam
! Clean residual mean=0.005587 rms=0.022541 Jy/beam
! Combined flux in latest and established models = 1.57623 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 52 model components to the UV plane model.
! The established model now contains 52 components and 1.57623 Jy
! Inverting map and beam 
! Estimated beam: bmin=11.07 mas, bmaj=37.53 mas, bpa=-73.62 degrees
! Estimated noise=2972.85 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.0893785 Jy
! Component: 100  -  total flux cleaned = 0.142142 Jy
! Component: 150  -  total flux cleaned = 0.154004 Jy
! Component: 200  -  total flux cleaned = 0.161245 Jy
! Total flux subtracted in 200 components = 0.161245 Jy
! Clean residual min=-0.033073 max=0.038141 Jy/beam
! Clean residual mean=0.001440 rms=0.011423 Jy/beam
! Combined flux in latest and established models = 1.73747 Jy
! Adding 68 model components to the UV plane model.
! The established model now contains 119 components and 1.73747 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=12.46 mas, bmaj=37.02 mas, bpa=-73.72 degrees
! Estimated noise=2980.87 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00757925 Jy
! Component: 100  -  total flux cleaned = 0.0127998 Jy
! Component: 150  -  total flux cleaned = 0.0176587 Jy
! Component: 200  -  total flux cleaned = 0.0210216 Jy
! Total flux subtracted in 200 components = 0.0210216 Jy
! Clean residual min=-0.024285 max=0.027575 Jy/beam
! Clean residual mean=0.000676 rms=0.008446 Jy/beam
! Combined flux in latest and established models = 1.75849 Jy
flux_cutoff = imstat(rms) * dynam
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  keep
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00190406 Jy
! Component: 100  -  total flux cleaned = 0.00274161 Jy
! Component: 150  -  total flux cleaned = 0.0031295 Jy
! Component: 200  -  total flux cleaned = 0.00279783 Jy
! Total flux subtracted in 200 components = 0.00279783 Jy
! Clean residual min=-0.021150 max=0.022782 Jy/beam
! Clean residual mean=0.000500 rms=0.007460 Jy/beam
! Combined flux in latest and established models = 1.76129 Jy
! Adding 82 model components to the UV plane model.
! The established model now contains 190 components and 1.76129 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=11.07 mas, bmaj=37.53 mas, bpa=-73.62 degrees
! Estimated noise=2972.85 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -7.19879e-06 Jy
! Component: 100  -  total flux cleaned = -7.95047e-06 Jy
! Component: 150  -  total flux cleaned = -2.26168e-05 Jy
! Component: 200  -  total flux cleaned = -0.000493145 Jy
! Total flux subtracted in 200 components = -0.000493145 Jy
! Clean residual min=-0.019164 max=0.019546 Jy/beam
! Clean residual mean=0.000418 rms=0.006594 Jy/beam
! Combined flux in latest and established models = 1.7608 Jy
selfcal
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 210 components and 1.7608 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.137417Jy  sigma=0.000949
! Fit after  self-cal, rms=0.136707Jy  sigma=0.000946
wmodel J0359+5057_S_1999_12_20_pus_map.mod
! Writing 210 model components to file: J0359+5057_S_1999_12_20_pus_map.mod
wobs J0359+5057_S_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J0359+5057_S_1999_12_20_pus_uvs.fits
wwins J0359+5057_S_1999_12_20_pus_map.win
! wwins: Wrote 2 windows to J0359+5057_S_1999_12_20_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=4096  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -5.97879e-05 Jy
! Component: 100  -  total flux cleaned = -0.00126721 Jy
! Component: 150  -  total flux cleaned = -0.00231874 Jy
! Component: 200  -  total flux cleaned = -0.00397094 Jy
! Component: 250  -  total flux cleaned = -0.00548217 Jy
! Component: 300  -  total flux cleaned = -0.00667785 Jy
! Component: 350  -  total flux cleaned = -0.00781452 Jy
! Component: 400  -  total flux cleaned = -0.00800499 Jy
! Component: 450  -  total flux cleaned = -0.00784949 Jy
! Component: 500  -  total flux cleaned = -0.00785326 Jy
! Component: 550  -  total flux cleaned = -0.00693212 Jy
! Component: 600  -  total flux cleaned = -0.00634748 Jy
! Component: 650  -  total flux cleaned = -0.00450034 Jy
! Component: 700  -  total flux cleaned = -0.00312841 Jy
! Component: 750  -  total flux cleaned = -0.00206456 Jy
! Component: 800  -  total flux cleaned = -0.000645282 Jy
! Component: 850  -  total flux cleaned = 0.000231132 Jy
! Component: 900  -  total flux cleaned = 0.00157256 Jy
! Component: 950  -  total flux cleaned = 0.00216511 Jy
! Component: 1000  -  total flux cleaned = 0.00251497 Jy
! Component: 1050  -  total flux cleaned = 0.00296526 Jy
! Component: 1100  -  total flux cleaned = 0.00307363 Jy
! Component: 1150  -  total flux cleaned = 0.00296469 Jy
! Component: 1200  -  total flux cleaned = 0.00233243 Jy
! Component: 1250  -  total flux cleaned = 0.00212526 Jy
! Component: 1300  -  total flux cleaned = 0.00181616 Jy
! Component: 1350  -  total flux cleaned = 0.00120611 Jy
! Component: 1400  -  total flux cleaned = 0.00110469 Jy
! Component: 1450  -  total flux cleaned = 0.000904329 Jy
! Component: 1500  -  total flux cleaned = 0.000215146 Jy
! Component: 1550  -  total flux cleaned = -0.000762495 Jy
! Component: 1600  -  total flux cleaned = -0.00163704 Jy
! Component: 1650  -  total flux cleaned = -0.00260365 Jy
! Component: 1700  -  total flux cleaned = -0.00337323 Jy
! Component: 1750  -  total flux cleaned = -0.0043309 Jy
! Component: 1800  -  total flux cleaned = -0.00509418 Jy
! Component: 1850  -  total flux cleaned = -0.00575936 Jy
! Component: 1900  -  total flux cleaned = -0.00623238 Jy
! Component: 1950  -  total flux cleaned = -0.00689382 Jy
! Component: 2000  -  total flux cleaned = -0.0072708 Jy
! Component: 2050  -  total flux cleaned = -0.00792924 Jy
! Component: 2100  -  total flux cleaned = -0.00830453 Jy
! Component: 2150  -  total flux cleaned = -0.00886721 Jy
! Component: 2200  -  total flux cleaned = -0.00924141 Jy
! Component: 2250  -  total flux cleaned = -0.00980145 Jy
! Component: 2300  -  total flux cleaned = -0.0101748 Jy
! Component: 2350  -  total flux cleaned = -0.0105485 Jy
! Component: 2400  -  total flux cleaned = -0.0109218 Jy
! Component: 2450  -  total flux cleaned = -0.0113876 Jy
! Component: 2500  -  total flux cleaned = -0.011761 Jy
! Component: 2550  -  total flux cleaned = -0.0119486 Jy
! Component: 2600  -  total flux cleaned = -0.012323 Jy
! Component: 2650  -  total flux cleaned = -0.0126983 Jy
! Component: 2700  -  total flux cleaned = -0.012886 Jy
! Component: 2750  -  total flux cleaned = -0.0131683 Jy
! Component: 2800  -  total flux cleaned = -0.0134533 Jy
! Component: 2850  -  total flux cleaned = -0.0136438 Jy
! Component: 2900  -  total flux cleaned = -0.0140265 Jy
! Component: 2950  -  total flux cleaned = -0.0142191 Jy
! Component: 3000  -  total flux cleaned = -0.0145085 Jy
! Component: 3050  -  total flux cleaned = -0.0148971 Jy
! Component: 3100  -  total flux cleaned = -0.015092 Jy
! Component: 3150  -  total flux cleaned = -0.0153868 Jy
! Component: 3200  -  total flux cleaned = -0.0156835 Jy
! Component: 3250  -  total flux cleaned = -0.0161798 Jy
! Component: 3300  -  total flux cleaned = -0.0163789 Jy
! Component: 3350  -  total flux cleaned = -0.0168818 Jy
! Component: 3400  -  total flux cleaned = -0.0171854 Jy
! Component: 3450  -  total flux cleaned = -0.0177969 Jy
! Component: 3500  -  total flux cleaned = -0.0182092 Jy
! Component: 3550  -  total flux cleaned = -0.0187284 Jy
! Component: 3600  -  total flux cleaned = -0.0191466 Jy
! Component: 3650  -  total flux cleaned = -0.019886 Jy
! Component: 3700  -  total flux cleaned = -0.0204191 Jy
! Component: 3750  -  total flux cleaned = -0.0207411 Jy
! Component: 3800  -  total flux cleaned = -0.0213918 Jy
! Component: 3850  -  total flux cleaned = -0.0219392 Jy
! Component: 3900  -  total flux cleaned = -0.0224927 Jy
! Component: 3950  -  total flux cleaned = -0.0228291 Jy
! Component: 4000  -  total flux cleaned = -0.023283 Jy
! Component: 4050  -  total flux cleaned = -0.0236272 Jy
! Total flux subtracted in 4096 components = -0.0237444 Jy
! Clean residual min=-0.006675 max=0.006387 Jy/beam
! Clean residual mean=-0.000302 rms=0.002381 Jy/beam
! Combined flux in latest and established models = 1.73705 Jy
keep
! Adding 562 model components to the UV plane model.
! The established model now contains 772 components and 1.73706 Jy
![Exited script file: muppet]
wmap "J0359+5057_S_1999_12_20_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 11.07 x 37.53 at -73.62 degrees (North through East)
! Clean map  min=-0.051684  max=1.1392 Jy/beam
! Writing clean map to FITS file: J0359+5057_S_1999_12_20_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.13916 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00249721 
device "J0359+5057_S_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J0359+5057_S_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.657648 0.657648 1.3153 2.63059 5.26118 10.5224 21.0447 42.0895 84.1789
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0074 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.139 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 11.07 x 37.53 at -73.62 degrees (North through East)
! Clean map  min=-0.051684  max=1.1392 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0359+5057_S_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J0359+5057_S_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0359+5057_S_1999_12_20_pus_uvs.log closed on Thu Dec 20 16:37:29 2007