! Started logfile: J0359+5057_X_1999_12_20_pus_uvs.log on Mon Dec 17 12:15:11 2007
obs J0359+5057_X_1999_12_20_pus_uva.fits
! Reading UV FITS file: J0359+5057_X_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  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2418 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.2 
print "taper_size =",taper_size
! taper_size = 70 
![@muppet J0359+5057_X_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.200x0.200 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=2.546209Jy  sigma=0.030725
! Fit after  self-cal, rms=2.279910Jy  sigma=0.028662
! 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=3.663 mas, bmaj=4.639 mas, bpa=-83.92 degrees
! Estimated noise=2377.51 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 = 2.59259 Jy
! Component: 100  -  total flux cleaned = 3.1626 Jy
! Total flux subtracted in 100 components = 3.1626 Jy
! Clean residual min=-0.110070 max=0.176275 Jy/beam
! Clean residual mean=0.000927 rms=0.035557 Jy/beam
! Combined flux in latest and established models = 3.1626 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 3.1626 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.336835Jy  sigma=0.003856
! Fit after  self-cal, rms=0.336621Jy  sigma=0.003854
! 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=3.795 mas, bmaj=5.311 mas, bpa=-79.53 degrees
! Estimated noise=1535.47 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.146776 Jy
! Component: 100  -  total flux cleaned = 0.181717 Jy
! Component: 150  -  total flux cleaned = 0.185943 Jy
! Component: 200  -  total flux cleaned = 0.189231 Jy
! Total flux subtracted in 200 components = 0.189231 Jy
! Clean residual min=-0.080055 max=0.069116 Jy/beam
! Clean residual mean=0.000246 rms=0.023851 Jy/beam
! Combined flux in latest and established models = 3.35183 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 39 components and 3.35183 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.286387Jy  sigma=0.002865
! Fit after  self-cal, rms=0.285894Jy  sigma=0.002861
! 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.04     LA        0.98     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.04     PT        0.98     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.31     LA        1.02     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.00*    PT        1.03     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        0.97     NL        1.04     
! 
!  A total of 141 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.02     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.02     PT        0.99     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        0.98     LA        0.98     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.04     PT        0.96     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.23     LA        1.00     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.00*    PT        1.02     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        0.98     NL        1.03     
! 
!  A total of 141 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.01     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.02     PT        0.98     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        0.98     LA        0.95     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.99     PT        0.96     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.11     LA        0.99     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.00*    PT        1.02     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        0.90     NL        1.01     
! 
!  A total of 141 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        0.98     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.99     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        0.97     LA        0.95     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.99     PT        0.96     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.26     LA        0.99     
!   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.92     NL        1.03     
! 
!  A total of 141 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        0.98     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.99     PT        0.96     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
! 
! Fit before self-cal, rms=0.285894Jy  sigma=0.002861
! Fit after  self-cal, rms=0.148932Jy  sigma=0.001329
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.122 mas, bmaj=9.662 mas, bpa=-73.71 degrees
! Estimated noise=2263.27 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.00117918 Jy
! Component: 100  -  total flux cleaned = 0.00195801 Jy
! Component: 150  -  total flux cleaned = 0.00165428 Jy
! Component: 200  -  total flux cleaned = 0.00189502 Jy
! Total flux subtracted in 200 components = 0.00189502 Jy
! Clean residual min=-0.028596 max=0.025534 Jy/beam
! Clean residual mean=-0.000161 rms=0.007141 Jy/beam
! Combined flux in latest and established models = 3.35372 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 63 components and 3.35372 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.146396Jy  sigma=0.001308
! Fit after  self-cal, rms=0.145593Jy  sigma=0.001299
! 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.145593Jy  sigma=0.001299
! Fit after  self-cal, rms=0.145587Jy  sigma=0.001299
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.122 mas, bmaj=9.664 mas, bpa=-73.7 degrees
! Estimated noise=2262.77 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00149401 Jy
! Component: 100  -  total flux cleaned = 0.00238295 Jy
! Component: 150  -  total flux cleaned = 0.00216763 Jy
! Component: 200  -  total flux cleaned = 0.00232302 Jy
! Total flux subtracted in 200 components = 0.00232302 Jy
! Clean residual min=-0.025969 max=0.023068 Jy/beam
! Clean residual mean=-0.000163 rms=0.006547 Jy/beam
! Combined flux in latest and established models = 3.35605 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 74 components and 3.35605 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.144367Jy  sigma=0.001287
! Fit after  self-cal, rms=0.143849Jy  sigma=0.001283
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 8.60929e-05 Jy
! Component: 100  -  total flux cleaned = 0.000658856 Jy
! Component: 150  -  total flux cleaned = 0.000655662 Jy
! Component: 200  -  total flux cleaned = 0.000780184 Jy
! Total flux subtracted in 200 components = 0.000780184 Jy
! Clean residual min=-0.024271 max=0.021329 Jy/beam
! Clean residual mean=-0.000163 rms=0.006248 Jy/beam
! Combined flux in latest and established models = 3.35683 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 87 components and 3.35683 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.143309Jy  sigma=0.001277
! Fit after  self-cal, rms=0.143034Jy  sigma=0.001275
! 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.143034Jy  sigma=0.001275
! Fit after  self-cal, rms=0.143052Jy  sigma=0.001274
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.122 mas, bmaj=9.666 mas, bpa=-73.7 degrees
! Estimated noise=2262.44 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00235647 Jy
! Component: 100  -  total flux cleaned = 0.00267802 Jy
! Component: 150  -  total flux cleaned = 0.00256792 Jy
! Component: 200  -  total flux cleaned = 0.00237896 Jy
! Total flux subtracted in 200 components = 0.00237896 Jy
! Clean residual min=-0.023036 max=0.021267 Jy/beam
! Clean residual mean=-0.000164 rms=0.006059 Jy/beam
! Combined flux in latest and established models = 3.35921 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 92 components and 3.35921 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.142749Jy  sigma=0.001270
! Fit after  self-cal, rms=0.142587Jy  sigma=0.001269
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.000190276 Jy
! Component: 100  -  total flux cleaned = 0.000429625 Jy
! Component: 150  -  total flux cleaned = 0.000432714 Jy
! Component: 200  -  total flux cleaned = 0.000429889 Jy
! Total flux subtracted in 200 components = 0.000429889 Jy
! Clean residual min=-0.022309 max=0.021088 Jy/beam
! Clean residual mean=-0.000164 rms=0.005969 Jy/beam
! Combined flux in latest and established models = 3.35964 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 98 components and 3.35964 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.142467Jy  sigma=0.001267
! Fit after  self-cal, rms=0.142388Jy  sigma=0.001267
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 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.142388Jy  sigma=0.001267
! Fit after  self-cal, rms=0.142399Jy  sigma=0.001266
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.55 mas, bmaj=9.59 mas, bpa=-73.87 degrees
! Estimated noise=2242.49 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00223373 Jy
! Component: 100  -  total flux cleaned = 0.00214887 Jy
! Component: 150  -  total flux cleaned = 0.00200372 Jy
! Component: 200  -  total flux cleaned = 0.00194275 Jy
! Total flux subtracted in 200 components = 0.00194275 Jy
! Clean residual min=-0.022237 max=0.021192 Jy/beam
! Clean residual mean=-0.000185 rms=0.006166 Jy/beam
! Combined flux in latest and established models = 3.36158 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 108 components and 3.36158 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.142291Jy  sigma=0.001264
! Fit after  self-cal, rms=0.142240Jy  sigma=0.001264
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.000116648 Jy
! Component: 100  -  total flux cleaned = 0.000192176 Jy
! Component: 150  -  total flux cleaned = 9.65161e-05 Jy
! Component: 200  -  total flux cleaned = 1.02922e-05 Jy
! Total flux subtracted in 200 components = 1.02922e-05 Jy
! Clean residual min=-0.021888 max=0.021050 Jy/beam
! Clean residual mean=-0.000185 rms=0.006138 Jy/beam
! Combined flux in latest and established models = 3.36159 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 117 components and 3.36159 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.142204Jy  sigma=0.001263
! Fit after  self-cal, rms=0.142176Jy  sigma=0.001263
! 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=3.123 mas, bmaj=9.668 mas, bpa=-73.7 degrees
! Estimated noise=2262.22 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.123 x 9.668 at -73.7 degrees (North through East)
! Clean map  min=-0.021316  max=3.227 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.142176Jy  sigma=0.001263
! Fit after  self-cal, rms=0.114909Jy  sigma=0.001005
! Inverting map and beam 
! Estimated beam: bmin=3.124 mas, bmaj=9.671 mas, bpa=-73.71 degrees
! Estimated noise=2261.75 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000969777 Jy
! Component: 100  -  total flux cleaned = 0.0007945 Jy
! Component: 150  -  total flux cleaned = 0.000793329 Jy
! Component: 200  -  total flux cleaned = 0.000797305 Jy
! Total flux subtracted in 200 components = 0.000797305 Jy
! Clean residual min=-0.020917 max=0.020588 Jy/beam
! Clean residual mean=-0.000162 rms=0.005789 Jy/beam
! Combined flux in latest and established models = 3.36239 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 120 components and 3.36239 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.114806Jy  sigma=0.001004
! Fit after  self-cal, rms=0.114788Jy  sigma=0.001004
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000279164 Jy
! Component: 100  -  total flux cleaned = 0.000180596 Jy
! Component: 150  -  total flux cleaned = 9.50872e-05 Jy
! Component: 200  -  total flux cleaned = 0.000135594 Jy
! Total flux subtracted in 200 components = 0.000135594 Jy
! Clean residual min=-0.020760 max=0.020246 Jy/beam
! Clean residual mean=-0.000162 rms=0.005774 Jy/beam
! Combined flux in latest and established models = 3.36252 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 125 components and 3.36252 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.114759Jy  sigma=0.001003
! Fit after  self-cal, rms=0.114754Jy  sigma=0.001003
! 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.114754Jy  sigma=0.001003
! Fit after  self-cal, rms=0.114711Jy  sigma=0.001003
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=3.037 mas, bmaj=8.915 mas, bpa=-72.64 degrees
! Estimated noise=3202.88 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.52219 Jy
! Component: 100  -  total flux cleaned = 3.07454 Jy
! Component: 150  -  total flux cleaned = 3.23863 Jy
! Component: 200  -  total flux cleaned = 3.30877 Jy
! Total flux subtracted in 200 components = 3.30877 Jy
! Clean residual min=-0.039510 max=0.039160 Jy/beam
! Clean residual mean=-0.000004 rms=0.010873 Jy/beam
! Combined flux in latest and established models = 3.30877 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 20 model components to the UV plane model.
! The established model now contains 20 components and 3.30877 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.125 mas, bmaj=9.673 mas, bpa=-73.71 degrees
! Estimated noise=2261.33 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.0372813 Jy
! Component: 100  -  total flux cleaned = 0.0437628 Jy
! Component: 150  -  total flux cleaned = 0.0460881 Jy
! Component: 200  -  total flux cleaned = 0.0489225 Jy
! Total flux subtracted in 200 components = 0.0489225 Jy
! Clean residual min=-0.026186 max=0.027331 Jy/beam
! Clean residual mean=-0.000150 rms=0.007064 Jy/beam
! Combined flux in latest and established models = 3.35769 Jy
! Adding 15 model components to the UV plane model.
! The established model now contains 33 components and 3.35769 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.551 mas, bmaj=9.595 mas, bpa=-73.88 degrees
! Estimated noise=2241.37 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00201532 Jy
! Component: 100  -  total flux cleaned = 0.00232833 Jy
! Component: 150  -  total flux cleaned = 0.00233634 Jy
! Component: 200  -  total flux cleaned = 0.00233479 Jy
! Total flux subtracted in 200 components = 0.00233479 Jy
! Clean residual min=-0.024324 max=0.025060 Jy/beam
! Clean residual mean=-0.000178 rms=0.006858 Jy/beam
! Combined flux in latest and established models = 3.36003 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.07284e-06 Jy
! Component: 100  -  total flux cleaned = -1.0134e-05 Jy
! Component: 150  -  total flux cleaned = -1.07742e-05 Jy
! Component: 200  -  total flux cleaned = -1.40039e-05 Jy
! Total flux subtracted in 200 components = -1.40039e-05 Jy
! Clean residual min=-0.023656 max=0.023657 Jy/beam
! Clean residual mean=-0.000181 rms=0.006643 Jy/beam
! Combined flux in latest and established models = 3.36001 Jy
! Adding 23 model components to the UV plane model.
! The established model now contains 52 components and 3.36001 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.125 mas, bmaj=9.673 mas, bpa=-73.71 degrees
! Estimated noise=2261.33 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000175806 Jy
! Component: 100  -  total flux cleaned = -0.000183198 Jy
! Component: 150  -  total flux cleaned = -1.82221e-05 Jy
! Component: 200  -  total flux cleaned = -2.39849e-05 Jy
! Total flux subtracted in 200 components = -2.39849e-05 Jy
! Clean residual min=-0.022857 max=0.022678 Jy/beam
! Clean residual mean=-0.000162 rms=0.006264 Jy/beam
! Combined flux in latest and established models = 3.35999 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 61 components and 3.35999 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.116542Jy  sigma=0.001022
! Fit after  self-cal, rms=0.116375Jy  sigma=0.001019
wmodel J0359+5057_X_1999_12_20_pus_map.mod
! Writing 61 model components to file: J0359+5057_X_1999_12_20_pus_map.mod
wobs J0359+5057_X_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J0359+5057_X_1999_12_20_pus_uvs.fits
wwins J0359+5057_X_1999_12_20_pus_map.win
! wwins: Wrote 1 windows to J0359+5057_X_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 = -0.000799296 Jy
! Component: 100  -  total flux cleaned = 0.00248609 Jy
! Component: 150  -  total flux cleaned = 0.00332262 Jy
! Component: 200  -  total flux cleaned = 0.00458303 Jy
! Component: 250  -  total flux cleaned = 0.00526776 Jy
! Component: 300  -  total flux cleaned = 0.00567701 Jy
! Component: 350  -  total flux cleaned = 0.00585413 Jy
! Component: 400  -  total flux cleaned = 0.00584623 Jy
! Component: 450  -  total flux cleaned = 0.005997 Jy
! Component: 500  -  total flux cleaned = 0.00585654 Jy
! Component: 550  -  total flux cleaned = 0.00544351 Jy
! Component: 600  -  total flux cleaned = 0.00518529 Jy
! Component: 650  -  total flux cleaned = 0.00568921 Jy
! Component: 700  -  total flux cleaned = 0.00628519 Jy
! Component: 750  -  total flux cleaned = 0.00651349 Jy
! Component: 800  -  total flux cleaned = 0.00662656 Jy
! Component: 850  -  total flux cleaned = 0.00673655 Jy
! Component: 900  -  total flux cleaned = 0.0066307 Jy
! Component: 950  -  total flux cleaned = 0.00642683 Jy
! Component: 1000  -  total flux cleaned = 0.00632819 Jy
! Component: 1050  -  total flux cleaned = 0.00632741 Jy
! Component: 1100  -  total flux cleaned = 0.00595128 Jy
! Component: 1150  -  total flux cleaned = 0.0056777 Jy
! Component: 1200  -  total flux cleaned = 0.00531891 Jy
! Component: 1250  -  total flux cleaned = 0.00505519 Jy
! Component: 1300  -  total flux cleaned = 0.00496868 Jy
! Component: 1350  -  total flux cleaned = 0.00479671 Jy
! Component: 1400  -  total flux cleaned = 0.00454201 Jy
! Component: 1450  -  total flux cleaned = 0.00437534 Jy
! Component: 1500  -  total flux cleaned = 0.00421023 Jy
! Component: 1550  -  total flux cleaned = 0.00404703 Jy
! Component: 1600  -  total flux cleaned = 0.00396541 Jy
! Component: 1650  -  total flux cleaned = 0.00372231 Jy
! Component: 1700  -  total flux cleaned = 0.00340164 Jy
! Component: 1750  -  total flux cleaned = 0.00348134 Jy
! Component: 1800  -  total flux cleaned = 0.00340187 Jy
! Component: 1850  -  total flux cleaned = 0.00332283 Jy
! Component: 1900  -  total flux cleaned = 0.00324388 Jy
! Component: 1950  -  total flux cleaned = 0.00308696 Jy
! Component: 2000  -  total flux cleaned = 0.00300919 Jy
! Component: 2050  -  total flux cleaned = 0.00316605 Jy
! Component: 2100  -  total flux cleaned = 0.00316566 Jy
! Component: 2150  -  total flux cleaned = 0.00332276 Jy
! Component: 2200  -  total flux cleaned = 0.00348104 Jy
! Component: 2250  -  total flux cleaned = 0.00371899 Jy
! Component: 2300  -  total flux cleaned = 0.00379867 Jy
! Component: 2350  -  total flux cleaned = 0.00379812 Jy
! Component: 2400  -  total flux cleaned = 0.00379756 Jy
! Component: 2450  -  total flux cleaned = 0.00379778 Jy
! Component: 2500  -  total flux cleaned = 0.00379765 Jy
! Component: 2550  -  total flux cleaned = 0.00388149 Jy
! Component: 2600  -  total flux cleaned = 0.00371359 Jy
! Component: 2650  -  total flux cleaned = 0.00371376 Jy
! Component: 2700  -  total flux cleaned = 0.00371349 Jy
! Component: 2750  -  total flux cleaned = 0.00388538 Jy
! Component: 2800  -  total flux cleaned = 0.00397186 Jy
! Component: 2850  -  total flux cleaned = 0.00397119 Jy
! Component: 2900  -  total flux cleaned = 0.00414743 Jy
! Component: 2950  -  total flux cleaned = 0.00423686 Jy
! Component: 3000  -  total flux cleaned = 0.00441808 Jy
! Component: 3050  -  total flux cleaned = 0.00450891 Jy
! Component: 3100  -  total flux cleaned = 0.00460068 Jy
! Component: 3150  -  total flux cleaned = 0.00478703 Jy
! Component: 3200  -  total flux cleaned = 0.00507 Jy
! Component: 3250  -  total flux cleaned = 0.00516611 Jy
! Component: 3300  -  total flux cleaned = 0.0051657 Jy
! Component: 3350  -  total flux cleaned = 0.00545811 Jy
! Component: 3400  -  total flux cleaned = 0.00545758 Jy
! Component: 3450  -  total flux cleaned = 0.00545658 Jy
! Component: 3500  -  total flux cleaned = 0.00575951 Jy
! Component: 3550  -  total flux cleaned = 0.00575912 Jy
! Component: 3600  -  total flux cleaned = 0.0057596 Jy
! Component: 3650  -  total flux cleaned = 0.00607105 Jy
! Component: 3700  -  total flux cleaned = 0.00617606 Jy
! Component: 3750  -  total flux cleaned = 0.00628246 Jy
! Component: 3800  -  total flux cleaned = 0.00660569 Jy
! Component: 3850  -  total flux cleaned = 0.00649632 Jy
! Component: 3900  -  total flux cleaned = 0.00671729 Jy
! Component: 3950  -  total flux cleaned = 0.0066051 Jy
! Component: 4000  -  total flux cleaned = 0.0067188 Jy
! Component: 4050  -  total flux cleaned = 0.00660342 Jy
! Total flux subtracted in 4096 components = 0.0066032 Jy
! Clean residual min=-0.006547 max=0.006833 Jy/beam
! Clean residual mean=-0.000078 rms=0.002348 Jy/beam
! Combined flux in latest and established models = 3.36659 Jy
keep
! Adding 289 model components to the UV plane model.
! The established model now contains 350 components and 3.36659 Jy
![Exited script file: muppet]
wmap "J0359+5057_X_1999_12_20_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.125 x 9.673 at -73.71 degrees (North through East)
! Clean map  min=-0.013825  max=3.2184 Jy/beam
! Writing clean map to FITS file: J0359+5057_X_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 3.21835 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00262813 
device "J0359+5057_X_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J0359+5057_X_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.244982 0.244982 0.489964 0.979929 1.95986 3.91971 7.83943 15.6789 31.3577 62.7154
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0078 
print "peak=",int(1000*peak_flux)/1000
! peak= 3.218 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.125 x 9.673 at -73.71 degrees (North through East)
! Clean map  min=-0.013825  max=3.2184 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0359+5057_X_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J0359+5057_X_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0359+5057_X_1999_12_20_pus_uvs.log closed on Mon Dec 17 12:15:37 2007