! Started logfile: J1130+3815_S_2003_09_17_pus_uvs.log on Mon May 21 21:38:46 2007
obs J1130+3815_S_2003_09_17_pus_uva.fits
! Reading UV FITS file: J1130+3815_S_2003_09_17_pus_uva.fits
! AN table 1: 29 integrations on 120 of 120 possible baselines.
! AN table 2: 279 integrations on 120 of 120 possible baselines.
! AN table 3: 246 integrations on 120 of 120 possible baselines.
! AN table 4: 84 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.0918757 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1130+3815
! 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 28136 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 464 telescope corrections were flagged in sub-array 1.
!  A total of 2919 telescope corrections were flagged in sub-array 2.
!  A total of 3072 telescope corrections were flagged in sub-array 3.
!  A total of 1156 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 464 telescope corrections were flagged in sub-array 1.
!  A total of 2918 telescope corrections were flagged in sub-array 2.
!  A total of 3072 telescope corrections were flagged in sub-array 3.
!  A total of 1156 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 464 telescope corrections were flagged in sub-array 1.
!  A total of 2922 telescope corrections were flagged in sub-array 2.
!  A total of 3072 telescope corrections were flagged in sub-array 3.
!  A total of 1156 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 464 telescope corrections were flagged in sub-array 1.
!  A total of 2921 telescope corrections were flagged in sub-array 2.
!  A total of 3072 telescope corrections were flagged in sub-array 3.
!  A total of 1156 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.963237Jy  sigma=0.005207
! Fit after  self-cal, rms=0.486342Jy  sigma=0.002263
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.909 mas, bmaj=3.22 mas, bpa=-7.092 degrees
! Estimated noise=1284.89 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.534685 Jy
! Component: 100  -  total flux cleaned = 0.670078 Jy
! Total flux subtracted in 100 components = 0.670078 Jy
! Clean residual min=-0.021640 max=0.058055 Jy/beam
! Clean residual mean=0.000067 rms=0.006438 Jy/beam
! Combined flux in latest and established models = 0.670078 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.670078 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.418946Jy  sigma=0.001651
! Fit after  self-cal, rms=0.418736Jy  sigma=0.001651
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0685658 Jy
! Component: 100  -  total flux cleaned = 0.112503 Jy
! Total flux subtracted in 100 components = 0.112503 Jy
! Clean residual min=-0.018668 max=0.024083 Jy/beam
! Clean residual mean=0.000043 rms=0.004765 Jy/beam
! Combined flux in latest and established models = 0.782581 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 21 components and 0.782581 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.403656Jy  sigma=0.001444
! Fit after  self-cal, rms=0.403315Jy  sigma=0.001444
! 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.363 mas, bmaj=4.327 mas, bpa=-9.83 degrees
! Estimated noise=713.205 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.039648 Jy
! Component: 100  -  total flux cleaned = 0.0583579 Jy
! Component: 150  -  total flux cleaned = 0.0682798 Jy
! Component: 200  -  total flux cleaned = 0.0737419 Jy
! Total flux subtracted in 200 components = 0.0737419 Jy
! Clean residual min=-0.015344 max=0.016098 Jy/beam
! Clean residual mean=0.000317 rms=0.003886 Jy/beam
! Combined flux in latest and established models = 0.856323 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 28 components and 0.856323 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.400260Jy  sigma=0.001396
! Fit after  self-cal, rms=0.400087Jy  sigma=0.001396
! 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:
!   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 96 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.99     GC        1.04     HN        0.90     KP        0.97     
!   LA        0.95     MK        1.12     NL        1.00     NY        1.01     
!   ON        1.01     OV        0.98     PT        0.98     SC        1.06     
!   TS        1.15     KK        1.00*    WZ        1.02     WF        0.93     
! 
!  A total of 312 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.05     GC        1.06     HN        1.00*    KP        1.01     
!   LA        1.00     MK        1.10     NL        1.01     NY        1.01     
!   ON        0.96     OV        0.81     PT        0.99     SC        0.95     
!   TS        1.00*    KK        1.03     WZ        0.96     WF        0.92     
! 
!  A total of 144 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00*    GC        1.09     HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        0.98     
!   ON        0.94     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        0.92     KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   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 96 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.00     GC        1.03     HN        1.02     KP        1.04     
!   LA        0.98     MK        1.00     NL        1.03     NY        1.04     
!   ON        1.06     OV        1.02     PT        0.96     SC        1.13     
!   TS        1.12     KK        1.00*    WZ        0.98     WF        1.00     
! 
!  A total of 312 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.05     GC        0.94     HN        1.00*    KP        1.10     
!   LA        1.03     MK        1.09     NL        1.04     NY        1.02     
!   ON        0.98     OV        0.92     PT        0.97     SC        1.00     
!   TS        1.00*    KK        1.02     WZ        0.94     WF        1.01     
! 
!  A total of 144 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00*    GC        1.11     HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        1.05     
!   ON        1.01     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        0.84     KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   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 96 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.98     GC        0.95     HN        1.03     KP        1.03     
!   LA        0.94     MK        0.97     NL        0.97     NY        0.99     
!   ON        1.06     OV        1.05     PT        0.99     SC        1.10     
!   TS        1.19     KK        1.00*    WZ        0.97     WF        0.94     
! 
!  A total of 312 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.02     GC        1.04     HN        1.00*    KP        1.07     
!   LA        0.98     MK        1.07     NL        0.96     NY        0.99     
!   ON        1.01     OV        0.90     PT        1.02     SC        1.04     
!   TS        1.00*    KK        1.02     WZ        0.90     WF        1.04     
! 
!  A total of 144 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00*    GC        1.12     HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        0.97     
!   ON        0.87     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        0.94     KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   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 96 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.99     GC        1.11     HN        0.85     KP        1.03     
!   LA        0.99     MK        0.88     NL        0.99     NY        1.01     
!   ON        0.99     OV        1.04     PT        0.95     SC        1.02     
!   TS        1.25     KK        1.00*    WZ        0.99     WF        0.95     
! 
!  A total of 312 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00     GC        1.04     HN        1.00*    KP        1.09     
!   LA        1.05     MK        1.06     NL        0.99     NY        0.96     
!   ON        0.99     OV        0.88     PT        0.93     SC        0.98     
!   TS        1.00*    KK        1.11     WZ        0.92     WF        1.03     
! 
!  A total of 144 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00*    GC        1.17     HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        1.05     
!   ON        1.01     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        0.84     KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Fit before self-cal, rms=0.400087Jy  sigma=0.001396
! Fit after  self-cal, rms=0.406064Jy  sigma=0.001357
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.395 mas, bmaj=4.397 mas, bpa=-11.2 degrees
! Estimated noise=716.383 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.0100611 Jy
! Component: 100  -  total flux cleaned = -0.0112467 Jy
! Component: 150  -  total flux cleaned = -0.0122426 Jy
! Component: 200  -  total flux cleaned = -0.0130829 Jy
! Total flux subtracted in 200 components = -0.0130829 Jy
! Clean residual min=-0.012605 max=0.012006 Jy/beam
! Clean residual mean=-0.000003 rms=0.003251 Jy/beam
! Combined flux in latest and established models = 0.84324 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 35 components and 0.84324 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.405688Jy  sigma=0.001354
! Fit after  self-cal, rms=0.405903Jy  sigma=0.001354
! 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.405903Jy  sigma=0.001354
! Fit after  self-cal, rms=0.404313Jy  sigma=0.001268
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.422 mas, bmaj=4.372 mas, bpa=-11.51 degrees
! Estimated noise=719.22 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000983306 Jy
! Component: 100  -  total flux cleaned = -0.00156453 Jy
! Component: 150  -  total flux cleaned = -0.00187918 Jy
! Component: 200  -  total flux cleaned = -0.0022781 Jy
! Total flux subtracted in 200 components = -0.0022781 Jy
! Clean residual min=-0.006259 max=0.010125 Jy/beam
! Clean residual mean=0.000137 rms=0.001545 Jy/beam
! Combined flux in latest and established models = 0.840962 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 42 components and 0.840962 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.404101Jy  sigma=0.001267
! Fit after  self-cal, rms=0.404203Jy  sigma=0.001267
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 (-3.5, 1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.007746 Jy
! Component: 100  -  total flux cleaned = 0.00829951 Jy
! Component: 150  -  total flux cleaned = 0.00859388 Jy
! Component: 200  -  total flux cleaned = 0.00871711 Jy
! Total flux subtracted in 200 components = 0.00871712 Jy
! Clean residual min=-0.006023 max=0.006115 Jy/beam
! Clean residual mean=0.000071 rms=0.001368 Jy/beam
! Combined flux in latest and established models = 0.849679 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 56 components and 0.849679 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.404020Jy  sigma=0.001264
! Fit after  self-cal, rms=0.403993Jy  sigma=0.001263
! Inverting map 
! Added new window around map position (-16, 10.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00514687 Jy
! Component: 100  -  total flux cleaned = 0.00589477 Jy
! Component: 150  -  total flux cleaned = 0.00627833 Jy
! Component: 200  -  total flux cleaned = 0.00650949 Jy
! Total flux subtracted in 200 components = 0.00650949 Jy
! Clean residual min=-0.005767 max=0.005106 Jy/beam
! Clean residual mean=0.000016 rms=0.001299 Jy/beam
! Combined flux in latest and established models = 0.856188 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 70 components and 0.856188 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.403858Jy  sigma=0.001262
! Fit after  self-cal, rms=0.403843Jy  sigma=0.001262
! 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.403843Jy  sigma=0.001262
! Fit after  self-cal, rms=0.404852Jy  sigma=0.001259
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.43 mas, bmaj=4.382 mas, bpa=-11.75 degrees
! Estimated noise=720.279 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00138586 Jy
! Component: 100  -  total flux cleaned = 0.00202419 Jy
! Component: 150  -  total flux cleaned = 0.00286218 Jy
! Component: 200  -  total flux cleaned = 0.00360404 Jy
! Total flux subtracted in 200 components = 0.00360404 Jy
! Clean residual min=-0.004983 max=0.005320 Jy/beam
! Clean residual mean=-0.000023 rms=0.001131 Jy/beam
! Combined flux in latest and established models = 0.859792 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 78 components and 0.859792 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.404727Jy  sigma=0.001258
! Fit after  self-cal, rms=0.404746Jy  sigma=0.001258
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 (-50.5, 44).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00399587 Jy
! Component: 100  -  total flux cleaned = 0.00479258 Jy
! Component: 150  -  total flux cleaned = 0.0052335 Jy
! Component: 200  -  total flux cleaned = 0.00533135 Jy
! Total flux subtracted in 200 components = 0.00533135 Jy
! Clean residual min=-0.004949 max=0.003666 Jy/beam
! Clean residual mean=-0.000060 rms=0.001070 Jy/beam
! Combined flux in latest and established models = 0.865123 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 93 components and 0.865123 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.404625Jy  sigma=0.001257
! Fit after  self-cal, rms=0.404612Jy  sigma=0.001257
! 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.404612Jy  sigma=0.001257
! Fit after  self-cal, rms=0.404275Jy  sigma=0.001256
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8 mas, bmaj=10.93 mas, bpa=-2.587 degrees
! Estimated noise=1001.67 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00344441 Jy
! Component: 100  -  total flux cleaned = 0.00375807 Jy
! Component: 150  -  total flux cleaned = 0.00383629 Jy
! Component: 200  -  total flux cleaned = 0.00397782 Jy
! Total flux subtracted in 200 components = 0.00397782 Jy
! Clean residual min=-0.003448 max=0.003698 Jy/beam
! Clean residual mean=-0.000228 rms=0.001181 Jy/beam
! Combined flux in latest and established models = 0.869101 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 107 components and 0.869101 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.404257Jy  sigma=0.001256
! Fit after  self-cal, rms=0.404245Jy  sigma=0.001256
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.000842682 Jy
! Component: 100  -  total flux cleaned = 0.000903378 Jy
! Component: 150  -  total flux cleaned = 0.000902544 Jy
! Component: 200  -  total flux cleaned = 0.000951529 Jy
! Total flux subtracted in 200 components = 0.000951529 Jy
! Clean residual min=-0.003549 max=0.003605 Jy/beam
! Clean residual mean=-0.000252 rms=0.001175 Jy/beam
! Combined flux in latest and established models = 0.870053 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 117 components and 0.870053 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.404243Jy  sigma=0.001256
! Fit after  self-cal, rms=0.404241Jy  sigma=0.001256
! 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.434 mas, bmaj=4.39 mas, bpa=-11.89 degrees
! Estimated noise=721.2 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.434 x 4.39 at -11.89 degrees (North through East)
! Clean map  min=-0.0042633  max=0.73407 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.404241Jy  sigma=0.001256
! Fit after  self-cal, rms=0.332619Jy  sigma=0.001104
! Inverting map and beam 
! Estimated beam: bmin=2.436 mas, bmaj=4.391 mas, bpa=-11.88 degrees
! Estimated noise=719.231 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00207401 Jy
! Component: 100  -  total flux cleaned = -0.00206536 Jy
! Component: 150  -  total flux cleaned = -0.00169457 Jy
! Component: 200  -  total flux cleaned = -0.00152575 Jy
! Total flux subtracted in 200 components = -0.00152575 Jy
! Clean residual min=-0.004235 max=0.003286 Jy/beam
! Clean residual mean=-0.000061 rms=0.000907 Jy/beam
! Combined flux in latest and established models = 0.868527 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 123 components and 0.868527 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.332512Jy  sigma=0.001103
! Fit after  self-cal, rms=0.332531Jy  sigma=0.001103
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000269352 Jy
! Component: 100  -  total flux cleaned = 0.000417689 Jy
! Component: 150  -  total flux cleaned = 0.000347424 Jy
! Component: 200  -  total flux cleaned = 0.000414329 Jy
! Total flux subtracted in 200 components = 0.000414329 Jy
! Clean residual min=-0.004173 max=0.003232 Jy/beam
! Clean residual mean=-0.000066 rms=0.000894 Jy/beam
! Combined flux in latest and established models = 0.868941 Jy
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 134 components and 0.868941 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.332476Jy  sigma=0.001103
! Fit after  self-cal, rms=0.332482Jy  sigma=0.001103
! 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.332482Jy  sigma=0.001103
! Fit after  self-cal, rms=0.355030Jy  sigma=0.001103
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=1.987 mas, bmaj=3.235 mas, bpa=-8.88 degrees
! Estimated noise=1366.83 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.552446 Jy
! Component: 100  -  total flux cleaned = 0.677783 Jy
! Component: 150  -  total flux cleaned = 0.730997 Jy
! Component: 200  -  total flux cleaned = 0.764126 Jy
! Total flux subtracted in 200 components = 0.764126 Jy
! Clean residual min=-0.008608 max=0.017666 Jy/beam
! Clean residual mean=0.000058 rms=0.002395 Jy/beam
! Combined flux in latest and established models = 0.764126 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 20 model components to the UV plane model.
! The established model now contains 20 components and 0.764126 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.44 mas, bmaj=4.398 mas, bpa=-11.96 degrees
! Estimated noise=718.702 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.0341524 Jy
! Component: 100  -  total flux cleaned = 0.0539559 Jy
! Component: 150  -  total flux cleaned = 0.0666402 Jy
! Component: 200  -  total flux cleaned = 0.0752291 Jy
! Total flux subtracted in 200 components = 0.0752291 Jy
! Clean residual min=-0.004095 max=0.005846 Jy/beam
! Clean residual mean=0.000146 rms=0.001248 Jy/beam
! Combined flux in latest and established models = 0.839355 Jy
! Adding 52 model components to the UV plane model.
! The established model now contains 62 components and 0.839355 Jy
! Inverting map 
! Added new window around map position (-9.5, 2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00671406 Jy
! Component: 100  -  total flux cleaned = 0.0119432 Jy
! Component: 150  -  total flux cleaned = 0.0161716 Jy
! Component: 200  -  total flux cleaned = 0.0192597 Jy
! Total flux subtracted in 200 components = 0.0192597 Jy
! Clean residual min=-0.003813 max=0.003399 Jy/beam
! Clean residual mean=0.000000 rms=0.000957 Jy/beam
! Combined flux in latest and established models = 0.858615 Jy
! Adding 37 model components to the UV plane model.
! The established model now contains 84 components and 0.858615 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.988 mas, bmaj=10.93 mas, bpa=-2.535 degrees
! Estimated noise=996.286 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0052217 Jy
! Component: 100  -  total flux cleaned = 0.0077915 Jy
! Component: 150  -  total flux cleaned = 0.00861303 Jy
! Component: 200  -  total flux cleaned = 0.00914751 Jy
! Total flux subtracted in 200 components = 0.00914751 Jy
! Clean residual min=-0.003458 max=0.003248 Jy/beam
! Clean residual mean=-0.000194 rms=0.001154 Jy/beam
! Combined flux in latest and established models = 0.867763 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.000243925 Jy
! Component: 100  -  total flux cleaned = 0.000453904 Jy
! Component: 150  -  total flux cleaned = 0.000564924 Jy
! Component: 200  -  total flux cleaned = 0.000667516 Jy
! Total flux subtracted in 200 components = 0.000667516 Jy
! Clean residual min=-0.003484 max=0.003240 Jy/beam
! Clean residual mean=-0.000206 rms=0.001130 Jy/beam
! Combined flux in latest and established models = 0.86843 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 119 components and 0.86843 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.44 mas, bmaj=4.398 mas, bpa=-11.96 degrees
! Estimated noise=718.702 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000537577 Jy
! Component: 100  -  total flux cleaned = -0.00062695 Jy
! Component: 150  -  total flux cleaned = -0.000788698 Jy
! Component: 200  -  total flux cleaned = -0.000939127 Jy
! Total flux subtracted in 200 components = -0.000939127 Jy
! Clean residual min=-0.003603 max=0.003149 Jy/beam
! Clean residual mean=-0.000065 rms=0.000860 Jy/beam
! Combined flux in latest and established models = 0.867491 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 134 components and 0.867491 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.354973Jy  sigma=0.001103
! Fit after  self-cal, rms=0.355001Jy  sigma=0.001102
wmodel J1130+3815_S_2003_09_17_pus_map.mod
! Writing 134 model components to file: J1130+3815_S_2003_09_17_pus_map.mod
wobs J1130+3815_S_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J1130+3815_S_2003_09_17_pus_uvs.fits
wwins J1130+3815_S_2003_09_17_pus_map.win
! wwins: Wrote 5 windows to J1130+3815_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.000843317 Jy
! Component: 100  -  total flux cleaned = -0.00130475 Jy
! Component: 150  -  total flux cleaned = -0.00196844 Jy
! Component: 200  -  total flux cleaned = -0.00260871 Jy
! Component: 250  -  total flux cleaned = -0.00318021 Jy
! Component: 300  -  total flux cleaned = -0.00383864 Jy
! Component: 350  -  total flux cleaned = -0.00438268 Jy
! Component: 400  -  total flux cleaned = -0.00481814 Jy
! Component: 450  -  total flux cleaned = -0.00524505 Jy
! Component: 500  -  total flux cleaned = -0.00557096 Jy
! Component: 550  -  total flux cleaned = -0.0058916 Jy
! Component: 600  -  total flux cleaned = -0.00620743 Jy
! Component: 650  -  total flux cleaned = -0.00656291 Jy
! Component: 700  -  total flux cleaned = -0.00686939 Jy
! Component: 750  -  total flux cleaned = -0.00708524 Jy
! Component: 800  -  total flux cleaned = -0.00738404 Jy
! Component: 850  -  total flux cleaned = -0.00759519 Jy
! Component: 900  -  total flux cleaned = -0.00797019 Jy
! Component: 950  -  total flux cleaned = -0.00813466 Jy
! Component: 1000  -  total flux cleaned = -0.00833761 Jy
! Component: 1050  -  total flux cleaned = -0.00841827 Jy
! Component: 1100  -  total flux cleaned = -0.00857774 Jy
! Component: 1150  -  total flux cleaned = -0.00861727 Jy
! Component: 1200  -  total flux cleaned = -0.00865688 Jy
! Component: 1250  -  total flux cleaned = -0.00892864 Jy
! Component: 1300  -  total flux cleaned = -0.00885125 Jy
! Component: 1350  -  total flux cleaned = -0.00888964 Jy
! Component: 1400  -  total flux cleaned = -0.00896577 Jy
! Component: 1450  -  total flux cleaned = -0.00911661 Jy
! Component: 1500  -  total flux cleaned = -0.00919149 Jy
! Component: 1550  -  total flux cleaned = -0.0093032 Jy
! Component: 1600  -  total flux cleaned = -0.00937688 Jy
! Component: 1650  -  total flux cleaned = -0.00941375 Jy
! Component: 1700  -  total flux cleaned = -0.00948668 Jy
! Component: 1750  -  total flux cleaned = -0.00955935 Jy
! Component: 1800  -  total flux cleaned = -0.00966714 Jy
! Component: 1850  -  total flux cleaned = -0.00963145 Jy
! Component: 1900  -  total flux cleaned = -0.00970245 Jy
! Component: 1950  -  total flux cleaned = -0.00966731 Jy
! Component: 2000  -  total flux cleaned = -0.00980776 Jy
! Total flux subtracted in 2048 components = -0.00980797 Jy
! Clean residual min=-0.002011 max=0.002064 Jy/beam
! Clean residual mean=-0.000000 rms=0.000662 Jy/beam
! Combined flux in latest and established models = 0.857683 Jy
keep
! Adding 141 model components to the UV plane model.
! The established model now contains 275 components and 0.857683 Jy
wmap "J1130+3815_S_2003_09_17_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.44 x 4.398 at -11.96 degrees (North through East)
! Clean map  min=-0.0030184  max=0.73326 Jy/beam
! Writing clean map to FITS file: J1130+3815_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 0.733262 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00066045 
device "J1130+3815_S_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J1130+3815_S_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.270211 0.270211 0.540421 1.08084 2.16168 4.32337 8.64674 17.2935 34.5869 69.1739
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0019 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.733 
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.44 x 4.398 at -11.96 degrees (North through East)
! Clean map  min=-0.0030184  max=0.73326 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1130+3815_S_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J1130+3815_S_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1130+3815_S_2003_09_17_pus_uvs.log closed on Mon May 21 21:41:07 2007