! Started logfile: J2202+4216_X_2003_06_18_pus_uvs.log on Wed Jan 17 18:25:41 2007
obs J2202+4216_X_2003_06_18_pus_uva.fits
! Reading UV FITS file: J2202+4216_X_2003_06_18_pus_uva.fits
! AN table 1: 104 integrations on 153 of 153 possible baselines.
! AN table 2: 56 integrations on 153 of 153 possible baselines.
! AN table 3: 91 integrations on 153 of 153 possible baselines.
! AN table 4: 109 integrations on 153 of 153 possible baselines.
! AN table 5: 167 integrations on 153 of 153 possible baselines.
! AN table 6: Unused.
! AN table 7: Unused.
! AN table 8: 8 integrations on 153 of 153 possible baselines.
! AN table 9: Unused.
! Apparent sampling: 0.21885 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2202+4216
! 
! 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 2231 lines of history.
! 
! Reading 71656 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
float field_size
field_size = 256
float field_cell
field_cell = 0.2
float taper_size
taper_size = 70.
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 1444 telescope corrections were flagged in sub-array 1.
!  A total of 960 telescope corrections were flagged in sub-array 2.
!  A total of 1139 telescope corrections were flagged in sub-array 3.
!  A total of 1393 telescope corrections were flagged in sub-array 4.
!  A total of 1982 telescope corrections were flagged in sub-array 5.
!  A total of 144 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 2.
!  A total of 1358 telescope corrections were flagged in sub-array 1.
!  A total of 950 telescope corrections were flagged in sub-array 2.
!  A total of 1138 telescope corrections were flagged in sub-array 3.
!  A total of 1335 telescope corrections were flagged in sub-array 4.
!  A total of 1982 telescope corrections were flagged in sub-array 5.
!  A total of 129 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 3.
!  A total of 1401 telescope corrections were flagged in sub-array 1.
!  A total of 950 telescope corrections were flagged in sub-array 2.
!  A total of 1138 telescope corrections were flagged in sub-array 3.
!  A total of 1335 telescope corrections were flagged in sub-array 4.
!  A total of 1982 telescope corrections were flagged in sub-array 5.
!  A total of 129 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 4.
!  A total of 1358 telescope corrections were flagged in sub-array 1.
!  A total of 950 telescope corrections were flagged in sub-array 2.
!  A total of 1138 telescope corrections were flagged in sub-array 3.
!  A total of 1335 telescope corrections were flagged in sub-array 4.
!  A total of 1982 telescope corrections were flagged in sub-array 5.
!  A total of 129 telescope corrections were flagged in sub-array 6.
! 
! Fit before self-cal, rms=1.159500Jy  sigma=0.014266
! Fit after  self-cal, rms=0.515172Jy  sigma=0.006044
! 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 3.76% of the data.
!  The x-axis pixel size should ideally be below 0.1544 milli-arcsec
! Estimated beam: bmin=0.6406 mas, bmaj=0.8215 mas, bpa=-16.27 degrees
! Estimated noise=830.92 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.880304 Jy
! Component: 100  -  total flux cleaned = 1.11324 Jy
! Total flux subtracted in 100 components = 1.11324 Jy
! Clean residual min=-0.037518 max=0.120033 Jy/beam
! Clean residual mean=0.001470 rms=0.012825 Jy/beam
! Combined flux in latest and established models = 1.11324 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 1.11324 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.463053Jy  sigma=0.005183
! Fit after  self-cal, rms=0.462764Jy  sigma=0.005182
! Inverting map 
! Your choice of large map pixels excluded 3.76% of the data.
!  The x-axis pixel size should ideally be below 0.1544 milli-arcsec
! Added new window around map position (-0.8, -2.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.128961 Jy
! Component: 100  -  total flux cleaned = 0.212977 Jy
! Total flux subtracted in 100 components = 0.212977 Jy
! Clean residual min=-0.033088 max=0.057558 Jy/beam
! Clean residual mean=0.001084 rms=0.009612 Jy/beam
! Combined flux in latest and established models = 1.32622 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 17 components and 1.32622 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.396961Jy  sigma=0.003892
! Fit after  self-cal, rms=0.393442Jy  sigma=0.003844
! Inverting map 
! Your choice of large map pixels excluded 3.76% of the data.
!  The x-axis pixel size should ideally be below 0.1544 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0680811 Jy
! Component: 100  -  total flux cleaned = 0.117264 Jy
! Total flux subtracted in 100 components = 0.117264 Jy
! Clean residual min=-0.032743 max=0.043417 Jy/beam
! Clean residual mean=0.000876 rms=0.008228 Jy/beam
! Combined flux in latest and established models = 1.44348 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 24 components and 1.44348 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.368946Jy  sigma=0.003278
! Fit after  self-cal, rms=0.367475Jy  sigma=0.003259
! Inverting map 
! Your choice of large map pixels excluded 3.76% of the data.
!  The x-axis pixel size should ideally be below 0.1544 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 3.76% of the data.
!  The x-axis pixel size should ideally be below 0.1544 milli-arcsec
! Estimated beam: bmin=1.077 mas, bmaj=1.292 mas, bpa=-10.59 degrees
! Estimated noise=335.184 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.0921845 Jy
! Component: 100  -  total flux cleaned = 0.141208 Jy
! Component: 150  -  total flux cleaned = 0.169243 Jy
! Component: 200  -  total flux cleaned = 0.185575 Jy
! Total flux subtracted in 200 components = 0.185575 Jy
! Clean residual min=-0.023185 max=0.054066 Jy/beam
! Clean residual mean=0.005625 rms=0.011907 Jy/beam
! Combined flux in latest and established models = 1.62906 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 36 components and 1.62906 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.347704Jy  sigma=0.002762
! Fit after  self-cal, rms=0.345130Jy  sigma=0.002715
! Inverting map 
! Your choice of large map pixels excluded 3.76% of the data.
!  The x-axis pixel size should ideally be below 0.1544 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 99 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.00     GG        1.00*    HN        0.98     
!   KK        1.00*    KP        0.99     LA        0.95     MA        1.00*    
!   MK        1.00*    NL        1.10     ON        0.94     OV        0.98     
!   PT        0.94     SC        0.97     TC        1.00*    TS        1.51     
!   WF        1.09     WZ        0.88     
! 
!  A total of 48 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.97     GG        1.00*    HN        1.06     
!   KK        1.00*    KP        0.97     LA        0.96     MA        1.00*    
!   MK        0.96     NL        1.08     ON        1.00*    OV        0.97     
!   PT        0.89     SC        0.92     TC        3.93     TS        0.90     
!   WF        1.04     WZ        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.07     GG        1.00*    HN        0.95     
!   KK        1.00*    KP        1.06     LA        1.06     MA        1.00*    
!   MK        1.00*    NL        1.13     ON        1.07     OV        0.99     
!   PT        1.05     SC        0.99     TC        1.00*    TS        1.49     
!   WF        1.06     WZ        1.00*    
! 
!  A total of 69 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.98     FD        1.06     GG        1.00*    HN        0.95     
!   KK        1.00*    KP        1.00     LA        0.94     MA        1.00*    
!   MK        1.00*    NL        1.05     ON        1.00*    OV        1.09     
!   PT        0.95     SC        1.03     TC        2.26     TS        1.00*    
!   WF        0.99     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 96 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.98     GG        1.00*    HN        0.98     
!   KK        1.00*    KP        0.93     LA        0.95     MA        1.14     
!   MK        1.00*    NL        1.05     ON        1.00     OV        0.97     
!   PT        0.98     SC        0.94     TC        1.00*    TS        1.32     
!   WF        1.09     WZ        0.83     
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.80     FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.26     
!   MK        1.00*    NL        1.00*    ON        1.22     OV        1.00*    
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        0.90     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.97     GG        1.00*    HN        1.08     
!   KK        1.00*    KP        0.91     LA        0.96     MA        1.00*    
!   MK        0.98     NL        1.05     ON        1.00*    OV        0.96     
!   PT        0.93     SC        0.88     TC        4.22     TS        0.90     
!   WF        1.11     WZ        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.07     GG        1.00*    HN        0.96     
!   KK        1.00*    KP        0.99     LA        1.08     MA        0.96     
!   MK        1.00*    NL        1.10     ON        1.08     OV        1.00     
!   PT        1.10     SC        0.96     TC        1.00*    TS        1.49     
!   WF        1.09     WZ        1.00*    
! 
!  A total of 69 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.99     FD        1.06     GG        1.00*    HN        0.96     
!   KK        1.00*    KP        0.95     LA        0.95     MA        1.00*    
!   MK        1.00*    NL        1.01     ON        1.00*    OV        1.08     
!   PT        0.98     SC        0.99     TC        1.70     TS        1.00*    
!   WF        1.06     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 93 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.97     GG        1.00*    HN        0.97     
!   KK        1.00*    KP        0.99     LA        0.95     MA        1.27     
!   MK        1.00*    NL        1.02     ON        0.97     OV        1.00     
!   PT        1.00     SC        0.95     TC        1.00*    TS        1.41     
!   WF        1.04     WZ        0.87     
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.79     FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.23     
!   MK        1.00*    NL        1.00*    ON        1.08     OV        1.00*    
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        0.91     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        0.96     GG        1.00*    HN        1.07     
!   KK        1.00*    KP        0.96     LA        0.97     MA        1.00*    
!   MK        0.97     NL        1.00     ON        1.00*    OV        1.00     
!   PT        0.95     SC        0.90     TC        2.81     TS        0.90     
!   WF        1.03     WZ        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.04     FD        1.06     GG        1.00*    HN        0.94     
!   KK        1.00*    KP        1.03     LA        1.09     MA        0.95     
!   MK        1.00*    NL        1.07     ON        1.08     OV        1.04     
!   PT        1.11     SC        0.98     TC        1.00*    TS        1.48     
!   WF        1.02     WZ        1.00*    
! 
!  A total of 69 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.02     FD        1.04     GG        1.00*    HN        0.95     
!   KK        1.00*    KP        0.99     LA        0.96     MA        1.00*    
!   MK        1.00*    NL        0.99     ON        1.00*    OV        1.11     
!   PT        1.01     SC        1.01     TC        1.47     TS        1.00*    
!   WF        0.99     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 96 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.97     GG        1.00*    HN        1.00     
!   KK        1.00*    KP        0.93     LA        0.93     MA        1.22     
!   MK        1.00*    NL        1.03     ON        0.97     OV        1.01     
!   PT        1.00     SC        1.00     TC        1.00*    TS        1.29     
!   WF        1.03     WZ        0.90     
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.74     FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.16     
!   MK        1.00*    NL        1.00*    ON        1.06     OV        1.00*    
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        0.93     
!   WF        1.00*    WZ        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.95     GG        1.00*    HN        1.09     
!   KK        1.00*    KP        0.91     LA        0.95     MA        1.00*    
!   MK        1.00     NL        1.01     ON        1.00*    OV        0.98     
!   PT        0.95     SC        0.95     TC        3.20     TS        0.92     
!   WF        1.04     WZ        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.04     FD        1.04     GG        1.00*    HN        0.98     
!   KK        1.00*    KP        1.00     LA        1.05     MA        0.90     
!   MK        1.00*    NL        1.07     ON        1.16     OV        1.01     
!   PT        1.11     SC        1.02     TC        1.00*    TS        1.50     
!   WF        0.98     WZ        1.00*    
! 
!  A total of 69 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00     FD        1.03     GG        1.00*    HN        0.97     
!   KK        1.00*    KP        0.94     LA        0.93     MA        1.00*    
!   MK        1.00*    NL        1.00     ON        1.00*    OV        1.09     
!   PT        1.01     SC        1.07     TC        1.15     TS        1.00*    
!   WF        0.97     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Fit before self-cal, rms=0.345130Jy  sigma=0.002715
! Fit after  self-cal, rms=0.565084Jy  sigma=0.002272
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 3.47% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
! Estimated beam: bmin=1.104 mas, bmaj=1.34 mas, bpa=-15.27 degrees
! Estimated noise=339.707 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.2, -4.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0392821 Jy
! Component: 100  -  total flux cleaned = 0.0609488 Jy
! Component: 150  -  total flux cleaned = 0.0677872 Jy
! Component: 200  -  total flux cleaned = 0.0723328 Jy
! Total flux subtracted in 200 components = 0.0723328 Jy
! Clean residual min=-0.012322 max=0.027146 Jy/beam
! Clean residual mean=0.003527 rms=0.005552 Jy/beam
! Combined flux in latest and established models = 1.70139 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 65 components and 1.70139 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.562258Jy  sigma=0.002153
! Fit after  self-cal, rms=0.562513Jy  sigma=0.002140
! Inverting map 
! Your choice of large map pixels excluded 3.47% of the data.
!  The x-axis pixel size should ideally be below 0.1545 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.562513Jy  sigma=0.002140
! Fit after  self-cal, rms=0.577569Jy  sigma=0.001947
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.47% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
! Estimated beam: bmin=1.103 mas, bmaj=1.345 mas, bpa=-14.53 degrees
! Estimated noise=339.834 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0211307 Jy
! Component: 100  -  total flux cleaned = 0.0307237 Jy
! Component: 150  -  total flux cleaned = 0.0355504 Jy
! Component: 200  -  total flux cleaned = 0.03736 Jy
! Total flux subtracted in 200 components = 0.03736 Jy
! Clean residual min=-0.006465 max=0.017031 Jy/beam
! Clean residual mean=0.002649 rms=0.003769 Jy/beam
! Combined flux in latest and established models = 1.73875 Jy
selfcal
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 89 components and 1.73875 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.576795Jy  sigma=0.001906
! Fit after  self-cal, rms=0.577124Jy  sigma=0.001900
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.47% of the data.
!  The x-axis pixel size should ideally be below 0.1545 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 (3, -3.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0161902 Jy
! Component: 100  -  total flux cleaned = 0.0201109 Jy
! Component: 150  -  total flux cleaned = 0.0207394 Jy
! Component: 200  -  total flux cleaned = 0.0209953 Jy
! Total flux subtracted in 200 components = 0.0209953 Jy
! Clean residual min=-0.006823 max=0.014345 Jy/beam
! Clean residual mean=0.002180 rms=0.003044 Jy/beam
! Combined flux in latest and established models = 1.75975 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 108 components and 1.75975 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.576502Jy  sigma=0.001878
! Fit after  self-cal, rms=0.576503Jy  sigma=0.001877
! Inverting map 
! Your choice of large map pixels excluded 3.47% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
! Added new window around map position (2.2, -9.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0134095 Jy
! Component: 100  -  total flux cleaned = 0.0179813 Jy
! Component: 150  -  total flux cleaned = 0.0204043 Jy
! Component: 200  -  total flux cleaned = 0.0220753 Jy
! Total flux subtracted in 200 components = 0.0220753 Jy
! Clean residual min=-0.007255 max=0.010689 Jy/beam
! Clean residual mean=0.001667 rms=0.002671 Jy/beam
! Combined flux in latest and established models = 1.78182 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 123 components and 1.78182 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.576033Jy  sigma=0.001861
! Fit after  self-cal, rms=0.576039Jy  sigma=0.001860
! Inverting map 
! Your choice of large map pixels excluded 3.47% of the data.
!  The x-axis pixel size should ideally be below 0.1545 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.576039Jy  sigma=0.001860
! Fit after  self-cal, rms=0.581282Jy  sigma=0.001837
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.47% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
! Estimated beam: bmin=1.104 mas, bmaj=1.347 mas, bpa=-14.05 degrees
! Estimated noise=338.661 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00765705 Jy
! Component: 100  -  total flux cleaned = 0.0126273 Jy
! Component: 150  -  total flux cleaned = 0.0166808 Jy
! Component: 200  -  total flux cleaned = 0.0203103 Jy
! Total flux subtracted in 200 components = 0.0203103 Jy
! Clean residual min=-0.004204 max=0.007458 Jy/beam
! Clean residual mean=0.001447 rms=0.001895 Jy/beam
! Combined flux in latest and established models = 1.80213 Jy
selfcal
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 140 components and 1.80213 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.580974Jy  sigma=0.001826
! Fit after  self-cal, rms=0.581011Jy  sigma=0.001825
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.47% of the data.
!  The x-axis pixel size should ideally be below 0.1545 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.00217226 Jy
! Component: 100  -  total flux cleaned = 0.00463597 Jy
! Component: 150  -  total flux cleaned = 0.00581441 Jy
! Component: 200  -  total flux cleaned = 0.00659102 Jy
! Total flux subtracted in 200 components = 0.00659102 Jy
! Clean residual min=-0.004541 max=0.007126 Jy/beam
! Clean residual mean=0.001300 rms=0.001787 Jy/beam
! Combined flux in latest and established models = 1.80872 Jy
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 150 components and 1.80872 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.580851Jy  sigma=0.001821
! Fit after  self-cal, rms=0.580878Jy  sigma=0.001820
! Inverting map 
! Your choice of large map pixels excluded 3.47% of the data.
!  The x-axis pixel size should ideally be below 0.1545 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.580878Jy  sigma=0.001820
! Fit after  self-cal, rms=0.585062Jy  sigma=0.001817
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.47% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
! Estimated beam: bmin=2.666 mas, bmaj=2.84 mas, bpa=41.82 degrees
! Estimated noise=366.096 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00813322 Jy
! Component: 100  -  total flux cleaned = 0.0117608 Jy
! Component: 150  -  total flux cleaned = 0.013958 Jy
! Component: 200  -  total flux cleaned = 0.0159127 Jy
! Total flux subtracted in 200 components = 0.0159127 Jy
! Clean residual min=-0.003422 max=0.008117 Jy/beam
! Clean residual mean=0.002010 rms=0.002056 Jy/beam
! Combined flux in latest and established models = 1.82464 Jy
selfcal
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 167 components and 1.82464 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.584975Jy  sigma=0.001814
! Fit after  self-cal, rms=0.584975Jy  sigma=0.001813
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.47% of the data.
!  The x-axis pixel size should ideally be below 0.1545 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.00129124 Jy
! Component: 100  -  total flux cleaned = 0.00274029 Jy
! Component: 150  -  total flux cleaned = 0.00404206 Jy
! Component: 200  -  total flux cleaned = 0.00496825 Jy
! Total flux subtracted in 200 components = 0.00496825 Jy
! Clean residual min=-0.003372 max=0.007855 Jy/beam
! Clean residual mean=0.001798 rms=0.002065 Jy/beam
! Combined flux in latest and established models = 1.8296 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 174 components and 1.8296 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.584950Jy  sigma=0.001812
! Fit after  self-cal, rms=0.584933Jy  sigma=0.001812
! Inverting map 
! Your choice of large map pixels excluded 3.47% of the data.
!  The x-axis pixel size should ideally be below 0.1545 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 3.47% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
! Estimated beam: bmin=1.106 mas, bmaj=1.347 mas, bpa=-13.68 degrees
! Estimated noise=338.038 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.106 x 1.347 at -13.68 degrees (North through East)
! Clean map  min=-0.005951  max=1.1929 Jy/beam
if(peak(flux) > thresh)
  selfcal true, true
  clean clean_niter,clean_gain
  selfcal
  flux_cutoff = imstat(rms) * dynam
  repeat
    if (peak(flux) > flux_cutoff) peakwin win_mult
    clean clean_niter,clean_gain
    flux_cutoff = imstat(rms) * dynam
    selfcal
    new_peak = peak(flux)
    until(new_peak<=flux_cutoff)
  selfcal true, true
  end if
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.584933Jy  sigma=0.001812
! Fit after  self-cal, rms=1.365539Jy  sigma=0.001626
! Inverting map and beam 
! Your choice of large map pixels excluded 3.47% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
! Estimated beam: bmin=1.107 mas, bmaj=1.346 mas, bpa=-13.47 degrees
! Estimated noise=337.501 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000334001 Jy
! Component: 100  -  total flux cleaned = 0.000478067 Jy
! Component: 150  -  total flux cleaned = 0.00145169 Jy
! Component: 200  -  total flux cleaned = 0.00195785 Jy
! Total flux subtracted in 200 components = 0.00195785 Jy
! Clean residual min=-0.003775 max=0.004991 Jy/beam
! Clean residual mean=0.000906 rms=0.001397 Jy/beam
! Combined flux in latest and established models = 1.83156 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 185 components and 1.83156 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.365467Jy  sigma=0.001623
! Fit after  self-cal, rms=1.365706Jy  sigma=0.001623
! Inverting map 
! Your choice of large map pixels excluded 3.47% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00035655 Jy
! Component: 100  -  total flux cleaned = 0.000833818 Jy
! Component: 150  -  total flux cleaned = 0.00128248 Jy
! Component: 200  -  total flux cleaned = 0.00160082 Jy
! Total flux subtracted in 200 components = 0.00160082 Jy
! Clean residual min=-0.003673 max=0.005026 Jy/beam
! Clean residual mean=0.000872 rms=0.001368 Jy/beam
! Combined flux in latest and established models = 1.83316 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 190 components and 1.83316 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.365660Jy  sigma=0.001621
! Fit after  self-cal, rms=1.365803Jy  sigma=0.001621
! Inverting map 
! Your choice of large map pixels excluded 3.47% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.365803Jy  sigma=0.001621
! Fit after  self-cal, rms=1.318138Jy  sigma=0.001620
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 3.47% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
! Estimated beam: bmin=0.6476 mas, bmaj=0.8489 mas, bpa=-20.2 degrees
! Estimated noise=849.919 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.879389 Jy
! Component: 100  -  total flux cleaned = 1.11308 Jy
! Component: 150  -  total flux cleaned = 1.24087 Jy
! Component: 200  -  total flux cleaned = 1.32705 Jy
! Total flux subtracted in 200 components = 1.32705 Jy
! Clean residual min=-0.015595 max=0.048051 Jy/beam
! Clean residual mean=0.001029 rms=0.006491 Jy/beam
! Combined flux in latest and established models = 1.32705 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 19 model components to the UV plane model.
! The established model now contains 19 components and 1.32705 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 3.47% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
! Estimated beam: bmin=1.108 mas, bmaj=1.347 mas, bpa=-13.26 degrees
! Estimated noise=337.143 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.14724 Jy
! Component: 100  -  total flux cleaned = 0.230534 Jy
! Component: 150  -  total flux cleaned = 0.285872 Jy
! Component: 200  -  total flux cleaned = 0.325598 Jy
! Total flux subtracted in 200 components = 0.325598 Jy
! Clean residual min=-0.011039 max=0.028449 Jy/beam
! Clean residual mean=0.004859 rms=0.007594 Jy/beam
! Combined flux in latest and established models = 1.65264 Jy
! Adding 78 model components to the UV plane model.
! The established model now contains 87 components and 1.65264 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.47% of the data.
!  The x-axis pixel size should ideally be below 0.1545 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 3.47% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
! Estimated beam: bmin=2.662 mas, bmaj=2.837 mas, bpa=42.14 degrees
! Estimated noise=365.316 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0492235 Jy
! Component: 100  -  total flux cleaned = 0.0842878 Jy
! Component: 150  -  total flux cleaned = 0.110153 Jy
! Component: 200  -  total flux cleaned = 0.129441 Jy
! Total flux subtracted in 200 components = 0.129441 Jy
! Clean residual min=-0.006834 max=0.012744 Jy/beam
! Clean residual mean=0.003793 rms=0.004229 Jy/beam
! Combined flux in latest and established models = 1.78209 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.0145256 Jy
! Component: 100  -  total flux cleaned = 0.0255938 Jy
! Component: 150  -  total flux cleaned = 0.0340901 Jy
! Component: 200  -  total flux cleaned = 0.0406411 Jy
! Total flux subtracted in 200 components = 0.0406411 Jy
! Clean residual min=-0.004542 max=0.006842 Jy/beam
! Clean residual mean=0.002048 rms=0.002062 Jy/beam
! Combined flux in latest and established models = 1.82273 Jy
! Adding 106 model components to the UV plane model.
! The established model now contains 181 components and 1.82273 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.47% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 3.47% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
! Estimated beam: bmin=1.108 mas, bmaj=1.347 mas, bpa=-13.26 degrees
! Estimated noise=337.143 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00365034 Jy
! Component: 100  -  total flux cleaned = 0.00541738 Jy
! Component: 150  -  total flux cleaned = 0.00666512 Jy
! Component: 200  -  total flux cleaned = 0.00748631 Jy
! Total flux subtracted in 200 components = 0.00748631 Jy
! Clean residual min=-0.004935 max=0.005658 Jy/beam
! Clean residual mean=0.000930 rms=0.001465 Jy/beam
! Combined flux in latest and established models = 1.83021 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 193 components and 1.83021 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.318425Jy  sigma=0.001626
! Fit after  self-cal, rms=1.320102Jy  sigma=0.001623
wmodel J2202+4216_X_2003_06_18_pus_map.mod
! Writing 193 model components to file: J2202+4216_X_2003_06_18_pus_map.mod
wobs J2202+4216_X_2003_06_18_pus_uvs.fits
! Writing UV FITS file: J2202+4216_X_2003_06_18_pus_uvs.fits
wwins J2202+4216_X_2003_06_18_pus_map.win
! wwins: Wrote 5 windows to J2202+4216_X_2003_06_18_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 3.47% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00273962 Jy
! Component: 100  -  total flux cleaned = 0.00509897 Jy
! Component: 150  -  total flux cleaned = 0.00731457 Jy
! Component: 200  -  total flux cleaned = 0.00932867 Jy
! Component: 250  -  total flux cleaned = 0.0108535 Jy
! Component: 300  -  total flux cleaned = 0.0120881 Jy
! Component: 350  -  total flux cleaned = 0.0132799 Jy
! Component: 400  -  total flux cleaned = 0.014432 Jy
! Component: 450  -  total flux cleaned = 0.0155479 Jy
! Component: 500  -  total flux cleaned = 0.0164976 Jy
! Component: 550  -  total flux cleaned = 0.0174252 Jy
! Component: 600  -  total flux cleaned = 0.0184618 Jy
! Component: 650  -  total flux cleaned = 0.0193492 Jy
! Component: 700  -  total flux cleaned = 0.0203423 Jy
! Component: 750  -  total flux cleaned = 0.0211925 Jy
! Component: 800  -  total flux cleaned = 0.0220261 Jy
! Component: 850  -  total flux cleaned = 0.0227852 Jy
! Component: 900  -  total flux cleaned = 0.0236454 Jy
! Component: 950  -  total flux cleaned = 0.0244327 Jy
! Component: 1000  -  total flux cleaned = 0.0250957 Jy
! Total flux subtracted in 1024 components = 0.0254781 Jy
! Clean residual min=-0.002722 max=0.003140 Jy/beam
! Clean residual mean=0.000392 rms=0.001002 Jy/beam
! Combined flux in latest and established models = 1.85569 Jy
keep
! Adding 62 model components to the UV plane model.
! The established model now contains 253 components and 1.85569 Jy
wmap "J2202+4216_X_2003_06_18_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 3.47% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.108 x 1.347 at -13.26 degrees (North through East)
! Clean map  min=-0.0038506  max=1.1964 Jy/beam
! Writing clean map to FITS file: J2202+4216_X_2003_06_18_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.19645 
invert
! Inverting map 
! Your choice of large map pixels excluded 3.47% of the data.
!  The x-axis pixel size should ideally be below 0.1545 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000997711 
device "J2202+4216_X_2003_06_18_pus\_map.eps/VPS"
! Attempting to open device: 'J2202+4216_X_2003_06_18_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.250169 0.250169 0.500337 1.00067 2.00135 4.0027 8.0054 16.0108 32.0216 64.0432
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0029 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.196 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.108 x 1.347 at -13.26 degrees (North through East)
! Clean map  min=-0.0038506  max=1.1964 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2202+4216_X_2003_06_18_pus\_map.gif/vgif"
! Attempting to open device: 'J2202+4216_X_2003_06_18_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2202+4216_X_2003_06_18_pus_uvs.log closed on Wed Jan 17 18:27:44 2007