! Started logfile: J1048+7143_S_2003_09_17_pus_uvs.log on Mon May 21 21:33:57 2007
obs J1048+7143_S_2003_09_17_pus_uva.fits
! Reading UV FITS file: J1048+7143_S_2003_09_17_pus_uva.fits
! AN table 1: 39 integrations on 120 of 120 possible baselines.
! AN table 2: 85 integrations on 120 of 120 possible baselines.
! AN table 3: 94 integrations on 120 of 120 possible baselines.
! AN table 4: 284 integrations on 120 of 120 possible baselines.
! AN table 5: 40 integrations on 120 of 120 possible baselines.
! AN table 6: 42 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.0726027 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1048+7143
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! 
! 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 1732 lines of history.
! 
! Reading 20352 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 
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 546 telescope corrections were flagged in sub-array 1.
!  A total of 1060 telescope corrections were flagged in sub-array 2.
!  A total of 1266 telescope corrections were flagged in sub-array 3.
!  A total of 3451 telescope corrections were flagged in sub-array 4.
!  A total of 640 telescope corrections were flagged in sub-array 5.
!  A total of 465 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 2.
!  A total of 546 telescope corrections were flagged in sub-array 1.
!  A total of 1060 telescope corrections were flagged in sub-array 2.
!  A total of 1266 telescope corrections were flagged in sub-array 3.
!  A total of 3451 telescope corrections were flagged in sub-array 4.
!  A total of 640 telescope corrections were flagged in sub-array 5.
!  A total of 465 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 3.
!  A total of 546 telescope corrections were flagged in sub-array 1.
!  A total of 1060 telescope corrections were flagged in sub-array 2.
!  A total of 1266 telescope corrections were flagged in sub-array 3.
!  A total of 3451 telescope corrections were flagged in sub-array 4.
!  A total of 640 telescope corrections were flagged in sub-array 5.
!  A total of 465 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 4.
!  A total of 546 telescope corrections were flagged in sub-array 1.
!  A total of 1060 telescope corrections were flagged in sub-array 2.
!  A total of 1266 telescope corrections were flagged in sub-array 3.
!  A total of 3451 telescope corrections were flagged in sub-array 4.
!  A total of 640 telescope corrections were flagged in sub-array 5.
!  A total of 465 telescope corrections were flagged in sub-array 6.
! 
! Fit before self-cal, rms=1.197022Jy  sigma=0.006675
! Fit after  self-cal, rms=0.565575Jy  sigma=0.002913
! 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.209 mas, bmaj=3.586 mas, bpa=-39.92 degrees
! Estimated noise=1618.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 = 1.05146 Jy
! Component: 100  -  total flux cleaned = 1.29489 Jy
! Total flux subtracted in 100 components = 1.29489 Jy
! Clean residual min=-0.037923 max=0.090621 Jy/beam
! Clean residual mean=0.000972 rms=0.009628 Jy/beam
! Combined flux in latest and established models = 1.29489 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 1.29489 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.423781Jy  sigma=0.001919
! Fit after  self-cal, rms=0.423726Jy  sigma=0.001919
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.101713 Jy
! Component: 100  -  total flux cleaned = 0.163883 Jy
! Total flux subtracted in 100 components = 0.163883 Jy
! Clean residual min=-0.036078 max=0.033127 Jy/beam
! Clean residual mean=0.000470 rms=0.007303 Jy/beam
! Combined flux in latest and established models = 1.45877 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 20 components and 1.45877 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.392937Jy  sigma=0.001646
! Fit after  self-cal, rms=0.392850Jy  sigma=0.001646
! 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.506 mas, bmaj=3.88 mas, bpa=-52.79 degrees
! Estimated noise=915.018 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.0558663 Jy
! Component: 100  -  total flux cleaned = 0.0864978 Jy
! Component: 150  -  total flux cleaned = 0.104505 Jy
! Component: 200  -  total flux cleaned = 0.109911 Jy
! Total flux subtracted in 200 components = 0.109911 Jy
! Clean residual min=-0.032480 max=0.024631 Jy/beam
! Clean residual mean=0.000364 rms=0.006588 Jy/beam
! Combined flux in latest and established models = 1.56868 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 31 components and 1.56868 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.386479Jy  sigma=0.001571
! Fit after  self-cal, rms=0.386394Jy  sigma=0.001571
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00*    GC        1.00*    HN        0.85     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        1.08     
!   ON        0.97     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.04     WF        1.00*    
! 
!  A total of 150 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.99     GC        1.00*    HN        0.96     KP        0.97     
!   LA        0.97     MK        0.99     NL        1.00     NY        1.00*    
!   ON        1.00*    OV        0.71     PT        0.98     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 102 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.01     GC        1.03     HN        0.98     KP        1.15     
!   LA        1.00*    MK        0.95     NL        1.02     NY        1.00*    
!   ON        1.00*    OV        1.03     PT        0.99     SC        1.00*    
!   TS        1.00*    KK        1.04     WZ        1.00*    WF        0.98     
! 
!  A total of 162 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.01     GC        1.03     HN        0.95     KP        0.99     
!   LA        0.96     MK        0.98     NL        0.91     NY        1.00     
!   ON        1.00*    OV        0.78     PT        0.99     SC        1.06     
!   TS        1.03     KK        1.07     WZ        1.00*    WF        0.99     
! 
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   FD        1.00*    GC        1.00     HN        0.88     KP        1.17     
!   LA        1.00     MK        1.00*    NL        1.03     NY        1.00*    
!   ON        1.00*    OV        0.92     PT        1.02     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.04     
! 
! 
! Correcting IF 2.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00*    GC        1.00*    HN        0.93     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        1.03     
!   ON        0.97     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00     WF        1.00*    
! 
!  A total of 150 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.99     GC        1.00*    HN        1.00     KP        1.05     
!   LA        1.00     MK        1.05     NL        1.03     NY        1.00*    
!   ON        1.00*    OV        0.90     PT        0.98     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 102 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.99     GC        0.96     HN        1.00     KP        1.15     
!   LA        1.00*    MK        1.02     NL        1.10     NY        1.00*    
!   ON        1.00*    OV        1.18     PT        0.94     SC        1.00*    
!   TS        1.00*    KK        1.02     WZ        1.00*    WF        0.98     
! 
!  A total of 162 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.01     GC        0.99     HN        1.01     KP        1.01     
!   LA        0.97     MK        1.10     NL        0.95     NY        1.01     
!   ON        1.00*    OV        0.96     PT        0.96     SC        1.14     
!   TS        1.04     KK        1.09     WZ        1.00*    WF        0.98     
! 
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   FD        1.00*    GC        0.97     HN        0.96     KP        1.09     
!   LA        1.01     MK        1.00*    NL        1.07     NY        1.00*    
!   ON        1.00*    OV        0.89     PT        0.99     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        0.96     
! 
! 
! Correcting IF 3.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00*    GC        1.00*    HN        0.90     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        1.04     
!   ON        1.00     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.05     WF        1.00*    
! 
!  A total of 150 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.97     GC        1.00*    HN        1.03     KP        1.04     
!   LA        0.96     MK        1.02     NL        0.99     NY        1.00*    
!   ON        1.00*    OV        0.92     PT        1.03     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 102 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00     GC        1.05     HN        1.05     KP        1.06     
!   LA        1.00*    MK        0.98     NL        1.03     NY        1.00*    
!   ON        1.00*    OV        1.55     PT        1.03     SC        1.00*    
!   TS        1.00*    KK        1.02     WZ        1.00*    WF        1.03     
! 
!  A total of 162 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.99     GC        1.05     HN        1.03     KP        0.99     
!   LA        0.94     MK        1.06     NL        0.90     NY        0.98     
!   ON        1.00*    OV        1.16     PT        1.01     SC        1.12     
!   TS        1.08     KK        1.09     WZ        1.00*    WF        1.01     
! 
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   FD        1.00*    GC        1.02     HN        0.96     KP        1.05     
!   LA        0.98     MK        1.00*    NL        1.01     NY        1.00*    
!   ON        1.00*    OV        1.50     PT        1.06     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00     
! 
! 
! Correcting IF 4.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00*    GC        1.00*    HN        0.81     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        0.94     
!   ON        1.07     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.11     WF        1.00*    
! 
!  A total of 150 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.97     GC        1.00*    HN        0.96     KP        1.04     
!   LA        1.02     MK        0.96     NL        1.03     NY        1.00*    
!   ON        1.00*    OV        0.84     PT        0.99     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 102 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.95     GC        1.09     HN        1.08     KP        1.12     
!   LA        1.00*    MK        0.92     NL        1.01     NY        1.00*    
!   ON        1.00*    OV        1.50     PT        0.94     SC        1.00*    
!   TS        1.00*    KK        1.06     WZ        1.00*    WF        1.01     
! 
!  A total of 162 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.98     GC        1.08     HN        1.00     KP        1.00     
!   LA        0.97     MK        1.02     NL        0.93     NY        0.98     
!   ON        1.00*    OV        1.23     PT        0.95     SC        1.01     
!   TS        1.07     KK        1.15     WZ        1.00*    WF        1.01     
! 
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   FD        1.00*    GC        1.05     HN        0.77     KP        1.07     
!   LA        1.03     MK        1.00*    NL        1.05     NY        1.00*    
!   ON        1.00*    OV        1.34     PT        0.99     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        0.99     
! 
! 
! Fit before self-cal, rms=0.386394Jy  sigma=0.001571
! Fit after  self-cal, rms=0.371917Jy  sigma=0.001316
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.522 mas, bmaj=3.983 mas, bpa=-49.38 degrees
! Estimated noise=969.309 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.0141826 Jy
! Component: 100  -  total flux cleaned = -0.0172808 Jy
! Component: 150  -  total flux cleaned = -0.0184338 Jy
! Component: 200  -  total flux cleaned = -0.01939 Jy
! Total flux subtracted in 200 components = -0.01939 Jy
! Clean residual min=-0.010000 max=0.009598 Jy/beam
! Clean residual mean=0.000184 rms=0.002862 Jy/beam
! Combined flux in latest and established models = 1.54929 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 44 components and 1.54929 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.371286Jy  sigma=0.001312
! Fit after  self-cal, rms=0.371583Jy  sigma=0.001311
! 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.371583Jy  sigma=0.001311
! Fit after  self-cal, rms=1.053202Jy  sigma=0.001280
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.53 mas, bmaj=3.993 mas, bpa=-49.22 degrees
! Estimated noise=969.583 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00569952 Jy
! Component: 100  -  total flux cleaned = -0.0069305 Jy
! Component: 150  -  total flux cleaned = -0.00765794 Jy
! Component: 200  -  total flux cleaned = -0.00803672 Jy
! Total flux subtracted in 200 components = -0.00803672 Jy
! Clean residual min=-0.006283 max=0.006403 Jy/beam
! Clean residual mean=0.000034 rms=0.001725 Jy/beam
! Combined flux in latest and established models = 1.54126 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 53 components and 1.54125 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.053139Jy  sigma=0.001279
! Fit after  self-cal, rms=1.053170Jy  sigma=0.001279
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.000678339 Jy
! Component: 100  -  total flux cleaned = -0.000868352 Jy
! Component: 150  -  total flux cleaned = -0.00103699 Jy
! Component: 200  -  total flux cleaned = -0.00103742 Jy
! Total flux subtracted in 200 components = -0.00103742 Jy
! Clean residual min=-0.006286 max=0.006431 Jy/beam
! Clean residual mean=0.000050 rms=0.001706 Jy/beam
! Combined flux in latest and established models = 1.54022 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 59 components and 1.54022 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.053157Jy  sigma=0.001279
! Fit after  self-cal, rms=1.053158Jy  sigma=0.001279
! 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=1.053158Jy  sigma=0.001279
! Fit after  self-cal, rms=1.054732Jy  sigma=0.001277
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.535 mas, bmaj=3.998 mas, bpa=-49.14 degrees
! Estimated noise=970.629 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00331221 Jy
! Component: 100  -  total flux cleaned = -0.00433182 Jy
! Component: 150  -  total flux cleaned = -0.00485536 Jy
! Component: 200  -  total flux cleaned = -0.00529921 Jy
! Total flux subtracted in 200 components = -0.00529921 Jy
! Clean residual min=-0.005834 max=0.006135 Jy/beam
! Clean residual mean=0.000102 rms=0.001538 Jy/beam
! Combined flux in latest and established models = 1.53492 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 61 components and 1.53492 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.054699Jy  sigma=0.001277
! Fit after  self-cal, rms=1.054692Jy  sigma=0.001277
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.000261405 Jy
! Component: 100  -  total flux cleaned = -0.00033642 Jy
! Component: 150  -  total flux cleaned = -0.000335769 Jy
! Component: 200  -  total flux cleaned = -0.000335652 Jy
! Total flux subtracted in 200 components = -0.000335652 Jy
! Clean residual min=-0.005735 max=0.006115 Jy/beam
! Clean residual mean=0.000107 rms=0.001524 Jy/beam
! Combined flux in latest and established models = 1.53458 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 62 components and 1.53458 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.054685Jy  sigma=0.001277
! Fit after  self-cal, rms=1.054687Jy  sigma=0.001277
! 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=1.054687Jy  sigma=0.001277
! Fit after  self-cal, rms=1.053835Jy  sigma=0.001276
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.846 mas, bmaj=8.934 mas, bpa=-55.72 degrees
! Estimated noise=1410.46 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00109929 Jy
! Component: 100  -  total flux cleaned = -0.00115127 Jy
! Component: 150  -  total flux cleaned = -0.00123766 Jy
! Component: 200  -  total flux cleaned = -0.00123749 Jy
! Total flux subtracted in 200 components = -0.00123749 Jy
! Clean residual min=-0.006851 max=0.007139 Jy/beam
! Clean residual mean=0.000311 rms=0.001981 Jy/beam
! Combined flux in latest and established models = 1.53334 Jy
selfcal
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 66 components and 1.53334 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.053836Jy  sigma=0.001276
! Fit after  self-cal, rms=1.053829Jy  sigma=0.001276
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.000117784 Jy
! Component: 100  -  total flux cleaned = 8.05942e-05 Jy
! Component: 150  -  total flux cleaned = 0.000112039 Jy
! Component: 200  -  total flux cleaned = 0.000145331 Jy
! Total flux subtracted in 200 components = 0.000145331 Jy
! Clean residual min=-0.006781 max=0.007093 Jy/beam
! Clean residual mean=0.000305 rms=0.001972 Jy/beam
! Combined flux in latest and established models = 1.53349 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 69 components and 1.53349 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.053835Jy  sigma=0.001276
! Fit after  self-cal, rms=1.053832Jy  sigma=0.001276
! 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.538 mas, bmaj=4.003 mas, bpa=-49.11 degrees
! Estimated noise=971.483 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.538 x 4.003 at -49.11 degrees (North through East)
! Clean map  min=-0.0053843  max=1.3726 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=1.053832Jy  sigma=0.001276
! Fit after  self-cal, rms=0.318763Jy  sigma=0.001132
! Inverting map and beam 
! Estimated beam: bmin=2.54 mas, bmaj=4.002 mas, bpa=-49.21 degrees
! Estimated noise=970.194 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00359973 Jy
! Component: 100  -  total flux cleaned = -0.00417436 Jy
! Component: 150  -  total flux cleaned = -0.00449348 Jy
! Component: 200  -  total flux cleaned = -0.00477428 Jy
! Total flux subtracted in 200 components = -0.00477428 Jy
! Clean residual min=-0.004971 max=0.004928 Jy/beam
! Clean residual mean=0.000103 rms=0.001323 Jy/beam
! Combined flux in latest and established models = 1.52872 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 72 components and 1.52872 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.318699Jy  sigma=0.001131
! Fit after  self-cal, rms=0.318703Jy  sigma=0.001131
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000266319 Jy
! Component: 100  -  total flux cleaned = -0.000323887 Jy
! Component: 150  -  total flux cleaned = -0.000377729 Jy
! Component: 200  -  total flux cleaned = -0.000377052 Jy
! Total flux subtracted in 200 components = -0.000377052 Jy
! Clean residual min=-0.004864 max=0.004906 Jy/beam
! Clean residual mean=0.000108 rms=0.001312 Jy/beam
! Combined flux in latest and established models = 1.52834 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 72 components and 1.52834 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.318688Jy  sigma=0.001131
! Fit after  self-cal, rms=0.318691Jy  sigma=0.001131
! 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.318691Jy  sigma=0.001131
! Fit after  self-cal, rms=0.318494Jy  sigma=0.001131
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.201 mas, bmaj=3.66 mas, bpa=-39.18 degrees
! Estimated noise=1743.79 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.06303 Jy
! Component: 100  -  total flux cleaned = 1.29975 Jy
! Component: 150  -  total flux cleaned = 1.38809 Jy
! Component: 200  -  total flux cleaned = 1.4396 Jy
! Total flux subtracted in 200 components = 1.4396 Jy
! Clean residual min=-0.012166 max=0.026522 Jy/beam
! Clean residual mean=0.000254 rms=0.003338 Jy/beam
! Combined flux in latest and established models = 1.4396 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 25 model components to the UV plane model.
! The established model now contains 25 components and 1.4396 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.543 mas, bmaj=4.005 mas, bpa=-49.15 degrees
! Estimated noise=970.173 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.0411138 Jy
! Component: 100  -  total flux cleaned = 0.0632368 Jy
! Component: 150  -  total flux cleaned = 0.075653 Jy
! Component: 200  -  total flux cleaned = 0.0789816 Jy
! Total flux subtracted in 200 components = 0.0789816 Jy
! Clean residual min=-0.006055 max=0.006615 Jy/beam
! Clean residual mean=0.000232 rms=0.001581 Jy/beam
! Combined flux in latest and established models = 1.51858 Jy
! Adding 18 model components to the UV plane model.
! The established model now contains 37 components and 1.51858 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.854 mas, bmaj=8.941 mas, bpa=-55.67 degrees
! Estimated noise=1404.93 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00586322 Jy
! Component: 100  -  total flux cleaned = 0.00764442 Jy
! Component: 150  -  total flux cleaned = 0.00827281 Jy
! Component: 200  -  total flux cleaned = 0.00832229 Jy
! Total flux subtracted in 200 components = 0.00832229 Jy
! Clean residual min=-0.005321 max=0.005508 Jy/beam
! Clean residual mean=0.000322 rms=0.001681 Jy/beam
! Combined flux in latest and established models = 1.5269 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 = 4.68742e-05 Jy
! Component: 100  -  total flux cleaned = 9.10605e-05 Jy
! Component: 150  -  total flux cleaned = 0.000119254 Jy
! Component: 200  -  total flux cleaned = 0.000159664 Jy
! Total flux subtracted in 200 components = 0.000159664 Jy
! Clean residual min=-0.005313 max=0.005491 Jy/beam
! Clean residual mean=0.000315 rms=0.001680 Jy/beam
! Combined flux in latest and established models = 1.52706 Jy
! Adding 13 model components to the UV plane model.
! The established model now contains 50 components and 1.52706 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.543 mas, bmaj=4.005 mas, bpa=-49.15 degrees
! Estimated noise=970.173 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00113659 Jy
! Component: 100  -  total flux cleaned = -0.00071654 Jy
! Component: 150  -  total flux cleaned = -0.000376844 Jy
! Component: 200  -  total flux cleaned = -0.000217382 Jy
! Total flux subtracted in 200 components = -0.000217382 Jy
! Clean residual min=-0.005341 max=0.005669 Jy/beam
! Clean residual mean=0.000103 rms=0.001448 Jy/beam
! Combined flux in latest and established models = 1.52685 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 51 components and 1.52685 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.318760Jy  sigma=0.001134
! Fit after  self-cal, rms=0.318787Jy  sigma=0.001134
wmodel J1048+7143_S_2003_09_17_pus_map.mod
! Writing 51 model components to file: J1048+7143_S_2003_09_17_pus_map.mod
wobs J1048+7143_S_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J1048+7143_S_2003_09_17_pus_uvs.fits
wwins J1048+7143_S_2003_09_17_pus_map.win
! wwins: Wrote 1 windows to J1048+7143_S_2003_09_17_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.0010717 Jy
! Component: 100  -  total flux cleaned = 0.00145368 Jy
! Component: 150  -  total flux cleaned = 0.00163503 Jy
! Component: 200  -  total flux cleaned = 0.00180944 Jy
! Component: 250  -  total flux cleaned = 0.00222961 Jy
! Component: 300  -  total flux cleaned = 0.00255599 Jy
! Component: 350  -  total flux cleaned = 0.00303489 Jy
! Component: 400  -  total flux cleaned = 0.00342575 Jy
! Component: 450  -  total flux cleaned = 0.00373181 Jy
! Component: 500  -  total flux cleaned = 0.00403199 Jy
! Component: 550  -  total flux cleaned = 0.00432574 Jy
! Component: 600  -  total flux cleaned = 0.00446913 Jy
! Component: 650  -  total flux cleaned = 0.00454016 Jy
! Component: 700  -  total flux cleaned = 0.00467936 Jy
! Component: 750  -  total flux cleaned = 0.00481582 Jy
! Component: 800  -  total flux cleaned = 0.00488345 Jy
! Component: 850  -  total flux cleaned = 0.00508165 Jy
! Component: 900  -  total flux cleaned = 0.00508095 Jy
! Component: 950  -  total flux cleaned = 0.00495238 Jy
! Component: 1000  -  total flux cleaned = 0.00488993 Jy
! Component: 1050  -  total flux cleaned = 0.00495336 Jy
! Component: 1100  -  total flux cleaned = 0.00495372 Jy
! Component: 1150  -  total flux cleaned = 0.00495353 Jy
! Component: 1200  -  total flux cleaned = 0.00495331 Jy
! Component: 1250  -  total flux cleaned = 0.00495295 Jy
! Component: 1300  -  total flux cleaned = 0.00489466 Jy
! Component: 1350  -  total flux cleaned = 0.00501088 Jy
! Component: 1400  -  total flux cleaned = 0.00506787 Jy
! Component: 1450  -  total flux cleaned = 0.00506737 Jy
! Component: 1500  -  total flux cleaned = 0.00512361 Jy
! Component: 1550  -  total flux cleaned = 0.00512368 Jy
! Component: 1600  -  total flux cleaned = 0.00517872 Jy
! Component: 1650  -  total flux cleaned = 0.00517912 Jy
! Component: 1700  -  total flux cleaned = 0.00523296 Jy
! Component: 1750  -  total flux cleaned = 0.00517998 Jy
! Component: 1800  -  total flux cleaned = 0.00528528 Jy
! Component: 1850  -  total flux cleaned = 0.00523293 Jy
! Component: 1900  -  total flux cleaned = 0.00533656 Jy
! Component: 1950  -  total flux cleaned = 0.00538762 Jy
! Component: 2000  -  total flux cleaned = 0.0054376 Jy
! Total flux subtracted in 2048 components = 0.00538752 Jy
! Clean residual min=-0.003037 max=0.004129 Jy/beam
! Clean residual mean=0.000019 rms=0.000931 Jy/beam
! Combined flux in latest and established models = 1.53223 Jy
keep
! Adding 166 model components to the UV plane model.
! The established model now contains 217 components and 1.53223 Jy
wmap "J1048+7143_S_2003_09_17_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.543 x 4.005 at -49.15 degrees (North through East)
! Clean map  min=-0.0039654  max=1.3743 Jy/beam
! Writing clean map to FITS file: J1048+7143_S_2003_09_17_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.37431 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000929399 
device "J1048+7143_S_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J1048+7143_S_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.202879 0.202879 0.405759 0.811517 1.62303 3.24607 6.49214 12.9843 25.9685 51.9371
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0027 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.374 
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.543 x 4.005 at -49.15 degrees (North through East)
! Clean map  min=-0.0039654  max=1.3743 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1048+7143_S_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J1048+7143_S_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1048+7143_S_2003_09_17_pus_uvs.log closed on Mon May 21 21:35:58 2007