! Started logfile: J0927+3902_S_1999_03_08_pus_uvs.log on Tue Jan  8 18:13:53 2008
obs J0927+3902_S_1999_03_08_pus_uva.fits
! Reading UV FITS file: J0927+3902_S_1999_03_08_pus_uva.fits
! AN table 1: 31 integrations on 190 of 190 possible baselines.
! AN table 2: 439 integrations on 190 of 190 possible baselines.
! AN table 3: 30 integrations on 190 of 190 possible baselines.
! AN table 4: 75 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0874783 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0927+3902
! 
! 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 38228 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 J0927+3902_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 443 telescope corrections were flagged in sub-array 1.
!  A total of 7233 telescope corrections were flagged in sub-array 2.
!  A total of 332 telescope corrections were flagged in sub-array 3.
!  A total of 1394 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 443 telescope corrections were flagged in sub-array 1.
!  A total of 7223 telescope corrections were flagged in sub-array 2.
!  A total of 333 telescope corrections were flagged in sub-array 3.
!  A total of 1394 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 434 telescope corrections were flagged in sub-array 1.
!  A total of 7171 telescope corrections were flagged in sub-array 2.
!  A total of 333 telescope corrections were flagged in sub-array 3.
!  A total of 1299 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 434 telescope corrections were flagged in sub-array 1.
!  A total of 7171 telescope corrections were flagged in sub-array 2.
!  A total of 333 telescope corrections were flagged in sub-array 3.
!  A total of 1299 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=3.403146Jy  sigma=0.023435
! Fit after  self-cal, rms=2.841766Jy  sigma=0.020419
! 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.341 mas, bmaj=2.656 mas, bpa=2.048 degrees
! Estimated noise=1225.17 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.69011 Jy
! Component: 100  -  total flux cleaned = 3.42032 Jy
! Total flux subtracted in 100 components = 3.42032 Jy
! Clean residual min=-0.071576 max=0.317715 Jy/beam
! Clean residual mean=0.001113 rms=0.022424 Jy/beam
! Combined flux in latest and established models = 3.42033 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 3.42033 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.124873Jy  sigma=0.006128
! Fit after  self-cal, rms=1.123979Jy  sigma=0.006127
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.342101 Jy
! Component: 100  -  total flux cleaned = 0.538916 Jy
! Total flux subtracted in 100 components = 0.538916 Jy
! Clean residual min=-0.062177 max=0.104540 Jy/beam
! Clean residual mean=0.000314 rms=0.015458 Jy/beam
! Combined flux in latest and established models = 3.95924 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 16 components and 3.95924 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.996968Jy  sigma=0.004373
! Fit after  self-cal, rms=0.996426Jy  sigma=0.004371
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.129292 Jy
! Component: 100  -  total flux cleaned = 0.215699 Jy
! Total flux subtracted in 100 components = 0.215699 Jy
! Clean residual min=-0.062845 max=0.061549 Jy/beam
! Clean residual mean=0.000004 rms=0.014041 Jy/beam
! Combined flux in latest and established models = 4.17494 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 24 components and 4.17494 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.976271Jy  sigma=0.003971
! Fit after  self-cal, rms=0.976193Jy  sigma=0.003971
! 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.769 mas, bmaj=3.193 mas, bpa=-12.4 degrees
! Estimated noise=564.568 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.100135 Jy
! Component: 100  -  total flux cleaned = 0.158274 Jy
! Component: 150  -  total flux cleaned = 0.194167 Jy
! Component: 200  -  total flux cleaned = 0.216628 Jy
! Total flux subtracted in 200 components = 0.216628 Jy
! Clean residual min=-0.052753 max=0.045712 Jy/beam
! Clean residual mean=-0.003415 rms=0.012754 Jy/beam
! Combined flux in latest and established models = 4.39157 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 37 components and 4.39157 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.970576Jy  sigma=0.003771
! Fit after  self-cal, rms=0.970520Jy  sigma=0.003771
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.10     KP        1.00*    LA        1.00*    NL        1.10     
!   OV        1.00*    PT        1.00*    SC        1.00*    WF        1.05     
!   GN        1.18     HH        1.00*    KK        1.00*    MC        1.00     
!   MK        1.00*    NY        0.99     ON        0.99     WZ        0.91     
! 
!  A total of 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.01     GC        1.02     GG        1.00*    
!   HN        1.03     KP        0.95     LA        1.00     NL        1.00     
!   OV        1.04     PT        1.04     SC        1.04     WF        1.03     
!   GN        0.99     HH        1.00*    KK        1.01     MC        1.07     
!   MK        0.98     NY        0.99     ON        1.02     WZ        0.98     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.00     GC        1.01     GG        1.00*    
!   HN        0.99     KP        0.99     LA        1.00     NL        1.08     
!   OV        1.00     PT        1.04     SC        1.00*    WF        1.03     
!   GN        1.01     HH        1.00*    KK        0.98     MC        1.00*    
!   MK        0.95     NY        0.99     ON        1.20     WZ        1.00*    
! 
!  A total of 66 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.07     GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    WF        1.00*    
!   GN        1.00*    HH        1.00*    KK        1.00*    MC        0.96     
!   MK        1.00*    NY        1.03     ON        0.98     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.00     KP        1.00*    LA        1.00*    NL        1.10     
!   OV        1.00*    PT        1.00*    SC        1.00*    WF        1.06     
!   GN        1.19     HH        1.00*    KK        1.00*    MC        2.17     
!   MK        1.00*    NY        0.98     ON        0.98     WZ        0.90     
! 
!  A total of 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.02     GC        1.05     GG        1.00*    
!   HN        0.99     KP        0.97     LA        0.97     NL        1.04     
!   OV        0.96     PT        0.98     SC        1.06     WF        1.03     
!   GN        0.99     HH        1.00*    KK        0.97     MC        1.74     
!   MK        1.01     NY        0.98     ON        1.05     WZ        1.02     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.04     GC        1.04     GG        1.00*    
!   HN        0.96     KP        1.00     LA        0.98     NL        1.00     
!   OV        0.95     PT        1.00     SC        1.00*    WF        1.05     
!   GN        1.01     HH        1.00*    KK        0.95     MC        1.00*    
!   MK        0.97     NY        0.98     ON        1.18     WZ        1.00*    
! 
!  A total of 66 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.08     GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    WF        1.00*    
!   GN        1.00*    HH        1.00*    KK        1.00*    MC        1.06     
!   MK        1.00*    NY        1.00     ON        1.02     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.25     KP        1.00*    LA        1.00*    NL        1.11     
!   OV        1.00*    PT        1.00*    SC        1.00*    WF        1.03     
!   GN        1.16     HH        0.83     KK        1.00*    MC        2.30     
!   MK        1.00*    NY        0.98     ON        0.97     WZ        0.92     
! 
!  A total of 60 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.96     GC        1.02     GG        1.00*    
!   HN        1.23     KP        0.94     LA        0.97     NL        0.95     
!   OV        0.96     PT        0.92     SC        1.01     WF        1.00     
!   GN        0.96     HH        0.97     KK        0.95     MC        0.95     
!   MK        0.96     NY        0.98     ON        1.01     WZ        0.98     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.98     GC        1.00     GG        1.00*    
!   HN        1.20     KP        0.99     LA        0.99     NL        1.03     
!   OV        0.96     PT        0.95     SC        1.00*    WF        1.00     
!   GN        0.98     HH        1.00*    KK        0.93     MC        1.00*    
!   MK        0.94     NY        0.96     ON        1.16     WZ        1.00*    
! 
!  A total of 63 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.09     GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    WF        1.00*    
!   GN        1.00*    HH        0.97     KK        1.00*    MC        1.24     
!   MK        1.00*    NY        0.98     ON        0.95     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.16     KP        1.00*    LA        1.00*    NL        1.07     
!   OV        1.00*    PT        1.00*    SC        1.00*    WF        1.02     
!   GN        1.15     HH        0.65     KK        1.00*    MC        1.54     
!   MK        1.00*    NY        0.97     ON        0.99     WZ        0.88     
! 
!  A total of 60 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.94     FD        0.96     GC        1.02     GG        1.00*    
!   HN        1.14     KP        0.94     LA        0.95     NL        0.99     
!   OV        0.97     PT        0.98     SC        1.01     WF        0.99     
!   GN        0.94     HH        1.00     KK        1.00     MC        0.96     
!   MK        0.98     NY        0.97     ON        0.98     WZ        0.98     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        0.98     GC        1.00     GG        1.00*    
!   HN        1.13     KP        0.95     LA        0.98     NL        0.99     
!   OV        0.96     PT        0.93     SC        1.00*    WF        1.01     
!   GN        0.97     HH        1.00*    KK        0.97     MC        1.00*    
!   MK        0.95     NY        0.95     ON        1.10     WZ        1.00*    
! 
!  A total of 63 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.09     GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    WF        1.00*    
!   GN        1.00*    HH        1.03     KK        1.00*    MC        0.75     
!   MK        1.00*    NY        0.97     ON        0.94     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.970520Jy  sigma=0.003771
! Fit after  self-cal, rms=0.857045Jy  sigma=0.002821
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.76 mas, bmaj=3.216 mas, bpa=-13.83 degrees
! Estimated noise=566.085 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 (6, 1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00158858 Jy
! Component: 100  -  total flux cleaned = 0.00162397 Jy
! Component: 150  -  total flux cleaned = 0.00359729 Jy
! Component: 200  -  total flux cleaned = 0.00361865 Jy
! Total flux subtracted in 200 components = 0.00361865 Jy
! Clean residual min=-0.024398 max=0.028418 Jy/beam
! Clean residual mean=0.000339 rms=0.006758 Jy/beam
! Combined flux in latest and established models = 4.39519 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 46 components and 4.39519 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.853208Jy  sigma=0.002783
! Fit after  self-cal, rms=0.852571Jy  sigma=0.002777
! 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.852571Jy  sigma=0.002777
! Fit after  self-cal, rms=0.815076Jy  sigma=0.002325
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.783 mas, bmaj=3.217 mas, bpa=-12.8 degrees
! Estimated noise=568.299 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00024234 Jy
! Component: 100  -  total flux cleaned = -0.00420545 Jy
! Component: 150  -  total flux cleaned = -0.00564655 Jy
! Component: 200  -  total flux cleaned = -0.0064897 Jy
! Total flux subtracted in 200 components = -0.0064897 Jy
! Clean residual min=-0.013676 max=0.011458 Jy/beam
! Clean residual mean=-0.000130 rms=0.003094 Jy/beam
! Combined flux in latest and established models = 4.3887 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 57 components and 4.3887 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.814258Jy  sigma=0.002315
! Fit after  self-cal, rms=0.814911Jy  sigma=0.002315
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.00060384 Jy
! Component: 100  -  total flux cleaned = 0.000595165 Jy
! Component: 150  -  total flux cleaned = 0.000250967 Jy
! Component: 200  -  total flux cleaned = -0.000380616 Jy
! Total flux subtracted in 200 components = -0.000380616 Jy
! Clean residual min=-0.013172 max=0.011311 Jy/beam
! Clean residual mean=-0.000127 rms=0.003027 Jy/beam
! Combined flux in latest and established models = 4.38832 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 63 components and 4.38832 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.814528Jy  sigma=0.002311
! Fit after  self-cal, rms=0.814511Jy  sigma=0.002311
! 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.814511Jy  sigma=0.002311
! Fit after  self-cal, rms=0.725202Jy  sigma=0.002291
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.784 mas, bmaj=3.217 mas, bpa=-12.44 degrees
! Estimated noise=567.981 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00775014 Jy
! Component: 100  -  total flux cleaned = -0.00843821 Jy
! Component: 150  -  total flux cleaned = -0.00903525 Jy
! Component: 200  -  total flux cleaned = -0.00958986 Jy
! Total flux subtracted in 200 components = -0.00958986 Jy
! Clean residual min=-0.011261 max=0.009672 Jy/beam
! Clean residual mean=-0.000157 rms=0.002732 Jy/beam
! Combined flux in latest and established models = 4.37873 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 66 components and 4.37873 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.724826Jy  sigma=0.002287
! Fit after  self-cal, rms=0.724838Jy  sigma=0.002287
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 = 2.32112e-05 Jy
! Component: 100  -  total flux cleaned = -0.000472937 Jy
! Component: 150  -  total flux cleaned = -0.000467285 Jy
! Component: 200  -  total flux cleaned = -0.000473395 Jy
! Total flux subtracted in 200 components = -0.000473395 Jy
! Clean residual min=-0.010342 max=0.009547 Jy/beam
! Clean residual mean=-0.000153 rms=0.002701 Jy/beam
! Combined flux in latest and established models = 4.37825 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 73 components and 4.37825 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.724621Jy  sigma=0.002285
! Fit after  self-cal, rms=0.724614Jy  sigma=0.002285
! 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.724614Jy  sigma=0.002285
! Fit after  self-cal, rms=0.725405Jy  sigma=0.002284
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.561 mas, bmaj=7.943 mas, bpa=54.32 degrees
! Estimated noise=824.394 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0103009 Jy
! Component: 100  -  total flux cleaned = -0.011268 Jy
! Component: 150  -  total flux cleaned = -0.011891 Jy
! Component: 200  -  total flux cleaned = -0.0123776 Jy
! Total flux subtracted in 200 components = -0.0123776 Jy
! Clean residual min=-0.008484 max=0.009997 Jy/beam
! Clean residual mean=-0.000379 rms=0.002979 Jy/beam
! Combined flux in latest and established models = 4.36588 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 77 components and 4.36588 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.725328Jy  sigma=0.002284
! Fit after  self-cal, rms=0.725324Jy  sigma=0.002283
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 = 4.66233e-05 Jy
! Component: 100  -  total flux cleaned = -4.83019e-05 Jy
! Component: 150  -  total flux cleaned = -4.6331e-05 Jy
! Component: 200  -  total flux cleaned = -4.37331e-05 Jy
! Total flux subtracted in 200 components = -4.37331e-05 Jy
! Clean residual min=-0.008696 max=0.009498 Jy/beam
! Clean residual mean=-0.000377 rms=0.002956 Jy/beam
! Combined flux in latest and established models = 4.36583 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 79 components and 4.36583 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.725347Jy  sigma=0.002283
! Fit after  self-cal, rms=0.725347Jy  sigma=0.002283
! 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.787 mas, bmaj=3.22 mas, bpa=-12.25 degrees
! Estimated noise=567.898 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.787 x 3.22 at -12.25 degrees (North through East)
! Clean map  min=-0.0091972  max=3.6007 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.725347Jy  sigma=0.002283
! Fit after  self-cal, rms=2.725041Jy  sigma=0.001538
! Inverting map and beam 
! Estimated beam: bmin=2.788 mas, bmaj=3.215 mas, bpa=-11.8 degrees
! Estimated noise=567.308 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00733092 Jy
! Component: 100  -  total flux cleaned = -0.00731975 Jy
! Component: 150  -  total flux cleaned = -0.00730771 Jy
! Component: 200  -  total flux cleaned = -0.00711048 Jy
! Total flux subtracted in 200 components = -0.00711048 Jy
! Clean residual min=-0.008764 max=0.007380 Jy/beam
! Clean residual mean=0.000024 rms=0.001679 Jy/beam
! Combined flux in latest and established models = 4.35872 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 85 components and 4.35872 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.724967Jy  sigma=0.001535
! Fit after  self-cal, rms=2.725078Jy  sigma=0.001535
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -3.4835e-05 Jy
! Component: 100  -  total flux cleaned = 0.000308504 Jy
! Component: 150  -  total flux cleaned = 0.000632308 Jy
! Component: 200  -  total flux cleaned = 0.000784165 Jy
! Total flux subtracted in 200 components = 0.000784165 Jy
! Clean residual min=-0.008520 max=0.007160 Jy/beam
! Clean residual mean=0.000017 rms=0.001660 Jy/beam
! Combined flux in latest and established models = 4.35951 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 90 components and 4.35951 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.725049Jy  sigma=0.001534
! Fit after  self-cal, rms=2.725062Jy  sigma=0.001534
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.725062Jy  sigma=0.001534
! Fit after  self-cal, rms=4.305462Jy  sigma=0.001532
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.344 mas, bmaj=2.653 mas, bpa=4.127 degrees
! Estimated noise=1235.96 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.70714 Jy
! Component: 100  -  total flux cleaned = 3.44305 Jy
! Component: 150  -  total flux cleaned = 3.78516 Jy
! Component: 200  -  total flux cleaned = 3.96944 Jy
! Total flux subtracted in 200 components = 3.96944 Jy
! Clean residual min=-0.023823 max=0.094429 Jy/beam
! Clean residual mean=0.000547 rms=0.007164 Jy/beam
! Combined flux in latest and established models = 3.96944 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 14 model components to the UV plane model.
! The established model now contains 14 components and 3.96944 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.79 mas, bmaj=3.217 mas, bpa=-11.54 degrees
! Estimated noise=567.237 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.147785 Jy
! Component: 100  -  total flux cleaned = 0.232085 Jy
! Component: 150  -  total flux cleaned = 0.285797 Jy
! Component: 200  -  total flux cleaned = 0.320823 Jy
! Total flux subtracted in 200 components = 0.320823 Jy
! Clean residual min=-0.006504 max=0.018599 Jy/beam
! Clean residual mean=0.000559 rms=0.002290 Jy/beam
! Combined flux in latest and established models = 4.29027 Jy
! Adding 23 model components to the UV plane model.
! The established model now contains 30 components and 4.29027 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0231099 Jy
! Component: 100  -  total flux cleaned = 0.0390876 Jy
! Component: 150  -  total flux cleaned = 0.0479308 Jy
! Component: 200  -  total flux cleaned = 0.0502091 Jy
! Total flux subtracted in 200 components = 0.0502091 Jy
! Clean residual min=-0.006777 max=0.008194 Jy/beam
! Clean residual mean=0.000122 rms=0.001692 Jy/beam
! Combined flux in latest and established models = 4.34048 Jy
! Adding 21 model components to the UV plane model.
! The established model now contains 42 components and 4.34048 Jy
! Inverting map 
! Added new window around map position (-7.5, 1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00351656 Jy
! Component: 100  -  total flux cleaned = 0.00476554 Jy
! Component: 150  -  total flux cleaned = 0.00533245 Jy
! Component: 200  -  total flux cleaned = 0.00587344 Jy
! Total flux subtracted in 200 components = 0.00587344 Jy
! Clean residual min=-0.006522 max=0.007608 Jy/beam
! Clean residual mean=0.000068 rms=0.001599 Jy/beam
! Combined flux in latest and established models = 4.34635 Jy
! Adding 26 model components to the UV plane model.
! The established model now contains 55 components and 4.34635 Jy
! Inverting map 
! Added new window around map position (-7, -7.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00263172 Jy
! Component: 100  -  total flux cleaned = 0.00312524 Jy
! Component: 150  -  total flux cleaned = 0.00358687 Jy
! Component: 200  -  total flux cleaned = 0.00402992 Jy
! Total flux subtracted in 200 components = 0.00402992 Jy
! Clean residual min=-0.005592 max=0.006538 Jy/beam
! Clean residual mean=0.000036 rms=0.001544 Jy/beam
! Combined flux in latest and established models = 4.35038 Jy
! Adding 28 model components to the UV plane model.
! The established model now contains 63 components and 4.35038 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.561 mas, bmaj=7.949 mas, bpa=53.95 degrees
! Estimated noise=822.226 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0041195 Jy
! Component: 100  -  total flux cleaned = 0.00439257 Jy
! Component: 150  -  total flux cleaned = 0.00418478 Jy
! Component: 200  -  total flux cleaned = 0.0041022 Jy
! Total flux subtracted in 200 components = 0.0041022 Jy
! Clean residual min=-0.005069 max=0.006161 Jy/beam
! Clean residual mean=0.000002 rms=0.001811 Jy/beam
! Combined flux in latest and established models = 4.35448 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.000221163 Jy
! Component: 100  -  total flux cleaned = -0.00034687 Jy
! Component: 150  -  total flux cleaned = -0.000517763 Jy
! Component: 200  -  total flux cleaned = -0.000671952 Jy
! Total flux subtracted in 200 components = -0.000671952 Jy
! Clean residual min=-0.005335 max=0.006199 Jy/beam
! Clean residual mean=0.000018 rms=0.001810 Jy/beam
! Combined flux in latest and established models = 4.35381 Jy
! Adding 30 model components to the UV plane model.
! The established model now contains 89 components and 4.35381 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.79 mas, bmaj=3.217 mas, bpa=-11.54 degrees
! Estimated noise=567.237 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000479934 Jy
! Component: 100  -  total flux cleaned = -0.00110501 Jy
! Component: 150  -  total flux cleaned = -0.00129505 Jy
! Component: 200  -  total flux cleaned = -0.00129656 Jy
! Total flux subtracted in 200 components = -0.00129656 Jy
! Clean residual min=-0.005793 max=0.006292 Jy/beam
! Clean residual mean=0.000014 rms=0.001504 Jy/beam
! Combined flux in latest and established models = 4.35251 Jy
selfcal
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 104 components and 4.35251 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=4.305211Jy  sigma=0.001529
! Fit after  self-cal, rms=4.305237Jy  sigma=0.001528
wmodel J0927+3902_S_1999_03_08_pus_map.mod
! Writing 104 model components to file: J0927+3902_S_1999_03_08_pus_map.mod
wobs J0927+3902_S_1999_03_08_pus_uvs.fits
! Writing UV FITS file: J0927+3902_S_1999_03_08_pus_uvs.fits
wwins J0927+3902_S_1999_03_08_pus_map.win
! wwins: Wrote 4 windows to J0927+3902_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.00187852 Jy
! Component: 100  -  total flux cleaned = 0.00323658 Jy
! Component: 150  -  total flux cleaned = 0.00423816 Jy
! Component: 200  -  total flux cleaned = 0.00530824 Jy
! Component: 250  -  total flux cleaned = 0.00635074 Jy
! Component: 300  -  total flux cleaned = 0.00718819 Jy
! Component: 350  -  total flux cleaned = 0.0081019 Jy
! Component: 400  -  total flux cleaned = 0.00873133 Jy
! Component: 450  -  total flux cleaned = 0.00952787 Jy
! Component: 500  -  total flux cleaned = 0.00987666 Jy
! Component: 550  -  total flux cleaned = 0.0103082 Jy
! Component: 600  -  total flux cleaned = 0.0107349 Jy
! Component: 650  -  total flux cleaned = 0.0112404 Jy
! Component: 700  -  total flux cleaned = 0.0115731 Jy
! Component: 750  -  total flux cleaned = 0.0119859 Jy
! Component: 800  -  total flux cleaned = 0.0125569 Jy
! Component: 850  -  total flux cleaned = 0.0128802 Jy
! Component: 900  -  total flux cleaned = 0.0132008 Jy
! Component: 950  -  total flux cleaned = 0.0135191 Jy
! Component: 1000  -  total flux cleaned = 0.0137556 Jy
! Component: 1050  -  total flux cleaned = 0.0142249 Jy
! Component: 1100  -  total flux cleaned = 0.0143806 Jy
! Component: 1150  -  total flux cleaned = 0.0147661 Jy
! Component: 1200  -  total flux cleaned = 0.0149956 Jy
! Component: 1250  -  total flux cleaned = 0.0152992 Jy
! Component: 1300  -  total flux cleaned = 0.0155256 Jy
! Component: 1350  -  total flux cleaned = 0.0156753 Jy
! Component: 1400  -  total flux cleaned = 0.0159727 Jy
! Component: 1450  -  total flux cleaned = 0.0161207 Jy
! Component: 1500  -  total flux cleaned = 0.0162681 Jy
! Component: 1550  -  total flux cleaned = 0.0164143 Jy
! Component: 1600  -  total flux cleaned = 0.0166331 Jy
! Component: 1650  -  total flux cleaned = 0.0166328 Jy
! Component: 1700  -  total flux cleaned = 0.0167048 Jy
! Component: 1750  -  total flux cleaned = 0.0169196 Jy
! Component: 1800  -  total flux cleaned = 0.0170624 Jy
! Component: 1850  -  total flux cleaned = 0.0172041 Jy
! Component: 1900  -  total flux cleaned = 0.0172039 Jy
! Component: 1950  -  total flux cleaned = 0.0174141 Jy
! Component: 2000  -  total flux cleaned = 0.0174141 Jy
! Total flux subtracted in 2048 components = 0.0174146 Jy
! Clean residual min=-0.003922 max=0.004032 Jy/beam
! Clean residual mean=-0.000102 rms=0.001272 Jy/beam
! Combined flux in latest and established models = 4.36993 Jy
keep
! Adding 163 model components to the UV plane model.
! The established model now contains 266 components and 4.36993 Jy
![Exited script file: muppet]
wmap "J0927+3902_S_1999_03_08_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.79 x 3.217 at -11.54 degrees (North through East)
! Clean map  min=-0.0063456  max=3.6023 Jy/beam
! Writing clean map to FITS file: J0927+3902_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 3.60233 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.0012714 
device "J0927+3902_S_1999_03_08_pus\_map.eps/VPS"
! Attempting to open device: 'J0927+3902_S_1999_03_08_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.105882 0.105882 0.211763 0.423527 0.847053 1.69411 3.38821 6.77642 13.5528 27.1057 54.2114
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0038 
print "peak=",int(1000*peak_flux)/1000
! peak= 3.602 
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.79 x 3.217 at -11.54 degrees (North through East)
! Clean map  min=-0.0063456  max=3.6023 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0927+3902_S_1999_03_08_pus\_map.gif/vgif"
! Attempting to open device: 'J0927+3902_S_1999_03_08_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0927+3902_S_1999_03_08_pus_uvs.log closed on Tue Jan  8 18:14:43 2008