! Started logfile: J0136+4751_X_2000_05_22_pus_uvs.log on Tue Nov 13 12:34:36 2007
obs J0136+4751_X_2000_05_22_pus_uva.fits
! Reading UV FITS file: J0136+4751_X_2000_05_22_pus_uva.fits
! AN table 1: 472 integrations on 190 of 190 possible baselines.
! AN table 2: 123 integrations on 190 of 190 possible baselines.
! AN table 3: 106 integrations on 190 of 190 possible baselines.
! AN table 4: 344 integrations on 190 of 190 possible baselines.
! AN table 5: 48 integrations on 190 of 190 possible baselines.
! AN table 6: 85 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.178098 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0136+4751
! 
! 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 1888 lines of history.
! 
! Reading 159448 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 J0136+4751_X_2000_05_22_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 256x256 pixels with 0.200x0.200 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 6504 telescope corrections were flagged in sub-array 1.
!  A total of 1531 telescope corrections were flagged in sub-array 2.
!  A total of 987 telescope corrections were flagged in sub-array 3.
!  A total of 4535 telescope corrections were flagged in sub-array 4.
!  A total of 653 telescope corrections were flagged in sub-array 5.
!  A total of 1367 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 2.
!  A total of 6504 telescope corrections were flagged in sub-array 1.
!  A total of 1531 telescope corrections were flagged in sub-array 2.
!  A total of 987 telescope corrections were flagged in sub-array 3.
!  A total of 4535 telescope corrections were flagged in sub-array 4.
!  A total of 653 telescope corrections were flagged in sub-array 5.
!  A total of 1367 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 3.
!  A total of 6504 telescope corrections were flagged in sub-array 1.
!  A total of 1531 telescope corrections were flagged in sub-array 2.
!  A total of 987 telescope corrections were flagged in sub-array 3.
!  A total of 4535 telescope corrections were flagged in sub-array 4.
!  A total of 653 telescope corrections were flagged in sub-array 5.
!  A total of 1367 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 4.
!  A total of 6504 telescope corrections were flagged in sub-array 1.
!  A total of 1531 telescope corrections were flagged in sub-array 2.
!  A total of 987 telescope corrections were flagged in sub-array 3.
!  A total of 4535 telescope corrections were flagged in sub-array 4.
!  A total of 653 telescope corrections were flagged in sub-array 5.
!  A total of 1367 telescope corrections were flagged in sub-array 6.
! 
! Fit before self-cal, rms=1.750393Jy  sigma=0.018955
! Fit after  self-cal, rms=1.355125Jy  sigma=0.014856
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 4.05% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 milli-arcsec
! Estimated beam: bmin=0.5269 mas, bmaj=0.664 mas, bpa=3.251 degrees
! Estimated noise=482.358 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 = 1.70747 Jy
! Component: 100  -  total flux cleaned = 2.09294 Jy
! Total flux subtracted in 100 components = 2.09294 Jy
! Clean residual min=-0.032515 max=0.144260 Jy/beam
! Clean residual mean=0.000410 rms=0.009183 Jy/beam
! Combined flux in latest and established models = 2.09294 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 2.09294 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.412590Jy  sigma=0.004550
! Fit after  self-cal, rms=0.412244Jy  sigma=0.004548
! Inverting map 
! Your choice of large map pixels excluded 4.05% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.161385 Jy
! Component: 100  -  total flux cleaned = 0.250826 Jy
! Total flux subtracted in 100 components = 0.250826 Jy
! Clean residual min=-0.025808 max=0.044754 Jy/beam
! Clean residual mean=0.000195 rms=0.006686 Jy/beam
! Combined flux in latest and established models = 2.34376 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 9 components and 2.34376 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.303548Jy  sigma=0.003127
! Fit after  self-cal, rms=0.303196Jy  sigma=0.003125
! Inverting map 
! Your choice of large map pixels excluded 4.05% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0536699 Jy
! Component: 100  -  total flux cleaned = 0.0882629 Jy
! Total flux subtracted in 100 components = 0.0882629 Jy
! Clean residual min=-0.025482 max=0.037497 Jy/beam
! Clean residual mean=0.000120 rms=0.006281 Jy/beam
! Combined flux in latest and established models = 2.43203 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 13 components and 2.43203 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.284497Jy  sigma=0.002820
! Fit after  self-cal, rms=0.284321Jy  sigma=0.002819
! Inverting map 
! Your choice of large map pixels excluded 4.05% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 milli-arcsec
! Added new window around map position (-0.6, 1).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0358187 Jy
! Component: 100  -  total flux cleaned = 0.0602832 Jy
! Total flux subtracted in 100 components = 0.0602832 Jy
! Clean residual min=-0.025510 max=0.026843 Jy/beam
! Clean residual mean=0.000075 rms=0.006102 Jy/beam
! Combined flux in latest and established models = 2.49231 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 20 components and 2.49231 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.274996Jy  sigma=0.002672
! Fit after  self-cal, rms=0.274275Jy  sigma=0.002666
! Inverting map 
! Your choice of large map pixels excluded 4.05% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 milli-arcsec
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
win_mult = win_mult * 1.6
clean_niter = clean_niter * 2
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 4.05% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 milli-arcsec
! Estimated beam: bmin=0.6393 mas, bmaj=0.9547 mas, bpa=-1.59 degrees
! Estimated noise=180.871 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.0538946 Jy
! Component: 100  -  total flux cleaned = 0.0831508 Jy
! Component: 150  -  total flux cleaned = 0.101236 Jy
! Component: 200  -  total flux cleaned = 0.112633 Jy
! Total flux subtracted in 200 components = 0.112633 Jy
! Clean residual min=-0.021049 max=0.024332 Jy/beam
! Clean residual mean=-0.000648 rms=0.004718 Jy/beam
! Combined flux in latest and established models = 2.60494 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 28 components and 2.60494 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.267045Jy  sigma=0.002519
! Fit after  self-cal, rms=0.266321Jy  sigma=0.002510
! Inverting map 
! Your choice of large map pixels excluded 4.05% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 120 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.97     GC        1.07     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        1.03     KP        1.02     
!   MA        0.96     MC        0.97     MK        0.96     NL        0.98     
!   NY        1.01     OV        0.97     PT        1.03     SC        1.01     
!   TS        1.01     WF        1.03     WZ        1.09     LA        1.02     
! 
!  A total of 69 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.00*    GC        0.98     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.06     KP        1.06     
!   MA        0.94     MC        1.03     MK        0.95     NL        1.03     
!   NY        1.04     OV        1.00     PT        1.20     SC        1.00*    
!   TS        1.02     WF        1.00*    WZ        0.96     LA        1.09     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.00     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.00*    KP        1.07     
!   MA        1.67     MC        0.93     MK        1.00*    NL        1.00     
!   NY        1.03     OV        1.01     PT        1.02     SC        1.04     
!   TS        0.96     WF        1.02     WZ        1.03     LA        1.04     
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        0.95     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        1.06     KP        1.00     
!   MA        1.00*    MC        1.15     MK        0.97     NL        0.98     
!   NY        0.99     OV        0.95     PT        1.00     SC        1.08     
!   TS        0.97     WF        0.98     WZ        1.00*    LA        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.98     FD        1.00*    GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.06     KK        1.00*    KP        1.00*    
!   MA        0.91     MC        0.99     MK        1.00*    NL        1.03     
!   NY        1.01     OV        1.00*    PT        1.00*    SC        1.17     
!   TS        1.13     WF        1.07     WZ        1.07     LA        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.97     FD        0.95     GC        0.94     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.01     KP        0.97     
!   MA        1.08     MC        1.13     MK        0.98     NL        0.95     
!   NY        1.01     OV        0.94     PT        1.02     SC        0.96     
!   TS        1.42     WF        1.02     WZ        1.00*    LA        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 120 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.01     GC        1.11     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        1.03     KP        0.97     
!   MA        1.03     MC        0.98     MK        0.96     NL        1.01     
!   NY        1.01     OV        0.99     PT        0.99     SC        1.01     
!   TS        1.01     WF        1.04     WZ        1.10     LA        0.97     
! 
!  A total of 69 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.00*    GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.02     KP        1.01     
!   MA        1.01     MC        1.05     MK        0.95     NL        1.06     
!   NY        1.04     OV        1.03     PT        1.16     SC        1.00*    
!   TS        1.02     WF        1.00*    WZ        0.96     LA        1.05     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.04     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.00*    KP        1.01     
!   MA        1.78     MC        0.93     MK        1.00*    NL        1.03     
!   NY        1.03     OV        1.05     PT        0.99     SC        1.04     
!   TS        0.97     WF        1.02     WZ        1.04     LA        0.99     
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.99     GC        1.10     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        0.98     KP        0.94     
!   MA        1.00*    MC        1.17     MK        0.97     NL        1.00     
!   NY        0.99     OV        0.97     PT        0.97     SC        1.09     
!   TS        0.97     WF        0.97     WZ        1.00*    LA        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.99     FD        1.00*    GC        1.07     GG        1.00*    
!   HH        1.00*    HN        1.06     KK        1.00*    KP        1.00*    
!   MA        0.98     MC        1.00     MK        1.00*    NL        1.06     
!   NY        1.01     OV        1.00*    PT        1.00*    SC        1.17     
!   TS        1.14     WF        1.07     WZ        1.07     LA        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.98     FD        0.98     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.01     KP        0.93     
!   MA        0.95     MC        1.14     MK        0.98     NL        0.98     
!   NY        1.03     OV        0.96     PT        0.98     SC        0.96     
!   TS        1.45     WF        1.01     WZ        1.00*    LA        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 120 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.98     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.00     KP        1.01     
!   MA        1.02     MC        0.99     MK        0.97     NL        0.98     
!   NY        0.99     OV        0.96     PT        1.01     SC        1.01     
!   TS        1.00     WF        1.04     WZ        1.11     LA        1.01     
! 
!  A total of 69 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.00*    GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.99     KP        1.05     
!   MA        1.01     MC        1.01     MK        0.95     NL        1.02     
!   NY        1.02     OV        0.99     PT        1.19     SC        1.00*    
!   TS        1.03     WF        1.00*    WZ        0.98     LA        1.09     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.01     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.00*    KP        1.05     
!   MA        1.71     MC        0.81     MK        1.00*    NL        0.99     
!   NY        1.02     OV        1.01     PT        1.00     SC        1.04     
!   TS        0.98     WF        1.03     WZ        1.06     LA        1.03     
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        0.96     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.00     KP        0.98     
!   MA        1.00*    MC        1.14     MK        0.98     NL        0.97     
!   NY        0.96     OV        0.93     PT        0.98     SC        1.10     
!   TS        0.94     WF        0.98     WZ        1.00*    LA        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.01     FD        1.00*    GC        1.06     GG        1.00*    
!   HH        1.00*    HN        1.05     KK        1.00*    KP        1.00*    
!   MA        0.93     MC        0.85     MK        1.00*    NL        1.01     
!   NY        0.99     OV        1.00*    PT        1.00*    SC        1.17     
!   TS        1.10     WF        1.05     WZ        1.10     LA        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.00     FD        0.95     GC        0.95     GG        1.00*    
!   HH        1.00*    HN        0.95     KK        0.97     KP        0.96     
!   MA        0.93     MC        1.10     MK        0.99     NL        0.94     
!   NY        0.99     OV        0.92     PT        0.99     SC        0.96     
!   TS        1.45     WF        1.03     WZ        1.00*    LA        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 120 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.97     GC        1.08     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.02     KP        1.00     
!   MA        0.99     MC        0.94     MK        1.00     NL        0.98     
!   NY        0.97     OV        0.95     PT        1.02     SC        1.01     
!   TS        1.00     WF        0.98     WZ        1.12     LA        0.98     
! 
!  A total of 69 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.00*    GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00     KP        1.03     
!   MA        0.97     MC        1.03     MK        0.98     NL        1.03     
!   NY        1.00     OV        0.98     PT        1.21     SC        1.00*    
!   TS        1.03     WF        1.00*    WZ        0.99     LA        1.05     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.99     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.00*    KP        1.04     
!   MA        1.65     MC        0.80     MK        1.00*    NL        1.00     
!   NY        0.99     OV        1.00     PT        1.01     SC        1.03     
!   TS        0.99     WF        0.97     WZ        1.07     LA        0.99     
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        0.94     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.02     KP        0.97     
!   MA        1.00*    MC        1.16     MK        1.00     NL        0.97     
!   NY        0.95     OV        0.93     PT        0.99     SC        1.09     
!   TS        0.93     WF        0.93     WZ        1.00*    LA        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.97     FD        1.00*    GC        1.07     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        1.00*    KP        1.00*    
!   MA        0.94     MC        0.85     MK        1.00*    NL        1.02     
!   NY        0.98     OV        1.00*    PT        1.00*    SC        1.16     
!   TS        1.11     WF        1.01     WZ        1.10     LA        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.97     FD        0.93     GC        0.95     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        0.98     KP        0.95     
!   MA        0.89     MC        1.11     MK        1.01     NL        0.94     
!   NY        0.97     OV        0.92     PT        1.00     SC        0.95     
!   TS        1.45     WF        0.96     WZ        1.00*    LA        1.00*    
! 
! 
! Fit before self-cal, rms=0.266321Jy  sigma=0.002510
! Fit after  self-cal, rms=0.230944Jy  sigma=0.001747
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 4.07% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 milli-arcsec
! Estimated beam: bmin=0.6397 mas, bmaj=0.969 mas, bpa=-1.717 degrees
! Estimated noise=181.206 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.010823 Jy
! Component: 100  -  total flux cleaned = -0.0114443 Jy
! Component: 150  -  total flux cleaned = -0.0114471 Jy
! Component: 200  -  total flux cleaned = -0.0114519 Jy
! Total flux subtracted in 200 components = -0.0114519 Jy
! Clean residual min=-0.008841 max=0.010089 Jy/beam
! Clean residual mean=0.000229 rms=0.001885 Jy/beam
! Combined flux in latest and established models = 2.59349 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 33 components and 2.59349 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.229882Jy  sigma=0.001735
! Fit after  self-cal, rms=0.229903Jy  sigma=0.001734
! Inverting map 
! Your choice of large map pixels excluded 4.07% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 milli-arcsec
! Added new window around map position (0.2, 1.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00398047 Jy
! Component: 100  -  total flux cleaned = 0.00446746 Jy
! Component: 150  -  total flux cleaned = 0.00446402 Jy
! Component: 200  -  total flux cleaned = 0.00467954 Jy
! Total flux subtracted in 200 components = 0.00467954 Jy
! Clean residual min=-0.008092 max=0.008916 Jy/beam
! Clean residual mean=0.000189 rms=0.001795 Jy/beam
! Combined flux in latest and established models = 2.59817 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 44 components and 2.59817 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.229253Jy  sigma=0.001726
! Fit after  self-cal, rms=0.229216Jy  sigma=0.001726
! Inverting map 
! Your choice of large map pixels excluded 4.07% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 milli-arcsec
! Added new window around map position (-1.4, 2.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00770806 Jy
! Component: 100  -  total flux cleaned = 0.00864691 Jy
! Component: 150  -  total flux cleaned = 0.00904865 Jy
! Component: 200  -  total flux cleaned = 0.00923403 Jy
! Total flux subtracted in 200 components = 0.00923403 Jy
! Clean residual min=-0.007228 max=0.007152 Jy/beam
! Clean residual mean=0.000105 rms=0.001701 Jy/beam
! Combined flux in latest and established models = 2.6074 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 53 components and 2.6074 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.228718Jy  sigma=0.001720
! Fit after  self-cal, rms=0.228683Jy  sigma=0.001720
! Inverting map 
! Your choice of large map pixels excluded 4.07% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 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.228683Jy  sigma=0.001720
! Fit after  self-cal, rms=0.192598Jy  sigma=0.001561
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.07% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 milli-arcsec
! Estimated beam: bmin=0.6402 mas, bmaj=0.9693 mas, bpa=-2.05 degrees
! Estimated noise=181.135 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00685237 Jy
! Component: 100  -  total flux cleaned = -0.00659967 Jy
! Component: 150  -  total flux cleaned = -0.00660242 Jy
! Component: 200  -  total flux cleaned = -0.00659792 Jy
! Total flux subtracted in 200 components = -0.00659792 Jy
! Clean residual min=-0.006058 max=0.004340 Jy/beam
! Clean residual mean=0.000261 rms=0.000937 Jy/beam
! Combined flux in latest and established models = 2.60081 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 60 components and 2.60081 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.191778Jy  sigma=0.001553
! Fit after  self-cal, rms=0.191753Jy  sigma=0.001553
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.07% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 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.000133111 Jy
! Component: 100  -  total flux cleaned = 0.000317451 Jy
! Component: 150  -  total flux cleaned = 0.000319556 Jy
! Component: 200  -  total flux cleaned = 0.000466499 Jy
! Total flux subtracted in 200 components = 0.000466499 Jy
! Clean residual min=-0.005095 max=0.004165 Jy/beam
! Clean residual mean=0.000257 rms=0.000888 Jy/beam
! Combined flux in latest and established models = 2.60127 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 62 components and 2.60127 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.191417Jy  sigma=0.001549
! Fit after  self-cal, rms=0.191398Jy  sigma=0.001549
! Inverting map 
! Your choice of large map pixels excluded 4.07% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 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.191398Jy  sigma=0.001549
! Fit after  self-cal, rms=0.191536Jy  sigma=0.001546
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.07% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 milli-arcsec
! Estimated beam: bmin=0.6402 mas, bmaj=0.9707 mas, bpa=-2.19 degrees
! Estimated noise=181.096 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00459867 Jy
! Component: 100  -  total flux cleaned = -0.00481438 Jy
! Component: 150  -  total flux cleaned = -0.00481682 Jy
! Component: 200  -  total flux cleaned = -0.00465967 Jy
! Total flux subtracted in 200 components = -0.00465967 Jy
! Clean residual min=-0.005570 max=0.004145 Jy/beam
! Clean residual mean=0.000264 rms=0.000826 Jy/beam
! Combined flux in latest and established models = 2.59661 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 63 components and 2.59661 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.191061Jy  sigma=0.001542
! Fit after  self-cal, rms=0.191054Jy  sigma=0.001542
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.07% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 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.00011022 Jy
! Component: 100  -  total flux cleaned = 0.000383724 Jy
! Component: 150  -  total flux cleaned = 0.000510236 Jy
! Component: 200  -  total flux cleaned = 0.000744256 Jy
! Total flux subtracted in 200 components = 0.000744256 Jy
! Clean residual min=-0.004899 max=0.003997 Jy/beam
! Clean residual mean=0.000257 rms=0.000791 Jy/beam
! Combined flux in latest and established models = 2.59736 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 66 components and 2.59736 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.190859Jy  sigma=0.001540
! Fit after  self-cal, rms=0.190849Jy  sigma=0.001540
! Inverting map 
! Your choice of large map pixels excluded 4.07% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 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.190849Jy  sigma=0.001540
! Fit after  self-cal, rms=0.190718Jy  sigma=0.001536
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.07% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 milli-arcsec
! Estimated beam: bmin=2.398 mas, bmaj=2.494 mas, bpa=46.56 degrees
! Estimated noise=261.305 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00260261 Jy
! Component: 100  -  total flux cleaned = 0.00276258 Jy
! Component: 150  -  total flux cleaned = 0.00268955 Jy
! Component: 200  -  total flux cleaned = 0.00274778 Jy
! Total flux subtracted in 200 components = 0.00274778 Jy
! Clean residual min=-0.002238 max=0.006435 Jy/beam
! Clean residual mean=0.000728 rms=0.001295 Jy/beam
! Combined flux in latest and established models = 2.60011 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 77 components and 2.60011 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.190649Jy  sigma=0.001535
! Fit after  self-cal, rms=0.190625Jy  sigma=0.001535
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.07% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 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 (-4, 4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0062255 Jy
! Component: 100  -  total flux cleaned = 0.0099031 Jy
! Component: 150  -  total flux cleaned = 0.0120633 Jy
! Component: 200  -  total flux cleaned = 0.0133314 Jy
! Total flux subtracted in 200 components = 0.0133314 Jy
! Clean residual min=-0.002200 max=0.003404 Jy/beam
! Clean residual mean=0.000378 rms=0.000854 Jy/beam
! Combined flux in latest and established models = 2.61344 Jy
! Performing phase self-cal
! Adding 50 model components to the UV plane model.
! The established model now contains 126 components and 2.61344 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.190578Jy  sigma=0.001534
! Fit after  self-cal, rms=0.190568Jy  sigma=0.001534
! Inverting map 
! Your choice of large map pixels excluded 4.07% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Your choice of large map pixels excluded 4.07% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 milli-arcsec
! Estimated beam: bmin=0.6403 mas, bmaj=0.9717 mas, bpa=-2.303 degrees
! Estimated noise=181.074 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6403 x 0.9717 at -2.303 degrees (North through East)
! Clean map  min=-0.0023327  max=2.3144 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.190568Jy  sigma=0.001534
! Fit after  self-cal, rms=0.168632Jy  sigma=0.001323
! Inverting map and beam 
! Your choice of large map pixels excluded 4.07% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 milli-arcsec
! Estimated beam: bmin=0.6405 mas, bmaj=0.9718 mas, bpa=-2.301 degrees
! Estimated noise=180.902 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00306384 Jy
! Component: 100  -  total flux cleaned = -0.00306184 Jy
! Component: 150  -  total flux cleaned = -0.00317552 Jy
! Component: 200  -  total flux cleaned = -0.00317609 Jy
! Total flux subtracted in 200 components = -0.00317609 Jy
! Clean residual min=-0.004992 max=0.001782 Jy/beam
! Clean residual mean=0.000133 rms=0.000527 Jy/beam
! Combined flux in latest and established models = 2.61026 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 135 components and 2.61026 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.168380Jy  sigma=0.001321
! Fit after  self-cal, rms=0.168377Jy  sigma=0.001321
! Inverting map 
! Your choice of large map pixels excluded 4.07% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000101559 Jy
! Component: 100  -  total flux cleaned = 9.8994e-05 Jy
! Component: 150  -  total flux cleaned = 0.000288614 Jy
! Component: 200  -  total flux cleaned = 0.000558177 Jy
! Total flux subtracted in 200 components = 0.000558177 Jy
! Clean residual min=-0.004405 max=0.001762 Jy/beam
! Clean residual mean=0.000128 rms=0.000504 Jy/beam
! Combined flux in latest and established models = 2.61082 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 147 components and 2.61082 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.168265Jy  sigma=0.001319
! Fit after  self-cal, rms=0.168261Jy  sigma=0.001319
! Inverting map 
! Your choice of large map pixels excluded 4.07% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 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.168261Jy  sigma=0.001319
! Fit after  self-cal, rms=0.168244Jy  sigma=0.001319
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.07% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 milli-arcsec
! Estimated beam: bmin=0.5274 mas, bmaj=0.6745 mas, bpa=0.997 degrees
! Estimated noise=491.521 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.74433 Jy
! Component: 100  -  total flux cleaned = 2.12895 Jy
! Component: 150  -  total flux cleaned = 2.26516 Jy
! Component: 200  -  total flux cleaned = 2.33507 Jy
! Total flux subtracted in 200 components = 2.33507 Jy
! Clean residual min=-0.006508 max=0.036065 Jy/beam
! Clean residual mean=0.000222 rms=0.002543 Jy/beam
! Combined flux in latest and established models = 2.33507 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 2.33507 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 4.07% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 milli-arcsec
! Estimated beam: bmin=0.6405 mas, bmaj=0.9725 mas, bpa=-2.367 degrees
! Estimated noise=180.837 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.0957859 Jy
! Component: 100  -  total flux cleaned = 0.147975 Jy
! Component: 150  -  total flux cleaned = 0.179617 Jy
! Component: 200  -  total flux cleaned = 0.200039 Jy
! Total flux subtracted in 200 components = 0.200039 Jy
! Clean residual min=-0.003424 max=0.011237 Jy/beam
! Clean residual mean=0.000777 rms=0.001718 Jy/beam
! Combined flux in latest and established models = 2.53511 Jy
! Adding 41 model components to the UV plane model.
! The established model now contains 41 components and 2.53511 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.07% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 milli-arcsec
! Added new window around map position (0, -0.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0141979 Jy
! Component: 100  -  total flux cleaned = 0.0244942 Jy
! Component: 150  -  total flux cleaned = 0.0322051 Jy
! Component: 200  -  total flux cleaned = 0.0383629 Jy
! Total flux subtracted in 200 components = 0.0383629 Jy
! Clean residual min=-0.002026 max=0.003737 Jy/beam
! Clean residual mean=0.000433 rms=0.000817 Jy/beam
! Combined flux in latest and established models = 2.57347 Jy
! Adding 47 model components to the UV plane model.
! The established model now contains 75 components and 2.57347 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.07% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00510286 Jy
! Component: 100  -  total flux cleaned = 0.00938713 Jy
! Component: 150  -  total flux cleaned = 0.0130426 Jy
! Component: 200  -  total flux cleaned = 0.0162363 Jy
! Total flux subtracted in 200 components = 0.0162363 Jy
! Clean residual min=-0.001778 max=0.002328 Jy/beam
! Clean residual mean=0.000291 rms=0.000576 Jy/beam
! Combined flux in latest and established models = 2.58971 Jy
! Adding 63 model components to the UV plane model.
! The established model now contains 109 components and 2.58971 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.07% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.07% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 milli-arcsec
! Estimated beam: bmin=2.398 mas, bmaj=2.494 mas, bpa=46.25 degrees
! Estimated noise=260.69 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00628887 Jy
! Component: 100  -  total flux cleaned = 0.0105025 Jy
! Component: 150  -  total flux cleaned = 0.0137082 Jy
! Component: 200  -  total flux cleaned = 0.0162806 Jy
! Total flux subtracted in 200 components = 0.0162806 Jy
! Clean residual min=-0.001037 max=0.002690 Jy/beam
! Clean residual mean=0.000546 rms=0.000701 Jy/beam
! Combined flux in latest and established models = 2.60599 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.00208872 Jy
! Component: 100  -  total flux cleaned = 0.0038068 Jy
! Component: 150  -  total flux cleaned = 0.0052422 Jy
! Component: 200  -  total flux cleaned = 0.00644827 Jy
! Total flux subtracted in 200 components = 0.00644827 Jy
! Clean residual min=-0.001060 max=0.002751 Jy/beam
! Clean residual mean=0.000367 rms=0.000612 Jy/beam
! Combined flux in latest and established models = 2.61243 Jy
! Adding 112 model components to the UV plane model.
! The established model now contains 209 components and 2.61244 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.07% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 milli-arcsec
! Added new window around map position (8.2, 9.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00242723 Jy
! Component: 100  -  total flux cleaned = 0.00382286 Jy
! Component: 150  -  total flux cleaned = 0.0048132 Jy
! Component: 200  -  total flux cleaned = 0.00561697 Jy
! Total flux subtracted in 200 components = 0.00561697 Jy
! Clean residual min=-0.001026 max=0.002183 Jy/beam
! Clean residual mean=0.000209 rms=0.000526 Jy/beam
! Combined flux in latest and established models = 2.61805 Jy
! Adding 40 model components to the UV plane model.
! The established model now contains 243 components and 2.61805 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.07% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 4.07% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 milli-arcsec
! Estimated beam: bmin=0.6405 mas, bmaj=0.9725 mas, bpa=-2.367 degrees
! Estimated noise=180.837 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00124061 Jy
! Component: 100  -  total flux cleaned = -0.000900269 Jy
! Component: 150  -  total flux cleaned = -0.000514415 Jy
! Component: 200  -  total flux cleaned = -0.000371127 Jy
! Total flux subtracted in 200 components = -0.000371127 Jy
! Clean residual min=-0.001422 max=0.001672 Jy/beam
! Clean residual mean=0.000064 rms=0.000409 Jy/beam
! Combined flux in latest and established models = 2.61768 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 252 components and 2.61768 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.168293Jy  sigma=0.001318
! Fit after  self-cal, rms=0.168220Jy  sigma=0.001317
wmodel J0136+4751_X_2000_05_22_pus_map.mod
! Writing 252 model components to file: J0136+4751_X_2000_05_22_pus_map.mod
wobs J0136+4751_X_2000_05_22_pus_uvs.fits
! Writing UV FITS file: J0136+4751_X_2000_05_22_pus_uvs.fits
wwins J0136+4751_X_2000_05_22_pus_map.win
! wwins: Wrote 7 windows to J0136+4751_X_2000_05_22_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! Your choice of large map pixels excluded 4.07% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000569315 Jy
! Component: 100  -  total flux cleaned = 0.000621876 Jy
! Component: 150  -  total flux cleaned = 0.000670652 Jy
! Component: 200  -  total flux cleaned = 0.000790873 Jy
! Component: 250  -  total flux cleaned = 0.000909366 Jy
! Component: 300  -  total flux cleaned = 0.00102568 Jy
! Component: 350  -  total flux cleaned = 0.00113994 Jy
! Component: 400  -  total flux cleaned = 0.00122993 Jy
! Component: 450  -  total flux cleaned = 0.0013402 Jy
! Component: 500  -  total flux cleaned = 0.00140527 Jy
! Component: 550  -  total flux cleaned = 0.00151251 Jy
! Component: 600  -  total flux cleaned = 0.00161824 Jy
! Component: 650  -  total flux cleaned = 0.00172282 Jy
! Component: 700  -  total flux cleaned = 0.00178489 Jy
! Component: 750  -  total flux cleaned = 0.0018874 Jy
! Component: 800  -  total flux cleaned = 0.00196866 Jy
! Component: 850  -  total flux cleaned = 0.00204909 Jy
! Component: 900  -  total flux cleaned = 0.00210905 Jy
! Component: 950  -  total flux cleaned = 0.00218825 Jy
! Component: 1000  -  total flux cleaned = 0.00224713 Jy
! Total flux subtracted in 1024 components = 0.00226672 Jy
! Clean residual min=-0.001009 max=0.001068 Jy/beam
! Clean residual mean=0.000048 rms=0.000367 Jy/beam
! Combined flux in latest and established models = 2.61995 Jy
keep
! Adding 81 model components to the UV plane model.
! The established model now contains 320 components and 2.61995 Jy
![Exited script file: muppet]
wmap "J0136+4751_X_2000_05_22_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 4.07% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6405 x 0.9725 at -2.367 degrees (North through East)
! Clean map  min=-0.0012413  max=2.3147 Jy/beam
! Writing clean map to FITS file: J0136+4751_X_2000_05_22_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 2.31474 
invert
! Inverting map 
! Your choice of large map pixels excluded 4.07% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.181 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000366574 
device "J0136+4751_X_2000_05_22_pus\_map.eps/VPS"
! Attempting to open device: 'J0136+4751_X_2000_05_22_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.0475095 0.0475095 0.095019 0.190038 0.380076 0.760152 1.5203 3.04061 6.08121 12.1624 24.3249 48.6497 97.2994
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.001 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.314 
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.6405 x 0.9725 at -2.367 degrees (North through East)
! Clean map  min=-0.0012413  max=2.3147 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0136+4751_X_2000_05_22_pus\_map.gif/vgif"
! Attempting to open device: 'J0136+4751_X_2000_05_22_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0136+4751_X_2000_05_22_pus_uvs.log closed on Tue Nov 13 12:35:37 2007