! Started logfile: J0927+3902_S_2003_06_18_pus_uvs.log on Tue Jan 23 22:21:36 2007
obs J0927+3902_S_2003_06_18_pus_uva.fits
! Reading UV FITS file: J0927+3902_S_2003_06_18_pus_uva.fits
! AN table 1: 37 integrations on 153 of 153 possible baselines.
! AN table 2: 71 integrations on 153 of 153 possible baselines.
! AN table 3: 61 integrations on 153 of 153 possible baselines.
! AN table 4: 22 integrations on 153 of 153 possible baselines.
! AN table 5: 146 integrations on 153 of 153 possible baselines.
! AN table 6: 74 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.0967034 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.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2425 lines of history.
! 
! Reading 24324 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
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 666 telescope corrections were flagged in sub-array 1.
!  A total of 1050 telescope corrections were flagged in sub-array 2.
!  A total of 803 telescope corrections were flagged in sub-array 3.
!  A total of 396 telescope corrections were flagged in sub-array 4.
!  A total of 1875 telescope corrections were flagged in sub-array 5.
!  A total of 994 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 2.
!  A total of 666 telescope corrections were flagged in sub-array 1.
!  A total of 1050 telescope corrections were flagged in sub-array 2.
!  A total of 803 telescope corrections were flagged in sub-array 3.
!  A total of 396 telescope corrections were flagged in sub-array 4.
!  A total of 1875 telescope corrections were flagged in sub-array 5.
!  A total of 994 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 3.
!  A total of 666 telescope corrections were flagged in sub-array 1.
!  A total of 1050 telescope corrections were flagged in sub-array 2.
!  A total of 812 telescope corrections were flagged in sub-array 3.
!  A total of 396 telescope corrections were flagged in sub-array 4.
!  A total of 1879 telescope corrections were flagged in sub-array 5.
!  A total of 994 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 4.
!  A total of 666 telescope corrections were flagged in sub-array 1.
!  A total of 1050 telescope corrections were flagged in sub-array 2.
!  A total of 812 telescope corrections were flagged in sub-array 3.
!  A total of 396 telescope corrections were flagged in sub-array 4.
!  A total of 1879 telescope corrections were flagged in sub-array 5.
!  A total of 994 telescope corrections were flagged in sub-array 6.
! 
! Fit before self-cal, rms=3.411329Jy  sigma=0.035795
! Fit after  self-cal, rms=3.175189Jy  sigma=0.033654
! 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.247 mas, bmaj=3.443 mas, bpa=-8.859 degrees
! Estimated noise=907.903 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.94841 Jy
! Component: 100  -  total flux cleaned = 3.83156 Jy
! Total flux subtracted in 100 components = 3.83156 Jy
! Clean residual min=-0.088141 max=0.354468 Jy/beam
! Clean residual mean=0.000288 rms=0.032210 Jy/beam
! Combined flux in latest and established models = 3.83156 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 3.83156 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.858203Jy  sigma=0.008717
! Fit after  self-cal, rms=0.857929Jy  sigma=0.008711
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.358784 Jy
! Component: 100  -  total flux cleaned = 0.540064 Jy
! Total flux subtracted in 100 components = 0.540064 Jy
! Clean residual min=-0.091637 max=0.113425 Jy/beam
! Clean residual mean=-0.000250 rms=0.020201 Jy/beam
! Combined flux in latest and established models = 4.37163 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 21 components and 4.37163 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.689538Jy  sigma=0.006202
! Fit after  self-cal, rms=0.689319Jy  sigma=0.006198
! Inverting map 
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
win_mult = win_mult * 1.6
clean_niter = clean_niter * 2
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.298 mas, bmaj=4.446 mas, bpa=-9.517 degrees
! Estimated noise=477.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 (-2.5, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.128921 Jy
! Component: 100  -  total flux cleaned = 0.18507 Jy
! Component: 150  -  total flux cleaned = 0.202393 Jy
! Component: 200  -  total flux cleaned = 0.214553 Jy
! Total flux subtracted in 200 components = 0.214553 Jy
! Clean residual min=-0.060582 max=0.070753 Jy/beam
! Clean residual mean=-0.009980 rms=0.016817 Jy/beam
! Combined flux in latest and established models = 4.58618 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 42 components and 4.58618 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.674858Jy  sigma=0.005808
! Fit after  self-cal, rms=0.673996Jy  sigma=0.005799
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.94     GG        1.00*    HN        1.09     
!   KK        0.97     KP        0.86     LA        0.96     MA        1.00*    
!   MK        1.05     NL        1.03     ON        1.00*    OV        1.22     
!   PT        0.96     SC        1.00*    TC        1.00*    TS        1.05     
!   WF        0.99     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.99     GG        1.00*    HN        0.96     
!   KK        1.00*    KP        0.98     LA        0.98     MA        1.00*    
!   MK        1.00*    NL        1.00     ON        1.09     OV        1.30     
!   PT        0.99     SC        0.90     TC        1.00*    TS        1.00*    
!   WF        1.01     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.07     FD        0.99     GG        1.00*    HN        1.01     
!   KK        1.00*    KP        1.06     LA        1.00     MA        1.00*    
!   MK        1.00*    NL        1.02     ON        1.05     OV        1.07     
!   PT        1.01     SC        0.94     TC        1.00*    TS        1.00*    
!   WF        1.41     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.01     FD        1.00*    GG        1.00*    HN        1.12     
!   KK        1.04     KP        0.89     LA        0.98     MA        1.00*    
!   MK        1.09     NL        1.00*    ON        1.31     OV        1.46     
!   PT        0.98     SC        1.00*    TC        1.00*    TS        1.09     
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.95     GG        1.00*    HN        1.05     
!   KK        0.98     KP        0.96     LA        0.95     MA        1.00*    
!   MK        1.05     NL        0.92     ON        1.00*    OV        1.05     
!   PT        0.95     SC        1.00*    TC        1.00*    TS        1.04     
!   WF        1.00     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        1.00     GG        1.00*    HN        2.80     
!   KK        1.00*    KP        1.05     LA        0.98     MA        1.00*    
!   MK        1.00*    NL        0.94     ON        1.01     OV        1.07     
!   PT        0.99     SC        0.94     TC        1.00*    TS        1.00*    
!   WF        0.98     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.01     FD        1.00     GG        1.00*    HN        1.02     
!   KK        1.00*    KP        1.09     LA        1.00     MA        1.00*    
!   MK        1.00*    NL        0.96     ON        0.98     OV        0.97     
!   PT        1.00     SC        0.95     TC        1.00*    TS        1.00*    
!   WF        0.97     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.96     FD        1.00*    GG        1.00*    HN        1.07     
!   KK        1.04     KP        1.00     LA        0.99     MA        1.00*    
!   MK        1.04     NL        1.00*    ON        1.21     OV        1.20     
!   PT        0.99     SC        1.00*    TC        1.00*    TS        1.06     
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.93     FD        0.93     GG        1.00*    HN        1.05     
!   KK        0.96     KP        0.93     LA        0.90     MA        1.00*    
!   MK        1.00     NL        0.90     ON        1.00*    OV        1.01     
!   PT        0.94     SC        1.00*    TC        1.00*    TS        1.03     
!   WF        0.99     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        0.97     GG        1.00*    HN        1.00     
!   KK        1.00*    KP        0.99     LA        0.91     MA        1.00*    
!   MK        1.00*    NL        0.92     ON        1.00*    OV        1.07     
!   PT        0.96     SC        1.05     TC        1.00*    TS        1.00*    
!   WF        0.96     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.99     FD        0.96     GG        1.00*    HN        1.02     
!   KK        1.00*    KP        1.07     LA        0.93     MA        1.00*    
!   MK        1.00*    NL        0.93     ON        0.94     OV        0.95     
!   PT        0.98     SC        1.09     TC        1.00*    TS        1.00*    
!   WF        0.98     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.94     FD        1.00*    GG        1.00*    HN        1.05     
!   KK        0.96     KP        0.96     LA        0.92     MA        1.00*    
!   MK        0.99     NL        1.00*    ON        1.14     OV        1.18     
!   PT        0.95     SC        1.00*    TC        1.00*    TS        1.04     
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.90     FD        0.92     GG        1.00*    HN        1.16     
!   KK        0.96     KP        0.93     LA        0.93     MA        1.00*    
!   MK        0.94     NL        0.93     ON        1.00*    OV        0.98     
!   PT        0.98     SC        1.00*    TC        1.00*    TS        1.01     
!   WF        0.98     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.90     FD        0.96     GG        1.00*    HN        0.98     
!   KK        1.00*    KP        1.00     LA        0.95     MA        1.00*    
!   MK        1.00*    NL        0.96     ON        1.00*    OV        1.01     
!   PT        1.01     SC        1.03     TC        1.00*    TS        1.00*    
!   WF        0.96     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.95     FD        0.98     GG        1.00*    HN        1.06     
!   KK        1.00*    KP        1.06     LA        0.96     MA        1.00*    
!   MK        1.00*    NL        0.97     ON        0.91     OV        0.85     
!   PT        1.03     SC        1.09     TC        1.00*    TS        1.00*    
!   WF        0.96     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.90     FD        1.00*    GG        1.00*    HN        1.15     
!   KK        0.94     KP        0.96     LA        0.95     MA        1.00*    
!   MK        0.94     NL        1.00*    ON        1.14     OV        1.10     
!   PT        1.00     SC        1.00*    TC        1.00*    TS        1.02     
!   WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.673996Jy  sigma=0.005799
! Fit after  self-cal, rms=0.500049Jy  sigma=0.002968
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.317 mas, bmaj=4.499 mas, bpa=-10.5 degrees
! Estimated noise=479.526 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.0176 Jy
! Component: 100  -  total flux cleaned = -0.0223228 Jy
! Component: 150  -  total flux cleaned = -0.025861 Jy
! Component: 200  -  total flux cleaned = -0.0282676 Jy
! Total flux subtracted in 200 components = -0.0282676 Jy
! Clean residual min=-0.031339 max=0.020238 Jy/beam
! Clean residual mean=-0.005348 rms=0.007472 Jy/beam
! Combined flux in latest and established models = 4.55791 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 61 components and 4.55791 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.498937Jy  sigma=0.002958
! Fit after  self-cal, rms=0.499721Jy  sigma=0.002956
! 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.499721Jy  sigma=0.002956
! Fit after  self-cal, rms=0.483936Jy  sigma=0.002712
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.319 mas, bmaj=4.502 mas, bpa=-10.49 degrees
! Estimated noise=478.454 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0219775 Jy
! Component: 100  -  total flux cleaned = -0.0347202 Jy
! Component: 150  -  total flux cleaned = -0.0390375 Jy
! Component: 200  -  total flux cleaned = -0.0411486 Jy
! Total flux subtracted in 200 components = -0.0411486 Jy
! Clean residual min=-0.018281 max=0.013586 Jy/beam
! Clean residual mean=-0.003173 rms=0.004316 Jy/beam
! Combined flux in latest and established models = 4.51676 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 72 components and 4.51677 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.482650Jy  sigma=0.002697
! Fit after  self-cal, rms=0.482586Jy  sigma=0.002697
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.00225058 Jy
! Component: 100  -  total flux cleaned = -0.00351256 Jy
! Component: 150  -  total flux cleaned = -0.00464025 Jy
! Component: 200  -  total flux cleaned = -0.00545222 Jy
! Total flux subtracted in 200 components = -0.00545222 Jy
! Clean residual min=-0.017988 max=0.013832 Jy/beam
! Clean residual mean=-0.003017 rms=0.004259 Jy/beam
! Combined flux in latest and established models = 4.51131 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 77 components and 4.51131 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.482353Jy  sigma=0.002693
! Fit after  self-cal, rms=0.482346Jy  sigma=0.002693
! 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.482346Jy  sigma=0.002693
! Fit after  self-cal, rms=0.528233Jy  sigma=0.002563
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.319 mas, bmaj=4.501 mas, bpa=-10.58 degrees
! Estimated noise=478.978 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00391542 Jy
! Component: 100  -  total flux cleaned = 0.00577045 Jy
! Component: 150  -  total flux cleaned = 0.00596207 Jy
! Component: 200  -  total flux cleaned = 0.00578659 Jy
! Total flux subtracted in 200 components = 0.00578659 Jy
! Clean residual min=-0.006940 max=0.014432 Jy/beam
! Clean residual mean=0.000316 rms=0.002085 Jy/beam
! Combined flux in latest and established models = 4.5171 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 83 components and 4.5171 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.528033Jy  sigma=0.002560
! Fit after  self-cal, rms=0.528290Jy  sigma=0.002560
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 (7.5, -1.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0112374 Jy
! Component: 100  -  total flux cleaned = 0.0118248 Jy
! Component: 150  -  total flux cleaned = 0.0115767 Jy
! Component: 200  -  total flux cleaned = 0.0109589 Jy
! Total flux subtracted in 200 components = 0.0109589 Jy
! Clean residual min=-0.007065 max=0.007055 Jy/beam
! Clean residual mean=0.000018 rms=0.001851 Jy/beam
! Combined flux in latest and established models = 4.52806 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 97 components and 4.52806 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.527890Jy  sigma=0.002552
! Fit after  self-cal, rms=0.527857Jy  sigma=0.002551
! 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.527857Jy  sigma=0.002551
! Fit after  self-cal, rms=0.528170Jy  sigma=0.002548
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=9.037 mas, bmaj=10.72 mas, bpa=75.73 degrees
! Estimated noise=583.247 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00514472 Jy
! Component: 100  -  total flux cleaned = 0.00602237 Jy
! Component: 150  -  total flux cleaned = 0.00672872 Jy
! Component: 200  -  total flux cleaned = 0.00692758 Jy
! Total flux subtracted in 200 components = 0.00692758 Jy
! Clean residual min=-0.005670 max=0.007010 Jy/beam
! Clean residual mean=0.000267 rms=0.001967 Jy/beam
! Combined flux in latest and established models = 4.53499 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 109 components and 4.53498 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.528026Jy  sigma=0.002547
! Fit after  self-cal, rms=0.528049Jy  sigma=0.002546
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.04383e-05 Jy
! Component: 100  -  total flux cleaned = 0.000239863 Jy
! Component: 150  -  total flux cleaned = 0.000318309 Jy
! Component: 200  -  total flux cleaned = 0.000322932 Jy
! Total flux subtracted in 200 components = 0.000322932 Jy
! Clean residual min=-0.005659 max=0.006948 Jy/beam
! Clean residual mean=0.000249 rms=0.001931 Jy/beam
! Combined flux in latest and established models = 4.53531 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 114 components and 4.53531 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.528000Jy  sigma=0.002546
! Fit after  self-cal, rms=0.527993Jy  sigma=0.002546
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Estimated beam: bmin=3.32 mas, bmaj=4.499 mas, bpa=-10.63 degrees
! Estimated noise=479.279 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.32 x 4.499 at -10.63 degrees (North through East)
! Clean map  min=-0.020706  max=3.9836 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.527993Jy  sigma=0.002546
! Fit after  self-cal, rms=2.411758Jy  sigma=0.002026
! Inverting map and beam 
! Estimated beam: bmin=3.32 mas, bmaj=4.499 mas, bpa=-10.62 degrees
! Estimated noise=479.269 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00311011 Jy
! Component: 100  -  total flux cleaned = 0.00330206 Jy
! Component: 150  -  total flux cleaned = 0.00347573 Jy
! Component: 200  -  total flux cleaned = 0.00363615 Jy
! Total flux subtracted in 200 components = 0.00363615 Jy
! Clean residual min=-0.004772 max=0.004805 Jy/beam
! Clean residual mean=0.000061 rms=0.001342 Jy/beam
! Combined flux in latest and established models = 4.53894 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 122 components and 4.53894 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.411721Jy  sigma=0.002023
! Fit after  self-cal, rms=2.411758Jy  sigma=0.002023
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000305361 Jy
! Component: 100  -  total flux cleaned = 0.000594197 Jy
! Component: 150  -  total flux cleaned = 0.000723621 Jy
! Component: 200  -  total flux cleaned = 0.000719282 Jy
! Total flux subtracted in 200 components = 0.000719282 Jy
! Clean residual min=-0.004665 max=0.004745 Jy/beam
! Clean residual mean=0.000041 rms=0.001295 Jy/beam
! Combined flux in latest and established models = 4.53966 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 126 components and 4.53966 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.411747Jy  sigma=0.002021
! Fit after  self-cal, rms=2.411761Jy  sigma=0.002021
! 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.411761Jy  sigma=0.002021
! Fit after  self-cal, rms=2.376602Jy  sigma=0.002021
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.263 mas, bmaj=3.479 mas, bpa=-9.321 degrees
! Estimated noise=912.23 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.93879 Jy
! Component: 100  -  total flux cleaned = 3.80551 Jy
! Component: 150  -  total flux cleaned = 4.14969 Jy
! Component: 200  -  total flux cleaned = 4.30411 Jy
! Total flux subtracted in 200 components = 4.30411 Jy
! Clean residual min=-0.024227 max=0.076413 Jy/beam
! Clean residual mean=0.000222 rms=0.007655 Jy/beam
! Combined flux in latest and established models = 4.30411 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 19 model components to the UV plane model.
! The established model now contains 19 components and 4.30412 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.322 mas, bmaj=4.499 mas, bpa=-10.69 degrees
! Estimated noise=479.422 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.131746 Jy
! Component: 100  -  total flux cleaned = 0.190192 Jy
! Component: 150  -  total flux cleaned = 0.220726 Jy
! Component: 200  -  total flux cleaned = 0.232736 Jy
! Total flux subtracted in 200 components = 0.232736 Jy
! Clean residual min=-0.010804 max=0.010169 Jy/beam
! Clean residual mean=0.000208 rms=0.001943 Jy/beam
! Combined flux in latest and established models = 4.53685 Jy
! Adding 39 model components to the UV plane model.
! The established model now contains 48 components and 4.53685 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=9.035 mas, bmaj=10.72 mas, bpa=75.84 degrees
! Estimated noise=583.306 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00976759 Jy
! Component: 100  -  total flux cleaned = 0.0105036 Jy
! Component: 150  -  total flux cleaned = 0.0101313 Jy
! Component: 200  -  total flux cleaned = 0.0098 Jy
! Total flux subtracted in 200 components = 0.0098 Jy
! Clean residual min=-0.005706 max=0.005091 Jy/beam
! Clean residual mean=-0.000124 rms=0.001587 Jy/beam
! Combined flux in latest and established models = 4.54665 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.000287654 Jy
! Component: 100  -  total flux cleaned = -0.000656218 Jy
! Component: 150  -  total flux cleaned = -0.000865779 Jy
! Component: 200  -  total flux cleaned = -0.00105531 Jy
! Total flux subtracted in 200 components = -0.00105531 Jy
! Clean residual min=-0.005411 max=0.004694 Jy/beam
! Clean residual mean=-0.000063 rms=0.001500 Jy/beam
! Combined flux in latest and established models = 4.5456 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 75 components and 4.5456 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.322 mas, bmaj=4.499 mas, bpa=-10.69 degrees
! Estimated noise=479.422 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00130428 Jy
! Component: 100  -  total flux cleaned = -0.00195378 Jy
! Component: 150  -  total flux cleaned = -0.00224132 Jy
! Component: 200  -  total flux cleaned = -0.00224543 Jy
! Total flux subtracted in 200 components = -0.00224543 Jy
! Clean residual min=-0.005411 max=0.006035 Jy/beam
! Clean residual mean=0.000031 rms=0.001428 Jy/beam
! Combined flux in latest and established models = 4.54335 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 86 components and 4.54335 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.376587Jy  sigma=0.002031
! Fit after  self-cal, rms=2.376707Jy  sigma=0.002027
wmodel J0927+3902_S_2003_06_18_pus_map.mod
! Writing 86 model components to file: J0927+3902_S_2003_06_18_pus_map.mod
wobs J0927+3902_S_2003_06_18_pus_uvs.fits
! Writing UV FITS file: J0927+3902_S_2003_06_18_pus_uvs.fits
wwins J0927+3902_S_2003_06_18_pus_map.win
! wwins: Wrote 3 windows to J0927+3902_S_2003_06_18_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.000109018 Jy
! Component: 100  -  total flux cleaned = 0.000474258 Jy
! Component: 150  -  total flux cleaned = 0.00108087 Jy
! Component: 200  -  total flux cleaned = 0.00124862 Jy
! Component: 250  -  total flux cleaned = 0.00132954 Jy
! Component: 300  -  total flux cleaned = 0.00132946 Jy
! Component: 350  -  total flux cleaned = 0.0012526 Jy
! Component: 400  -  total flux cleaned = 0.00132811 Jy
! Component: 450  -  total flux cleaned = 0.00132793 Jy
! Component: 500  -  total flux cleaned = 0.00147352 Jy
! Component: 550  -  total flux cleaned = 0.00168747 Jy
! Component: 600  -  total flux cleaned = 0.00175768 Jy
! Component: 650  -  total flux cleaned = 0.00196489 Jy
! Component: 700  -  total flux cleaned = 0.00196452 Jy
! Component: 750  -  total flux cleaned = 0.00203173 Jy
! Component: 800  -  total flux cleaned = 0.00209815 Jy
! Component: 850  -  total flux cleaned = 0.00209839 Jy
! Component: 900  -  total flux cleaned = 0.0021634 Jy
! Component: 950  -  total flux cleaned = 0.0021638 Jy
! Component: 1000  -  total flux cleaned = 0.00222721 Jy
! Component: 1050  -  total flux cleaned = 0.0022897 Jy
! Component: 1100  -  total flux cleaned = 0.00228956 Jy
! Component: 1150  -  total flux cleaned = 0.00247341 Jy
! Component: 1200  -  total flux cleaned = 0.00247285 Jy
! Component: 1250  -  total flux cleaned = 0.00253295 Jy
! Component: 1300  -  total flux cleaned = 0.00265129 Jy
! Component: 1350  -  total flux cleaned = 0.00253381 Jy
! Component: 1400  -  total flux cleaned = 0.00270899 Jy
! Component: 1450  -  total flux cleaned = 0.0027089 Jy
! Component: 1500  -  total flux cleaned = 0.00276632 Jy
! Component: 1550  -  total flux cleaned = 0.00282331 Jy
! Component: 1600  -  total flux cleaned = 0.00287967 Jy
! Component: 1650  -  total flux cleaned = 0.00287975 Jy
! Component: 1700  -  total flux cleaned = 0.00293459 Jy
! Component: 1750  -  total flux cleaned = 0.00293449 Jy
! Component: 1800  -  total flux cleaned = 0.00282578 Jy
! Component: 1850  -  total flux cleaned = 0.00277232 Jy
! Component: 1900  -  total flux cleaned = 0.00287983 Jy
! Component: 1950  -  total flux cleaned = 0.00293273 Jy
! Component: 2000  -  total flux cleaned = 0.0028796 Jy
! Total flux subtracted in 2048 components = 0.00277481 Jy
! Clean residual min=-0.003255 max=0.002978 Jy/beam
! Clean residual mean=-0.000014 rms=0.001003 Jy/beam
! Combined flux in latest and established models = 4.54613 Jy
keep
! Adding 126 model components to the UV plane model.
! The established model now contains 208 components and 4.54613 Jy
wmap "J0927+3902_S_2003_06_18_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.322 x 4.499 at -10.69 degrees (North through East)
! Clean map  min=-0.012468  max=3.9929 Jy/beam
! Writing clean map to FITS file: J0927+3902_S_2003_06_18_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 3.99295 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00100201 
device "J0927+3902_S_2003_06_18_pus\_map.eps/VPS"
! Attempting to open device: 'J0927+3902_S_2003_06_18_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.0752831 0.0752831 0.150566 0.301133 0.602265 1.20453 2.40906 4.81812 9.63624 19.2725 38.545 77.0899
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.003 
print "peak=",int(1000*peak_flux)/1000
! peak= 3.992 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.322 x 4.499 at -10.69 degrees (North through East)
! Clean map  min=-0.012468  max=3.9929 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0927+3902_S_2003_06_18_pus\_map.gif/vgif"
! Attempting to open device: 'J0927+3902_S_2003_06_18_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0927+3902_S_2003_06_18_pus_uvs.log closed on Tue Jan 23 22:23:33 2007