! Started logfile: J1416+3444_X_2000_05_22_pus_uvs.log on Mon Nov 12 18:13:58 2007
obs J1416+3444_X_2000_05_22_pus_uva.fits
! Reading UV FITS file: J1416+3444_X_2000_05_22_pus_uva.fits
! AN table 1: 18 integrations on 190 of 190 possible baselines.
! AN table 2: 34 integrations on 190 of 190 possible baselines.
! AN table 3: 83 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.143353 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1416+3444
! 
! 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 14708 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.2 
print "taper_size =",taper_size
! taper_size = 70 
![@muppet J1416+3444_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 = 512x512 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 221 telescope corrections were flagged in sub-array 1.
!  A total of 586 telescope corrections were flagged in sub-array 2.
!  A total of 1222 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 221 telescope corrections were flagged in sub-array 1.
!  A total of 586 telescope corrections were flagged in sub-array 2.
!  A total of 1087 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 221 telescope corrections were flagged in sub-array 1.
!  A total of 568 telescope corrections were flagged in sub-array 2.
!  A total of 1222 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 221 telescope corrections were flagged in sub-array 1.
!  A total of 568 telescope corrections were flagged in sub-array 2.
!  A total of 1222 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.938572Jy  sigma=0.007956
! Fit after  self-cal, rms=0.884466Jy  sigma=0.007610
! 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 6.69% of the data.
!  The x-axis pixel size should ideally be below 0.1594 milli-arcsec
! Estimated beam: bmin=0.5692 mas, bmaj=0.8475 mas, bpa=-22.84 degrees
! Estimated noise=1177.39 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.105602 Jy
! Component: 100  -  total flux cleaned = 0.155563 Jy
! Total flux subtracted in 100 components = 0.155563 Jy
! Clean residual min=-0.015925 max=0.049294 Jy/beam
! Clean residual mean=-0.000067 rms=0.004934 Jy/beam
! Combined flux in latest and established models = 0.155563 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 12 components and 0.155563 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.213083Jy  sigma=0.001758
! Fit after  self-cal, rms=0.211435Jy  sigma=0.001748
! Inverting map 
! Your choice of large map pixels excluded 6.69% of the data.
!  The x-axis pixel size should ideally be below 0.1594 milli-arcsec
! Added new window around map position (-1, -1.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0488687 Jy
! Component: 100  -  total flux cleaned = 0.0828722 Jy
! Total flux subtracted in 100 components = 0.0828722 Jy
! Clean residual min=-0.011845 max=0.029250 Jy/beam
! Clean residual mean=-0.000079 rms=0.003889 Jy/beam
! Combined flux in latest and established models = 0.238435 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 24 components and 0.238435 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.197902Jy  sigma=0.001544
! Fit after  self-cal, rms=0.195061Jy  sigma=0.001523
! Inverting map 
! Your choice of large map pixels excluded 6.69% of the data.
!  The x-axis pixel size should ideally be below 0.1594 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.035492 Jy
! Component: 100  -  total flux cleaned = 0.0598312 Jy
! Total flux subtracted in 100 components = 0.0598312 Jy
! Clean residual min=-0.010591 max=0.021208 Jy/beam
! Clean residual mean=-0.000084 rms=0.003129 Jy/beam
! Combined flux in latest and established models = 0.298266 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 28 components and 0.298266 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.187660Jy  sigma=0.001402
! Fit after  self-cal, rms=0.186548Jy  sigma=0.001394
! Inverting map 
! Your choice of large map pixels excluded 6.69% of the data.
!  The x-axis pixel size should ideally be below 0.1594 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.02396 Jy
! Component: 100  -  total flux cleaned = 0.0411531 Jy
! Total flux subtracted in 100 components = 0.0411531 Jy
! Clean residual min=-0.009800 max=0.017176 Jy/beam
! Clean residual mean=-0.000095 rms=0.002664 Jy/beam
! Combined flux in latest and established models = 0.339419 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 31 components and 0.339419 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.183092Jy  sigma=0.001330
! Fit after  self-cal, rms=0.182666Jy  sigma=0.001327
! Inverting map 
! Your choice of large map pixels excluded 6.69% of the data.
!  The x-axis pixel size should ideally be below 0.1594 milli-arcsec
! Added new window around map position (-0.8, -0.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0184674 Jy
! Component: 100  -  total flux cleaned = 0.0314488 Jy
! Total flux subtracted in 100 components = 0.0314488 Jy
! Clean residual min=-0.008982 max=0.015059 Jy/beam
! Clean residual mean=-0.000106 rms=0.002340 Jy/beam
! Combined flux in latest and established models = 0.370868 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 40 components and 0.370868 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.180815Jy  sigma=0.001290
! Fit after  self-cal, rms=0.180621Jy  sigma=0.001288
! Inverting map 
! Your choice of large map pixels excluded 6.69% of the data.
!  The x-axis pixel size should ideally be below 0.1594 milli-arcsec
! Added new window around map position (-1.6, -2.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0152982 Jy
! Component: 100  -  total flux cleaned = 0.0254048 Jy
! Total flux subtracted in 100 components = 0.0254048 Jy
! Clean residual min=-0.008469 max=0.010768 Jy/beam
! Clean residual mean=-0.000115 rms=0.002100 Jy/beam
! Combined flux in latest and established models = 0.396273 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 48 components and 0.396273 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179585Jy  sigma=0.001265
! Fit after  self-cal, rms=0.179457Jy  sigma=0.001264
! Inverting map 
! Your choice of large map pixels excluded 6.69% of the data.
!  The x-axis pixel size should ideally be below 0.1594 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 6.69% of the data.
!  The x-axis pixel size should ideally be below 0.1594 milli-arcsec
! Estimated beam: bmin=0.6109 mas, bmaj=0.9801 mas, bpa=-21.49 degrees
! Estimated noise=772.926 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.0123917 Jy
! Component: 100  -  total flux cleaned = 0.0206128 Jy
! Component: 150  -  total flux cleaned = 0.0265801 Jy
! Component: 200  -  total flux cleaned = 0.0310472 Jy
! Total flux subtracted in 200 components = 0.0310472 Jy
! Clean residual min=-0.007817 max=0.008614 Jy/beam
! Clean residual mean=-0.000549 rms=0.001976 Jy/beam
! Combined flux in latest and established models = 0.42732 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 67 components and 0.42732 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179007Jy  sigma=0.001247
! Fit after  self-cal, rms=0.178896Jy  sigma=0.001246
! Inverting map 
! Your choice of large map pixels excluded 6.69% of the data.
!  The x-axis pixel size should ideally be below 0.1594 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00*    GC        0.93     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.92     KP        1.03     
!   MA        1.00*    MC        1.00*    MK        1.02     NL        1.00*    
!   NY        0.95     OV        0.98     PT        0.96     SC        1.00*    
!   TS        0.98     WF        1.00*    WZ        1.00*    LA        0.99     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        0.99     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.79     KP        1.00*    
!   MA        1.27     MC        0.97     MK        1.00*    NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        0.88     WF        1.00*    WZ        1.11     LA        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        0.86     GC        1.11     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.06     KP        1.03     
!   MA        1.00     MC        1.16     MK        0.96     NL        0.98     
!   NY        1.00     OV        0.86     PT        0.97     SC        1.02     
!   TS        1.00*    WF        2.79     WZ        1.06     LA        0.93     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.06     FD        1.00*    GC        0.88     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00     KP        0.97     
!   MA        1.00*    MC        1.00*    MK        0.98     NL        1.00*    
!   NY        1.26     OV        1.02     PT        0.89     SC        1.00*    
!   TS        0.94     WF        1.00*    WZ        1.00*    LA        0.96     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        0.94     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.89     KP        1.00*    
!   MA        0.89     MC        1.12     MK        1.00*    NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        0.90     WF        1.00*    WZ        1.06     LA        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.91     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        0.91     KK        0.97     KP        0.94     
!   MA        1.08     MC        1.17     MK        1.02     NL        1.03     
!   NY        0.99     OV        0.94     PT        0.91     SC        1.02     
!   TS        1.00*    WF        2.70     WZ        1.03     LA        0.89     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.11     FD        1.00*    GC        0.92     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.91     KP        1.02     
!   MA        1.00*    MC        1.00*    MK        0.92     NL        1.00*    
!   NY        1.25     OV        1.03     PT        1.00     SC        1.00*    
!   TS        1.23     WF        1.00*    WZ        1.00*    LA        0.97     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        0.79     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.10     KP        1.00*    
!   MA        0.84     MC        0.91     MK        1.00*    NL        1.00*    
!   NY        1.13     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.06     WF        1.00*    WZ        1.03     LA        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.09     FD        0.89     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        0.92     KK        0.93     KP        1.06     
!   MA        1.14     MC        1.09     MK        1.02     NL        0.99     
!   NY        0.99     OV        0.93     PT        0.93     SC        1.21     
!   TS        1.00*    WF        2.38     WZ        1.21     LA        0.95     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.00*    GC        0.97     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.02     KP        1.12     
!   MA        1.00*    MC        1.00*    MK        1.09     NL        1.00*    
!   NY        0.96     OV        0.99     PT        1.01     SC        1.00*    
!   TS        0.90     WF        1.00*    WZ        1.00*    LA        0.97     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        0.91     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.94     KP        1.00*    
!   MA        0.74     MC        1.24     MK        1.00*    NL        1.00*    
!   NY        0.78     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        0.88     WF        1.00*    WZ        1.02     LA        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.06     FD        0.87     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        1.04     KP        1.07     
!   MA        1.11     MC        1.08     MK        0.98     NL        0.97     
!   NY        0.98     OV        0.91     PT        0.96     SC        1.06     
!   TS        1.00*    WF        2.44     WZ        1.20     LA        0.94     
! 
! 
! Fit before self-cal, rms=0.178896Jy  sigma=0.001246
! Fit after  self-cal, rms=0.245051Jy  sigma=0.001212
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 6.71% of the data.
!  The x-axis pixel size should ideally be below 0.1594 milli-arcsec
! Estimated beam: bmin=0.6171 mas, bmaj=0.9913 mas, bpa=-21.45 degrees
! Estimated noise=785.935 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.000229262 Jy
! Component: 100  -  total flux cleaned = 6.38464e-05 Jy
! Component: 150  -  total flux cleaned = 0.000453265 Jy
! Component: 200  -  total flux cleaned = 0.000520885 Jy
! Total flux subtracted in 200 components = 0.000520885 Jy
! Clean residual min=-0.004648 max=0.005831 Jy/beam
! Clean residual mean=0.000045 rms=0.001295 Jy/beam
! Combined flux in latest and established models = 0.427841 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 73 components and 0.427841 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.244945Jy  sigma=0.001211
! Fit after  self-cal, rms=0.245715Jy  sigma=0.001210
! Inverting map 
! Your choice of large map pixels excluded 6.71% of the data.
!  The x-axis pixel size should ideally be below 0.1594 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.245715Jy  sigma=0.001210
! Fit after  self-cal, rms=0.255577Jy  sigma=0.001210
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 6.71% of the data.
!  The x-axis pixel size should ideally be below 0.1594 milli-arcsec
! Estimated beam: bmin=0.6176 mas, bmaj=0.9918 mas, bpa=-21.38 degrees
! Estimated noise=787.388 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000637932 Jy
! Component: 100  -  total flux cleaned = 0.000846829 Jy
! Component: 150  -  total flux cleaned = 0.00096002 Jy
! Component: 200  -  total flux cleaned = 0.00096013 Jy
! Total flux subtracted in 200 components = 0.00096013 Jy
! Clean residual min=-0.004581 max=0.005748 Jy/beam
! Clean residual mean=0.000088 rms=0.001274 Jy/beam
! Combined flux in latest and established models = 0.428801 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 76 components and 0.428801 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.255528Jy  sigma=0.001209
! Fit after  self-cal, rms=0.255583Jy  sigma=0.001209
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 6.71% of the data.
!  The x-axis pixel size should ideally be below 0.1594 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)
! Added new window around map position (6.6, 8.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00546668 Jy
! Component: 100  -  total flux cleaned = 0.00871149 Jy
! Component: 150  -  total flux cleaned = 0.0106968 Jy
! Component: 200  -  total flux cleaned = 0.0117361 Jy
! Total flux subtracted in 200 components = 0.0117361 Jy
! Clean residual min=-0.004340 max=0.005063 Jy/beam
! Clean residual mean=0.000074 rms=0.001187 Jy/beam
! Combined flux in latest and established models = 0.440537 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 90 components and 0.440537 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.255470Jy  sigma=0.001207
! Fit after  self-cal, rms=0.255394Jy  sigma=0.001206
! Inverting map 
! Your choice of large map pixels excluded 6.71% of the data.
!  The x-axis pixel size should ideally be below 0.1594 milli-arcsec
! Added new window around map position (1, 1.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0040487 Jy
! Component: 100  -  total flux cleaned = 0.00540842 Jy
! Component: 150  -  total flux cleaned = 0.00610967 Jy
! Component: 200  -  total flux cleaned = 0.00653175 Jy
! Total flux subtracted in 200 components = 0.00653175 Jy
! Clean residual min=-0.004141 max=0.004625 Jy/beam
! Clean residual mean=0.000071 rms=0.001146 Jy/beam
! Combined flux in latest and established models = 0.447069 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 99 components and 0.447069 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.255261Jy  sigma=0.001205
! Fit after  self-cal, rms=0.255195Jy  sigma=0.001205
! Inverting map 
! Your choice of large map pixels excluded 6.71% of the data.
!  The x-axis pixel size should ideally be below 0.1594 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.255195Jy  sigma=0.001205
! Fit after  self-cal, rms=0.257911Jy  sigma=0.001205
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 6.71% of the data.
!  The x-axis pixel size should ideally be below 0.1594 milli-arcsec
! Estimated beam: bmin=0.6187 mas, bmaj=0.9917 mas, bpa=-21.08 degrees
! Estimated noise=789.523 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0023111 Jy
! Component: 100  -  total flux cleaned = 0.00344749 Jy
! Component: 150  -  total flux cleaned = 0.00412096 Jy
! Component: 200  -  total flux cleaned = 0.0044938 Jy
! Total flux subtracted in 200 components = 0.0044938 Jy
! Clean residual min=-0.004273 max=0.004638 Jy/beam
! Clean residual mean=0.000077 rms=0.001130 Jy/beam
! Combined flux in latest and established models = 0.451563 Jy
selfcal
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 109 components and 0.451563 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.257843Jy  sigma=0.001204
! Fit after  self-cal, rms=0.257830Jy  sigma=0.001204
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 6.71% of the data.
!  The x-axis pixel size should ideally be below 0.1594 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.000929685 Jy
! Component: 100  -  total flux cleaned = 0.00122106 Jy
! Component: 150  -  total flux cleaned = 0.00149357 Jy
! Component: 200  -  total flux cleaned = 0.0017504 Jy
! Total flux subtracted in 200 components = 0.0017504 Jy
! Clean residual min=-0.004223 max=0.004639 Jy/beam
! Clean residual mean=0.000075 rms=0.001119 Jy/beam
! Combined flux in latest and established models = 0.453313 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 112 components and 0.453313 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.257786Jy  sigma=0.001204
! Fit after  self-cal, rms=0.257776Jy  sigma=0.001204
! Inverting map 
! Your choice of large map pixels excluded 6.71% of the data.
!  The x-axis pixel size should ideally be below 0.1594 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.257776Jy  sigma=0.001204
! Fit after  self-cal, rms=0.258456Jy  sigma=0.001204
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 6.71% of the data.
!  The x-axis pixel size should ideally be below 0.1594 milli-arcsec
! Estimated beam: bmin=2.18 mas, bmaj=2.797 mas, bpa=0.8992 degrees
! Estimated noise=1249.16 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00371742 Jy
! Component: 100  -  total flux cleaned = 0.0057116 Jy
! Component: 150  -  total flux cleaned = 0.00630723 Jy
! Component: 200  -  total flux cleaned = 0.00655966 Jy
! Total flux subtracted in 200 components = 0.00655966 Jy
! Clean residual min=-0.006639 max=0.009494 Jy/beam
! Clean residual mean=0.000285 rms=0.002599 Jy/beam
! Combined flux in latest and established models = 0.459873 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 118 components and 0.459873 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.258444Jy  sigma=0.001204
! Fit after  self-cal, rms=0.258409Jy  sigma=0.001203
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 6.71% of the data.
!  The x-axis pixel size should ideally be below 0.1594 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.00102133 Jy
! Component: 100  -  total flux cleaned = 0.00102218 Jy
! Component: 150  -  total flux cleaned = 0.00106336 Jy
! Component: 200  -  total flux cleaned = 0.00110109 Jy
! Total flux subtracted in 200 components = 0.00110109 Jy
! Clean residual min=-0.006557 max=0.009355 Jy/beam
! Clean residual mean=0.000283 rms=0.002563 Jy/beam
! Combined flux in latest and established models = 0.460974 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 119 components and 0.460974 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.258407Jy  sigma=0.001204
! Fit after  self-cal, rms=0.258388Jy  sigma=0.001204
! Inverting map 
! Your choice of large map pixels excluded 6.71% of the data.
!  The x-axis pixel size should ideally be below 0.1594 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 6.71% of the data.
!  The x-axis pixel size should ideally be below 0.1594 milli-arcsec
! Estimated beam: bmin=0.6196 mas, bmaj=0.9917 mas, bpa=-20.97 degrees
! Estimated noise=790.747 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6196 x 0.9917 at -20.97 degrees (North through East)
! Clean map  min=-0.0036164  max=0.13328 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 6.71% of the data.
!  The x-axis pixel size should ideally be below 0.1594 milli-arcsec
! Estimated beam: bmin=0.5748 mas, bmaj=0.848 mas, bpa=-22.12 degrees
! Estimated noise=1206.24 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.108438 Jy
! Component: 100  -  total flux cleaned = 0.174547 Jy
! Component: 150  -  total flux cleaned = 0.223052 Jy
! Component: 200  -  total flux cleaned = 0.260329 Jy
! Total flux subtracted in 200 components = 0.260329 Jy
! Clean residual min=-0.011125 max=0.022156 Jy/beam
! Clean residual mean=0.000045 rms=0.003313 Jy/beam
! Combined flux in latest and established models = 0.260329 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 28 model components to the UV plane model.
! The established model now contains 28 components and 0.260329 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 6.71% of the data.
!  The x-axis pixel size should ideally be below 0.1594 milli-arcsec
! Estimated beam: bmin=0.6196 mas, bmaj=0.9917 mas, bpa=-20.97 degrees
! Estimated noise=790.747 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.0463449 Jy
! Component: 100  -  total flux cleaned = 0.078744 Jy
! Component: 150  -  total flux cleaned = 0.10223 Jy
! Component: 200  -  total flux cleaned = 0.119703 Jy
! Total flux subtracted in 200 components = 0.119703 Jy
! Clean residual min=-0.006077 max=0.010017 Jy/beam
! Clean residual mean=0.000166 rms=0.001815 Jy/beam
! Combined flux in latest and established models = 0.380033 Jy
! Adding 46 model components to the UV plane model.
! The established model now contains 58 components and 0.380033 Jy
! Inverting map 
! Your choice of large map pixels excluded 6.71% of the data.
!  The x-axis pixel size should ideally be below 0.1594 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0131473 Jy
! Component: 100  -  total flux cleaned = 0.023152 Jy
! Component: 150  -  total flux cleaned = 0.0311149 Jy
! Component: 200  -  total flux cleaned = 0.037663 Jy
! Total flux subtracted in 200 components = 0.037663 Jy
! Clean residual min=-0.004813 max=0.005215 Jy/beam
! Clean residual mean=0.000119 rms=0.001322 Jy/beam
! Combined flux in latest and established models = 0.417696 Jy
! Adding 44 model components to the UV plane model.
! The established model now contains 81 components and 0.417696 Jy
! Inverting map 
! Your choice of large map pixels excluded 6.71% of the data.
!  The x-axis pixel size should ideally be below 0.1594 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 6.71% of the data.
!  The x-axis pixel size should ideally be below 0.1594 milli-arcsec
! Estimated beam: bmin=2.18 mas, bmaj=2.797 mas, bpa=0.8992 degrees
! Estimated noise=1249.16 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0150202 Jy
! Component: 100  -  total flux cleaned = 0.0245098 Jy
! Component: 150  -  total flux cleaned = 0.0308692 Jy
! Component: 200  -  total flux cleaned = 0.0352476 Jy
! Total flux subtracted in 200 components = 0.0352476 Jy
! Clean residual min=-0.006988 max=0.009182 Jy/beam
! Clean residual mean=0.000318 rms=0.002633 Jy/beam
! Combined flux in latest and established models = 0.452943 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.00306352 Jy
! Component: 100  -  total flux cleaned = 0.00522851 Jy
! Component: 150  -  total flux cleaned = 0.00621208 Jy
! Component: 200  -  total flux cleaned = 0.00684843 Jy
! Total flux subtracted in 200 components = 0.00684843 Jy
! Clean residual min=-0.006525 max=0.009243 Jy/beam
! Clean residual mean=0.000287 rms=0.002558 Jy/beam
! Combined flux in latest and established models = 0.459792 Jy
! Adding 62 model components to the UV plane model.
! The established model now contains 120 components and 0.459792 Jy
! Inverting map 
! Your choice of large map pixels excluded 6.71% of the data.
!  The x-axis pixel size should ideally be below 0.1594 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 6.71% of the data.
!  The x-axis pixel size should ideally be below 0.1594 milli-arcsec
! Estimated beam: bmin=0.6196 mas, bmaj=0.9917 mas, bpa=-20.97 degrees
! Estimated noise=790.747 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000596166 Jy
! Component: 100  -  total flux cleaned = -0.000898396 Jy
! Component: 150  -  total flux cleaned = -0.00107796 Jy
! Component: 200  -  total flux cleaned = -0.00124065 Jy
! Total flux subtracted in 200 components = -0.00124065 Jy
! Clean residual min=-0.004624 max=0.005059 Jy/beam
! Clean residual mean=0.000072 rms=0.001124 Jy/beam
! Combined flux in latest and established models = 0.458551 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 133 components and 0.458551 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.258427Jy  sigma=0.001205
! Fit after  self-cal, rms=0.258385Jy  sigma=0.001203
wmodel J1416+3444_X_2000_05_22_pus_map.mod
! Writing 133 model components to file: J1416+3444_X_2000_05_22_pus_map.mod
wobs J1416+3444_X_2000_05_22_pus_uvs.fits
! Writing UV FITS file: J1416+3444_X_2000_05_22_pus_uvs.fits
wwins J1416+3444_X_2000_05_22_pus_map.win
! wwins: Wrote 6 windows to J1416+3444_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 6.71% of the data.
!  The x-axis pixel size should ideally be below 0.1594 milli-arcsec
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00139863 Jy
! Component: 100  -  total flux cleaned = 0.00195259 Jy
! Component: 150  -  total flux cleaned = 0.00225313 Jy
! Component: 200  -  total flux cleaned = 0.00246798 Jy
! Component: 250  -  total flux cleaned = 0.00281469 Jy
! Component: 300  -  total flux cleaned = 0.00315104 Jy
! Component: 350  -  total flux cleaned = 0.00361151 Jy
! Component: 400  -  total flux cleaned = 0.00374089 Jy
! Component: 450  -  total flux cleaned = 0.00399467 Jy
! Component: 500  -  total flux cleaned = 0.00442665 Jy
! Component: 550  -  total flux cleaned = 0.00472816 Jy
! Component: 600  -  total flux cleaned = 0.00496567 Jy
! Component: 650  -  total flux cleaned = 0.00508338 Jy
! Component: 700  -  total flux cleaned = 0.00537386 Jy
! Component: 750  -  total flux cleaned = 0.00560275 Jy
! Component: 800  -  total flux cleaned = 0.00582807 Jy
! Component: 850  -  total flux cleaned = 0.00593949 Jy
! Component: 900  -  total flux cleaned = 0.00610435 Jy
! Component: 950  -  total flux cleaned = 0.00643127 Jy
! Component: 1000  -  total flux cleaned = 0.00664666 Jy
! Component: 1050  -  total flux cleaned = 0.0069137 Jy
! Component: 1100  -  total flux cleaned = 0.00717794 Jy
! Component: 1150  -  total flux cleaned = 0.00749029 Jy
! Component: 1200  -  total flux cleaned = 0.00764519 Jy
! Component: 1250  -  total flux cleaned = 0.00785077 Jy
! Component: 1300  -  total flux cleaned = 0.00830631 Jy
! Component: 1350  -  total flux cleaned = 0.00850616 Jy
! Component: 1400  -  total flux cleaned = 0.00880394 Jy
! Component: 1450  -  total flux cleaned = 0.00909831 Jy
! Component: 1500  -  total flux cleaned = 0.00919552 Jy
! Component: 1550  -  total flux cleaned = 0.00943664 Jy
! Component: 1600  -  total flux cleaned = 0.00948494 Jy
! Component: 1650  -  total flux cleaned = 0.00986451 Jy
! Component: 1700  -  total flux cleaned = 0.0100054 Jy
! Component: 1750  -  total flux cleaned = 0.0100987 Jy
! Component: 1800  -  total flux cleaned = 0.010238 Jy
! Component: 1850  -  total flux cleaned = 0.0105134 Jy
! Component: 1900  -  total flux cleaned = 0.0106502 Jy
! Component: 1950  -  total flux cleaned = 0.0108759 Jy
! Component: 2000  -  total flux cleaned = 0.0109209 Jy
! Total flux subtracted in 2048 components = 0.0112328 Jy
! Clean residual min=-0.002431 max=0.002454 Jy/beam
! Clean residual mean=0.000058 rms=0.000796 Jy/beam
! Combined flux in latest and established models = 0.469784 Jy
keep
! Adding 170 model components to the UV plane model.
! The established model now contains 303 components and 0.469784 Jy
![Exited script file: muppet]
wmap "J1416+3444_X_2000_05_22_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 6.71% of the data.
!  The x-axis pixel size should ideally be below 0.1594 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6196 x 0.9917 at -20.97 degrees (North through East)
! Clean map  min=-0.0032782  max=0.13566 Jy/beam
! Writing clean map to FITS file: J1416+3444_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.135664 
invert
! Inverting map 
! Your choice of large map pixels excluded 6.71% of the data.
!  The x-axis pixel size should ideally be below 0.1594 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000796782 
device "J1416+3444_X_2000_05_22_pus\_map.eps/VPS"
! Attempting to open device: 'J1416+3444_X_2000_05_22_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -1.76196 1.76196 3.52393 7.04786 14.0957 28.1914 56.3829
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0023 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.135 
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.6196 x 0.9917 at -20.97 degrees (North through East)
! Clean map  min=-0.0032782  max=0.13566 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1416+3444_X_2000_05_22_pus\_map.gif/vgif"
! Attempting to open device: 'J1416+3444_X_2000_05_22_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1416+3444_X_2000_05_22_pus_uvs.log closed on Mon Nov 12 18:14:08 2007