! Started logfile: J0433+2905_S_1999_05_10_pus_uvs.log on Mon Jan 21 17:27:24 2008
obs J0433+2905_S_1999_05_10_pus_uva.fits
! Reading UV FITS file: J0433+2905_S_1999_05_10_pus_uva.fits
! AN table 1: 90 integrations on 153 of 153 possible baselines.
! AN table 2: 196 integrations on 153 of 153 possible baselines.
! AN table 3: 64 integrations on 153 of 153 possible baselines.
! AN table 4: 63 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.35666 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0433+2905
! 
! 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  2.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1998 lines of history.
! 
! Reading 90148 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 = 512 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
![@muppet J0433+2905_S_1999_05_10_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 = 512x512 pixels with 0.500x0.500 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 715 telescope corrections were flagged in sub-array 1.
!  A total of 1455 telescope corrections were flagged in sub-array 2.
!  A total of 616 telescope corrections were flagged in sub-array 3.
!  A total of 619 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 715 telescope corrections were flagged in sub-array 1.
!  A total of 1455 telescope corrections were flagged in sub-array 2.
!  A total of 616 telescope corrections were flagged in sub-array 3.
!  A total of 619 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 715 telescope corrections were flagged in sub-array 1.
!  A total of 1455 telescope corrections were flagged in sub-array 2.
!  A total of 616 telescope corrections were flagged in sub-array 3.
!  A total of 619 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 805 telescope corrections were flagged in sub-array 1.
!  A total of 1538 telescope corrections were flagged in sub-array 2.
!  A total of 616 telescope corrections were flagged in sub-array 3.
!  A total of 619 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.841683Jy  sigma=0.005392
! Fit after  self-cal, rms=0.550797Jy  sigma=0.003575
! 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 
! Estimated beam: bmin=1.955 mas, bmaj=2.776 mas, bpa=13.67 degrees
! Estimated noise=750.506 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.394642 Jy
! Component: 100  -  total flux cleaned = 0.488165 Jy
! Total flux subtracted in 100 components = 0.488165 Jy
! Clean residual min=-0.011408 max=0.036120 Jy/beam
! Clean residual mean=0.000113 rms=0.003192 Jy/beam
! Combined flux in latest and established models = 0.488165 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.488165 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.287831Jy  sigma=0.001500
! Fit after  self-cal, rms=0.287833Jy  sigma=0.001500
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0403065 Jy
! Component: 100  -  total flux cleaned = 0.0645286 Jy
! Total flux subtracted in 100 components = 0.0645286 Jy
! Clean residual min=-0.009827 max=0.012724 Jy/beam
! Clean residual mean=0.000066 rms=0.002548 Jy/beam
! Combined flux in latest and established models = 0.552694 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 17 components and 0.552694 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.280025Jy  sigma=0.001393
! Fit after  self-cal, rms=0.279967Jy  sigma=0.001393
! Inverting map 
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 
! Estimated beam: bmin=2.412 mas, bmaj=3.487 mas, bpa=4.935 degrees
! Estimated noise=351.155 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.02788 Jy
! Component: 100  -  total flux cleaned = 0.0432424 Jy
! Component: 150  -  total flux cleaned = 0.0522998 Jy
! Component: 200  -  total flux cleaned = 0.0577109 Jy
! Total flux subtracted in 200 components = 0.0577109 Jy
! Clean residual min=-0.005861 max=0.009085 Jy/beam
! Clean residual mean=0.000289 rms=0.001585 Jy/beam
! Combined flux in latest and established models = 0.610405 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 37 components and 0.610405 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.277927Jy  sigma=0.001357
! Fit after  self-cal, rms=0.277912Jy  sigma=0.001357
! Inverting map 
! Added new window around map position (-1, 5.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00821038 Jy
! Component: 100  -  total flux cleaned = 0.0122639 Jy
! Component: 150  -  total flux cleaned = 0.0135053 Jy
! Component: 200  -  total flux cleaned = 0.0139681 Jy
! Total flux subtracted in 200 components = 0.0139681 Jy
! Clean residual min=-0.005839 max=0.007311 Jy/beam
! Clean residual mean=0.000143 rms=0.001455 Jy/beam
! Combined flux in latest and established models = 0.624373 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 56 components and 0.624373 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.277718Jy  sigma=0.001354
! Fit after  self-cal, rms=0.277695Jy  sigma=0.001354
! Inverting map 
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        1.07     FD        1.04     GC        1.00*    HH        1.02     
!   HN        1.04     KK        1.00*    KP        1.00*    LA        1.05     
!   MC        1.01     MK        1.00*    NL        1.01     NY        0.96     
!   ON        0.94     OV        1.00*    PT        1.00*    SC        1.07     
!   WF        1.01     WZ        1.00     
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.98     GC        1.03     HH        1.02     
!   HN        1.01     KK        0.99     KP        1.00     LA        0.99     
!   MC        1.07     MK        0.95     NL        0.98     NY        0.93     
!   ON        0.97     OV        1.00*    PT        1.01     SC        1.02     
!   WF        0.99     WZ        0.94     
! 
!  A total of 48 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.98     GC        1.00     HH        1.00*    
!   HN        1.00     KK        0.94     KP        0.99     LA        0.99     
!   MC        1.00*    MK        0.92     NL        0.99     NY        0.94     
!   ON        1.00*    OV        1.04     PT        1.01     SC        1.06     
!   WF        1.01     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.98     GC        1.00     HH        1.00*    
!   HN        1.00*    KK        0.96     KP        0.94     LA        1.00     
!   MC        1.00*    MK        0.93     NL        1.01     NY        0.91     
!   ON        1.00*    OV        1.01     PT        1.00     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        1.10     GC        1.00*    HH        1.01     
!   HN        1.04     KK        1.00*    KP        1.00*    LA        1.02     
!   MC        1.05     MK        1.00*    NL        1.02     NY        0.96     
!   ON        1.00     OV        1.00*    PT        1.00*    SC        1.11     
!   WF        0.99     WZ        0.99     
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.01     GC        1.03     HH        1.07     
!   HN        0.99     KK        0.97     KP        0.98     LA        0.94     
!   MC        1.23     MK        1.00     NL        0.95     NY        0.92     
!   ON        1.00     OV        1.00*    PT        0.98     SC        1.03     
!   WF        1.00     WZ        0.96     
! 
!  A total of 48 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.03     GC        0.99     HH        1.00*    
!   HN        1.01     KK        0.95     KP        1.00     LA        0.98     
!   MC        1.00*    MK        1.01     NL        1.00     NY        0.93     
!   ON        1.00*    OV        0.99     PT        0.98     SC        1.08     
!   WF        1.03     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.05     GC        0.99     HH        1.00*    
!   HN        1.00*    KK        0.95     KP        1.00     LA        0.97     
!   MC        1.00*    MK        1.00     NL        1.02     NY        0.90     
!   ON        1.00*    OV        1.00     PT        1.01     SC        1.00*    
!   WF        1.00*    WZ        1.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.04     FD        1.09     GC        1.00*    HH        1.04     
!   HN        1.02     KK        1.00*    KP        1.00*    LA        1.06     
!   MC        0.76     MK        1.00*    NL        1.07     NY        1.06     
!   ON        0.96     OV        1.00*    PT        1.00*    SC        1.12     
!   WF        1.01     WZ        1.69     
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00     GC        1.03     HH        1.00     
!   HN        1.02     KK        0.99     KP        0.99     LA        0.98     
!   MC        0.99     MK        0.95     NL        0.98     NY        1.00     
!   ON        0.98     OV        1.00*    PT        0.96     SC        1.03     
!   WF        1.01     WZ        3.79     
! 
!  A total of 48 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.01     GC        0.99     HH        1.00*    
!   HN        1.01     KK        0.95     KP        0.99     LA        1.00     
!   MC        1.00*    MK        0.94     NL        1.02     NY        0.99     
!   ON        1.00*    OV        0.98     PT        0.97     SC        1.08     
!   WF        1.03     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.03     GC        1.01     HH        1.00*    
!   HN        1.00*    KK        0.95     KP        1.01     LA        1.00     
!   MC        1.00*    MK        0.96     NL        1.04     NY        0.96     
!   ON        1.00*    OV        1.02     PT        1.00     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.08     GC        1.00*    HH        0.98     
!   HN        1.05     KK        1.00*    KP        1.00*    LA        1.10     
!   MC        0.85     MK        1.00*    NL        1.04     NY        1.02     
!   ON        1.01     OV        1.00*    PT        1.00*    SC        1.12     
!   WF        1.03     WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.96     GC        1.05     HH        1.04     
!   HN        1.02     KK        0.99     KP        0.99     LA        0.97     
!   MC        0.88     MK        0.99     NL        0.98     NY        0.99     
!   ON        1.02     OV        1.00*    PT        1.00     SC        1.03     
!   WF        1.02     WZ        1.00*    
! 
!  A total of 48 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        1.00     GC        1.00     HH        1.00*    
!   HN        1.02     KK        0.94     KP        0.99     LA        1.00     
!   MC        1.00*    MK        0.98     NL        1.01     NY        1.00     
!   ON        1.00*    OV        0.95     PT        1.00     SC        1.09     
!   WF        1.04     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.03     GC        1.01     HH        1.00*    
!   HN        1.00*    KK        0.97     KP        1.02     LA        1.03     
!   MC        1.00*    MK        1.00     NL        1.08     NY        1.03     
!   ON        1.00*    OV        0.97     PT        1.04     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.277695Jy  sigma=0.001354
! Fit after  self-cal, rms=0.302933Jy  sigma=0.001314
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.429 mas, bmaj=3.496 mas, bpa=4.227 degrees
! Estimated noise=353.345 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 (3.5, 2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00241899 Jy
! Component: 100  -  total flux cleaned = 0.00307952 Jy
! Component: 150  -  total flux cleaned = 0.00363267 Jy
! Component: 200  -  total flux cleaned = 0.00418248 Jy
! Total flux subtracted in 200 components = 0.00418248 Jy
! Clean residual min=-0.002168 max=0.002683 Jy/beam
! Clean residual mean=0.000181 rms=0.000637 Jy/beam
! Combined flux in latest and established models = 0.628555 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 75 components and 0.628555 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.302884Jy  sigma=0.001313
! Fit after  self-cal, rms=0.303448Jy  sigma=0.001313
! Inverting map 
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.303448Jy  sigma=0.001313
! Fit after  self-cal, rms=0.301152Jy  sigma=0.001308
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.427 mas, bmaj=3.504 mas, bpa=4.609 degrees
! Estimated noise=353.229 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000197866 Jy
! Component: 100  -  total flux cleaned = 0.000569381 Jy
! Component: 150  -  total flux cleaned = 0.00102857 Jy
! Component: 200  -  total flux cleaned = 0.0014168 Jy
! Total flux subtracted in 200 components = 0.0014168 Jy
! Clean residual min=-0.001924 max=0.002314 Jy/beam
! Clean residual mean=0.000113 rms=0.000570 Jy/beam
! Combined flux in latest and established models = 0.629972 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 91 components and 0.629972 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.301122Jy  sigma=0.001308
! Fit after  self-cal, rms=0.301180Jy  sigma=0.001308
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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 = 9.85189e-05 Jy
! Component: 100  -  total flux cleaned = 0.000444271 Jy
! Component: 150  -  total flux cleaned = 0.000744685 Jy
! Component: 200  -  total flux cleaned = 0.00103798 Jy
! Total flux subtracted in 200 components = 0.00103798 Jy
! Clean residual min=-0.001932 max=0.002225 Jy/beam
! Clean residual mean=0.000102 rms=0.000567 Jy/beam
! Combined flux in latest and established models = 0.63101 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 99 components and 0.63101 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.301166Jy  sigma=0.001307
! Fit after  self-cal, rms=0.301167Jy  sigma=0.001307
! Inverting map 
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.301167Jy  sigma=0.001307
! Fit after  self-cal, rms=0.303002Jy  sigma=0.001307
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.428 mas, bmaj=3.506 mas, bpa=4.658 degrees
! Estimated noise=353.463 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000256624 Jy
! Component: 100  -  total flux cleaned = 0.000550907 Jy
! Component: 150  -  total flux cleaned = 0.000803619 Jy
! Component: 200  -  total flux cleaned = 0.000944746 Jy
! Total flux subtracted in 200 components = 0.000944746 Jy
! Clean residual min=-0.001961 max=0.002201 Jy/beam
! Clean residual mean=0.000091 rms=0.000567 Jy/beam
! Combined flux in latest and established models = 0.631955 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 103 components and 0.631955 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.302988Jy  sigma=0.001307
! Fit after  self-cal, rms=0.302997Jy  sigma=0.001307
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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 = 9.05462e-05 Jy
! Component: 100  -  total flux cleaned = 0.000298126 Jy
! Component: 150  -  total flux cleaned = 0.000462755 Jy
! Component: 200  -  total flux cleaned = 0.00055002 Jy
! Total flux subtracted in 200 components = 0.00055002 Jy
! Clean residual min=-0.001958 max=0.002207 Jy/beam
! Clean residual mean=0.000085 rms=0.000564 Jy/beam
! Combined flux in latest and established models = 0.632505 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 109 components and 0.632505 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.302989Jy  sigma=0.001307
! Fit after  self-cal, rms=0.302990Jy  sigma=0.001307
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 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.302990Jy  sigma=0.001307
! Fit after  self-cal, rms=0.303505Jy  sigma=0.001307
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.912 mas, bmaj=8.623 mas, bpa=-10.38 degrees
! Estimated noise=519.234 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000981919 Jy
! Component: 100  -  total flux cleaned = 0.0012157 Jy
! Component: 150  -  total flux cleaned = 0.00129796 Jy
! Component: 200  -  total flux cleaned = 0.00136936 Jy
! Total flux subtracted in 200 components = 0.00136936 Jy
! Clean residual min=-0.002875 max=0.003717 Jy/beam
! Clean residual mean=0.000238 rms=0.001138 Jy/beam
! Combined flux in latest and established models = 0.633874 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 118 components and 0.633874 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.303502Jy  sigma=0.001307
! Fit after  self-cal, rms=0.303508Jy  sigma=0.001307
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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.000103703 Jy
! Component: 100  -  total flux cleaned = 0.000139852 Jy
! Component: 150  -  total flux cleaned = 0.000171736 Jy
! Component: 200  -  total flux cleaned = 0.000200552 Jy
! Total flux subtracted in 200 components = 0.000200552 Jy
! Clean residual min=-0.002947 max=0.003709 Jy/beam
! Clean residual mean=0.000231 rms=0.001136 Jy/beam
! Combined flux in latest and established models = 0.634075 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 122 components and 0.634075 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.303509Jy  sigma=0.001307
! Fit after  self-cal, rms=0.303509Jy  sigma=0.001307
! Inverting map 
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 
! Estimated beam: bmin=2.429 mas, bmaj=3.508 mas, bpa=4.67 degrees
! Estimated noise=353.745 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.429 x 3.508 at 4.67 degrees (North through East)
! Clean map  min=-0.0017456  max=0.5279 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.303509Jy  sigma=0.001307
! Fit after  self-cal, rms=0.422970Jy  sigma=0.001218
! Inverting map and beam 
! Estimated beam: bmin=2.429 mas, bmaj=3.51 mas, bpa=4.612 degrees
! Estimated noise=353.237 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000980714 Jy
! Component: 100  -  total flux cleaned = -0.00116988 Jy
! Component: 150  -  total flux cleaned = -0.00119628 Jy
! Component: 200  -  total flux cleaned = -0.00121995 Jy
! Total flux subtracted in 200 components = -0.00121995 Jy
! Clean residual min=-0.001871 max=0.002111 Jy/beam
! Clean residual mean=0.000081 rms=0.000512 Jy/beam
! Combined flux in latest and established models = 0.632855 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 127 components and 0.632855 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.422967Jy  sigma=0.001218
! Fit after  self-cal, rms=0.422970Jy  sigma=0.001218
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -8.76615e-05 Jy
! Component: 100  -  total flux cleaned = -0.000109383 Jy
! Component: 150  -  total flux cleaned = -0.000109063 Jy
! Component: 200  -  total flux cleaned = -0.000108797 Jy
! Total flux subtracted in 200 components = -0.000108797 Jy
! Clean residual min=-0.001873 max=0.002132 Jy/beam
! Clean residual mean=0.000082 rms=0.000511 Jy/beam
! Combined flux in latest and established models = 0.632746 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 132 components and 0.632746 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.422966Jy  sigma=0.001218
! Fit after  self-cal, rms=0.422964Jy  sigma=0.001218
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.422964Jy  sigma=0.001218
! Fit after  self-cal, rms=0.428036Jy  sigma=0.001218
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 
! Estimated beam: bmin=1.973 mas, bmaj=2.792 mas, bpa=13.13 degrees
! Estimated noise=759.829 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.398726 Jy
! Component: 100  -  total flux cleaned = 0.491067 Jy
! Component: 150  -  total flux cleaned = 0.530056 Jy
! Component: 200  -  total flux cleaned = 0.553656 Jy
! Total flux subtracted in 200 components = 0.553656 Jy
! Clean residual min=-0.004798 max=0.012167 Jy/beam
! Clean residual mean=0.000066 rms=0.001338 Jy/beam
! Combined flux in latest and established models = 0.553656 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 16 model components to the UV plane model.
! The established model now contains 16 components and 0.553656 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.43 mas, bmaj=3.514 mas, bpa=4.611 degrees
! Estimated noise=353.163 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.0260304 Jy
! Component: 100  -  total flux cleaned = 0.0408538 Jy
! Component: 150  -  total flux cleaned = 0.0503649 Jy
! Component: 200  -  total flux cleaned = 0.0569196 Jy
! Total flux subtracted in 200 components = 0.0569196 Jy
! Clean residual min=-0.001912 max=0.003717 Jy/beam
! Clean residual mean=0.000318 rms=0.000748 Jy/beam
! Combined flux in latest and established models = 0.610575 Jy
! Adding 56 model components to the UV plane model.
! The established model now contains 66 components and 0.610576 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00483271 Jy
! Component: 100  -  total flux cleaned = 0.0085181 Jy
! Component: 150  -  total flux cleaned = 0.011359 Jy
! Component: 200  -  total flux cleaned = 0.0135751 Jy
! Total flux subtracted in 200 components = 0.0135751 Jy
! Clean residual min=-0.001869 max=0.002263 Jy/beam
! Clean residual mean=0.000170 rms=0.000558 Jy/beam
! Combined flux in latest and established models = 0.624151 Jy
! Adding 44 model components to the UV plane model.
! The established model now contains 96 components and 0.624151 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.915 mas, bmaj=8.632 mas, bpa=-10.02 degrees
! Estimated noise=517.663 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00379508 Jy
! Component: 100  -  total flux cleaned = 0.00570488 Jy
! Component: 150  -  total flux cleaned = 0.00670565 Jy
! Component: 200  -  total flux cleaned = 0.00724121 Jy
! Total flux subtracted in 200 components = 0.00724121 Jy
! Clean residual min=-0.002497 max=0.003323 Jy/beam
! Clean residual mean=0.000304 rms=0.000940 Jy/beam
! Combined flux in latest and established models = 0.631392 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.000262793 Jy
! Component: 100  -  total flux cleaned = 0.00030573 Jy
! Component: 150  -  total flux cleaned = 0.000344373 Jy
! Component: 200  -  total flux cleaned = 0.00037264 Jy
! Total flux subtracted in 200 components = 0.00037264 Jy
! Clean residual min=-0.002519 max=0.003287 Jy/beam
! Clean residual mean=0.000291 rms=0.000935 Jy/beam
! Combined flux in latest and established models = 0.631765 Jy
! Adding 37 model components to the UV plane model.
! The established model now contains 124 components and 0.631765 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.43 mas, bmaj=3.514 mas, bpa=4.611 degrees
! Estimated noise=353.163 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000960802 Jy
! Component: 100  -  total flux cleaned = -0.000962447 Jy
! Component: 150  -  total flux cleaned = -0.000858037 Jy
! Component: 200  -  total flux cleaned = -0.000795003 Jy
! Total flux subtracted in 200 components = -0.000795003 Jy
! Clean residual min=-0.001787 max=0.002166 Jy/beam
! Clean residual mean=0.000095 rms=0.000516 Jy/beam
! Combined flux in latest and established models = 0.63097 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 131 components and 0.63097 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.428051Jy  sigma=0.001218
! Fit after  self-cal, rms=0.428060Jy  sigma=0.001218
wmodel J0433+2905_S_1999_05_10_pus_map.mod
! Writing 131 model components to file: J0433+2905_S_1999_05_10_pus_map.mod
wobs J0433+2905_S_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J0433+2905_S_1999_05_10_pus_uvs.fits
wwins J0433+2905_S_1999_05_10_pus_map.win
! wwins: Wrote 3 windows to J0433+2905_S_1999_05_10_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000973154 Jy
! Component: 100  -  total flux cleaned = 0.0017516 Jy
! Component: 150  -  total flux cleaned = 0.0022896 Jy
! Component: 200  -  total flux cleaned = 0.0026784 Jy
! Component: 250  -  total flux cleaned = 0.00302457 Jy
! Component: 300  -  total flux cleaned = 0.00323997 Jy
! Component: 350  -  total flux cleaned = 0.00351197 Jy
! Component: 400  -  total flux cleaned = 0.00377865 Jy
! Component: 450  -  total flux cleaned = 0.00401119 Jy
! Component: 500  -  total flux cleaned = 0.00426853 Jy
! Component: 550  -  total flux cleaned = 0.00452216 Jy
! Component: 600  -  total flux cleaned = 0.00477239 Jy
! Component: 650  -  total flux cleaned = 0.00493728 Jy
! Component: 700  -  total flux cleaned = 0.00510022 Jy
! Component: 750  -  total flux cleaned = 0.00523443 Jy
! Component: 800  -  total flux cleaned = 0.00536731 Jy
! Component: 850  -  total flux cleaned = 0.00547275 Jy
! Component: 900  -  total flux cleaned = 0.0056033 Jy
! Component: 950  -  total flux cleaned = 0.00573239 Jy
! Component: 1000  -  total flux cleaned = 0.00580883 Jy
! Component: 1050  -  total flux cleaned = 0.00585949 Jy
! Component: 1100  -  total flux cleaned = 0.00590989 Jy
! Component: 1150  -  total flux cleaned = 0.00605966 Jy
! Component: 1200  -  total flux cleaned = 0.00608406 Jy
! Component: 1250  -  total flux cleaned = 0.00613314 Jy
! Component: 1300  -  total flux cleaned = 0.00620617 Jy
! Component: 1350  -  total flux cleaned = 0.00623046 Jy
! Component: 1400  -  total flux cleaned = 0.00632645 Jy
! Component: 1450  -  total flux cleaned = 0.00637414 Jy
! Component: 1500  -  total flux cleaned = 0.00639791 Jy
! Component: 1550  -  total flux cleaned = 0.00651575 Jy
! Component: 1600  -  total flux cleaned = 0.00653917 Jy
! Component: 1650  -  total flux cleaned = 0.00663227 Jy
! Component: 1700  -  total flux cleaned = 0.00665529 Jy
! Component: 1750  -  total flux cleaned = 0.00674736 Jy
! Component: 1800  -  total flux cleaned = 0.00670161 Jy
! Component: 1850  -  total flux cleaned = 0.00683833 Jy
! Component: 1900  -  total flux cleaned = 0.00679301 Jy
! Component: 1950  -  total flux cleaned = 0.00690572 Jy
! Component: 2000  -  total flux cleaned = 0.00692806 Jy
! Total flux subtracted in 2048 components = 0.00695026 Jy
! Clean residual min=-0.001293 max=0.001201 Jy/beam
! Clean residual mean=0.000018 rms=0.000418 Jy/beam
! Combined flux in latest and established models = 0.63792 Jy
keep
! Adding 167 model components to the UV plane model.
! The established model now contains 298 components and 0.63792 Jy
![Exited script file: muppet]
wmap "J0433+2905_S_1999_05_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.43 x 3.514 at 4.611 degrees (North through East)
! Clean map  min=-0.0015628  max=0.52835 Jy/beam
! Writing clean map to FITS file: J0433+2905_S_1999_05_10_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.528348 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000417532 
device "J0433+2905_S_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J0433+2905_S_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.237078 0.237078 0.474156 0.948312 1.89662 3.79325 7.58649 15.173 30.346 60.692
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0012 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.528 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.43 x 3.514 at 4.611 degrees (North through East)
! Clean map  min=-0.0015628  max=0.52835 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0433+2905_S_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J0433+2905_S_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0433+2905_S_1999_05_10_pus_uvs.log closed on Mon Jan 21 17:27:50 2008