! Started logfile: J1407+2827_S_2001_10_29_pus_uvs.log on Wed Feb 27 15:23:43 2008
obs J1407+2827_S_2001_10_29_pus_uva.fits
! Reading UV FITS file: J1407+2827_S_2001_10_29_pus_uva.fits
! AN table 1: 202 integrations on 153 of 153 possible baselines.
! AN table 2: 34 integrations on 153 of 153 possible baselines.
! AN table 3: 52 integrations on 153 of 153 possible baselines.
! AN table 4: 164 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.101654 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1407+2827
! 
! 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.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2604 lines of history.
! 
! Reading 28120 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 J1407+2827_S_2001_10_29_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 2440 telescope corrections were flagged in sub-array 1.
!  A total of 523 telescope corrections were flagged in sub-array 2.
!  A total of 567 telescope corrections were flagged in sub-array 3.
!  A total of 2547 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 2440 telescope corrections were flagged in sub-array 1.
!  A total of 523 telescope corrections were flagged in sub-array 2.
!  A total of 567 telescope corrections were flagged in sub-array 3.
!  A total of 2547 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 2440 telescope corrections were flagged in sub-array 1.
!  A total of 523 telescope corrections were flagged in sub-array 2.
!  A total of 567 telescope corrections were flagged in sub-array 3.
!  A total of 2547 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 2639 telescope corrections were flagged in sub-array 1.
!  A total of 567 telescope corrections were flagged in sub-array 2.
!  A total of 619 telescope corrections were flagged in sub-array 3.
!  A total of 2717 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.819978Jy  sigma=0.006508
! Fit after  self-cal, rms=0.468195Jy  sigma=0.003652
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.739 mas, bmaj=3.898 mas, bpa=-8.516 degrees
! Estimated noise=1096.98 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.769137 Jy
! Component: 100  -  total flux cleaned = 1.05708 Jy
! Total flux subtracted in 100 components = 1.05708 Jy
! Clean residual min=-0.041255 max=0.142630 Jy/beam
! Clean residual mean=0.000302 rms=0.011964 Jy/beam
! Combined flux in latest and established models = 1.05708 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 14 components and 1.05708 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.407346Jy  sigma=0.003171
! Fit after  self-cal, rms=0.406594Jy  sigma=0.003169
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.173423 Jy
! Component: 100  -  total flux cleaned = 0.287153 Jy
! Total flux subtracted in 100 components = 0.287153 Jy
! Clean residual min=-0.030793 max=0.062304 Jy/beam
! Clean residual mean=0.000139 rms=0.007033 Jy/beam
! Combined flux in latest and established models = 1.34423 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 28 components and 1.34423 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.287095Jy  sigma=0.002028
! Fit after  self-cal, rms=0.286591Jy  sigma=0.002025
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0790583 Jy
! Component: 100  -  total flux cleaned = 0.134058 Jy
! Total flux subtracted in 100 components = 0.134058 Jy
! Clean residual min=-0.025098 max=0.030436 Jy/beam
! Clean residual mean=0.000063 rms=0.005486 Jy/beam
! Combined flux in latest and established models = 1.47829 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 33 components and 1.47829 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.263679Jy  sigma=0.001748
! Fit after  self-cal, rms=0.263537Jy  sigma=0.001747
! 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.215 mas, bmaj=5.096 mas, bpa=-10.99 degrees
! Estimated noise=557.678 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.0302324 Jy
! Component: 100  -  total flux cleaned = 0.0455444 Jy
! Component: 150  -  total flux cleaned = 0.0512638 Jy
! Component: 200  -  total flux cleaned = 0.0526528 Jy
! Total flux subtracted in 200 components = 0.0526528 Jy
! Clean residual min=-0.018774 max=0.019355 Jy/beam
! Clean residual mean=-0.000154 rms=0.005372 Jy/beam
! Combined flux in latest and established models = 1.53094 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 35 components and 1.53094 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.261810Jy  sigma=0.001707
! Fit after  self-cal, rms=0.261781Jy  sigma=0.001707
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 237 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.74     KK        1.03     KP        0.99     LA        1.00     
!   MA        1.34     MC        1.05     MK        1.02     NL        0.92     
!   OV        0.98     PT        1.00     SC        0.97     TS        1.03     
!   WF        1.01     WZ        1.17     
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.00     MC        1.09     MK        1.03     NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.09     
!   WF        1.00*    WZ        1.31     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.03     KK        1.00*    KP        1.05     LA        1.02     
!   MA        0.84     MC        1.15     MK        1.00*    NL        0.99     
!   OV        1.02     PT        1.02     SC        1.00     TS        1.00*    
!   WF        0.97     WZ        1.05     
! 
!  A total of 63 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.00*    GG        1.00*    HH        1.84     
!   HN        0.97     KK        0.99     KP        0.90     LA        1.02     
!   MA        1.06     MC        1.27     MK        1.02     NL        1.04     
!   OV        0.98     PT        1.01     SC        1.09     TS        1.09     
!   WF        1.05     WZ        1.04     
! 
! 
! Correcting IF 2.
!  A total of 237 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.87     KK        1.01     KP        0.93     LA        0.97     
!   MA        2.17     MC        1.05     MK        1.03     NL        0.93     
!   OV        1.00     PT        0.98     SC        0.98     TS        1.02     
!   WF        0.97     WZ        1.17     
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        3.00     MC        1.20     MK        1.04     NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.05     
!   WF        1.00*    WZ        1.21     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.02     KK        1.00*    KP        1.05     LA        0.99     
!   MA        0.88     MC        1.29     MK        1.00*    NL        0.99     
!   OV        1.04     PT        1.01     SC        0.96     TS        1.00*    
!   WF        1.06     WZ        1.04     
! 
!  A total of 63 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        1.62     
!   HN        1.03     KK        0.96     KP        0.90     LA        1.00     
!   MA        0.85     MC        2.25     MK        1.01     NL        1.05     
!   OV        1.00     PT        0.99     SC        1.09     TS        1.10     
!   WF        1.01     WZ        1.06     
! 
! 
! Correcting IF 3.
!  A total of 237 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.88     KK        0.99     KP        0.98     LA        0.95     
!   MA        1.15     MC        1.43     MK        0.96     NL        0.93     
!   OV        0.99     PT        0.98     SC        0.95     TS        1.01     
!   WF        0.94     WZ        1.13     
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.94     MC        1.11     MK        0.89     NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.11     
!   WF        1.00*    WZ        1.29     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.01     KK        1.00*    KP        1.03     LA        0.97     
!   MA        1.01     MC        0.94     MK        1.00*    NL        0.98     
!   OV        1.03     PT        1.03     SC        0.98     TS        1.00*    
!   WF        0.98     WZ        1.01     
! 
!  A total of 63 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.00*    GG        1.00*    HH        1.91     
!   HN        1.02     KK        0.97     KP        0.93     LA        0.96     
!   MA        1.01     MC        0.90     MK        0.96     NL        1.02     
!   OV        0.99     PT        1.00     SC        1.05     TS        1.07     
!   WF        1.06     WZ        1.04     
! 
! 
! Correcting IF 4.
!  A total of 93 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.83     KK        0.95     KP        0.98     LA        0.97     
!   MA        1.00*    MC        1.00*    MK        1.00     NL        0.96     
!   OV        0.97     PT        1.01     SC        0.96     TS        1.00     
!   WF        0.95     WZ        1.11     
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.02     KK        1.00*    KP        1.02     LA        0.99     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.02     
!   OV        1.00     PT        1.01     SC        0.98     TS        1.00*    
!   WF        1.00     WZ        1.01     
! 
!  A total of 51 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.99     KK        0.93     KP        0.93     LA        1.01     
!   MA        1.00*    MC        1.00*    MK        0.97     NL        1.09     
!   OV        0.97     PT        1.13     SC        1.04     TS        1.13     
!   WF        1.02     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.261781Jy  sigma=0.001707
! Fit after  self-cal, rms=0.240989Jy  sigma=0.001464
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.232 mas, bmaj=5.226 mas, bpa=-11.06 degrees
! Estimated noise=567.497 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 (-15, 30.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0190368 Jy
! Component: 100  -  total flux cleaned = 0.0264029 Jy
! Component: 150  -  total flux cleaned = 0.029664 Jy
! Component: 200  -  total flux cleaned = 0.0316033 Jy
! Total flux subtracted in 200 components = 0.0316033 Jy
! Clean residual min=-0.012702 max=0.014581 Jy/beam
! Clean residual mean=0.000091 rms=0.003419 Jy/beam
! Combined flux in latest and established models = 1.56254 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 58 components and 1.56254 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.239672Jy  sigma=0.001446
! Fit after  self-cal, rms=0.240213Jy  sigma=0.001445
! 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.240213Jy  sigma=0.001445
! Fit after  self-cal, rms=0.234395Jy  sigma=0.001327
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.229 mas, bmaj=5.241 mas, bpa=-11.02 degrees
! Estimated noise=567.593 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0049217 Jy
! Component: 100  -  total flux cleaned = -0.00657722 Jy
! Component: 150  -  total flux cleaned = -0.00721832 Jy
! Component: 200  -  total flux cleaned = -0.0076859 Jy
! Total flux subtracted in 200 components = -0.0076859 Jy
! Clean residual min=-0.005807 max=0.018209 Jy/beam
! Clean residual mean=0.000278 rms=0.001874 Jy/beam
! Combined flux in latest and established models = 1.55486 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 74 components and 1.55486 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.234226Jy  sigma=0.001325
! Fit after  self-cal, rms=0.234347Jy  sigma=0.001325
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (-6, -4.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0130529 Jy
! Component: 100  -  total flux cleaned = 0.0136965 Jy
! Component: 150  -  total flux cleaned = 0.013192 Jy
! Component: 200  -  total flux cleaned = 0.0125986 Jy
! Total flux subtracted in 200 components = 0.0125986 Jy
! Clean residual min=-0.005570 max=0.006253 Jy/beam
! Clean residual mean=0.000217 rms=0.001661 Jy/beam
! Combined flux in latest and established models = 1.56746 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 82 components and 1.56746 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.233207Jy  sigma=0.001313
! Fit after  self-cal, rms=0.233005Jy  sigma=0.001311
! 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.233005Jy  sigma=0.001311
! Fit after  self-cal, rms=0.233351Jy  sigma=0.001309
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.231 mas, bmaj=5.24 mas, bpa=-10.97 degrees
! Estimated noise=568.776 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00731953 Jy
! Component: 100  -  total flux cleaned = 0.00647092 Jy
! Component: 150  -  total flux cleaned = 0.00595994 Jy
! Component: 200  -  total flux cleaned = 0.00523261 Jy
! Total flux subtracted in 200 components = 0.00523261 Jy
! Clean residual min=-0.004723 max=0.005259 Jy/beam
! Clean residual mean=0.000149 rms=0.001390 Jy/beam
! Combined flux in latest and established models = 1.57269 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 87 components and 1.57269 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232862Jy  sigma=0.001303
! Fit after  self-cal, rms=0.232779Jy  sigma=0.001303
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.00207181 Jy
! Component: 100  -  total flux cleaned = 0.00152981 Jy
! Component: 150  -  total flux cleaned = 0.000920676 Jy
! Component: 200  -  total flux cleaned = 0.000260302 Jy
! Total flux subtracted in 200 components = 0.000260302 Jy
! Clean residual min=-0.004378 max=0.005121 Jy/beam
! Clean residual mean=0.000151 rms=0.001329 Jy/beam
! Combined flux in latest and established models = 1.57295 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 100 components and 1.57295 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232622Jy  sigma=0.001301
! Fit after  self-cal, rms=0.232598Jy  sigma=0.001301
! 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.232598Jy  sigma=0.001301
! Fit after  self-cal, rms=0.232762Jy  sigma=0.001299
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.374 mas, bmaj=10.04 mas, bpa=-18.72 degrees
! Estimated noise=825.463 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00274783 Jy
! Component: 100  -  total flux cleaned = 0.00198639 Jy
! Component: 150  -  total flux cleaned = 0.00138956 Jy
! Component: 200  -  total flux cleaned = 0.00129087 Jy
! Total flux subtracted in 200 components = 0.00129087 Jy
! Clean residual min=-0.005228 max=0.008015 Jy/beam
! Clean residual mean=0.000333 rms=0.002030 Jy/beam
! Combined flux in latest and established models = 1.57424 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 118 components and 1.57424 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232672Jy  sigma=0.001298
! Fit after  self-cal, rms=0.232644Jy  sigma=0.001297
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.000871081 Jy
! Component: 100  -  total flux cleaned = 0.000398849 Jy
! Component: 150  -  total flux cleaned = 0.000323418 Jy
! Component: 200  -  total flux cleaned = 0.000258801 Jy
! Total flux subtracted in 200 components = 0.000258801 Jy
! Clean residual min=-0.004938 max=0.007441 Jy/beam
! Clean residual mean=0.000332 rms=0.001978 Jy/beam
! Combined flux in latest and established models = 1.5745 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 131 components and 1.5745 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232648Jy  sigma=0.001297
! Fit after  self-cal, rms=0.232635Jy  sigma=0.001297
! 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.232 mas, bmaj=5.239 mas, bpa=-10.94 degrees
! Estimated noise=569.404 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.232 x 5.239 at -10.94 degrees (North through East)
! Clean map  min=-0.0043923  max=1.1215 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.232635Jy  sigma=0.001297
! Fit after  self-cal, rms=0.346535Jy  sigma=0.001168
! Inverting map and beam 
! Estimated beam: bmin=2.235 mas, bmaj=5.241 mas, bpa=-10.91 degrees
! Estimated noise=571.183 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00253505 Jy
! Component: 100  -  total flux cleaned = 0.00276791 Jy
! Component: 150  -  total flux cleaned = 0.00258582 Jy
! Component: 200  -  total flux cleaned = 0.0025859 Jy
! Total flux subtracted in 200 components = 0.0025859 Jy
! Clean residual min=-0.003443 max=0.004100 Jy/beam
! Clean residual mean=0.000070 rms=0.001018 Jy/beam
! Combined flux in latest and established models = 1.57709 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 149 components and 1.57709 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.346456Jy  sigma=0.001166
! Fit after  self-cal, rms=0.346451Jy  sigma=0.001166
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00068737 Jy
! Component: 100  -  total flux cleaned = 0.000850692 Jy
! Component: 150  -  total flux cleaned = 0.000997676 Jy
! Component: 200  -  total flux cleaned = 0.00106672 Jy
! Total flux subtracted in 200 components = 0.00106672 Jy
! Clean residual min=-0.003514 max=0.004109 Jy/beam
! Clean residual mean=0.000065 rms=0.001005 Jy/beam
! Combined flux in latest and established models = 1.57815 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 155 components and 1.57815 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.346407Jy  sigma=0.001166
! Fit after  self-cal, rms=0.346406Jy  sigma=0.001166
! 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.346406Jy  sigma=0.001166
! Fit after  self-cal, rms=0.346698Jy  sigma=0.001165
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=1.786 mas, bmaj=4.12 mas, bpa=-8.008 degrees
! Estimated noise=1161.95 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.789155 Jy
! Component: 100  -  total flux cleaned = 1.06609 Jy
! Component: 150  -  total flux cleaned = 1.22207 Jy
! Component: 200  -  total flux cleaned = 1.31968 Jy
! Total flux subtracted in 200 components = 1.31968 Jy
! Clean residual min=-0.019491 max=0.052780 Jy/beam
! Clean residual mean=0.000165 rms=0.005123 Jy/beam
! Combined flux in latest and established models = 1.31968 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 25 model components to the UV plane model.
! The established model now contains 25 components and 1.31968 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.235 mas, bmaj=5.242 mas, bpa=-10.89 degrees
! Estimated noise=571.249 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.103157 Jy
! Component: 100  -  total flux cleaned = 0.161555 Jy
! Component: 150  -  total flux cleaned = 0.197711 Jy
! Component: 200  -  total flux cleaned = 0.221065 Jy
! Total flux subtracted in 200 components = 0.221065 Jy
! Clean residual min=-0.007646 max=0.012539 Jy/beam
! Clean residual mean=0.000242 rms=0.001953 Jy/beam
! Combined flux in latest and established models = 1.54075 Jy
! Adding 51 model components to the UV plane model.
! The established model now contains 63 components and 1.54075 Jy
! Inverting map 
! Added new window around map position (0, -3.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0154464 Jy
! Component: 100  -  total flux cleaned = 0.024015 Jy
! Component: 150  -  total flux cleaned = 0.0267492 Jy
! Component: 200  -  total flux cleaned = 0.0294396 Jy
! Total flux subtracted in 200 components = 0.0294396 Jy
! Clean residual min=-0.005723 max=0.005389 Jy/beam
! Clean residual mean=0.000101 rms=0.001252 Jy/beam
! Combined flux in latest and established models = 1.57019 Jy
! Adding 29 model components to the UV plane model.
! The established model now contains 76 components and 1.57019 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.368 mas, bmaj=10.04 mas, bpa=-18.35 degrees
! Estimated noise=826.742 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00654921 Jy
! Component: 100  -  total flux cleaned = 0.00865688 Jy
! Component: 150  -  total flux cleaned = 0.00885993 Jy
! Component: 200  -  total flux cleaned = 0.00903296 Jy
! Total flux subtracted in 200 components = 0.00903296 Jy
! Clean residual min=-0.003950 max=0.006321 Jy/beam
! Clean residual mean=0.000150 rms=0.001613 Jy/beam
! Combined flux in latest and established models = 1.57922 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 = 2.19907e-06 Jy
! Component: 100  -  total flux cleaned = 7.08225e-05 Jy
! Component: 150  -  total flux cleaned = 0.000131364 Jy
! Component: 200  -  total flux cleaned = 0.000134681 Jy
! Total flux subtracted in 200 components = 0.000134681 Jy
! Clean residual min=-0.003759 max=0.006319 Jy/beam
! Clean residual mean=0.000148 rms=0.001569 Jy/beam
! Combined flux in latest and established models = 1.57936 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 105 components and 1.57936 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.235 mas, bmaj=5.242 mas, bpa=-10.89 degrees
! Estimated noise=571.249 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00166132 Jy
! Component: 100  -  total flux cleaned = -0.000398215 Jy
! Component: 150  -  total flux cleaned = 0.000354566 Jy
! Component: 200  -  total flux cleaned = 0.00137095 Jy
! Total flux subtracted in 200 components = 0.00137095 Jy
! Clean residual min=-0.004659 max=0.004395 Jy/beam
! Clean residual mean=0.000046 rms=0.001114 Jy/beam
! Combined flux in latest and established models = 1.58073 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 110 components and 1.58073 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.347572Jy  sigma=0.001173
! Fit after  self-cal, rms=0.347548Jy  sigma=0.001172
wmodel J1407+2827_S_2001_10_29_pus_map.mod
! Writing 110 model components to file: J1407+2827_S_2001_10_29_pus_map.mod
wobs J1407+2827_S_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J1407+2827_S_2001_10_29_pus_uvs.fits
wwins J1407+2827_S_2001_10_29_pus_map.win
! wwins: Wrote 4 windows to J1407+2827_S_2001_10_29_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.000602478 Jy
! Component: 100  -  total flux cleaned = -0.000456358 Jy
! Component: 150  -  total flux cleaned = -3.62387e-05 Jy
! Component: 200  -  total flux cleaned = 0.000370015 Jy
! Component: 250  -  total flux cleaned = 0.000764505 Jy
! Component: 300  -  total flux cleaned = 0.0012753 Jy
! Component: 350  -  total flux cleaned = 0.00146131 Jy
! Component: 400  -  total flux cleaned = 0.00164262 Jy
! Component: 450  -  total flux cleaned = 0.00182005 Jy
! Component: 500  -  total flux cleaned = 0.00199454 Jy
! Component: 550  -  total flux cleaned = 0.0021084 Jy
! Component: 600  -  total flux cleaned = 0.00216361 Jy
! Component: 650  -  total flux cleaned = 0.0020536 Jy
! Component: 700  -  total flux cleaned = 0.00200087 Jy
! Component: 750  -  total flux cleaned = 0.00210764 Jy
! Component: 800  -  total flux cleaned = 0.00205521 Jy
! Component: 850  -  total flux cleaned = 0.00210707 Jy
! Component: 900  -  total flux cleaned = 0.002106 Jy
! Component: 950  -  total flux cleaned = 0.00205507 Jy
! Component: 1000  -  total flux cleaned = 0.00200548 Jy
! Component: 1050  -  total flux cleaned = 0.00210402 Jy
! Component: 1100  -  total flux cleaned = 0.00215183 Jy
! Component: 1150  -  total flux cleaned = 0.00219987 Jy
! Component: 1200  -  total flux cleaned = 0.00229545 Jy
! Component: 1250  -  total flux cleaned = 0.00238983 Jy
! Component: 1300  -  total flux cleaned = 0.00248291 Jy
! Component: 1350  -  total flux cleaned = 0.00262098 Jy
! Component: 1400  -  total flux cleaned = 0.00275738 Jy
! Component: 1450  -  total flux cleaned = 0.00271262 Jy
! Component: 1500  -  total flux cleaned = 0.00280255 Jy
! Component: 1550  -  total flux cleaned = 0.0028466 Jy
! Component: 1600  -  total flux cleaned = 0.0029344 Jy
! Component: 1650  -  total flux cleaned = 0.00284705 Jy
! Component: 1700  -  total flux cleaned = 0.00293401 Jy
! Component: 1750  -  total flux cleaned = 0.00314829 Jy
! Component: 1800  -  total flux cleaned = 0.00310571 Jy
! Component: 1850  -  total flux cleaned = 0.0031903 Jy
! Component: 1900  -  total flux cleaned = 0.0032738 Jy
! Component: 1950  -  total flux cleaned = 0.00335664 Jy
! Component: 2000  -  total flux cleaned = 0.00339785 Jy
! Total flux subtracted in 2048 components = 0.00356123 Jy
! Clean residual min=-0.002640 max=0.002502 Jy/beam
! Clean residual mean=0.000026 rms=0.000738 Jy/beam
! Combined flux in latest and established models = 1.58429 Jy
keep
! Adding 134 model components to the UV plane model.
! The established model now contains 239 components and 1.58429 Jy
![Exited script file: muppet]
wmap "J1407+2827_S_2001_10_29_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.235 x 5.242 at -10.89 degrees (North through East)
! Clean map  min=-0.0032565  max=1.1246 Jy/beam
! Writing clean map to FITS file: J1407+2827_S_2001_10_29_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.12458 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000737069 
device "J1407+2827_S_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J1407+2827_S_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.196625 0.196625 0.39325 0.786499 1.573 3.146 6.292 12.584 25.168 50.336
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0022 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.124 
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.235 x 5.242 at -10.89 degrees (North through East)
! Clean map  min=-0.0032565  max=1.1246 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1407+2827_S_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J1407+2827_S_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1407+2827_S_2001_10_29_pus_uvs.log closed on Wed Feb 27 15:24:00 2008