! Started logfile: J1426+3625_X_2000_05_22_pus_uvs.log on Mon Nov 12 16:27:45 2007
obs J1426+3625_X_2000_05_22_pus_uva.fits
! Reading UV FITS file: J1426+3625_X_2000_05_22_pus_uva.fits
! AN table 1: 107 integrations on 190 of 190 possible baselines.
! AN table 2: 73 integrations on 190 of 190 possible baselines.
! AN table 3: 162 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.117821 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1426+3625
! 
! 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  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1884 lines of history.
! 
! Reading 30624 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 = 256 
print "field_cell =",field_cell
! field_cell = 0.2 
print "taper_size =",taper_size
! taper_size = 70 
![@muppet J1426+3625_X_2000_05_22_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 256x256 pixels with 0.200x0.200 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 1386 telescope corrections were flagged in sub-array 1.
!  A total of 819 telescope corrections were flagged in sub-array 2.
!  A total of 2622 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1385 telescope corrections were flagged in sub-array 1.
!  A total of 819 telescope corrections were flagged in sub-array 2.
!  A total of 2937 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1398 telescope corrections were flagged in sub-array 1.
!  A total of 819 telescope corrections were flagged in sub-array 2.
!  A total of 2598 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1398 telescope corrections were flagged in sub-array 1.
!  A total of 819 telescope corrections were flagged in sub-array 2.
!  A total of 2700 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.960346Jy  sigma=0.008985
! Fit after  self-cal, rms=0.862446Jy  sigma=0.008176
! 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 
! Your choice of large map pixels excluded 4.17% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1512 milli-arcsec
! Estimated beam: bmin=0.5274 mas, bmaj=0.7428 mas, bpa=7.718 degrees
! Estimated noise=712.156 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.124334 Jy
! Component: 100  -  total flux cleaned = 0.180548 Jy
! Total flux subtracted in 100 components = 0.180548 Jy
! Clean residual min=-0.009556 max=0.032173 Jy/beam
! Clean residual mean=0.000087 rms=0.002929 Jy/beam
! Combined flux in latest and established models = 0.180548 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.180548 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.218546Jy  sigma=0.001724
! Fit after  self-cal, rms=0.215920Jy  sigma=0.001707
! Inverting map 
! Your choice of large map pixels excluded 4.17% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1512 milli-arcsec
! Added new window around map position (0.6, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0402131 Jy
! Component: 100  -  total flux cleaned = 0.0637106 Jy
! Total flux subtracted in 100 components = 0.0637106 Jy
! Clean residual min=-0.006609 max=0.022473 Jy/beam
! Clean residual mean=0.000045 rms=0.001908 Jy/beam
! Combined flux in latest and established models = 0.244258 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 9 components and 0.244258 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.207398Jy  sigma=0.001573
! Fit after  self-cal, rms=0.206457Jy  sigma=0.001566
! Inverting map 
! Your choice of large map pixels excluded 4.17% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1512 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0188745 Jy
! Component: 100  -  total flux cleaned = 0.0296673 Jy
! Total flux subtracted in 100 components = 0.0296673 Jy
! Clean residual min=-0.005051 max=0.014363 Jy/beam
! Clean residual mean=0.000025 rms=0.001570 Jy/beam
! Combined flux in latest and established models = 0.273926 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 14 components and 0.273926 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.204645Jy  sigma=0.001533
! Fit after  self-cal, rms=0.204331Jy  sigma=0.001530
! Inverting map 
! Your choice of large map pixels excluded 4.17% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1512 milli-arcsec
! Added new window around map position (-1, -0.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0124024 Jy
! Component: 100  -  total flux cleaned = 0.0196673 Jy
! Total flux subtracted in 100 components = 0.0196673 Jy
! Clean residual min=-0.005139 max=0.006795 Jy/beam
! Clean residual mean=0.000010 rms=0.001411 Jy/beam
! Combined flux in latest and established models = 0.293593 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 20 components and 0.293593 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.203773Jy  sigma=0.001518
! Fit after  self-cal, rms=0.203655Jy  sigma=0.001517
! Inverting map 
! Your choice of large map pixels excluded 4.17% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1512 milli-arcsec
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 
! Your choice of large map pixels excluded 4.17% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1512 milli-arcsec
! Estimated beam: bmin=0.5748 mas, bmaj=0.8615 mas, bpa=16.24 degrees
! Estimated noise=472.971 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.00766545 Jy
! Component: 100  -  total flux cleaned = 0.0126927 Jy
! Component: 150  -  total flux cleaned = 0.016119 Jy
! Component: 200  -  total flux cleaned = 0.0184766 Jy
! Total flux subtracted in 200 components = 0.0184766 Jy
! Clean residual min=-0.004346 max=0.006008 Jy/beam
! Clean residual mean=0.000160 rms=0.001440 Jy/beam
! Combined flux in latest and established models = 0.31207 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 27 components and 0.31207 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.203363Jy  sigma=0.001512
! Fit after  self-cal, rms=0.203272Jy  sigma=0.001512
! Inverting map 
! Your choice of large map pixels excluded 4.17% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1512 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 48 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.95     GC        1.03     GG        1.00*    
!   HH        0.94     HN        0.94     KK        1.00*    KP        1.00*    
!   MA        1.38     MC        0.90     MK        1.00*    NL        1.02     
!   NY        1.00     OV        1.00*    PT        1.30     SC        0.98     
!   TS        1.00*    WF        0.92     WZ        0.82     LA        1.04     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.93     FD        0.96     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        1.07     KK        1.23     KP        1.00     
!   MA        1.00*    MC        1.00*    MK        0.92     NL        0.98     
!   NY        0.97     OV        0.93     PT        0.99     SC        0.97     
!   TS        1.17     WF        1.03     WZ        1.38     LA        0.94     
! 
!  A total of 54 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        0.33     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.00*    
!   MA        1.35     MC        1.11     MK        1.00*    NL        1.00*    
!   NY        0.91     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.02     WF        1.00*    WZ        1.06     LA        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 48 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.05     GC        1.08     GG        1.00*    
!   HH        1.02     HN        0.91     KK        1.00*    KP        1.00*    
!   MA        1.53     MC        0.97     MK        1.00*    NL        0.96     
!   NY        0.98     OV        1.00*    PT        1.33     SC        0.97     
!   TS        1.00*    WF        0.98     WZ        0.89     LA        1.02     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.97     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.06     KK        0.96     KP        0.93     
!   MA        1.00*    MC        1.00*    MK        0.98     NL        1.02     
!   NY        0.94     OV        0.95     PT        0.92     SC        1.16     
!   TS        1.04     WF        1.01     WZ        1.27     LA        0.92     
! 
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.51     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.00*    
!   MA        0.84     MC        1.10     MK        1.00*    NL        1.00*    
!   NY        1.66     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        0.63     WF        1.00*    WZ        1.05     LA        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 57 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.06     FD        0.97     GC        0.99     GG        1.00*    
!   HH        1.03     HN        0.93     KK        1.00*    KP        1.00*    
!   MA        1.52     MC        0.84     MK        1.00*    NL        0.97     
!   NY        0.91     OV        1.00*    PT        1.42     SC        0.99     
!   TS        1.00*    WF        0.92     WZ        0.90     LA        1.18     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.97     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        1.07     KK        0.98     KP        0.97     
!   MA        1.00*    MC        1.00*    MK        0.99     NL        1.03     
!   NY        0.97     OV        0.97     PT        0.98     SC        1.16     
!   TS        1.02     WF        1.00     WZ        1.22     LA        0.99     
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.72     KP        1.00*    
!   MA        1.00*    MC        0.94     MK        1.00*    NL        1.00*    
!   NY        0.88     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.06     WF        1.00*    WZ        1.11     LA        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 57 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.08     GC        0.95     GG        1.00*    
!   HH        0.86     HN        0.96     KK        1.00*    KP        1.00*    
!   MA        1.40     MC        0.86     MK        1.00*    NL        0.96     
!   NY        0.99     OV        1.00*    PT        1.51     SC        1.02     
!   TS        1.00*    WF        0.79     WZ        0.94     LA        1.03     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.93     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.10     KK        1.08     KP        0.98     
!   MA        1.00*    MC        1.00*    MK        0.95     NL        0.98     
!   NY        0.97     OV        0.94     PT        1.02     SC        1.12     
!   TS        0.97     WF        0.89     WZ        1.36     LA        0.98     
! 
!  A total of 33 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.76     KP        1.00*    
!   MA        0.81     MC        1.10     MK        1.00*    NL        1.00*    
!   NY        0.89     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.05     WF        1.00*    WZ        1.03     LA        1.00*    
! 
! 
! Fit before self-cal, rms=0.203272Jy  sigma=0.001512
! Fit after  self-cal, rms=0.205684Jy  sigma=0.001491
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 4.21% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1512 milli-arcsec
! Estimated beam: bmin=0.5772 mas, bmaj=0.8693 mas, bpa=16.68 degrees
! Estimated noise=472.402 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (-1.2, -4.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0037084 Jy
! Component: 100  -  total flux cleaned = 0.00473267 Jy
! Component: 150  -  total flux cleaned = 0.00466329 Jy
! Component: 200  -  total flux cleaned = 0.00453407 Jy
! Total flux subtracted in 200 components = 0.00453407 Jy
! Clean residual min=-0.002418 max=0.003105 Jy/beam
! Clean residual mean=0.000134 rms=0.000730 Jy/beam
! Combined flux in latest and established models = 0.316604 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 43 components and 0.316604 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.205602Jy  sigma=0.001490
! Fit after  self-cal, rms=0.206035Jy  sigma=0.001489
! Inverting map 
! Your choice of large map pixels excluded 4.21% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1512 milli-arcsec
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.206035Jy  sigma=0.001489
! Fit after  self-cal, rms=0.214236Jy  sigma=0.001486
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.21% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1512 milli-arcsec
! Estimated beam: bmin=0.5766 mas, bmaj=0.8672 mas, bpa=16.09 degrees
! Estimated noise=471.12 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00172489 Jy
! Component: 100  -  total flux cleaned = 0.0020096 Jy
! Component: 150  -  total flux cleaned = 0.00219478 Jy
! Component: 200  -  total flux cleaned = 0.00225045 Jy
! Total flux subtracted in 200 components = 0.00225045 Jy
! Clean residual min=-0.002408 max=0.002545 Jy/beam
! Clean residual mean=0.000108 rms=0.000697 Jy/beam
! Combined flux in latest and established models = 0.318854 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 48 components and 0.318854 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.214195Jy  sigma=0.001486
! Fit after  self-cal, rms=0.214255Jy  sigma=0.001485
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.21% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1512 milli-arcsec
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.000285746 Jy
! Component: 100  -  total flux cleaned = 0.000452494 Jy
! Component: 150  -  total flux cleaned = 0.000452498 Jy
! Component: 200  -  total flux cleaned = 0.000453648 Jy
! Total flux subtracted in 200 components = 0.000453648 Jy
! Clean residual min=-0.002346 max=0.002503 Jy/beam
! Clean residual mean=0.000105 rms=0.000692 Jy/beam
! Combined flux in latest and established models = 0.319308 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 50 components and 0.319308 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.214231Jy  sigma=0.001485
! Fit after  self-cal, rms=0.214232Jy  sigma=0.001485
! Inverting map 
! Your choice of large map pixels excluded 4.21% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1512 milli-arcsec
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.214232Jy  sigma=0.001485
! Fit after  self-cal, rms=0.215290Jy  sigma=0.001485
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.21% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1512 milli-arcsec
! Estimated beam: bmin=0.5768 mas, bmaj=0.8665 mas, bpa=16 degrees
! Estimated noise=471.006 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000630727 Jy
! Component: 100  -  total flux cleaned = 0.000680516 Jy
! Component: 150  -  total flux cleaned = 0.000724651 Jy
! Component: 200  -  total flux cleaned = 0.000807129 Jy
! Total flux subtracted in 200 components = 0.000807129 Jy
! Clean residual min=-0.002270 max=0.002497 Jy/beam
! Clean residual mean=0.000111 rms=0.000687 Jy/beam
! Combined flux in latest and established models = 0.320115 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 55 components and 0.320115 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.215271Jy  sigma=0.001485
! Fit after  self-cal, rms=0.215280Jy  sigma=0.001485
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.21% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1512 milli-arcsec
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 = 9.37186e-05 Jy
! Component: 100  -  total flux cleaned = 0.000137344 Jy
! Component: 150  -  total flux cleaned = 0.000136521 Jy
! Component: 200  -  total flux cleaned = 0.000175373 Jy
! Total flux subtracted in 200 components = 0.000175373 Jy
! Clean residual min=-0.002237 max=0.002485 Jy/beam
! Clean residual mean=0.000108 rms=0.000682 Jy/beam
! Combined flux in latest and established models = 0.32029 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 59 components and 0.32029 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.215266Jy  sigma=0.001485
! Fit after  self-cal, rms=0.215262Jy  sigma=0.001485
! Inverting map 
! Your choice of large map pixels excluded 4.21% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1512 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 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.215262Jy  sigma=0.001485
! Fit after  self-cal, rms=0.215496Jy  sigma=0.001485
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.21% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1512 milli-arcsec
! Estimated beam: bmin=2.243 mas, bmaj=2.643 mas, bpa=-82.1 degrees
! Estimated noise=793.875 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00171998 Jy
! Component: 100  -  total flux cleaned = 0.00254333 Jy
! Component: 150  -  total flux cleaned = 0.00260945 Jy
! Component: 200  -  total flux cleaned = 0.00262894 Jy
! Total flux subtracted in 200 components = 0.00262894 Jy
! Clean residual min=-0.002417 max=0.002744 Jy/beam
! Clean residual mean=0.000331 rms=0.000917 Jy/beam
! Combined flux in latest and established models = 0.322919 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 66 components and 0.322919 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.215493Jy  sigma=0.001485
! Fit after  self-cal, rms=0.215510Jy  sigma=0.001485
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.21% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1512 milli-arcsec
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.00047517 Jy
! Component: 100  -  total flux cleaned = 0.00051617 Jy
! Component: 150  -  total flux cleaned = 0.000535757 Jy
! Component: 200  -  total flux cleaned = 0.000552591 Jy
! Total flux subtracted in 200 components = 0.000552591 Jy
! Clean residual min=-0.002433 max=0.002627 Jy/beam
! Clean residual mean=0.000304 rms=0.000898 Jy/beam
! Combined flux in latest and established models = 0.323472 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 69 components and 0.323472 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.215512Jy  sigma=0.001485
! Fit after  self-cal, rms=0.215516Jy  sigma=0.001485
! Inverting map 
! Your choice of large map pixels excluded 4.21% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1512 milli-arcsec
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 
! Your choice of large map pixels excluded 4.21% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1512 milli-arcsec
! Estimated beam: bmin=0.5767 mas, bmaj=0.8663 mas, bpa=15.98 degrees
! Estimated noise=470.914 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.5767 x 0.8663 at 15.98 degrees (North through East)
! Clean map  min=-0.0019209  max=0.16172 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
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 
! Your choice of large map pixels excluded 4.21% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1512 milli-arcsec
! Estimated beam: bmin=0.5263 mas, bmaj=0.7489 mas, bpa=7.978 degrees
! Estimated noise=700.095 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.125307 Jy
! Component: 100  -  total flux cleaned = 0.18816 Jy
! Component: 150  -  total flux cleaned = 0.2253 Jy
! Component: 200  -  total flux cleaned = 0.249744 Jy
! Total flux subtracted in 200 components = 0.249744 Jy
! Clean residual min=-0.004826 max=0.013347 Jy/beam
! Clean residual mean=0.000063 rms=0.001562 Jy/beam
! Combined flux in latest and established models = 0.249744 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 11 model components to the UV plane model.
! The established model now contains 11 components and 0.249744 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 4.21% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1512 milli-arcsec
! Estimated beam: bmin=0.5767 mas, bmaj=0.8663 mas, bpa=15.98 degrees
! Estimated noise=470.914 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.024402 Jy
! Component: 100  -  total flux cleaned = 0.0391296 Jy
! Component: 150  -  total flux cleaned = 0.0486942 Jy
! Component: 200  -  total flux cleaned = 0.0555481 Jy
! Total flux subtracted in 200 components = 0.0555481 Jy
! Clean residual min=-0.002591 max=0.005063 Jy/beam
! Clean residual mean=0.000347 rms=0.000909 Jy/beam
! Combined flux in latest and established models = 0.305292 Jy
! Adding 18 model components to the UV plane model.
! The established model now contains 21 components and 0.305292 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.21% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1512 milli-arcsec
! Added new window around map position (0, -1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00535963 Jy
! Component: 100  -  total flux cleaned = 0.00924391 Jy
! Component: 150  -  total flux cleaned = 0.0112071 Jy
! Component: 200  -  total flux cleaned = 0.0123326 Jy
! Total flux subtracted in 200 components = 0.0123326 Jy
! Clean residual min=-0.002254 max=0.002644 Jy/beam
! Clean residual mean=0.000161 rms=0.000733 Jy/beam
! Combined flux in latest and established models = 0.317624 Jy
! Adding 24 model components to the UV plane model.
! The established model now contains 34 components and 0.317624 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.21% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1512 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.21% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1512 milli-arcsec
! Estimated beam: bmin=2.243 mas, bmaj=2.643 mas, bpa=-82.1 degrees
! Estimated noise=793.875 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00340024 Jy
! Component: 100  -  total flux cleaned = 0.00499611 Jy
! Component: 150  -  total flux cleaned = 0.00583204 Jy
! Component: 200  -  total flux cleaned = 0.00601618 Jy
! Total flux subtracted in 200 components = 0.00601618 Jy
! Clean residual min=-0.002401 max=0.002644 Jy/beam
! Clean residual mean=0.000298 rms=0.000875 Jy/beam
! Combined flux in latest and established models = 0.323641 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 = 7.80755e-05 Jy
! Component: 100  -  total flux cleaned = 0.000130591 Jy
! Component: 150  -  total flux cleaned = 0.000179094 Jy
! Component: 200  -  total flux cleaned = 0.000223487 Jy
! Total flux subtracted in 200 components = 0.000223487 Jy
! Clean residual min=-0.002393 max=0.002639 Jy/beam
! Clean residual mean=0.000283 rms=0.000874 Jy/beam
! Combined flux in latest and established models = 0.323864 Jy
! Adding 25 model components to the UV plane model.
! The established model now contains 57 components and 0.323864 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.21% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1512 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 4.21% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1512 milli-arcsec
! Estimated beam: bmin=0.5767 mas, bmaj=0.8663 mas, bpa=15.98 degrees
! Estimated noise=470.914 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000780634 Jy
! Component: 100  -  total flux cleaned = -0.000785499 Jy
! Component: 150  -  total flux cleaned = -0.000718505 Jy
! Component: 200  -  total flux cleaned = -0.000658559 Jy
! Total flux subtracted in 200 components = -0.000658559 Jy
! Clean residual min=-0.002269 max=0.002560 Jy/beam
! Clean residual mean=0.000078 rms=0.000698 Jy/beam
! Combined flux in latest and established models = 0.323206 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 63 components and 0.323206 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.215532Jy  sigma=0.001485
! Fit after  self-cal, rms=0.215558Jy  sigma=0.001484
wmodel J1426+3625_X_2000_05_22_pus_map.mod
! Writing 63 model components to file: J1426+3625_X_2000_05_22_pus_map.mod
wobs J1426+3625_X_2000_05_22_pus_uvs.fits
! Writing UV FITS file: J1426+3625_X_2000_05_22_pus_uvs.fits
wwins J1426+3625_X_2000_05_22_pus_map.win
! wwins: Wrote 5 windows to J1426+3625_X_2000_05_22_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! Your choice of large map pixels excluded 4.21% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1512 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00116704 Jy
! Component: 100  -  total flux cleaned = 0.00201353 Jy
! Component: 150  -  total flux cleaned = 0.00264778 Jy
! Component: 200  -  total flux cleaned = 0.00309718 Jy
! Component: 250  -  total flux cleaned = 0.00345484 Jy
! Component: 300  -  total flux cleaned = 0.00364892 Jy
! Component: 350  -  total flux cleaned = 0.00380041 Jy
! Component: 400  -  total flux cleaned = 0.00387431 Jy
! Component: 450  -  total flux cleaned = 0.00391093 Jy
! Component: 500  -  total flux cleaned = 0.00398273 Jy
! Component: 550  -  total flux cleaned = 0.00398265 Jy
! Component: 600  -  total flux cleaned = 0.00398245 Jy
! Component: 650  -  total flux cleaned = 0.00391394 Jy
! Component: 700  -  total flux cleaned = 0.0038806 Jy
! Component: 750  -  total flux cleaned = 0.00391423 Jy
! Component: 800  -  total flux cleaned = 0.00388099 Jy
! Component: 850  -  total flux cleaned = 0.00384823 Jy
! Component: 900  -  total flux cleaned = 0.00388032 Jy
! Component: 950  -  total flux cleaned = 0.00381614 Jy
! Component: 1000  -  total flux cleaned = 0.00384827 Jy
! Total flux subtracted in 1024 components = 0.00391109 Jy
! Clean residual min=-0.001760 max=0.002007 Jy/beam
! Clean residual mean=0.000014 rms=0.000587 Jy/beam
! Combined flux in latest and established models = 0.327117 Jy
keep
! Adding 87 model components to the UV plane model.
! The established model now contains 150 components and 0.327117 Jy
![Exited script file: muppet]
wmap "J1426+3625_X_2000_05_22_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 4.21% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1512 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.5767 x 0.8663 at 15.98 degrees (North through East)
! Clean map  min=-0.0018076  max=0.16039 Jy/beam
! Writing clean map to FITS file: J1426+3625_X_2000_05_22_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.160387 
invert
! Inverting map 
! Your choice of large map pixels excluded 4.21% of the data.
!  The x-axis pixel size should ideally be below 0.1565 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1512 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000586832 
device "J1426+3625_X_2000_05_22_pus\_map.eps/VPS"
! Attempting to open device: 'J1426+3625_X_2000_05_22_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -1.09766 1.09766 2.19531 4.39062 8.78125 17.5625 35.125 70.25
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0017 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.16 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.5767 x 0.8663 at 15.98 degrees (North through East)
! Clean map  min=-0.0018076  max=0.16039 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1426+3625_X_2000_05_22_pus\_map.gif/vgif"
! Attempting to open device: 'J1426+3625_X_2000_05_22_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1426+3625_X_2000_05_22_pus_uvs.log closed on Mon Nov 12 16:27:57 2007