! Started logfile: J0121+1149_X_1998_10_01_pus_uvs.log on Wed Feb  6 12:21:07 2008
obs J0121+1149_X_1998_10_01_pus_uva.fits
! Reading UV FITS file: J0121+1149_X_1998_10_01_pus_uva.fits
! AN table 1: 163 integrations on 136 of 136 possible baselines.
! AN table 2: 285 integrations on 136 of 136 possible baselines.
! AN table 3: 25 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.0997699 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0121+1149
! 
! 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.40798e+09        4e+06          1        4e+06
!  02        2  8.47798e+09        4e+06          1        4e+06
!  03        3  8.79298e+09        4e+06          1        4e+06
!  04        4  8.89798e+09        4e+06          1        4e+06
! 
! Polarization(s): RR
! 
! Read 2049 lines of history.
! 
! Reading 25672 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 J0121+1149_X_1998_10_01_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 2242 telescope corrections were flagged in sub-array 1.
!  A total of 3720 telescope corrections were flagged in sub-array 2.
!  A total of 380 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 2242 telescope corrections were flagged in sub-array 1.
!  A total of 3720 telescope corrections were flagged in sub-array 2.
!  A total of 380 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 2242 telescope corrections were flagged in sub-array 1.
!  A total of 3720 telescope corrections were flagged in sub-array 2.
!  A total of 380 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 2242 telescope corrections were flagged in sub-array 1.
!  A total of 3720 telescope corrections were flagged in sub-array 2.
!  A total of 380 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.803973Jy  sigma=0.006948
! Fit after  self-cal, rms=0.395586Jy  sigma=0.002923
! 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 0.242% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
! Estimated beam: bmin=0.5743 mas, bmaj=1.331 mas, bpa=-7.054 degrees
! Estimated noise=1047.99 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.698791 Jy
! Component: 100  -  total flux cleaned = 0.878149 Jy
! Total flux subtracted in 100 components = 0.878149 Jy
! Clean residual min=-0.023305 max=0.080313 Jy/beam
! Clean residual mean=0.000399 rms=0.009780 Jy/beam
! Combined flux in latest and established models = 0.878149 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 0.878149 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.389367Jy  sigma=0.003003
! Fit after  self-cal, rms=0.389146Jy  sigma=0.003002
! Inverting map 
! Your choice of large map pixels excluded 0.242% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0933547 Jy
! Component: 100  -  total flux cleaned = 0.145712 Jy
! Total flux subtracted in 100 components = 0.145712 Jy
! Clean residual min=-0.017957 max=0.027826 Jy/beam
! Clean residual mean=0.000221 rms=0.005710 Jy/beam
! Combined flux in latest and established models = 1.02386 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 14 components and 1.02386 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.365077Jy  sigma=0.002679
! Fit after  self-cal, rms=0.364761Jy  sigma=0.002676
! Inverting map 
! Your choice of large map pixels excluded 0.242% of the data.
!  The x-axis pixel size should ideally be below 0.1913 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 0.242% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
! Estimated beam: bmin=0.7568 mas, bmaj=1.648 mas, bpa=-7.648 degrees
! Estimated noise=526.806 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0.2, 1.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0354801 Jy
! Component: 100  -  total flux cleaned = 0.0461356 Jy
! Component: 150  -  total flux cleaned = 0.0487473 Jy
! Component: 200  -  total flux cleaned = 0.0495626 Jy
! Total flux subtracted in 200 components = 0.0495626 Jy
! Clean residual min=-0.012757 max=0.013045 Jy/beam
! Clean residual mean=0.000033 rms=0.003954 Jy/beam
! Combined flux in latest and established models = 1.07342 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 28 components and 1.07342 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.362004Jy  sigma=0.002630
! Fit after  self-cal, rms=0.361889Jy  sigma=0.002629
! Inverting map 
! Your choice of large map pixels excluded 0.242% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.98     GC        1.01     HN        0.93     
!   KK        0.99     KP        0.95     LA        0.96     MK        1.00     
!   NL        0.97     NY        1.00*    ON        1.00*    OV        0.99     
!   PT        0.99     SC        1.02     WF        0.99     MC        1.00*    
!   GN        0.97     
! 
!  A total of 84 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.05     GC        1.05     HN        0.97     
!   KK        1.00*    KP        1.00*    LA        1.09     MK        1.00*    
!   NL        1.03     NY        0.99     ON        0.93     OV        1.00*    
!   PT        1.07     SC        0.98     WF        1.04     MC        1.00     
!   GN        1.04     
! 
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WF        0.00*    MC        0.00*    
!   GN        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.00     GC        1.02     HN        0.96     
!   KK        1.01     KP        0.96     LA        0.92     MK        1.06     
!   NL        0.99     NY        1.00*    ON        1.00*    OV        0.97     
!   PT        0.99     SC        1.02     WF        1.02     MC        1.00*    
!   GN        0.97     
! 
!  A total of 84 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.08     GC        1.09     HN        1.02     
!   KK        1.00*    KP        1.00*    LA        1.04     MK        1.00*    
!   NL        1.03     NY        1.01     ON        0.94     OV        1.00*    
!   PT        1.08     SC        0.97     WF        1.03     MC        0.99     
!   GN        1.00     
! 
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WF        0.00*    MC        0.00*    
!   GN        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.98     GC        1.02     HN        0.92     
!   KK        1.00     KP        0.98     LA        0.90     MK        1.01     
!   NL        0.97     NY        1.00*    ON        1.00*    OV        0.93     
!   PT        1.00     SC        1.04     WF        1.02     MC        1.00*    
!   GN        0.96     
! 
!  A total of 84 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.08     GC        1.10     HN        0.96     
!   KK        1.00*    KP        1.00*    LA        1.04     MK        1.00*    
!   NL        1.01     NY        1.00     ON        0.96     OV        1.00*    
!   PT        1.05     SC        1.00     WF        1.04     MC        1.04     
!   GN        1.04     
! 
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WF        0.00*    MC        0.00*    
!   GN        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.94     GC        1.02     HN        0.98     
!   KK        1.01     KP        0.96     LA        0.93     MK        1.06     
!   NL        1.00     NY        1.00*    ON        1.00*    OV        0.95     
!   PT        0.96     SC        1.02     WF        1.03     MC        1.00*    
!   GN        0.97     
! 
!  A total of 84 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.03     GC        1.12     HN        1.01     
!   KK        1.00*    KP        1.00*    LA        1.06     MK        1.00*    
!   NL        1.04     NY        1.01     ON        1.00     OV        1.00*    
!   PT        1.02     SC        0.96     WF        1.02     MC        1.00     
!   GN        1.02     
! 
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WF        0.00*    MC        0.00*    
!   GN        0.00*    
! 
! 
! Fit before self-cal, rms=0.361889Jy  sigma=0.002629
! Fit after  self-cal, rms=0.358092Jy  sigma=0.002565
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.248% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
! Estimated beam: bmin=0.7585 mas, bmaj=1.674 mas, bpa=-7.507 degrees
! Estimated noise=528.63 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.00972968 Jy
! Component: 100  -  total flux cleaned = 0.0100962 Jy
! Component: 150  -  total flux cleaned = 0.0100953 Jy
! Component: 200  -  total flux cleaned = 0.00982848 Jy
! Total flux subtracted in 200 components = 0.00982848 Jy
! Clean residual min=-0.007253 max=0.007140 Jy/beam
! Clean residual mean=0.000249 rms=0.001895 Jy/beam
! Combined flux in latest and established models = 1.08325 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 42 components and 1.08325 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.357839Jy  sigma=0.002562
! Fit after  self-cal, rms=0.357851Jy  sigma=0.002561
! Inverting map 
! Your choice of large map pixels excluded 0.248% of the data.
!  The x-axis pixel size should ideally be below 0.1913 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.357851Jy  sigma=0.002561
! Fit after  self-cal, rms=0.356881Jy  sigma=0.002552
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.248% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
! Estimated beam: bmin=0.7576 mas, bmaj=1.671 mas, bpa=-7.392 degrees
! Estimated noise=529.215 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00579256 Jy
! Component: 100  -  total flux cleaned = 0.00701483 Jy
! Component: 150  -  total flux cleaned = 0.00690571 Jy
! Component: 200  -  total flux cleaned = 0.00699385 Jy
! Total flux subtracted in 200 components = 0.00699385 Jy
! Clean residual min=-0.006623 max=0.005865 Jy/beam
! Clean residual mean=0.000165 rms=0.001608 Jy/beam
! Combined flux in latest and established models = 1.09025 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 52 components and 1.09025 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356778Jy  sigma=0.002551
! Fit after  self-cal, rms=0.356837Jy  sigma=0.002550
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.248% of the data.
!  The x-axis pixel size should ideally be below 0.1913 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.00038988 Jy
! Component: 100  -  total flux cleaned = 0.00048921 Jy
! Component: 150  -  total flux cleaned = 0.000410547 Jy
! Component: 200  -  total flux cleaned = 0.000340721 Jy
! Total flux subtracted in 200 components = 0.000340721 Jy
! Clean residual min=-0.006658 max=0.005646 Jy/beam
! Clean residual mean=0.000152 rms=0.001592 Jy/beam
! Combined flux in latest and established models = 1.09059 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 60 components and 1.09059 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356791Jy  sigma=0.002550
! Fit after  self-cal, rms=0.356774Jy  sigma=0.002550
! Inverting map 
! Your choice of large map pixels excluded 0.248% of the data.
!  The x-axis pixel size should ideally be below 0.1913 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.356774Jy  sigma=0.002550
! Fit after  self-cal, rms=0.356582Jy  sigma=0.002547
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.248% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
! Estimated beam: bmin=0.757 mas, bmaj=1.669 mas, bpa=-7.374 degrees
! Estimated noise=529.278 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00353071 Jy
! Component: 100  -  total flux cleaned = 0.00447921 Jy
! Component: 150  -  total flux cleaned = 0.00485694 Jy
! Component: 200  -  total flux cleaned = 0.0050609 Jy
! Total flux subtracted in 200 components = 0.0050609 Jy
! Clean residual min=-0.004690 max=0.005208 Jy/beam
! Clean residual mean=0.000292 rms=0.001381 Jy/beam
! Combined flux in latest and established models = 1.09565 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 69 components and 1.09565 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356533Jy  sigma=0.002546
! Fit after  self-cal, rms=0.356668Jy  sigma=0.002546
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.248% of the data.
!  The x-axis pixel size should ideally be below 0.1913 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.00034434 Jy
! Component: 100  -  total flux cleaned = 0.000409267 Jy
! Component: 150  -  total flux cleaned = 0.000522066 Jy
! Component: 200  -  total flux cleaned = 0.000573183 Jy
! Total flux subtracted in 200 components = 0.000573183 Jy
! Clean residual min=-0.004696 max=0.005128 Jy/beam
! Clean residual mean=0.000265 rms=0.001374 Jy/beam
! Combined flux in latest and established models = 1.09622 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 70 components and 1.09622 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356646Jy  sigma=0.002546
! Fit after  self-cal, rms=0.356634Jy  sigma=0.002546
! Inverting map 
! Your choice of large map pixels excluded 0.248% of the data.
!  The x-axis pixel size should ideally be below 0.1913 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.356634Jy  sigma=0.002546
! Fit after  self-cal, rms=0.357007Jy  sigma=0.002546
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.248% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
! Estimated beam: bmin=2.248 mas, bmaj=2.812 mas, bpa=0.4479 degrees
! Estimated noise=696.788 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00251902 Jy
! Component: 100  -  total flux cleaned = 0.0027315 Jy
! Component: 150  -  total flux cleaned = 0.00289596 Jy
! Component: 200  -  total flux cleaned = 0.00302738 Jy
! Total flux subtracted in 200 components = 0.00302738 Jy
! Clean residual min=-0.004919 max=0.006427 Jy/beam
! Clean residual mean=0.000670 rms=0.001959 Jy/beam
! Combined flux in latest and established models = 1.09925 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 82 components and 1.09925 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356990Jy  sigma=0.002546
! Fit after  self-cal, rms=0.357025Jy  sigma=0.002546
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.248% of the data.
!  The x-axis pixel size should ideally be below 0.1913 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.00019319 Jy
! Component: 100  -  total flux cleaned = 0.000125849 Jy
! Component: 150  -  total flux cleaned = 0.000126977 Jy
! Component: 200  -  total flux cleaned = 0.000127088 Jy
! Total flux subtracted in 200 components = 0.000127088 Jy
! Clean residual min=-0.004970 max=0.006324 Jy/beam
! Clean residual mean=0.000655 rms=0.001951 Jy/beam
! Combined flux in latest and established models = 1.09937 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 87 components and 1.09937 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.357020Jy  sigma=0.002546
! Fit after  self-cal, rms=0.357017Jy  sigma=0.002546
! Inverting map 
! Your choice of large map pixels excluded 0.248% of the data.
!  The x-axis pixel size should ideally be below 0.1913 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 0.248% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
! Estimated beam: bmin=0.7565 mas, bmaj=1.668 mas, bpa=-7.341 degrees
! Estimated noise=529.53 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7565 x 1.668 at -7.341 degrees (North through East)
! Clean map  min=-0.0045234  max=0.93392 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.357017Jy  sigma=0.002546
! Fit after  self-cal, rms=0.461092Jy  sigma=0.002330
! Inverting map and beam 
! Your choice of large map pixels excluded 0.248% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
! Estimated beam: bmin=0.7552 mas, bmaj=1.667 mas, bpa=-7.322 degrees
! Estimated noise=529.776 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00313462 Jy
! Component: 100  -  total flux cleaned = 0.00413073 Jy
! Component: 150  -  total flux cleaned = 0.00420036 Jy
! Component: 200  -  total flux cleaned = 0.00426303 Jy
! Total flux subtracted in 200 components = 0.00426303 Jy
! Clean residual min=-0.004028 max=0.004605 Jy/beam
! Clean residual mean=0.000226 rms=0.001291 Jy/beam
! Combined flux in latest and established models = 1.10364 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 91 components and 1.10364 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.461031Jy  sigma=0.002330
! Fit after  self-cal, rms=0.460994Jy  sigma=0.002330
! Inverting map 
! Your choice of large map pixels excluded 0.248% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000487305 Jy
! Component: 100  -  total flux cleaned = 0.000433638 Jy
! Component: 150  -  total flux cleaned = 0.000435137 Jy
! Component: 200  -  total flux cleaned = 0.000436476 Jy
! Total flux subtracted in 200 components = 0.000436476 Jy
! Clean residual min=-0.003919 max=0.004551 Jy/beam
! Clean residual mean=0.000217 rms=0.001284 Jy/beam
! Combined flux in latest and established models = 1.10407 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 94 components and 1.10407 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.460972Jy  sigma=0.002330
! Fit after  self-cal, rms=0.460942Jy  sigma=0.002330
! Inverting map 
! Your choice of large map pixels excluded 0.248% of the data.
!  The x-axis pixel size should ideally be below 0.1913 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.460942Jy  sigma=0.002330
! Fit after  self-cal, rms=0.566434Jy  sigma=0.002329
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 0.248% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
! Estimated beam: bmin=0.5746 mas, bmaj=1.367 mas, bpa=-6.067 degrees
! Estimated noise=1050.14 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.693335 Jy
! Component: 100  -  total flux cleaned = 0.869631 Jy
! Component: 150  -  total flux cleaned = 0.959331 Jy
! Component: 200  -  total flux cleaned = 1.0095 Jy
! Total flux subtracted in 200 components = 1.0095 Jy
! Clean residual min=-0.011465 max=0.025390 Jy/beam
! Clean residual mean=0.000195 rms=0.003900 Jy/beam
! Combined flux in latest and established models = 1.0095 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 13 model components to the UV plane model.
! The established model now contains 13 components and 1.0095 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 0.248% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
! Estimated beam: bmin=0.7544 mas, bmaj=1.667 mas, bpa=-7.278 degrees
! Estimated noise=530.199 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.0458823 Jy
! Component: 100  -  total flux cleaned = 0.0687384 Jy
! Component: 150  -  total flux cleaned = 0.0812899 Jy
! Component: 200  -  total flux cleaned = 0.0884738 Jy
! Total flux subtracted in 200 components = 0.0884738 Jy
! Clean residual min=-0.004172 max=0.005371 Jy/beam
! Clean residual mean=0.000427 rms=0.001388 Jy/beam
! Combined flux in latest and established models = 1.09798 Jy
! Adding 30 model components to the UV plane model.
! The established model now contains 38 components and 1.09798 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.248% of the data.
!  The x-axis pixel size should ideally be below 0.1913 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 0.248% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
! Estimated beam: bmin=2.246 mas, bmaj=2.811 mas, bpa=0.6301 degrees
! Estimated noise=699.901 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00603372 Jy
! Component: 100  -  total flux cleaned = 0.00761372 Jy
! Component: 150  -  total flux cleaned = 0.00789875 Jy
! Component: 200  -  total flux cleaned = 0.0081691 Jy
! Total flux subtracted in 200 components = 0.0081691 Jy
! Clean residual min=-0.004371 max=0.006395 Jy/beam
! Clean residual mean=0.000589 rms=0.001841 Jy/beam
! Combined flux in latest and established models = 1.10615 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.000166528 Jy
! Component: 100  -  total flux cleaned = 0.000299246 Jy
! Component: 150  -  total flux cleaned = 0.000383277 Jy
! Component: 200  -  total flux cleaned = 0.00048045 Jy
! Total flux subtracted in 200 components = 0.00048045 Jy
! Clean residual min=-0.004398 max=0.006413 Jy/beam
! Clean residual mean=0.000562 rms=0.001843 Jy/beam
! Combined flux in latest and established models = 1.10663 Jy
! Adding 42 model components to the UV plane model.
! The established model now contains 70 components and 1.10663 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.248% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 0.248% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
! Estimated beam: bmin=0.7544 mas, bmaj=1.667 mas, bpa=-7.278 degrees
! Estimated noise=530.199 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000570394 Jy
! Component: 100  -  total flux cleaned = 0.000440409 Jy
! Component: 150  -  total flux cleaned = 0.000440091 Jy
! Component: 200  -  total flux cleaned = 0.000490747 Jy
! Total flux subtracted in 200 components = 0.000490747 Jy
! Clean residual min=-0.004273 max=0.004614 Jy/beam
! Clean residual mean=0.000217 rms=0.001299 Jy/beam
! Combined flux in latest and established models = 1.10712 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 79 components and 1.10712 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.566404Jy  sigma=0.002330
! Fit after  self-cal, rms=0.566363Jy  sigma=0.002330
wmodel J0121+1149_X_1998_10_01_pus_map.mod
! Writing 79 model components to file: J0121+1149_X_1998_10_01_pus_map.mod
wobs J0121+1149_X_1998_10_01_pus_uvs.fits
! Writing UV FITS file: J0121+1149_X_1998_10_01_pus_uvs.fits
wwins J0121+1149_X_1998_10_01_pus_map.win
! wwins: Wrote 2 windows to J0121+1149_X_1998_10_01_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 0.248% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00123715 Jy
! Component: 100  -  total flux cleaned = 0.0021454 Jy
! Component: 150  -  total flux cleaned = 0.00287035 Jy
! Component: 200  -  total flux cleaned = 0.00328859 Jy
! Component: 250  -  total flux cleaned = 0.00369421 Jy
! Component: 300  -  total flux cleaned = 0.00402408 Jy
! Component: 350  -  total flux cleaned = 0.00453654 Jy
! Component: 400  -  total flux cleaned = 0.0050363 Jy
! Component: 450  -  total flux cleaned = 0.00540274 Jy
! Component: 500  -  total flux cleaned = 0.00581998 Jy
! Component: 550  -  total flux cleaned = 0.00611166 Jy
! Component: 600  -  total flux cleaned = 0.00639767 Jy
! Component: 650  -  total flux cleaned = 0.00667803 Jy
! Component: 700  -  total flux cleaned = 0.00695253 Jy
! Component: 750  -  total flux cleaned = 0.00722135 Jy
! Component: 800  -  total flux cleaned = 0.00737922 Jy
! Component: 850  -  total flux cleaned = 0.00758674 Jy
! Component: 900  -  total flux cleaned = 0.00784151 Jy
! Component: 950  -  total flux cleaned = 0.008092 Jy
! Component: 1000  -  total flux cleaned = 0.0083876 Jy
! Total flux subtracted in 1024 components = 0.00843644 Jy
! Clean residual min=-0.002431 max=0.003133 Jy/beam
! Clean residual mean=0.000102 rms=0.000965 Jy/beam
! Combined flux in latest and established models = 1.11555 Jy
keep
! Adding 63 model components to the UV plane model.
! The established model now contains 142 components and 1.11555 Jy
![Exited script file: muppet]
wmap "J0121+1149_X_1998_10_01_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 0.248% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7544 x 1.667 at -7.278 degrees (North through East)
! Clean map  min=-0.0037177  max=0.93347 Jy/beam
! Writing clean map to FITS file: J0121+1149_X_1998_10_01_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.933474 
invert
! Inverting map 
! Your choice of large map pixels excluded 0.248% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000960094 
device "J0121+1149_X_1998_10_01_pus\_map.eps/VPS"
! Attempting to open device: 'J0121+1149_X_1998_10_01_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.308555 0.308555 0.61711 1.23422 2.46844 4.93688 9.87376 19.7475 39.4951 78.9901
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0028 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.933 
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.7544 x 1.667 at -7.278 degrees (North through East)
! Clean map  min=-0.0037177  max=0.93347 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0121+1149_X_1998_10_01_pus\_map.gif/vgif"
! Attempting to open device: 'J0121+1149_X_1998_10_01_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0121+1149_X_1998_10_01_pus_uvs.log closed on Wed Feb  6 12:21:17 2008