! Started logfile: J2152+1734_X_2001_04_09_pus_uvs.log on Mon Oct  1 14:52:51 2007
obs J2152+1734_X_2001_04_09_pus_uva.fits
! Reading UV FITS file: J2152+1734_X_2001_04_09_pus_uva.fits
! AN table 1: 257 integrations on 190 of 190 possible baselines.
! AN table 2: 88 integrations on 190 of 190 possible baselines.
! AN table 3: 148 integrations on 190 of 190 possible baselines.
! AN table 4: 135 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.083121 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2152+1734
! 
! 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 1926 lines of history.
! 
! Reading 39672 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 J2152+1734_X_2001_04_09_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 4341 telescope corrections were flagged in sub-array 1.
!  A total of 1370 telescope corrections were flagged in sub-array 2.
!  A total of 2277 telescope corrections were flagged in sub-array 3.
!  A total of 2156 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 4342 telescope corrections were flagged in sub-array 1.
!  A total of 1370 telescope corrections were flagged in sub-array 2.
!  A total of 2277 telescope corrections were flagged in sub-array 3.
!  A total of 2156 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 4353 telescope corrections were flagged in sub-array 1.
!  A total of 1370 telescope corrections were flagged in sub-array 2.
!  A total of 2277 telescope corrections were flagged in sub-array 3.
!  A total of 2156 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 4351 telescope corrections were flagged in sub-array 1.
!  A total of 1370 telescope corrections were flagged in sub-array 2.
!  A total of 2277 telescope corrections were flagged in sub-array 3.
!  A total of 2156 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.947362Jy  sigma=0.007854
! Fit after  self-cal, rms=0.646927Jy  sigma=0.005088
! 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 2.43% of the data.
!  The x-axis pixel size should ideally be below 0.1844 milli-arcsec
! Estimated beam: bmin=0.646 mas, bmaj=1.047 mas, bpa=0.7727 degrees
! Estimated noise=824.37 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.342903 Jy
! Component: 100  -  total flux cleaned = 0.447567 Jy
! Total flux subtracted in 100 components = 0.447567 Jy
! Clean residual min=-0.016050 max=0.047013 Jy/beam
! Clean residual mean=0.000490 rms=0.004723 Jy/beam
! Combined flux in latest and established models = 0.447567 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.447567 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.366901Jy  sigma=0.001813
! Fit after  self-cal, rms=0.366634Jy  sigma=0.001810
! Inverting map 
! Your choice of large map pixels excluded 2.43% of the data.
!  The x-axis pixel size should ideally be below 0.1844 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0519187 Jy
! Component: 100  -  total flux cleaned = 0.077617 Jy
! Total flux subtracted in 100 components = 0.077617 Jy
! Clean residual min=-0.010609 max=0.014716 Jy/beam
! Clean residual mean=0.000238 rms=0.003058 Jy/beam
! Combined flux in latest and established models = 0.525184 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 10 components and 0.525184 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.357969Jy  sigma=0.001643
! Fit after  self-cal, rms=0.357872Jy  sigma=0.001642
! Inverting map 
! Your choice of large map pixels excluded 2.43% of the data.
!  The x-axis pixel size should ideally be below 0.1844 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 2.43% of the data.
!  The x-axis pixel size should ideally be below 0.1844 milli-arcsec
! Estimated beam: bmin=0.7839 mas, bmaj=1.191 mas, bpa=1.054 degrees
! Estimated noise=433.599 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.6, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0244099 Jy
! Component: 100  -  total flux cleaned = 0.03846 Jy
! Component: 150  -  total flux cleaned = 0.0476414 Jy
! Component: 200  -  total flux cleaned = 0.0536689 Jy
! Total flux subtracted in 200 components = 0.0536689 Jy
! Clean residual min=-0.006363 max=0.009770 Jy/beam
! Clean residual mean=0.000496 rms=0.002218 Jy/beam
! Combined flux in latest and established models = 0.578853 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 36 components and 0.578853 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356318Jy  sigma=0.001607
! Fit after  self-cal, rms=0.356154Jy  sigma=0.001605
! Inverting map 
! Your choice of large map pixels excluded 2.43% of the data.
!  The x-axis pixel size should ideally be below 0.1844 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.99     GC        0.91     GG        1.00*    
!   HH        1.00*    HN        0.90     KK        1.03     KP        0.96     
!   LA        0.95     MA        1.00*    MC        1.00*    MK        0.97     
!   NL        1.03     NY        1.07     OV        0.98     PT        0.99     
!   SC        0.99     TS        1.00*    WF        0.91     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.02     GC        0.83     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.16     KP        1.02     
!   LA        1.03     MA        1.00*    MC        1.00*    MK        1.01     
!   NL        1.00*    NY        1.00*    OV        1.02     PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 84 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.03     GC        0.89     GG        1.00*    
!   HH        1.00*    HN        1.03     KK        1.00*    KP        1.00     
!   LA        1.02     MA        1.00*    MC        1.00*    MK        0.96     
!   NL        0.99     NY        1.11     OV        1.03     PT        0.99     
!   SC        1.00*    TS        1.02     WF        0.96     WZ        1.00*    
! 
!  A total of 54 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.05     FD        1.00*    GC        0.94     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.91     KP        1.34     
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        0.94     
!   NL        1.00*    NY        1.03     OV        1.01     PT        1.14     
!   SC        1.00*    TS        1.08     WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 39 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.01     GC        0.92     GG        1.00*    
!   HH        1.00*    HN        0.89     KK        0.95     KP        0.95     
!   LA        0.96     MA        1.00*    MC        1.00*    MK        1.02     
!   NL        0.96     NY        1.10     OV        0.98     PT        0.99     
!   SC        0.98     TS        1.00*    WF        0.94     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.01     GC        0.85     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.18     KP        1.06     
!   LA        1.02     MA        1.00*    MC        1.00*    MK        1.06     
!   NL        1.00*    NY        1.00*    OV        1.00     PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 84 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.05     GC        0.91     GG        1.00*    
!   HH        1.00*    HN        1.03     KK        1.00*    KP        0.99     
!   LA        1.00     MA        1.00*    MC        1.00*    MK        1.02     
!   NL        0.94     NY        1.12     OV        1.03     PT        1.00     
!   SC        1.00*    TS        1.06     WF        0.99     WZ        1.00*    
! 
!  A total of 54 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.05     FD        1.00*    GC        0.98     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.97     KP        1.32     
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        0.98     
!   NL        1.00*    NY        1.02     OV        1.01     PT        1.18     
!   SC        1.00*    TS        1.10     WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.00     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        0.91     KK        0.91     KP        0.87     
!   LA        0.97     MA        1.00*    MC        1.00*    MK        0.96     
!   NL        0.97     NY        1.05     OV        0.96     PT        0.93     
!   SC        0.97     TS        1.00*    WF        0.96     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.02     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.19     KP        0.94     
!   LA        1.02     MA        1.00*    MC        1.00*    MK        1.04     
!   NL        1.00*    NY        1.00*    OV        0.98     PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 84 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.05     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.00*    KP        0.89     
!   LA        1.02     MA        1.00*    MC        1.00*    MK        0.99     
!   NL        0.94     NY        1.13     OV        1.00     PT        0.95     
!   SC        1.00*    TS        1.10     WF        0.99     WZ        1.00*    
! 
!  A total of 54 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.00*    GC        1.12     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.93     KP        1.20     
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        0.96     
!   NL        1.00*    NY        1.02     OV        0.98     PT        1.09     
!   SC        1.00*    TS        1.17     WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 63 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        1.00     GC        1.10     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        0.93     KP        1.08     
!   LA        0.96     MA        1.00*    MC        1.00*    MK        0.98     
!   NL        0.97     NY        1.03     OV        0.94     PT        0.99     
!   SC        0.98     TS        1.00*    WF        0.95     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.98     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.15     KP        1.20     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        1.08     
!   NL        1.00*    NY        1.00*    OV        0.97     PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 84 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.03     GC        1.09     GG        1.00*    
!   HH        1.00*    HN        1.03     KK        1.00*    KP        1.08     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        1.03     
!   NL        0.96     NY        1.24     OV        0.97     PT        1.00     
!   SC        1.00*    TS        1.13     WF        0.97     WZ        1.00*    
! 
!  A total of 54 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.00*    GC        1.15     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.92     KP        1.48     
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        0.98     
!   NL        1.00*    NY        1.01     OV        0.96     PT        1.16     
!   SC        1.00*    TS        1.23     WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.356154Jy  sigma=0.001605
! Fit after  self-cal, rms=0.349685Jy  sigma=0.001558
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2.48% of the data.
!  The x-axis pixel size should ideally be below 0.1844 milli-arcsec
! Estimated beam: bmin=0.7941 mas, bmaj=1.208 mas, bpa=0.06608 degrees
! Estimated noise=434.467 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 (-3.2, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00885068 Jy
! Component: 100  -  total flux cleaned = 0.0117616 Jy
! Component: 150  -  total flux cleaned = 0.0142556 Jy
! Component: 200  -  total flux cleaned = 0.0161642 Jy
! Total flux subtracted in 200 components = 0.0161642 Jy
! Clean residual min=-0.003182 max=0.004245 Jy/beam
! Clean residual mean=0.000088 rms=0.001029 Jy/beam
! Combined flux in latest and established models = 0.595017 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 59 components and 0.595017 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.349429Jy  sigma=0.001554
! Fit after  self-cal, rms=0.349508Jy  sigma=0.001553
! Inverting map 
! Your choice of large map pixels excluded 2.48% of the data.
!  The x-axis pixel size should ideally be below 0.1844 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.349508Jy  sigma=0.001553
! Fit after  self-cal, rms=0.351128Jy  sigma=0.001552
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.48% of the data.
!  The x-axis pixel size should ideally be below 0.1844 milli-arcsec
! Estimated beam: bmin=0.7947 mas, bmaj=1.208 mas, bpa=-0.05489 degrees
! Estimated noise=434.493 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00293355 Jy
! Component: 100  -  total flux cleaned = 0.00473933 Jy
! Component: 150  -  total flux cleaned = 0.00624215 Jy
! Component: 200  -  total flux cleaned = 0.00721143 Jy
! Total flux subtracted in 200 components = 0.00721143 Jy
! Clean residual min=-0.002959 max=0.004080 Jy/beam
! Clean residual mean=0.000075 rms=0.000926 Jy/beam
! Combined flux in latest and established models = 0.602229 Jy
selfcal
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 73 components and 0.602229 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.351048Jy  sigma=0.001551
! Fit after  self-cal, rms=0.351032Jy  sigma=0.001551
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.48% of the data.
!  The x-axis pixel size should ideally be below 0.1844 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 (-7.2, 0.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0028809 Jy
! Component: 100  -  total flux cleaned = 0.00458945 Jy
! Component: 150  -  total flux cleaned = 0.00609184 Jy
! Component: 200  -  total flux cleaned = 0.007378 Jy
! Total flux subtracted in 200 components = 0.007378 Jy
! Clean residual min=-0.002684 max=0.003506 Jy/beam
! Clean residual mean=0.000015 rms=0.000829 Jy/beam
! Combined flux in latest and established models = 0.609607 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 90 components and 0.609607 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.350955Jy  sigma=0.001550
! Fit after  self-cal, rms=0.350917Jy  sigma=0.001550
! Inverting map 
! Your choice of large map pixels excluded 2.48% of the data.
!  The x-axis pixel size should ideally be below 0.1844 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.350917Jy  sigma=0.001550
! Fit after  self-cal, rms=0.351695Jy  sigma=0.001549
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.48% of the data.
!  The x-axis pixel size should ideally be below 0.1844 milli-arcsec
! Estimated beam: bmin=0.795 mas, bmaj=1.209 mas, bpa=-0.3009 degrees
! Estimated noise=434.425 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00125417 Jy
! Component: 100  -  total flux cleaned = 0.002609 Jy
! Component: 150  -  total flux cleaned = 0.00375561 Jy
! Component: 200  -  total flux cleaned = 0.00474394 Jy
! Total flux subtracted in 200 components = 0.00474394 Jy
! Clean residual min=-0.002604 max=0.003138 Jy/beam
! Clean residual mean=0.000009 rms=0.000785 Jy/beam
! Combined flux in latest and established models = 0.614351 Jy
selfcal
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 97 components and 0.61435 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.351658Jy  sigma=0.001549
! Fit after  self-cal, rms=0.351650Jy  sigma=0.001549
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.48% of the data.
!  The x-axis pixel size should ideally be below 0.1844 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.000418549 Jy
! Component: 100  -  total flux cleaned = 0.00137551 Jy
! Component: 150  -  total flux cleaned = 0.00204819 Jy
! Component: 200  -  total flux cleaned = 0.00245594 Jy
! Total flux subtracted in 200 components = 0.00245594 Jy
! Clean residual min=-0.002658 max=0.003047 Jy/beam
! Clean residual mean=-0.000011 rms=0.000764 Jy/beam
! Combined flux in latest and established models = 0.616806 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 105 components and 0.616806 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.351626Jy  sigma=0.001548
! Fit after  self-cal, rms=0.351619Jy  sigma=0.001548
! Inverting map 
! Your choice of large map pixels excluded 2.48% of the data.
!  The x-axis pixel size should ideally be below 0.1844 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.351619Jy  sigma=0.001548
! Fit after  self-cal, rms=0.352128Jy  sigma=0.001548
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.48% of the data.
!  The x-axis pixel size should ideally be below 0.1844 milli-arcsec
! Estimated beam: bmin=2.296 mas, bmaj=2.429 mas, bpa=-10.11 degrees
! Estimated noise=581.326 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00285257 Jy
! Component: 100  -  total flux cleaned = 0.00374339 Jy
! Component: 150  -  total flux cleaned = 0.00414258 Jy
! Component: 200  -  total flux cleaned = 0.00447099 Jy
! Total flux subtracted in 200 components = 0.00447099 Jy
! Clean residual min=-0.002581 max=0.003290 Jy/beam
! Clean residual mean=-0.000095 rms=0.000862 Jy/beam
! Combined flux in latest and established models = 0.621277 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 124 components and 0.621277 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.352125Jy  sigma=0.001548
! Fit after  self-cal, rms=0.352122Jy  sigma=0.001548
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.48% of the data.
!  The x-axis pixel size should ideally be below 0.1844 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.000591448 Jy
! Component: 100  -  total flux cleaned = 0.000937439 Jy
! Component: 150  -  total flux cleaned = 0.00113094 Jy
! Component: 200  -  total flux cleaned = 0.00121389 Jy
! Total flux subtracted in 200 components = 0.00121389 Jy
! Clean residual min=-0.002504 max=0.003162 Jy/beam
! Clean residual mean=-0.000124 rms=0.000852 Jy/beam
! Combined flux in latest and established models = 0.622491 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 128 components and 0.622491 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.352132Jy  sigma=0.001548
! Fit after  self-cal, rms=0.352131Jy  sigma=0.001548
! Inverting map 
! Your choice of large map pixels excluded 2.48% of the data.
!  The x-axis pixel size should ideally be below 0.1844 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 2.48% of the data.
!  The x-axis pixel size should ideally be below 0.1844 milli-arcsec
! Estimated beam: bmin=0.7952 mas, bmaj=1.209 mas, bpa=-0.4749 degrees
! Estimated noise=434.511 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7952 x 1.209 at -0.4749 degrees (North through East)
! Clean map  min=-0.0024309  max=0.46206 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 2.48% of the data.
!  The x-axis pixel size should ideally be below 0.1844 milli-arcsec
! Estimated beam: bmin=0.6537 mas, bmaj=1.06 mas, bpa=-0.6286 degrees
! Estimated noise=891.537 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.346441 Jy
! Component: 100  -  total flux cleaned = 0.450292 Jy
! Component: 150  -  total flux cleaned = 0.498545 Jy
! Component: 200  -  total flux cleaned = 0.524593 Jy
! Total flux subtracted in 200 components = 0.524593 Jy
! Clean residual min=-0.005848 max=0.013520 Jy/beam
! Clean residual mean=0.000289 rms=0.001989 Jy/beam
! Combined flux in latest and established models = 0.524593 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 10 model components to the UV plane model.
! The established model now contains 10 components and 0.524593 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 2.48% of the data.
!  The x-axis pixel size should ideally be below 0.1844 milli-arcsec
! Estimated beam: bmin=0.7952 mas, bmaj=1.209 mas, bpa=-0.4749 degrees
! Estimated noise=434.511 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.0246138 Jy
! Component: 100  -  total flux cleaned = 0.0400578 Jy
! Component: 150  -  total flux cleaned = 0.0509395 Jy
! Component: 200  -  total flux cleaned = 0.0589894 Jy
! Total flux subtracted in 200 components = 0.0589894 Jy
! Clean residual min=-0.003154 max=0.004665 Jy/beam
! Clean residual mean=0.000297 rms=0.001241 Jy/beam
! Combined flux in latest and established models = 0.583583 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 42 components and 0.583583 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.48% of the data.
!  The x-axis pixel size should ideally be below 0.1844 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 2.48% of the data.
!  The x-axis pixel size should ideally be below 0.1844 milli-arcsec
! Estimated beam: bmin=2.296 mas, bmaj=2.429 mas, bpa=-10.11 degrees
! Estimated noise=581.326 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0128141 Jy
! Component: 100  -  total flux cleaned = 0.020448 Jy
! Component: 150  -  total flux cleaned = 0.0256512 Jy
! Component: 200  -  total flux cleaned = 0.0293235 Jy
! Total flux subtracted in 200 components = 0.0293235 Jy
! Clean residual min=-0.002594 max=0.003492 Jy/beam
! Clean residual mean=0.000122 rms=0.001081 Jy/beam
! Combined flux in latest and established models = 0.612906 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.00265454 Jy
! Component: 100  -  total flux cleaned = 0.00459749 Jy
! Component: 150  -  total flux cleaned = 0.00602426 Jy
! Component: 200  -  total flux cleaned = 0.00708564 Jy
! Total flux subtracted in 200 components = 0.00708565 Jy
! Clean residual min=-0.002555 max=0.003142 Jy/beam
! Clean residual mean=-0.000060 rms=0.000863 Jy/beam
! Combined flux in latest and established models = 0.619992 Jy
! Adding 104 model components to the UV plane model.
! The established model now contains 131 components and 0.619992 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.48% of the data.
!  The x-axis pixel size should ideally be below 0.1844 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 2.48% of the data.
!  The x-axis pixel size should ideally be below 0.1844 milli-arcsec
! Estimated beam: bmin=0.7952 mas, bmaj=1.209 mas, bpa=-0.4749 degrees
! Estimated noise=434.511 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000499251 Jy
! Component: 100  -  total flux cleaned = 0.000433196 Jy
! Component: 150  -  total flux cleaned = 0.000494063 Jy
! Component: 200  -  total flux cleaned = 0.000490874 Jy
! Total flux subtracted in 200 components = 0.000490874 Jy
! Clean residual min=-0.002735 max=0.002881 Jy/beam
! Clean residual mean=-0.000022 rms=0.000724 Jy/beam
! Combined flux in latest and established models = 0.620483 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 147 components and 0.620483 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.352119Jy  sigma=0.001548
! Fit after  self-cal, rms=0.352102Jy  sigma=0.001548
wmodel J2152+1734_X_2001_04_09_pus_map.mod
! Writing 147 model components to file: J2152+1734_X_2001_04_09_pus_map.mod
wobs J2152+1734_X_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J2152+1734_X_2001_04_09_pus_uvs.fits
wwins J2152+1734_X_2001_04_09_pus_map.win
! wwins: Wrote 4 windows to J2152+1734_X_2001_04_09_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 2.48% of the data.
!  The x-axis pixel size should ideally be below 0.1844 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000798612 Jy
! Component: 100  -  total flux cleaned = 0.00075446 Jy
! Component: 150  -  total flux cleaned = 0.000577416 Jy
! Component: 200  -  total flux cleaned = 0.000406751 Jy
! Component: 250  -  total flux cleaned = 0.000118276 Jy
! Component: 300  -  total flux cleaned = -0.000242331 Jy
! Component: 350  -  total flux cleaned = -0.000555043 Jy
! Component: 400  -  total flux cleaned = -0.000783702 Jy
! Component: 450  -  total flux cleaned = -0.00100775 Jy
! Component: 500  -  total flux cleaned = -0.00119145 Jy
! Component: 550  -  total flux cleaned = -0.00147985 Jy
! Component: 600  -  total flux cleaned = -0.00169233 Jy
! Component: 650  -  total flux cleaned = -0.00186667 Jy
! Component: 700  -  total flux cleaned = -0.00207312 Jy
! Component: 750  -  total flux cleaned = -0.00231015 Jy
! Component: 800  -  total flux cleaned = -0.00244323 Jy
! Component: 850  -  total flux cleaned = -0.00254237 Jy
! Component: 900  -  total flux cleaned = -0.00276979 Jy
! Component: 950  -  total flux cleaned = -0.00280151 Jy
! Component: 1000  -  total flux cleaned = -0.00296068 Jy
! Total flux subtracted in 1024 components = -0.00302373 Jy
! Clean residual min=-0.001864 max=0.001675 Jy/beam
! Clean residual mean=-0.000007 rms=0.000604 Jy/beam
! Combined flux in latest and established models = 0.617459 Jy
keep
! Adding 73 model components to the UV plane model.
! The established model now contains 220 components and 0.617459 Jy
![Exited script file: muppet]
wmap "J2152+1734_X_2001_04_09_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 2.48% of the data.
!  The x-axis pixel size should ideally be below 0.1844 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7952 x 1.209 at -0.4749 degrees (North through East)
! Clean map  min=-0.0022348  max=0.46361 Jy/beam
! Writing clean map to FITS file: J2152+1734_X_2001_04_09_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.463609 
invert
! Inverting map 
! Your choice of large map pixels excluded 2.48% of the data.
!  The x-axis pixel size should ideally be below 0.1844 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000603522 
device "J2152+1734_X_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J2152+1734_X_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.390537 0.390537 0.781075 1.56215 3.1243 6.2486 12.4972 24.9944 49.9888 99.9775
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0018 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.463 
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.7952 x 1.209 at -0.4749 degrees (North through East)
! Clean map  min=-0.0022348  max=0.46361 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2152+1734_X_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J2152+1734_X_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2152+1734_X_2001_04_09_pus_uvs.log closed on Mon Oct  1 14:53:07 2007