! Started logfile: J1740+5211_S_1999_03_08_pus_uvs.log on Tue Jan  8 18:31:20 2008
obs J1740+5211_S_1999_03_08_pus_uva.fits
! Reading UV FITS file: J1740+5211_S_1999_03_08_pus_uva.fits
! AN table 1: 162 integrations on 190 of 190 possible baselines.
! AN table 2: 136 integrations on 190 of 190 possible baselines.
! AN table 3: 103 integrations on 190 of 190 possible baselines.
! AN table 4: 10 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.158727 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1740+5211
! 
! 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 2332 lines of history.
! 
! Reading 49580 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 J1740+5211_S_1999_03_08_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 2016 telescope corrections were flagged in sub-array 1.
!  A total of 2111 telescope corrections were flagged in sub-array 2.
!  A total of 1308 telescope corrections were flagged in sub-array 3.
!  A total of 200 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 2016 telescope corrections were flagged in sub-array 1.
!  A total of 2111 telescope corrections were flagged in sub-array 2.
!  A total of 1308 telescope corrections were flagged in sub-array 3.
!  A total of 200 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 2016 telescope corrections were flagged in sub-array 1.
!  A total of 2111 telescope corrections were flagged in sub-array 2.
!  A total of 1308 telescope corrections were flagged in sub-array 3.
!  A total of 200 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 2016 telescope corrections were flagged in sub-array 1.
!  A total of 2111 telescope corrections were flagged in sub-array 2.
!  A total of 1308 telescope corrections were flagged in sub-array 3.
!  A total of 200 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.785825Jy  sigma=0.012491
! Fit after  self-cal, rms=0.942433Jy  sigma=0.007265
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.024 mas, bmaj=2.623 mas, bpa=-1.056 degrees
! Estimated noise=1036.38 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 = 1.432 Jy
! Component: 100  -  total flux cleaned = 1.74993 Jy
! Total flux subtracted in 100 components = 1.74993 Jy
! Clean residual min=-0.036298 max=0.108657 Jy/beam
! Clean residual mean=-0.000036 rms=0.008404 Jy/beam
! Combined flux in latest and established models = 1.74993 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 1.74993 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.400980Jy  sigma=0.002862
! Fit after  self-cal, rms=0.400971Jy  sigma=0.002862
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.113764 Jy
! Component: 100  -  total flux cleaned = 0.175883 Jy
! Total flux subtracted in 100 components = 0.175883 Jy
! Clean residual min=-0.039078 max=0.039451 Jy/beam
! Clean residual mean=-0.000183 rms=0.006891 Jy/beam
! Combined flux in latest and established models = 1.92582 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 11 components and 1.92582 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.367964Jy  sigma=0.002481
! Fit after  self-cal, rms=0.367883Jy  sigma=0.002481
! Inverting map 
! Added new window around map position (2, 2.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.045125 Jy
! Component: 100  -  total flux cleaned = 0.0765766 Jy
! Total flux subtracted in 100 components = 0.0765766 Jy
! Clean residual min=-0.038912 max=0.033924 Jy/beam
! Clean residual mean=-0.000246 rms=0.006557 Jy/beam
! Combined flux in latest and established models = 2.00239 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 20 components and 2.00239 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.362579Jy  sigma=0.002406
! Fit after  self-cal, rms=0.362458Jy  sigma=0.002405
! 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.416 mas, bmaj=3.325 mas, bpa=9.337 degrees
! Estimated noise=447.388 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (1, 6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0311754 Jy
! Component: 100  -  total flux cleaned = 0.038241 Jy
! Component: 150  -  total flux cleaned = 0.0429941 Jy
! Component: 200  -  total flux cleaned = 0.0436979 Jy
! Total flux subtracted in 200 components = 0.0436979 Jy
! Clean residual min=-0.032669 max=0.040128 Jy/beam
! Clean residual mean=-0.001848 rms=0.007259 Jy/beam
! Combined flux in latest and established models = 2.04609 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 32 components and 2.04609 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.355580Jy  sigma=0.002344
! Fit after  self-cal, rms=0.355032Jy  sigma=0.002339
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.96     GC        0.95     GG        1.00*    
!   HN        0.96     KP        0.98     LA        0.97     NL        1.03     
!   OV        0.97     PT        1.00     SC        0.99     WF        0.96     
!   GN        0.93     HH        1.00*    KK        1.01     MC        0.95     
!   MK        0.95     NY        1.00     ON        0.99     WZ        1.00     
! 
!  A total of 141 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.92     FD        0.94     GC        0.96     GG        1.00*    
!   HN        0.95     KP        0.89     LA        0.95     NL        1.01     
!   OV        0.97     PT        1.00*    SC        0.99     WF        0.94     
!   GN        0.93     HH        1.00*    KK        0.99     MC        1.04     
!   MK        0.95     NY        0.96     ON        0.98     WZ        1.00     
! 
!  A total of 33 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        1.02     GC        1.01     GG        1.00*    
!   HN        1.24     KP        1.00     LA        1.00*    NL        1.00     
!   OV        0.95     PT        1.02     SC        1.00*    WF        1.14     
!   GN        1.28     HH        1.00*    KK        1.00     MC        1.09     
!   MK        0.97     NY        1.01     ON        1.14     WZ        0.97     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    WF        0.00*    
!   GN        0.00*    HH        0.00*    KK        0.00*    MC        0.00*    
!   MK        0.00*    NY        0.00*    ON        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.01     GC        0.98     GG        1.00*    
!   HN        0.95     KP        0.95     LA        0.96     NL        0.94     
!   OV        0.95     PT        0.97     SC        1.09     WF        0.97     
!   GN        0.94     HH        1.00*    KK        0.98     MC        2.08     
!   MK        0.96     NY        1.01     ON        1.01     WZ        1.01     
! 
!  A total of 141 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.99     GC        1.00     GG        1.00*    
!   HN        0.95     KP        0.92     LA        0.95     NL        0.89     
!   OV        0.94     PT        1.00*    SC        1.04     WF        0.97     
!   GN        0.96     HH        1.00*    KK        0.95     MC        1.16     
!   MK        0.97     NY        0.96     ON        0.97     WZ        0.99     
! 
!  A total of 33 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.23     GC        1.03     GG        1.00*    
!   HN        1.20     KP        1.07     LA        1.00*    NL        1.06     
!   OV        0.94     PT        0.99     SC        1.00*    WF        1.16     
!   GN        1.31     HH        1.00*    KK        0.96     MC        1.35     
!   MK        0.98     NY        1.00     ON        1.17     WZ        0.98     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    WF        0.00*    
!   GN        0.00*    HH        0.00*    KK        0.00*    MC        0.00*    
!   MK        0.00*    NY        0.00*    ON        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.98     GC        0.97     GG        1.00*    
!   HN        1.21     KP        0.97     LA        0.98     NL        1.01     
!   OV        0.99     PT        0.94     SC        1.02     WF        0.97     
!   GN        0.94     HH        1.00*    KK        0.99     MC        1.22     
!   MK        0.96     NY        1.03     ON        1.00     WZ        1.01     
! 
!  A total of 141 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.97     GC        1.01     GG        1.00*    
!   HN        1.21     KP        0.94     LA        0.97     NL        0.98     
!   OV        0.97     PT        1.00*    SC        1.01     WF        0.97     
!   GN        0.96     HH        1.00*    KK        0.97     MC        0.96     
!   MK        0.97     NY        0.97     ON        0.89     WZ        1.04     
! 
!  A total of 33 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.21     GC        1.00     GG        1.00*    
!   HN        1.65     KP        1.05     LA        1.00*    NL        1.10     
!   OV        0.97     PT        0.96     SC        1.00*    WF        1.11     
!   GN        1.21     HH        1.00*    KK        0.96     MC        0.82     
!   MK        0.97     NY        1.02     ON        1.35     WZ        1.03     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    WF        0.00*    
!   GN        0.00*    HH        0.00*    KK        0.00*    MC        0.00*    
!   MK        0.00*    NY        0.00*    ON        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.98     GC        0.99     GG        1.00*    
!   HN        1.16     KP        0.97     LA        0.99     NL        0.97     
!   OV        1.00     PT        0.93     SC        1.02     WF        0.97     
!   GN        0.94     HH        1.00*    KK        1.04     MC        0.83     
!   MK        0.98     NY        1.02     ON        1.00     WZ        1.02     
! 
!  A total of 141 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.97     GC        1.02     GG        1.00*    
!   HN        1.15     KP        0.95     LA        0.97     NL        0.92     
!   OV        0.99     PT        1.00*    SC        1.01     WF        0.98     
!   GN        0.94     HH        1.00*    KK        1.02     MC        0.88     
!   MK        0.99     NY        0.97     ON        1.04     WZ        1.02     
! 
!  A total of 33 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.19     GC        1.03     GG        1.00*    
!   HN        1.57     KP        1.08     LA        1.00*    NL        1.04     
!   OV        0.96     PT        0.95     SC        1.00*    WF        1.12     
!   GN        1.18     HH        1.00*    KK        1.00     MC        0.96     
!   MK        0.98     NY        0.99     ON        1.06     WZ        1.02     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    WF        0.00*    
!   GN        0.00*    HH        0.00*    KK        0.00*    MC        0.00*    
!   MK        0.00*    NY        0.00*    ON        0.00*    WZ        0.00*    
! 
! 
! Fit before self-cal, rms=0.355032Jy  sigma=0.002339
! Fit after  self-cal, rms=0.298700Jy  sigma=0.001655
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.426 mas, bmaj=3.342 mas, bpa=8.65 degrees
! Estimated noise=448.745 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.000804876 Jy
! Component: 100  -  total flux cleaned = 0.000806811 Jy
! Component: 150  -  total flux cleaned = 0.000816788 Jy
! Component: 200  -  total flux cleaned = 0.00081846 Jy
! Total flux subtracted in 200 components = 0.00081846 Jy
! Clean residual min=-0.012132 max=0.010267 Jy/beam
! Clean residual mean=0.000014 rms=0.002508 Jy/beam
! Combined flux in latest and established models = 2.04691 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 53 components and 2.04691 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.297294Jy  sigma=0.001643
! Fit after  self-cal, rms=0.297410Jy  sigma=0.001642
! 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.297410Jy  sigma=0.001642
! Fit after  self-cal, rms=0.283212Jy  sigma=0.001529
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.423 mas, bmaj=3.346 mas, bpa=7.999 degrees
! Estimated noise=449.057 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00391369 Jy
! Component: 100  -  total flux cleaned = 0.00525509 Jy
! Component: 150  -  total flux cleaned = 0.00583483 Jy
! Component: 200  -  total flux cleaned = 0.0063641 Jy
! Total flux subtracted in 200 components = 0.0063641 Jy
! Clean residual min=-0.005833 max=0.008161 Jy/beam
! Clean residual mean=0.000062 rms=0.001590 Jy/beam
! Combined flux in latest and established models = 2.05327 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 61 components and 2.05327 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.282371Jy  sigma=0.001521
! Fit after  self-cal, rms=0.282615Jy  sigma=0.001521
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 (-10.5, 43.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00510183 Jy
! Component: 100  -  total flux cleaned = 0.0058009 Jy
! Component: 150  -  total flux cleaned = 0.00623244 Jy
! Component: 200  -  total flux cleaned = 0.00662649 Jy
! Total flux subtracted in 200 components = 0.00662649 Jy
! Clean residual min=-0.005795 max=0.007048 Jy/beam
! Clean residual mean=0.000031 rms=0.001527 Jy/beam
! Combined flux in latest and established models = 2.0599 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 66 components and 2.0599 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.282146Jy  sigma=0.001518
! Fit after  self-cal, rms=0.282146Jy  sigma=0.001518
! Inverting map 
! Added new window around map position (12.5, 14.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0051718 Jy
! Component: 100  -  total flux cleaned = 0.00591516 Jy
! Component: 150  -  total flux cleaned = 0.00642207 Jy
! Component: 200  -  total flux cleaned = 0.00658049 Jy
! Total flux subtracted in 200 components = 0.00658049 Jy
! Clean residual min=-0.005920 max=0.006177 Jy/beam
! Clean residual mean=-0.000004 rms=0.001482 Jy/beam
! Combined flux in latest and established models = 2.06648 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 76 components and 2.06648 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.281834Jy  sigma=0.001516
! Fit after  self-cal, rms=0.281835Jy  sigma=0.001516
! 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.281835Jy  sigma=0.001516
! Fit after  self-cal, rms=0.291712Jy  sigma=0.001510
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.422 mas, bmaj=3.348 mas, bpa=7.703 degrees
! Estimated noise=449.424 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00288686 Jy
! Component: 100  -  total flux cleaned = 0.00329031 Jy
! Component: 150  -  total flux cleaned = 0.00364957 Jy
! Component: 200  -  total flux cleaned = 0.00396811 Jy
! Total flux subtracted in 200 components = 0.00396811 Jy
! Clean residual min=-0.005829 max=0.005905 Jy/beam
! Clean residual mean=0.000016 rms=0.001392 Jy/beam
! Combined flux in latest and established models = 2.07045 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 85 components and 2.07045 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.291397Jy  sigma=0.001509
! Fit after  self-cal, rms=0.291548Jy  sigma=0.001509
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 (-26.5, 26.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00436961 Jy
! Component: 100  -  total flux cleaned = 0.00514877 Jy
! Component: 150  -  total flux cleaned = 0.00558073 Jy
! Component: 200  -  total flux cleaned = 0.00585875 Jy
! Total flux subtracted in 200 components = 0.00585875 Jy
! Clean residual min=-0.005670 max=0.005736 Jy/beam
! Clean residual mean=-0.000013 rms=0.001360 Jy/beam
! Combined flux in latest and established models = 2.07631 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 100 components and 2.07631 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.291301Jy  sigma=0.001507
! Fit after  self-cal, rms=0.291297Jy  sigma=0.001507
! 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.291297Jy  sigma=0.001507
! Fit after  self-cal, rms=0.292182Jy  sigma=0.001507
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=6.616 mas, bmaj=9.019 mas, bpa=24.86 degrees
! Estimated noise=666.689 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0059758 Jy
! Component: 100  -  total flux cleaned = 0.00934667 Jy
! Component: 150  -  total flux cleaned = 0.0103937 Jy
! Component: 200  -  total flux cleaned = 0.0109814 Jy
! Total flux subtracted in 200 components = 0.0109814 Jy
! Clean residual min=-0.008365 max=0.008581 Jy/beam
! Clean residual mean=-0.000192 rms=0.002769 Jy/beam
! Combined flux in latest and established models = 2.08729 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 111 components and 2.08729 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.292082Jy  sigma=0.001507
! Fit after  self-cal, rms=0.292067Jy  sigma=0.001507
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.00116569 Jy
! Component: 100  -  total flux cleaned = 0.00157697 Jy
! Component: 150  -  total flux cleaned = 0.00186521 Jy
! Component: 200  -  total flux cleaned = 0.00212521 Jy
! Total flux subtracted in 200 components = 0.00212521 Jy
! Clean residual min=-0.008309 max=0.008390 Jy/beam
! Clean residual mean=-0.000239 rms=0.002748 Jy/beam
! Combined flux in latest and established models = 2.08941 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 124 components and 2.08941 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.292081Jy  sigma=0.001507
! Fit after  self-cal, rms=0.292078Jy  sigma=0.001507
! 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.421 mas, bmaj=3.347 mas, bpa=7.528 degrees
! Estimated noise=449.832 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.421 x 3.347 at 7.528 degrees (North through East)
! Clean map  min=-0.0054658  max=1.8513 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.292078Jy  sigma=0.001507
! Fit after  self-cal, rms=0.415035Jy  sigma=0.001263
! Inverting map and beam 
! Estimated beam: bmin=2.423 mas, bmaj=3.345 mas, bpa=7.572 degrees
! Estimated noise=449.468 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00346634 Jy
! Component: 100  -  total flux cleaned = -0.00491072 Jy
! Component: 150  -  total flux cleaned = -0.00535767 Jy
! Component: 200  -  total flux cleaned = -0.0056276 Jy
! Total flux subtracted in 200 components = -0.0056276 Jy
! Clean residual min=-0.004591 max=0.005244 Jy/beam
! Clean residual mean=-0.000011 rms=0.001213 Jy/beam
! Combined flux in latest and established models = 2.08378 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 129 components and 2.08378 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.414908Jy  sigma=0.001261
! Fit after  self-cal, rms=0.414928Jy  sigma=0.001261
! Inverting map 
! Added new window around map position (27, -26).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00511322 Jy
! Component: 100  -  total flux cleaned = 0.0051224 Jy
! Component: 150  -  total flux cleaned = 0.00499899 Jy
! Component: 200  -  total flux cleaned = 0.00499555 Jy
! Total flux subtracted in 200 components = 0.00499555 Jy
! Clean residual min=-0.004548 max=0.005143 Jy/beam
! Clean residual mean=-0.000034 rms=0.001171 Jy/beam
! Combined flux in latest and established models = 2.08878 Jy
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 141 components and 2.08878 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.414802Jy  sigma=0.001260
! Fit after  self-cal, rms=0.414827Jy  sigma=0.001260
! Inverting map 
! Added new window around map position (-12, -22.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00332054 Jy
! Component: 100  -  total flux cleaned = 0.0037802 Jy
! Component: 150  -  total flux cleaned = 0.00367342 Jy
! Component: 200  -  total flux cleaned = 0.0037828 Jy
! Total flux subtracted in 200 components = 0.0037828 Jy
! Clean residual min=-0.004318 max=0.004783 Jy/beam
! Clean residual mean=-0.000053 rms=0.001146 Jy/beam
! Combined flux in latest and established models = 2.09256 Jy
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 153 components and 2.09256 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.414721Jy  sigma=0.001259
! Fit after  self-cal, rms=0.414722Jy  sigma=0.001259
! 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.414722Jy  sigma=0.001259
! Fit after  self-cal, rms=0.415339Jy  sigma=0.001259
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.027 mas, bmaj=2.658 mas, bpa=-4.128 degrees
! Estimated noise=1041.17 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.43193 Jy
! Component: 100  -  total flux cleaned = 1.74424 Jy
! Component: 150  -  total flux cleaned = 1.83306 Jy
! Component: 200  -  total flux cleaned = 1.88417 Jy
! Total flux subtracted in 200 components = 1.88417 Jy
! Clean residual min=-0.009946 max=0.027910 Jy/beam
! Clean residual mean=0.000152 rms=0.002591 Jy/beam
! Combined flux in latest and established models = 1.88417 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 16 model components to the UV plane model.
! The established model now contains 16 components and 1.88417 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.423 mas, bmaj=3.344 mas, bpa=7.446 degrees
! Estimated noise=449.225 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.0596032 Jy
! Component: 100  -  total flux cleaned = 0.0946389 Jy
! Component: 150  -  total flux cleaned = 0.117572 Jy
! Component: 200  -  total flux cleaned = 0.133379 Jy
! Total flux subtracted in 200 components = 0.133379 Jy
! Clean residual min=-0.004434 max=0.011399 Jy/beam
! Clean residual mean=0.000363 rms=0.001700 Jy/beam
! Combined flux in latest and established models = 2.01755 Jy
! Adding 45 model components to the UV plane model.
! The established model now contains 54 components and 2.01755 Jy
! Inverting map 
! Added new window around map position (-3, -3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0125594 Jy
! Component: 100  -  total flux cleaned = 0.0224507 Jy
! Component: 150  -  total flux cleaned = 0.0308759 Jy
! Component: 200  -  total flux cleaned = 0.038144 Jy
! Total flux subtracted in 200 components = 0.038144 Jy
! Clean residual min=-0.003851 max=0.006111 Jy/beam
! Clean residual mean=0.000154 rms=0.001320 Jy/beam
! Combined flux in latest and established models = 2.05569 Jy
! Adding 43 model components to the UV plane model.
! The established model now contains 88 components and 2.05569 Jy
! Inverting map 
! Added new window around map position (6.5, 13).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00694624 Jy
! Component: 100  -  total flux cleaned = 0.0126813 Jy
! Component: 150  -  total flux cleaned = 0.0177541 Jy
! Component: 200  -  total flux cleaned = 0.0215655 Jy
! Total flux subtracted in 200 components = 0.0215655 Jy
! Clean residual min=-0.003526 max=0.004936 Jy/beam
! Clean residual mean=0.000037 rms=0.001194 Jy/beam
! Combined flux in latest and established models = 2.07726 Jy
! Adding 47 model components to the UV plane model.
! The established model now contains 111 components and 2.07726 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=6.618 mas, bmaj=9.014 mas, bpa=24.91 degrees
! Estimated noise=665.481 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00724784 Jy
! Component: 100  -  total flux cleaned = 0.0121699 Jy
! Component: 150  -  total flux cleaned = 0.0160192 Jy
! Component: 200  -  total flux cleaned = 0.0179224 Jy
! Total flux subtracted in 200 components = 0.0179224 Jy
! Clean residual min=-0.005981 max=0.007554 Jy/beam
! Clean residual mean=-0.000226 rms=0.002521 Jy/beam
! Combined flux in latest and established models = 2.09518 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.00141814 Jy
! Component: 100  -  total flux cleaned = 0.00237583 Jy
! Component: 150  -  total flux cleaned = 0.00298033 Jy
! Component: 200  -  total flux cleaned = 0.0035332 Jy
! Total flux subtracted in 200 components = 0.0035332 Jy
! Clean residual min=-0.005805 max=0.007281 Jy/beam
! Clean residual mean=-0.000299 rms=0.002485 Jy/beam
! Combined flux in latest and established models = 2.09871 Jy
! Adding 58 model components to the UV plane model.
! The established model now contains 159 components and 2.09871 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.423 mas, bmaj=3.344 mas, bpa=7.446 degrees
! Estimated noise=449.225 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00166948 Jy
! Component: 100  -  total flux cleaned = -0.0013963 Jy
! Component: 150  -  total flux cleaned = -0.00114387 Jy
! Component: 200  -  total flux cleaned = -0.000901004 Jy
! Total flux subtracted in 200 components = -0.000901004 Jy
! Clean residual min=-0.003569 max=0.004506 Jy/beam
! Clean residual mean=-0.000074 rms=0.001118 Jy/beam
! Combined flux in latest and established models = 2.09781 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 174 components and 2.09781 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.415301Jy  sigma=0.001256
! Fit after  self-cal, rms=0.415386Jy  sigma=0.001256
wmodel J1740+5211_S_1999_03_08_pus_map.mod
! Writing 174 model components to file: J1740+5211_S_1999_03_08_pus_map.mod
wobs J1740+5211_S_1999_03_08_pus_uvs.fits
! Writing UV FITS file: J1740+5211_S_1999_03_08_pus_uvs.fits
wwins J1740+5211_S_1999_03_08_pus_map.win
! wwins: Wrote 10 windows to J1740+5211_S_1999_03_08_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.00198031 Jy
! Component: 100  -  total flux cleaned = 0.00335414 Jy
! Component: 150  -  total flux cleaned = 0.00431823 Jy
! Component: 200  -  total flux cleaned = 0.0051136 Jy
! Component: 250  -  total flux cleaned = 0.00575895 Jy
! Component: 300  -  total flux cleaned = 0.00632639 Jy
! Component: 350  -  total flux cleaned = 0.0071302 Jy
! Component: 400  -  total flux cleaned = 0.00773724 Jy
! Component: 450  -  total flux cleaned = 0.00833445 Jy
! Component: 500  -  total flux cleaned = 0.00898095 Jy
! Component: 550  -  total flux cleaned = 0.00950208 Jy
! Component: 600  -  total flux cleaned = 0.00990242 Jy
! Component: 650  -  total flux cleaned = 0.010354 Jy
! Component: 700  -  total flux cleaned = 0.0108559 Jy
! Component: 750  -  total flux cleaned = 0.0112409 Jy
! Component: 800  -  total flux cleaned = 0.0115147 Jy
! Component: 850  -  total flux cleaned = 0.0119469 Jy
! Component: 900  -  total flux cleaned = 0.0122675 Jy
! Component: 950  -  total flux cleaned = 0.0125856 Jy
! Component: 1000  -  total flux cleaned = 0.0129007 Jy
! Component: 1050  -  total flux cleaned = 0.0131094 Jy
! Component: 1100  -  total flux cleaned = 0.0134194 Jy
! Component: 1150  -  total flux cleaned = 0.0136244 Jy
! Component: 1200  -  total flux cleaned = 0.0138787 Jy
! Component: 1250  -  total flux cleaned = 0.0141814 Jy
! Component: 1300  -  total flux cleaned = 0.0142813 Jy
! Component: 1350  -  total flux cleaned = 0.0144802 Jy
! Component: 1400  -  total flux cleaned = 0.0144803 Jy
! Component: 1450  -  total flux cleaned = 0.0146766 Jy
! Component: 1500  -  total flux cleaned = 0.0148227 Jy
! Component: 1550  -  total flux cleaned = 0.0149195 Jy
! Component: 1600  -  total flux cleaned = 0.0149672 Jy
! Component: 1650  -  total flux cleaned = 0.0150628 Jy
! Component: 1700  -  total flux cleaned = 0.0150151 Jy
! Component: 1750  -  total flux cleaned = 0.0151095 Jy
! Component: 1800  -  total flux cleaned = 0.015203 Jy
! Component: 1850  -  total flux cleaned = 0.0151563 Jy
! Component: 1900  -  total flux cleaned = 0.0152489 Jy
! Component: 1950  -  total flux cleaned = 0.015249 Jy
! Component: 2000  -  total flux cleaned = 0.0152489 Jy
! Total flux subtracted in 2048 components = 0.0152035 Jy
! Clean residual min=-0.002345 max=0.003326 Jy/beam
! Clean residual mean=-0.000162 rms=0.000908 Jy/beam
! Combined flux in latest and established models = 2.11301 Jy
keep
! Adding 176 model components to the UV plane model.
! The established model now contains 350 components and 2.11301 Jy
![Exited script file: muppet]
wmap "J1740+5211_S_1999_03_08_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.423 x 3.344 at 7.446 degrees (North through East)
! Clean map  min=-0.0037261  max=1.8547 Jy/beam
! Writing clean map to FITS file: J1740+5211_S_1999_03_08_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.8547 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000909434 
device "J1740+5211_S_1999_03_08_pus\_map.eps/VPS"
! Attempting to open device: 'J1740+5211_S_1999_03_08_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.147102 0.147102 0.294204 0.588409 1.17682 2.35363 4.70727 9.41454 18.8291 37.6582 75.3163
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0027 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.854 
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.423 x 3.344 at 7.446 degrees (North through East)
! Clean map  min=-0.0037261  max=1.8547 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1740+5211_S_1999_03_08_pus\_map.gif/vgif"
! Attempting to open device: 'J1740+5211_S_1999_03_08_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1740+5211_S_1999_03_08_pus_uvs.log closed on Tue Jan  8 18:31:49 2008