! Started logfile: J2236+2828_X_1999_12_20_pus_uvs.log on Fri Dec 14 17:34:51 2007
obs J2236+2828_X_1999_12_20_pus_uva.fits
! Reading UV FITS file: J2236+2828_X_1999_12_20_pus_uva.fits
! AN table 1: 142 integrations on 190 of 190 possible baselines.
! AN table 2: 15 integrations on 190 of 190 possible baselines.
! AN table 3: 74 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.130007 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2236+2828
! 
! 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 2418 lines of history.
! 
! Reading 22824 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 J2236+2828_X_1999_12_20_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 1945 telescope corrections were flagged in sub-array 1.
!  A total of 209 telescope corrections were flagged in sub-array 2.
!  A total of 1064 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1945 telescope corrections were flagged in sub-array 1.
!  A total of 209 telescope corrections were flagged in sub-array 2.
!  A total of 1064 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1945 telescope corrections were flagged in sub-array 1.
!  A total of 209 telescope corrections were flagged in sub-array 2.
!  A total of 1064 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1945 telescope corrections were flagged in sub-array 1.
!  A total of 209 telescope corrections were flagged in sub-array 2.
!  A total of 1064 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.052926Jy  sigma=0.010814
! Fit after  self-cal, rms=0.418329Jy  sigma=0.003974
! 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.31% of the data.
!  The x-axis pixel size should ideally be below 0.1573 milli-arcsec
! Estimated beam: bmin=0.5753 mas, bmaj=0.8887 mas, bpa=4.098 degrees
! Estimated noise=722.94 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.500599 Jy
! Component: 100  -  total flux cleaned = 0.658134 Jy
! Total flux subtracted in 100 components = 0.658134 Jy
! Clean residual min=-0.020133 max=0.071531 Jy/beam
! Clean residual mean=0.000648 rms=0.007037 Jy/beam
! Combined flux in latest and established models = 0.658135 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.658135 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.229225Jy  sigma=0.002205
! Fit after  self-cal, rms=0.229093Jy  sigma=0.002205
! Inverting map 
! Your choice of large map pixels excluded 2.31% of the data.
!  The x-axis pixel size should ideally be below 0.1573 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0803891 Jy
! Component: 100  -  total flux cleaned = 0.127056 Jy
! Total flux subtracted in 100 components = 0.127056 Jy
! Clean residual min=-0.013285 max=0.024453 Jy/beam
! Clean residual mean=0.000272 rms=0.004219 Jy/beam
! Combined flux in latest and established models = 0.785191 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 13 components and 0.785191 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.192493Jy  sigma=0.001682
! Fit after  self-cal, rms=0.192430Jy  sigma=0.001681
! Inverting map 
! Your choice of large map pixels excluded 2.31% of the data.
!  The x-axis pixel size should ideally be below 0.1573 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0305906 Jy
! Component: 100  -  total flux cleaned = 0.0515339 Jy
! Total flux subtracted in 100 components = 0.0515339 Jy
! Clean residual min=-0.011993 max=0.015639 Jy/beam
! Clean residual mean=0.000119 rms=0.003508 Jy/beam
! Combined flux in latest and established models = 0.836725 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 19 components and 0.836725 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.186249Jy  sigma=0.001561
! Fit after  self-cal, rms=0.186247Jy  sigma=0.001561
! Inverting map 
! Your choice of large map pixels excluded 2.31% of the data.
!  The x-axis pixel size should ideally be below 0.1573 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.31% of the data.
!  The x-axis pixel size should ideally be below 0.1573 milli-arcsec
! Estimated beam: bmin=0.6865 mas, bmaj=1.007 mas, bpa=1.357 degrees
! Estimated noise=484.52 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.0250573 Jy
! Component: 100  -  total flux cleaned = 0.0393254 Jy
! Component: 150  -  total flux cleaned = 0.0476796 Jy
! Component: 200  -  total flux cleaned = 0.052593 Jy
! Total flux subtracted in 200 components = 0.052593 Jy
! Clean residual min=-0.012629 max=0.016191 Jy/beam
! Clean residual mean=-0.000329 rms=0.003644 Jy/beam
! Combined flux in latest and established models = 0.889318 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 22 components and 0.889318 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.184636Jy  sigma=0.001502
! Fit after  self-cal, rms=0.184631Jy  sigma=0.001502
! Inverting map 
! Your choice of large map pixels excluded 2.31% of the data.
!  The x-axis pixel size should ideally be below 0.1573 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 42 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        2.49     FD        0.94     GC        0.98     HH        1.00*    
!   HN        1.29     KK        0.98     KP        0.92     LA        0.94     
!   MC        1.00*    MK        1.01     NY        0.97     ON        1.00*    
!   OV        0.98     PT        0.96     SC        1.18     TS        1.10     
!   WF        1.07     WZ        1.00*    GN        1.00     NL        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        0.97     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.02     LA        0.99     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.99     PT        1.02     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        1.60     NL        1.01     
! 
!  A total of 108 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.99     GC        1.04     HH        1.00*    
!   HN        1.00*    KK        0.95     KP        0.97     LA        1.03     
!   MC        1.00*    MK        0.97     NY        1.04     ON        1.00*    
!   OV        0.95     PT        0.96     SC        1.00*    TS        0.90     
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.09     
! 
! 
! Correcting IF 2.
!  A total of 42 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.95     GC        0.95     HH        1.00*    
!   HN        1.30     KK        0.98     KP        0.88     LA        0.94     
!   MC        1.00*    MK        1.02     NY        0.98     ON        1.00*    
!   OV        0.98     PT        0.96     SC        1.12     TS        1.08     
!   WF        1.08     WZ        1.00*    GN        1.01     NL        0.96     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.98     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        0.96     LA        0.99     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.99     PT        1.02     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        0.96     NL        1.03     
! 
!  A total of 108 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.00     GC        0.98     HH        1.00*    
!   HN        1.00*    KK        0.96     KP        0.93     LA        1.01     
!   MC        1.00*    MK        0.97     NY        1.04     ON        1.00*    
!   OV        0.95     PT        0.96     SC        1.00*    TS        0.90     
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.09     
! 
! 
! Correcting IF 3.
!  A total of 42 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        0.96     GC        0.98     HH        1.00*    
!   HN        1.35     KK        0.98     KP        0.90     LA        0.94     
!   MC        1.00*    MK        1.01     NY        0.97     ON        1.00*    
!   OV        0.98     PT        0.97     SC        1.12     TS        1.12     
!   WF        1.08     WZ        1.00*    GN        1.00     NL        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        0.98     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        0.99     LA        0.97     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.01     PT        1.02     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        0.98     NL        1.02     
! 
!  A total of 108 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.00     GC        1.03     HH        1.00*    
!   HN        1.00*    KK        0.96     KP        0.96     LA        1.03     
!   MC        1.00*    MK        0.99     NY        1.00     ON        1.00*    
!   OV        0.95     PT        0.99     SC        1.00*    TS        0.91     
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.09     
! 
! 
! Correcting IF 4.
!  A total of 42 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        0.96     GC        0.98     HH        1.00*    
!   HN        1.41     KK        0.99     KP        0.90     LA        0.95     
!   MC        1.00*    MK        0.99     NY        1.02     ON        1.00*    
!   OV        0.97     PT        0.97     SC        1.12     TS        1.12     
!   WF        1.08     WZ        1.00*    GN        1.01     NL        0.98     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.97     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        0.99     LA        0.99     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.99     PT        1.02     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        1.01     NL        1.00     
! 
!  A total of 108 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00     GC        1.02     HH        1.00*    
!   HN        1.00*    KK        0.95     KP        0.94     LA        1.04     
!   MC        1.00*    MK        0.96     NY        1.05     ON        1.00*    
!   OV        0.96     PT        0.98     SC        1.00*    TS        0.94     
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.10     
! 
! 
! Fit before self-cal, rms=0.184631Jy  sigma=0.001502
! Fit after  self-cal, rms=0.188638Jy  sigma=0.001253
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2.38% of the data.
!  The x-axis pixel size should ideally be below 0.1573 milli-arcsec
! Estimated beam: bmin=0.6959 mas, bmaj=1.007 mas, bpa=-0.9229 degrees
! Estimated noise=492.95 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (-1.2, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0013611 Jy
! Component: 100  -  total flux cleaned = 0.00214685 Jy
! Component: 150  -  total flux cleaned = 0.00262123 Jy
! Component: 200  -  total flux cleaned = 0.00302796 Jy
! Total flux subtracted in 200 components = 0.00302796 Jy
! Clean residual min=-0.002897 max=0.002771 Jy/beam
! Clean residual mean=-0.000001 rms=0.000844 Jy/beam
! Combined flux in latest and established models = 0.892346 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 31 components and 0.892346 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188183Jy  sigma=0.001249
! Fit after  self-cal, rms=0.188482Jy  sigma=0.001248
! Inverting map 
! Your choice of large map pixels excluded 2.38% of the data.
!  The x-axis pixel size should ideally be below 0.1573 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.188482Jy  sigma=0.001248
! Fit after  self-cal, rms=0.187986Jy  sigma=0.001247
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.38% of the data.
!  The x-axis pixel size should ideally be below 0.1573 milli-arcsec
! Estimated beam: bmin=0.6969 mas, bmaj=1.007 mas, bpa=-1.128 degrees
! Estimated noise=493.133 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -5.68432e-05 Jy
! Component: 100  -  total flux cleaned = 0.000464285 Jy
! Component: 150  -  total flux cleaned = 0.000786468 Jy
! Component: 200  -  total flux cleaned = 0.00106434 Jy
! Total flux subtracted in 200 components = 0.00106434 Jy
! Clean residual min=-0.002650 max=0.002520 Jy/beam
! Clean residual mean=-0.000008 rms=0.000734 Jy/beam
! Combined flux in latest and established models = 0.89341 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 34 components and 0.89341 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.187791Jy  sigma=0.001246
! Fit after  self-cal, rms=0.187773Jy  sigma=0.001246
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.38% of the data.
!  The x-axis pixel size should ideally be below 0.1573 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.000791882 Jy
! Component: 100  -  total flux cleaned = 0.00101077 Jy
! Component: 150  -  total flux cleaned = 0.00120165 Jy
! Component: 200  -  total flux cleaned = 0.0013731 Jy
! Total flux subtracted in 200 components = 0.0013731 Jy
! Clean residual min=-0.002636 max=0.002604 Jy/beam
! Clean residual mean=-0.000016 rms=0.000708 Jy/beam
! Combined flux in latest and established models = 0.894783 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 39 components and 0.894783 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.187698Jy  sigma=0.001245
! Fit after  self-cal, rms=0.187691Jy  sigma=0.001245
! Inverting map 
! Your choice of large map pixels excluded 2.38% of the data.
!  The x-axis pixel size should ideally be below 0.1573 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.187691Jy  sigma=0.001245
! Fit after  self-cal, rms=0.194621Jy  sigma=0.001246
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.38% of the data.
!  The x-axis pixel size should ideally be below 0.1573 milli-arcsec
! Estimated beam: bmin=0.6978 mas, bmaj=1.007 mas, bpa=-1.279 degrees
! Estimated noise=494.324 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000951425 Jy
! Component: 100  -  total flux cleaned = 0.000870572 Jy
! Component: 150  -  total flux cleaned = 0.000870841 Jy
! Component: 200  -  total flux cleaned = 0.000872664 Jy
! Total flux subtracted in 200 components = 0.000872664 Jy
! Clean residual min=-0.002617 max=0.002323 Jy/beam
! Clean residual mean=-0.000017 rms=0.000686 Jy/beam
! Combined flux in latest and established models = 0.895656 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 42 components and 0.895656 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.194535Jy  sigma=0.001246
! Fit after  self-cal, rms=0.194547Jy  sigma=0.001246
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.38% of the data.
!  The x-axis pixel size should ideally be below 0.1573 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.000143772 Jy
! Component: 100  -  total flux cleaned = 9.63696e-05 Jy
! Component: 150  -  total flux cleaned = 5.43064e-05 Jy
! Component: 200  -  total flux cleaned = 1.50208e-05 Jy
! Total flux subtracted in 200 components = 1.50208e-05 Jy
! Clean residual min=-0.002496 max=0.002357 Jy/beam
! Clean residual mean=-0.000017 rms=0.000676 Jy/beam
! Combined flux in latest and established models = 0.895671 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 45 components and 0.895671 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.194516Jy  sigma=0.001246
! Fit after  self-cal, rms=0.194512Jy  sigma=0.001246
! Inverting map 
! Your choice of large map pixels excluded 2.38% of the data.
!  The x-axis pixel size should ideally be below 0.1573 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.194512Jy  sigma=0.001246
! Fit after  self-cal, rms=0.194422Jy  sigma=0.001245
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.38% of the data.
!  The x-axis pixel size should ideally be below 0.1573 milli-arcsec
! Estimated beam: bmin=2.383 mas, bmaj=2.782 mas, bpa=-1.515 degrees
! Estimated noise=733.914 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000462818 Jy
! Component: 100  -  total flux cleaned = 0.000423033 Jy
! Component: 150  -  total flux cleaned = 0.000391272 Jy
! Component: 200  -  total flux cleaned = 0.000417692 Jy
! Total flux subtracted in 200 components = 0.000417692 Jy
! Clean residual min=-0.003108 max=0.002623 Jy/beam
! Clean residual mean=-0.000066 rms=0.000902 Jy/beam
! Combined flux in latest and established models = 0.896089 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 51 components and 0.896089 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.194418Jy  sigma=0.001245
! Fit after  self-cal, rms=0.194413Jy  sigma=0.001245
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.38% of the data.
!  The x-axis pixel size should ideally be below 0.1573 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.000125683 Jy
! Component: 100  -  total flux cleaned = 0.000153547 Jy
! Component: 150  -  total flux cleaned = 0.000155334 Jy
! Component: 200  -  total flux cleaned = 0.000156427 Jy
! Total flux subtracted in 200 components = 0.000156427 Jy
! Clean residual min=-0.003066 max=0.002613 Jy/beam
! Clean residual mean=-0.000069 rms=0.000900 Jy/beam
! Combined flux in latest and established models = 0.896245 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 58 components and 0.896245 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.194410Jy  sigma=0.001245
! Fit after  self-cal, rms=0.194406Jy  sigma=0.001245
! Inverting map 
! Your choice of large map pixels excluded 2.38% of the data.
!  The x-axis pixel size should ideally be below 0.1573 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.38% of the data.
!  The x-axis pixel size should ideally be below 0.1573 milli-arcsec
! Estimated beam: bmin=0.6984 mas, bmaj=1.007 mas, bpa=-1.378 degrees
! Estimated noise=495.274 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6984 x 1.007 at -1.378 degrees (North through East)
! Clean map  min=-0.0030933  max=0.6843 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.194406Jy  sigma=0.001245
! Fit after  self-cal, rms=0.245663Jy  sigma=0.001127
! Inverting map and beam 
! Your choice of large map pixels excluded 2.38% of the data.
!  The x-axis pixel size should ideally be below 0.1573 milli-arcsec
! Estimated beam: bmin=0.698 mas, bmaj=1.008 mas, bpa=-1.343 degrees
! Estimated noise=494.285 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000524734 Jy
! Component: 100  -  total flux cleaned = -0.000281187 Jy
! Component: 150  -  total flux cleaned = -0.000195438 Jy
! Component: 200  -  total flux cleaned = -0.00011763 Jy
! Total flux subtracted in 200 components = -0.00011763 Jy
! Clean residual min=-0.002152 max=0.002025 Jy/beam
! Clean residual mean=-0.000015 rms=0.000573 Jy/beam
! Combined flux in latest and established models = 0.896127 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 61 components and 0.896127 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.245641Jy  sigma=0.001127
! Fit after  self-cal, rms=0.245639Jy  sigma=0.001127
! Inverting map 
! Your choice of large map pixels excluded 2.38% of the data.
!  The x-axis pixel size should ideally be below 0.1573 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -9.89296e-06 Jy
! Component: 100  -  total flux cleaned = -1.09356e-05 Jy
! Component: 150  -  total flux cleaned = -1.05321e-05 Jy
! Component: 200  -  total flux cleaned = 2.02295e-05 Jy
! Total flux subtracted in 200 components = 2.02295e-05 Jy
! Clean residual min=-0.002174 max=0.001962 Jy/beam
! Clean residual mean=-0.000015 rms=0.000566 Jy/beam
! Combined flux in latest and established models = 0.896148 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 62 components and 0.896147 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.245629Jy  sigma=0.001127
! Fit after  self-cal, rms=0.245627Jy  sigma=0.001127
! Inverting map 
! Your choice of large map pixels excluded 2.38% of the data.
!  The x-axis pixel size should ideally be below 0.1573 milli-arcsec
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.245627Jy  sigma=0.001127
! Fit after  self-cal, rms=0.245624Jy  sigma=0.001127
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.38% of the data.
!  The x-axis pixel size should ideally be below 0.1573 milli-arcsec
! Estimated beam: bmin=0.5799 mas, bmaj=0.8837 mas, bpa=2.598 degrees
! Estimated noise=742.083 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.504135 Jy
! Component: 100  -  total flux cleaned = 0.665239 Jy
! Component: 150  -  total flux cleaned = 0.747622 Jy
! Component: 200  -  total flux cleaned = 0.79354 Jy
! Total flux subtracted in 200 components = 0.79354 Jy
! Clean residual min=-0.006994 max=0.023297 Jy/beam
! Clean residual mean=0.000311 rms=0.002554 Jy/beam
! Combined flux in latest and established models = 0.79354 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 11 model components to the UV plane model.
! The established model now contains 11 components and 0.79354 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 2.38% of the data.
!  The x-axis pixel size should ideally be below 0.1573 milli-arcsec
! Estimated beam: bmin=0.6984 mas, bmaj=1.008 mas, bpa=-1.358 degrees
! Estimated noise=494.599 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.0403211 Jy
! Component: 100  -  total flux cleaned = 0.0629658 Jy
! Component: 150  -  total flux cleaned = 0.0769321 Jy
! Component: 200  -  total flux cleaned = 0.0858662 Jy
! Total flux subtracted in 200 components = 0.0858662 Jy
! Clean residual min=-0.002421 max=0.004756 Jy/beam
! Clean residual mean=0.000081 rms=0.000923 Jy/beam
! Combined flux in latest and established models = 0.879406 Jy
! Adding 26 model components to the UV plane model.
! The established model now contains 27 components and 0.879406 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.38% of the data.
!  The x-axis pixel size should ideally be below 0.1573 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0058937 Jy
! Component: 100  -  total flux cleaned = 0.00958706 Jy
! Component: 150  -  total flux cleaned = 0.0112385 Jy
! Component: 200  -  total flux cleaned = 0.0123672 Jy
! Total flux subtracted in 200 components = 0.0123672 Jy
! Clean residual min=-0.002173 max=0.002124 Jy/beam
! Clean residual mean=0.000009 rms=0.000599 Jy/beam
! Combined flux in latest and established models = 0.891773 Jy
! Adding 23 model components to the UV plane model.
! The established model now contains 37 components and 0.891773 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.38% of the data.
!  The x-axis pixel size should ideally be below 0.1573 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.38% of the data.
!  The x-axis pixel size should ideally be below 0.1573 milli-arcsec
! Estimated beam: bmin=2.381 mas, bmaj=2.779 mas, bpa=-1.398 degrees
! Estimated noise=732.842 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00299525 Jy
! Component: 100  -  total flux cleaned = 0.00398569 Jy
! Component: 150  -  total flux cleaned = 0.00407552 Jy
! Component: 200  -  total flux cleaned = 0.0041486 Jy
! Total flux subtracted in 200 components = 0.0041486 Jy
! Clean residual min=-0.002960 max=0.002369 Jy/beam
! Clean residual mean=-0.000048 rms=0.000780 Jy/beam
! Combined flux in latest and established models = 0.895922 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 = 6.17689e-05 Jy
! Component: 100  -  total flux cleaned = 0.000102075 Jy
! Component: 150  -  total flux cleaned = 0.000137228 Jy
! Component: 200  -  total flux cleaned = 0.000168121 Jy
! Total flux subtracted in 200 components = 0.000168121 Jy
! Clean residual min=-0.002933 max=0.002370 Jy/beam
! Clean residual mean=-0.000052 rms=0.000778 Jy/beam
! Combined flux in latest and established models = 0.89609 Jy
! Adding 26 model components to the UV plane model.
! The established model now contains 52 components and 0.89609 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.38% of the data.
!  The x-axis pixel size should ideally be below 0.1573 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 2.38% of the data.
!  The x-axis pixel size should ideally be below 0.1573 milli-arcsec
! Estimated beam: bmin=0.6984 mas, bmaj=1.008 mas, bpa=-1.358 degrees
! Estimated noise=494.599 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000947302 Jy
! Component: 100  -  total flux cleaned = -0.000890792 Jy
! Component: 150  -  total flux cleaned = -0.000843668 Jy
! Component: 200  -  total flux cleaned = -0.00079961 Jy
! Total flux subtracted in 200 components = -0.00079961 Jy
! Clean residual min=-0.002081 max=0.002020 Jy/beam
! Clean residual mean=-0.000011 rms=0.000560 Jy/beam
! Combined flux in latest and established models = 0.89529 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 56 components and 0.89529 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.245620Jy  sigma=0.001127
! Fit after  self-cal, rms=0.245608Jy  sigma=0.001127
wmodel J2236+2828_X_1999_12_20_pus_map.mod
! Writing 56 model components to file: J2236+2828_X_1999_12_20_pus_map.mod
wobs J2236+2828_X_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J2236+2828_X_1999_12_20_pus_uvs.fits
wwins J2236+2828_X_1999_12_20_pus_map.win
! wwins: Wrote 2 windows to J2236+2828_X_1999_12_20_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.38% of the data.
!  The x-axis pixel size should ideally be below 0.1573 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000114046 Jy
! Component: 100  -  total flux cleaned = -0.000149043 Jy
! Component: 150  -  total flux cleaned = -0.000115626 Jy
! Component: 200  -  total flux cleaned = -0.00018046 Jy
! Component: 250  -  total flux cleaned = -0.000149724 Jy
! Component: 300  -  total flux cleaned = -0.000241259 Jy
! Component: 350  -  total flux cleaned = -0.000300441 Jy
! Component: 400  -  total flux cleaned = -0.000328845 Jy
! Component: 450  -  total flux cleaned = -0.000357037 Jy
! Component: 500  -  total flux cleaned = -0.000441023 Jy
! Component: 550  -  total flux cleaned = -0.000605945 Jy
! Component: 600  -  total flux cleaned = -0.000687441 Jy
! Component: 650  -  total flux cleaned = -0.000848161 Jy
! Component: 700  -  total flux cleaned = -0.000979971 Jy
! Component: 750  -  total flux cleaned = -0.00113579 Jy
! Component: 800  -  total flux cleaned = -0.0012637 Jy
! Component: 850  -  total flux cleaned = -0.00136478 Jy
! Component: 900  -  total flux cleaned = -0.00141492 Jy
! Component: 950  -  total flux cleaned = -0.00146465 Jy
! Component: 1000  -  total flux cleaned = -0.00156274 Jy
! Total flux subtracted in 1024 components = -0.00161138 Jy
! Clean residual min=-0.001491 max=0.001571 Jy/beam
! Clean residual mean=-0.000009 rms=0.000473 Jy/beam
! Combined flux in latest and established models = 0.893679 Jy
keep
! Adding 74 model components to the UV plane model.
! The established model now contains 130 components and 0.893679 Jy
![Exited script file: muppet]
wmap "J2236+2828_X_1999_12_20_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 2.38% of the data.
!  The x-axis pixel size should ideally be below 0.1573 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6984 x 1.008 at -1.358 degrees (North through East)
! Clean map  min=-0.0022175  max=0.68318 Jy/beam
! Writing clean map to FITS file: J2236+2828_X_1999_12_20_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.683176 
invert
! Inverting map 
! Your choice of large map pixels excluded 2.38% of the data.
!  The x-axis pixel size should ideally be below 0.1573 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000473348 
device "J2236+2828_X_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J2236+2828_X_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.207859 0.207859 0.415719 0.831437 1.66287 3.32575 6.6515 13.303 26.606 53.212
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0014 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.683 
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.6984 x 1.008 at -1.358 degrees (North through East)
! Clean map  min=-0.0022175  max=0.68318 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2236+2828_X_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J2236+2828_X_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2236+2828_X_1999_12_20_pus_uvs.log closed on Fri Dec 14 17:34:59 2007