! Started logfile: J0204+1514_X_1998_10_01_pus_uvs.log on Wed Feb  6 12:21:54 2008
obs J0204+1514_X_1998_10_01_pus_uva.fits
! Reading UV FITS file: J0204+1514_X_1998_10_01_pus_uva.fits
! AN table 1: 158 integrations on 136 of 136 possible baselines.
! AN table 2: 31 integrations on 136 of 136 possible baselines.
! AN table 3: 18 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.276463 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0204+1514
! 
! 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 31132 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 J0204+1514_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 1388 telescope corrections were flagged in sub-array 1.
!  A total of 470 telescope corrections were flagged in sub-array 2.
!  A total of 306 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1388 telescope corrections were flagged in sub-array 1.
!  A total of 470 telescope corrections were flagged in sub-array 2.
!  A total of 306 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1387 telescope corrections were flagged in sub-array 1.
!  A total of 470 telescope corrections were flagged in sub-array 2.
!  A total of 306 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1387 telescope corrections were flagged in sub-array 1.
!  A total of 470 telescope corrections were flagged in sub-array 2.
!  A total of 306 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.694128Jy  sigma=0.006066
! Fit after  self-cal, rms=0.614048Jy  sigma=0.005241
! 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 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.161 milli-arcsec
! Estimated beam: bmin=0.5886 mas, bmaj=1.164 mas, bpa=-9.1 degrees
! Estimated noise=796.725 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.901375 Jy
! Component: 100  -  total flux cleaned = 1.19182 Jy
! Total flux subtracted in 100 components = 1.19182 Jy
! Clean residual min=-0.028162 max=0.132904 Jy/beam
! Clean residual mean=0.001961 rms=0.011157 Jy/beam
! Combined flux in latest and established models = 1.19182 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 1.19182 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.533418Jy  sigma=0.004077
! Fit after  self-cal, rms=0.532107Jy  sigma=0.004073
! Inverting map 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.161 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.149198 Jy
! Component: 100  -  total flux cleaned = 0.231488 Jy
! Total flux subtracted in 100 components = 0.231487 Jy
! Clean residual min=-0.020936 max=0.043025 Jy/beam
! Clean residual mean=0.001251 rms=0.006437 Jy/beam
! Combined flux in latest and established models = 1.42331 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 16 components and 1.42331 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.475079Jy  sigma=0.003063
! Fit after  self-cal, rms=0.474442Jy  sigma=0.003062
! Inverting map 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.161 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0538669 Jy
! Component: 100  -  total flux cleaned = 0.0896807 Jy
! Total flux subtracted in 100 components = 0.0896807 Jy
! Clean residual min=-0.017344 max=0.039504 Jy/beam
! Clean residual mean=0.000975 rms=0.005416 Jy/beam
! Combined flux in latest and established models = 1.51299 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 21 components and 1.51299 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.465162Jy  sigma=0.002859
! Fit after  self-cal, rms=0.464914Jy  sigma=0.002858
! Inverting map 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.161 milli-arcsec
! Added new window around map position (-4.2, 2.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0373488 Jy
! Component: 100  -  total flux cleaned = 0.0623818 Jy
! Total flux subtracted in 100 components = 0.0623818 Jy
! Clean residual min=-0.015046 max=0.025213 Jy/beam
! Clean residual mean=0.000814 rms=0.004791 Jy/beam
! Combined flux in latest and established models = 1.57537 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 30 components and 1.57537 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.460263Jy  sigma=0.002753
! Fit after  self-cal, rms=0.460160Jy  sigma=0.002752
! Inverting map 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.161 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 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.161 milli-arcsec
! Estimated beam: bmin=0.7629 mas, bmaj=1.471 mas, bpa=-9.409 degrees
! Estimated noise=423.312 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.0438609 Jy
! Component: 100  -  total flux cleaned = 0.0749722 Jy
! Component: 150  -  total flux cleaned = 0.0981868 Jy
! Component: 200  -  total flux cleaned = 0.115695 Jy
! Total flux subtracted in 200 components = 0.115695 Jy
! Clean residual min=-0.011312 max=0.031636 Jy/beam
! Clean residual mean=0.001590 rms=0.005470 Jy/beam
! Combined flux in latest and established models = 1.69106 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 43 components and 1.69106 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.455997Jy  sigma=0.002637
! Fit after  self-cal, rms=0.455585Jy  sigma=0.002635
! Inverting map 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.161 milli-arcsec
! Added new window around map position (-3.2, 3.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.030298 Jy
! Component: 100  -  total flux cleaned = 0.0483028 Jy
! Component: 150  -  total flux cleaned = 0.0613945 Jy
! Component: 200  -  total flux cleaned = 0.0719795 Jy
! Total flux subtracted in 200 components = 0.0719795 Jy
! Clean residual min=-0.010691 max=0.028100 Jy/beam
! Clean residual mean=0.000865 rms=0.003882 Jy/beam
! Combined flux in latest and established models = 1.76304 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 63 components and 1.76304 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.453693Jy  sigma=0.002586
! Fit after  self-cal, rms=0.453466Jy  sigma=0.002584
! Inverting map 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.161 milli-arcsec
! Added new window around map position (-1, 0.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0237427 Jy
! Component: 100  -  total flux cleaned = 0.033074 Jy
! Component: 150  -  total flux cleaned = 0.0381695 Jy
! Component: 200  -  total flux cleaned = 0.0411997 Jy
! Total flux subtracted in 200 components = 0.0411997 Jy
! Clean residual min=-0.009211 max=0.014406 Jy/beam
! Clean residual mean=0.000492 rms=0.003090 Jy/beam
! Combined flux in latest and established models = 1.80424 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 87 components and 1.80424 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.452154Jy  sigma=0.002559
! Fit after  self-cal, rms=0.451966Jy  sigma=0.002556
! Inverting map 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.161 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        1.01     GC        1.01     HN        0.97     
!   KK        1.06     KP        0.97     LA        0.99     MK        0.99     
!   NL        1.00     NY        1.05     ON        1.01     OV        1.02     
!   PT        1.01     SC        0.99     WF        1.02     MC        1.12     
!   GN        0.99     
! 
!  A total of 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   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*    
! 
!  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 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.02     GC        1.04     HN        1.02     
!   KK        1.06     KP        0.99     LA        0.95     MK        0.99     
!   NL        1.02     NY        1.06     ON        1.00     OV        1.02     
!   PT        1.01     SC        0.97     WF        1.03     MC        1.08     
!   GN        1.00     
! 
!  A total of 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   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*    
! 
!  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 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.99     GC        1.06     HN        0.97     
!   KK        1.06     KP        1.02     LA        0.95     MK        1.04     
!   NL        1.00     NY        1.03     ON        1.02     OV        0.98     
!   PT        1.02     SC        1.01     WF        1.04     MC        1.18     
!   GN        1.00     
! 
!  A total of 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   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*    
! 
!  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 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.98     GC        1.04     HN        1.02     
!   KK        1.05     KP        1.00     LA        0.97     MK        1.00     
!   NL        1.01     NY        1.06     ON        1.01     OV        1.01     
!   PT        0.98     SC        0.98     WF        1.03     MC        1.12     
!   GN        1.00     
! 
!  A total of 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   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*    
! 
!  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.451966Jy  sigma=0.002556
! Fit after  self-cal, rms=0.490367Jy  sigma=0.002501
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.161 milli-arcsec
! Estimated beam: bmin=0.773 mas, bmaj=1.476 mas, bpa=-8.924 degrees
! Estimated noise=426.843 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.00922836 Jy
! Component: 100  -  total flux cleaned = -0.00804945 Jy
! Component: 150  -  total flux cleaned = -0.00622006 Jy
! Component: 200  -  total flux cleaned = -0.00438211 Jy
! Total flux subtracted in 200 components = -0.00438211 Jy
! Clean residual min=-0.007999 max=0.010107 Jy/beam
! Clean residual mean=0.000304 rms=0.002227 Jy/beam
! Combined flux in latest and established models = 1.79986 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 98 components and 1.79986 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.489928Jy  sigma=0.002494
! Fit after  self-cal, rms=0.490065Jy  sigma=0.002494
! Inverting map 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.161 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.490065Jy  sigma=0.002494
! Fit after  self-cal, rms=0.443950Jy  sigma=0.002445
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.161 milli-arcsec
! Estimated beam: bmin=0.7713 mas, bmaj=1.48 mas, bpa=-8.954 degrees
! Estimated noise=425.992 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00200084 Jy
! Component: 100  -  total flux cleaned = 0.00338824 Jy
! Component: 150  -  total flux cleaned = 0.00398851 Jy
! Component: 200  -  total flux cleaned = 0.00453589 Jy
! Total flux subtracted in 200 components = 0.00453589 Jy
! Clean residual min=-0.006865 max=0.006217 Jy/beam
! Clean residual mean=0.000106 rms=0.001377 Jy/beam
! Combined flux in latest and established models = 1.8044 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 111 components and 1.8044 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.443754Jy  sigma=0.002442
! Fit after  self-cal, rms=0.443794Jy  sigma=0.002441
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.161 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.00107156 Jy
! Component: 100  -  total flux cleaned = 0.00167139 Jy
! Component: 150  -  total flux cleaned = 0.00195057 Jy
! Component: 200  -  total flux cleaned = 0.00221343 Jy
! Total flux subtracted in 200 components = 0.00221343 Jy
! Clean residual min=-0.007001 max=0.005869 Jy/beam
! Clean residual mean=0.000083 rms=0.001320 Jy/beam
! Combined flux in latest and established models = 1.80661 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 118 components and 1.80661 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.443694Jy  sigma=0.002440
! Fit after  self-cal, rms=0.443717Jy  sigma=0.002440
! Inverting map 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.161 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.443717Jy  sigma=0.002440
! Fit after  self-cal, rms=0.443843Jy  sigma=0.002439
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.161 milli-arcsec
! Estimated beam: bmin=0.7719 mas, bmaj=1.48 mas, bpa=-8.898 degrees
! Estimated noise=425.572 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00111944 Jy
! Component: 100  -  total flux cleaned = -0.00043617 Jy
! Component: 150  -  total flux cleaned = -6.16715e-05 Jy
! Component: 200  -  total flux cleaned = 0.000171804 Jy
! Total flux subtracted in 200 components = 0.000171804 Jy
! Clean residual min=-0.006673 max=0.005523 Jy/beam
! Clean residual mean=0.000093 rms=0.001290 Jy/beam
! Combined flux in latest and established models = 1.80678 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 122 components and 1.80678 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.443762Jy  sigma=0.002438
! Fit after  self-cal, rms=0.443790Jy  sigma=0.002438
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.161 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.000482923 Jy
! Component: 100  -  total flux cleaned = 0.000708087 Jy
! Component: 150  -  total flux cleaned = 0.00102198 Jy
! Component: 200  -  total flux cleaned = 0.00122242 Jy
! Total flux subtracted in 200 components = 0.00122242 Jy
! Clean residual min=-0.006489 max=0.005348 Jy/beam
! Clean residual mean=0.000080 rms=0.001262 Jy/beam
! Combined flux in latest and established models = 1.80801 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 127 components and 1.808 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.443737Jy  sigma=0.002438
! Fit after  self-cal, rms=0.443743Jy  sigma=0.002438
! Inverting map 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.161 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.443743Jy  sigma=0.002438
! Fit after  self-cal, rms=0.445530Jy  sigma=0.002437
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.161 milli-arcsec
! Estimated beam: bmin=2.032 mas, bmaj=2.729 mas, bpa=-5.457 degrees
! Estimated noise=548.108 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00219272 Jy
! Component: 100  -  total flux cleaned = 0.00347207 Jy
! Component: 150  -  total flux cleaned = 0.00426587 Jy
! Component: 200  -  total flux cleaned = 0.00440234 Jy
! Total flux subtracted in 200 components = 0.00440234 Jy
! Clean residual min=-0.003788 max=0.004900 Jy/beam
! Clean residual mean=0.000105 rms=0.001468 Jy/beam
! Combined flux in latest and established models = 1.81241 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 138 components and 1.81241 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.445529Jy  sigma=0.002437
! Fit after  self-cal, rms=0.445520Jy  sigma=0.002437
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.161 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 = 7.31924e-05 Jy
! Component: 100  -  total flux cleaned = 0.000202899 Jy
! Component: 150  -  total flux cleaned = 0.000312026 Jy
! Component: 200  -  total flux cleaned = 0.000359952 Jy
! Total flux subtracted in 200 components = 0.000359952 Jy
! Clean residual min=-0.003809 max=0.004643 Jy/beam
! Clean residual mean=0.000099 rms=0.001435 Jy/beam
! Combined flux in latest and established models = 1.81277 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 140 components and 1.81277 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.445532Jy  sigma=0.002437
! Fit after  self-cal, rms=0.445522Jy  sigma=0.002437
! Inverting map 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.161 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 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.161 milli-arcsec
! Estimated beam: bmin=0.7726 mas, bmaj=1.48 mas, bpa=-8.866 degrees
! Estimated noise=425.424 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7726 x 1.48 at -8.866 degrees (North through East)
! Clean map  min=-0.003457  max=1.2782 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.445522Jy  sigma=0.002437
! Fit after  self-cal, rms=0.335432Jy  sigma=0.002324
! Inverting map and beam 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.161 milli-arcsec
! Estimated beam: bmin=0.7726 mas, bmaj=1.482 mas, bpa=-8.906 degrees
! Estimated noise=424.854 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00248148 Jy
! Component: 100  -  total flux cleaned = -0.00330185 Jy
! Component: 150  -  total flux cleaned = -0.00350846 Jy
! Component: 200  -  total flux cleaned = -0.00369401 Jy
! Total flux subtracted in 200 components = -0.00369401 Jy
! Clean residual min=-0.006348 max=0.004630 Jy/beam
! Clean residual mean=0.000027 rms=0.001195 Jy/beam
! Combined flux in latest and established models = 1.80907 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 151 components and 1.80907 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.335349Jy  sigma=0.002324
! Fit after  self-cal, rms=0.335360Jy  sigma=0.002324
! Inverting map 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.161 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 9.39321e-06 Jy
! Component: 100  -  total flux cleaned = -7.71936e-05 Jy
! Component: 150  -  total flux cleaned = -0.000245577 Jy
! Component: 200  -  total flux cleaned = -0.000326527 Jy
! Total flux subtracted in 200 components = -0.000326527 Jy
! Clean residual min=-0.006150 max=0.004548 Jy/beam
! Clean residual mean=0.000030 rms=0.001184 Jy/beam
! Combined flux in latest and established models = 1.80875 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 157 components and 1.80875 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.335320Jy  sigma=0.002323
! Fit after  self-cal, rms=0.335319Jy  sigma=0.002323
! Inverting map 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.161 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.335319Jy  sigma=0.002323
! Fit after  self-cal, rms=0.336007Jy  sigma=0.002323
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 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.161 milli-arcsec
! Estimated beam: bmin=0.5936 mas, bmaj=1.168 mas, bpa=-8.544 degrees
! Estimated noise=810.602 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.911701 Jy
! Component: 100  -  total flux cleaned = 1.20391 Jy
! Component: 150  -  total flux cleaned = 1.3507 Jy
! Component: 200  -  total flux cleaned = 1.4283 Jy
! Total flux subtracted in 200 components = 1.4283 Jy
! Clean residual min=-0.013567 max=0.039244 Jy/beam
! Clean residual mean=0.001107 rms=0.005219 Jy/beam
! Combined flux in latest and established models = 1.4283 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 14 model components to the UV plane model.
! The established model now contains 14 components and 1.4283 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.161 milli-arcsec
! Estimated beam: bmin=0.7731 mas, bmaj=1.482 mas, bpa=-8.876 degrees
! Estimated noise=424.789 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.083151 Jy
! Component: 100  -  total flux cleaned = 0.140768 Jy
! Component: 150  -  total flux cleaned = 0.184201 Jy
! Component: 200  -  total flux cleaned = 0.218228 Jy
! Total flux subtracted in 200 components = 0.218228 Jy
! Clean residual min=-0.008895 max=0.020139 Jy/beam
! Clean residual mean=0.001618 rms=0.005056 Jy/beam
! Combined flux in latest and established models = 1.64652 Jy
! Adding 54 model components to the UV plane model.
! The established model now contains 60 components and 1.64652 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.161 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 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.161 milli-arcsec
! Estimated beam: bmin=2.032 mas, bmaj=2.731 mas, bpa=-5.468 degrees
! Estimated noise=546.622 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0566729 Jy
! Component: 100  -  total flux cleaned = 0.0909485 Jy
! Component: 150  -  total flux cleaned = 0.113206 Jy
! Component: 200  -  total flux cleaned = 0.128186 Jy
! Total flux subtracted in 200 components = 0.128186 Jy
! Clean residual min=-0.005743 max=0.010426 Jy/beam
! Clean residual mean=0.000993 rms=0.003231 Jy/beam
! Combined flux in latest and established models = 1.77471 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.010395 Jy
! Component: 100  -  total flux cleaned = 0.0177452 Jy
! Component: 150  -  total flux cleaned = 0.0230118 Jy
! Component: 200  -  total flux cleaned = 0.0268201 Jy
! Total flux subtracted in 200 components = 0.0268201 Jy
! Clean residual min=-0.004254 max=0.005292 Jy/beam
! Clean residual mean=0.000247 rms=0.001726 Jy/beam
! Combined flux in latest and established models = 1.80153 Jy
! Adding 123 model components to the UV plane model.
! The established model now contains 164 components and 1.80153 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.161 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.161 milli-arcsec
! Estimated beam: bmin=0.7731 mas, bmaj=1.482 mas, bpa=-8.876 degrees
! Estimated noise=424.789 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00211847 Jy
! Component: 100  -  total flux cleaned = -0.00116444 Jy
! Component: 150  -  total flux cleaned = -0.000750316 Jy
! Component: 200  -  total flux cleaned = -0.000375006 Jy
! Total flux subtracted in 200 components = -0.000375006 Jy
! Clean residual min=-0.004048 max=0.005205 Jy/beam
! Clean residual mean=0.000087 rms=0.001293 Jy/beam
! Combined flux in latest and established models = 1.80116 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 172 components and 1.80116 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.336624Jy  sigma=0.002329
! Fit after  self-cal, rms=0.336503Jy  sigma=0.002328
wmodel J0204+1514_X_1998_10_01_pus_map.mod
! Writing 172 model components to file: J0204+1514_X_1998_10_01_pus_map.mod
wobs J0204+1514_X_1998_10_01_pus_uvs.fits
! Writing UV FITS file: J0204+1514_X_1998_10_01_pus_uvs.fits
wwins J0204+1514_X_1998_10_01_pus_map.win
! wwins: Wrote 4 windows to J0204+1514_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 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.161 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00222381 Jy
! Component: 100  -  total flux cleaned = 0.00349078 Jy
! Component: 150  -  total flux cleaned = 0.00431273 Jy
! Component: 200  -  total flux cleaned = 0.00509511 Jy
! Component: 250  -  total flux cleaned = 0.00536803 Jy
! Component: 300  -  total flux cleaned = 0.00543491 Jy
! Component: 350  -  total flux cleaned = 0.00556531 Jy
! Component: 400  -  total flux cleaned = 0.00575671 Jy
! Component: 450  -  total flux cleaned = 0.0058817 Jy
! Component: 500  -  total flux cleaned = 0.00606491 Jy
! Component: 550  -  total flux cleaned = 0.00618414 Jy
! Component: 600  -  total flux cleaned = 0.00630164 Jy
! Component: 650  -  total flux cleaned = 0.0064755 Jy
! Component: 700  -  total flux cleaned = 0.0065899 Jy
! Component: 750  -  total flux cleaned = 0.00670193 Jy
! Component: 800  -  total flux cleaned = 0.00659013 Jy
! Component: 850  -  total flux cleaned = 0.00659039 Jy
! Component: 900  -  total flux cleaned = 0.00659035 Jy
! Component: 950  -  total flux cleaned = 0.0064294 Jy
! Component: 1000  -  total flux cleaned = 0.00653602 Jy
! Total flux subtracted in 1024 components = 0.00648346 Jy
! Clean residual min=-0.002630 max=0.002631 Jy/beam
! Clean residual mean=-0.000026 rms=0.001053 Jy/beam
! Combined flux in latest and established models = 1.80764 Jy
keep
! Adding 76 model components to the UV plane model.
! The established model now contains 241 components and 1.80764 Jy
![Exited script file: muppet]
wmap "J0204+1514_X_1998_10_01_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.161 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7731 x 1.482 at -8.876 degrees (North through East)
! Clean map  min=-0.0038872  max=1.2813 Jy/beam
! Writing clean map to FITS file: J0204+1514_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 1.28126 
invert
! Inverting map 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.161 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00105306 
device "J0204+1514_X_1998_10_01_pus\_map.eps/VPS"
! Attempting to open device: 'J0204+1514_X_1998_10_01_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.246568 0.246568 0.493136 0.986273 1.97255 3.94509 7.89018 15.7804 31.5607 63.1214
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0031 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.281 
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.7731 x 1.482 at -8.876 degrees (North through East)
! Clean map  min=-0.0038872  max=1.2813 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0204+1514_X_1998_10_01_pus\_map.gif/vgif"
! Attempting to open device: 'J0204+1514_X_1998_10_01_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0204+1514_X_1998_10_01_pus_uvs.log closed on Wed Feb  6 12:22:04 2008