! Started logfile: J1044+8054_S_1999_05_10_pus_uvs.log on Mon Jan 21 17:35:48 2008
obs J1044+8054_S_1999_05_10_pus_uva.fits
! Reading UV FITS file: J1044+8054_S_1999_05_10_pus_uva.fits
! AN table 1: 99 integrations on 153 of 153 possible baselines.
! AN table 2: 92 integrations on 153 of 153 possible baselines.
! AN table 3: 148 integrations on 153 of 153 possible baselines.
! AN table 4: 118 integrations on 153 of 153 possible baselines.
! AN table 5: 160 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.278652 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1044+8054
! 
! 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 105220 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 J1044+8054_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 1606 telescope corrections were flagged in sub-array 1.
!  A total of 919 telescope corrections were flagged in sub-array 2.
!  A total of 1473 telescope corrections were flagged in sub-array 3.
!  A total of 1265 telescope corrections were flagged in sub-array 4.
!  A total of 1191 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 1606 telescope corrections were flagged in sub-array 1.
!  A total of 919 telescope corrections were flagged in sub-array 2.
!  A total of 1473 telescope corrections were flagged in sub-array 3.
!  A total of 1265 telescope corrections were flagged in sub-array 4.
!  A total of 1191 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 1606 telescope corrections were flagged in sub-array 1.
!  A total of 919 telescope corrections were flagged in sub-array 2.
!  A total of 1473 telescope corrections were flagged in sub-array 3.
!  A total of 1265 telescope corrections were flagged in sub-array 4.
!  A total of 1191 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 1606 telescope corrections were flagged in sub-array 1.
!  A total of 919 telescope corrections were flagged in sub-array 2.
!  A total of 1543 telescope corrections were flagged in sub-array 3.
!  A total of 1318 telescope corrections were flagged in sub-array 4.
!  A total of 1191 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.791904Jy  sigma=0.005418
! Fit after  self-cal, rms=0.648454Jy  sigma=0.004624
! 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=2.185 mas, bmaj=2.433 mas, bpa=-4.778 degrees
! Estimated noise=778.436 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.318941 Jy
! Component: 100  -  total flux cleaned = 0.435493 Jy
! Total flux subtracted in 100 components = 0.435493 Jy
! Clean residual min=-0.012240 max=0.052471 Jy/beam
! Clean residual mean=0.000180 rms=0.003447 Jy/beam
! Combined flux in latest and established models = 0.435493 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.435493 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.332986Jy  sigma=0.001896
! Fit after  self-cal, rms=0.332106Jy  sigma=0.001893
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0600523 Jy
! Component: 100  -  total flux cleaned = 0.0893918 Jy
! Total flux subtracted in 100 components = 0.0893918 Jy
! Clean residual min=-0.008594 max=0.024088 Jy/beam
! Clean residual mean=0.000100 rms=0.002387 Jy/beam
! Combined flux in latest and established models = 0.524885 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 6 components and 0.524885 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.318138Jy  sigma=0.001708
! Fit after  self-cal, rms=0.317823Jy  sigma=0.001707
! Inverting map 
! Added new window around map position (-5, 1).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0257037 Jy
! Component: 100  -  total flux cleaned = 0.042535 Jy
! Total flux subtracted in 100 components = 0.042535 Jy
! Clean residual min=-0.008151 max=0.012769 Jy/beam
! Clean residual mean=0.000067 rms=0.002113 Jy/beam
! Combined flux in latest and established models = 0.56742 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 16 components and 0.56742 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.314361Jy  sigma=0.001660
! Fit after  self-cal, rms=0.314143Jy  sigma=0.001658
! Inverting map 
! Added new window around map position (-2.5, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0153067 Jy
! Component: 100  -  total flux cleaned = 0.0260507 Jy
! Total flux subtracted in 100 components = 0.0260507 Jy
! Clean residual min=-0.007943 max=0.009445 Jy/beam
! Clean residual mean=0.000047 rms=0.002000 Jy/beam
! Combined flux in latest and established models = 0.593471 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 26 components and 0.593471 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.312782Jy  sigma=0.001640
! Fit after  self-cal, rms=0.312692Jy  sigma=0.001639
! 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.848 mas, bmaj=3.662 mas, bpa=5.526 degrees
! Estimated noise=294.05 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 (-7.5, 0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.017631 Jy
! Component: 100  -  total flux cleaned = 0.0286871 Jy
! Component: 150  -  total flux cleaned = 0.0365832 Jy
! Component: 200  -  total flux cleaned = 0.0424511 Jy
! Total flux subtracted in 200 components = 0.0424511 Jy
! Clean residual min=-0.004631 max=0.005737 Jy/beam
! Clean residual mean=0.000240 rms=0.001210 Jy/beam
! Combined flux in latest and established models = 0.635922 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 52 components and 0.635922 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.311591Jy  sigma=0.001625
! Fit after  self-cal, rms=0.311485Jy  sigma=0.001623
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.00*    GC        1.04     HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.00*    NY        0.90     
!   ON        0.92     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.00     GC        1.06     HH        1.00*    
!   HN        1.03     KK        1.07     KP        0.97     LA        0.99     
!   MC        1.00*    MK        0.96     NL        0.98     NY        0.96     
!   ON        0.95     OV        1.03     PT        1.03     SC        1.07     
!   WF        0.97     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00     GC        1.04     HH        1.00*    
!   HN        1.01     KK        1.04     KP        0.83     LA        1.00     
!   MC        1.03     MK        1.04     NL        0.99     NY        0.97     
!   ON        0.93     OV        1.03     PT        1.01     SC        1.09     
!   WF        1.00     WZ        1.00     
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.11     FD        1.06     GC        1.08     HH        1.00*    
!   HN        1.04     KK        0.99     KP        0.93     LA        1.06     
!   MC        0.46     MK        1.06     NL        0.99     NY        1.02     
!   ON        0.85     OV        1.08     PT        1.11     SC        1.05     
!   WF        0.77     WZ        0.83     
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.99     FD        1.00     GC        1.00*    HH        1.00*    
!   HN        1.00     KK        1.00     KP        0.98     LA        0.99     
!   MC        1.00*    MK        0.96     NL        0.99     NY        1.00*    
!   ON        1.00*    OV        1.04     PT        1.01     SC        1.07     
!   WF        0.99     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        1.00*    GC        1.02     HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.00*    NY        0.89     
!   ON        0.96     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.92     FD        1.01     GC        1.01     HH        1.00*    
!   HN        1.01     KK        1.03     KP        1.01     LA        0.94     
!   MC        1.00*    MK        1.02     NL        1.00     NY        0.92     
!   ON        0.96     OV        1.00     PT        0.99     SC        1.12     
!   WF        0.98     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.03     GC        1.02     HH        1.00*    
!   HN        1.01     KK        1.03     KP        0.95     LA        0.97     
!   MC        0.96     MK        1.10     NL        1.01     NY        0.96     
!   ON        1.01     OV        0.99     PT        0.99     SC        1.15     
!   WF        0.99     WZ        1.01     
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.05     GC        1.02     HH        1.00*    
!   HN        1.01     KK        1.00     KP        1.08     LA        0.95     
!   MC        1.62     MK        1.05     NL        1.00     NY        0.97     
!   ON        1.11     OV        0.96     PT        0.99     SC        1.07     
!   WF        0.99     WZ        1.01     
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.99     FD        1.03     GC        1.00*    HH        1.00*    
!   HN        1.01     KK        1.01     KP        1.02     LA        0.96     
!   MC        1.00*    MK        1.04     NL        0.99     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        0.99     SC        1.10     
!   WF        1.00     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.93     FD        1.00*    GC        1.02     HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.00*    NY        0.95     
!   ON        0.94     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        1.00     GC        1.03     HH        1.00*    
!   HN        1.00     KK        1.00     KP        1.00     LA        0.96     
!   MC        1.00*    MK        0.99     NL        1.00     NY        1.01     
!   ON        1.01     OV        0.99     PT        0.95     SC        1.09     
!   WF        0.97     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.99     GC        1.04     HH        1.00*    
!   HN        0.99     KK        1.01     KP        1.00     LA        0.99     
!   MC        0.80     MK        1.04     NL        1.02     NY        0.99     
!   ON        0.98     OV        0.97     PT        0.95     SC        1.12     
!   WF        0.99     WZ        0.87     
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.01     GC        1.03     HH        1.00*    
!   HN        1.02     KK        1.02     KP        0.96     LA        0.99     
!   MC        0.77     MK        0.97     NL        1.00     NY        1.05     
!   ON        1.15     OV        0.95     PT        0.94     SC        1.06     
!   WF        0.97     WZ        0.91     
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.99     FD        1.00     GC        1.00*    HH        1.00*    
!   HN        1.01     KK        1.01     KP        1.00     LA        0.98     
!   MC        1.00*    MK        0.96     NL        1.01     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.94     SC        1.07     
!   WF        1.01     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.88     FD        1.00*    GC        1.03     HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.00*    NY        0.98     
!   ON        0.83     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.91     FD        0.94     GC        1.03     HH        1.00*    
!   HN        1.00     KK        1.01     KP        1.01     LA        0.96     
!   MC        1.00*    MK        0.99     NL        1.00     NY        1.01     
!   ON        1.00     OV        0.97     PT        0.96     SC        1.06     
!   WF        0.97     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.98     GC        1.04     HH        1.00*    
!   HN        1.01     KK        1.00     KP        1.09     LA        0.99     
!   MC        0.83     MK        1.06     NL        1.03     NY        0.97     
!   ON        0.95     OV        0.94     PT        1.01     SC        1.12     
!   WF        1.00     WZ        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.90     FD        1.02     GC        1.07     HH        1.00*    
!   HN        1.02     KK        0.98     KP        1.03     LA        0.98     
!   MC        1.04     MK        0.98     NL        1.01     NY        1.04     
!   ON        1.11     OV        0.91     PT        0.98     SC        1.08     
!   WF        0.99     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.96     FD        1.00     GC        1.00*    HH        1.00*    
!   HN        1.01     KK        0.96     KP        1.02     LA        0.98     
!   MC        1.00*    MK        0.98     NL        1.01     NY        1.00*    
!   ON        1.00*    OV        0.95     PT        0.98     SC        1.07     
!   WF        0.99     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.311485Jy  sigma=0.001623
! Fit after  self-cal, rms=0.261141Jy  sigma=0.001596
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.852 mas, bmaj=3.652 mas, bpa=4.979 degrees
! Estimated noise=293.535 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 (-14, 2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00543411 Jy
! Component: 100  -  total flux cleaned = 0.00920586 Jy
! Component: 150  -  total flux cleaned = 0.0119642 Jy
! Component: 200  -  total flux cleaned = 0.0131737 Jy
! Total flux subtracted in 200 components = 0.0131737 Jy
! Clean residual min=-0.002519 max=0.002929 Jy/beam
! Clean residual mean=0.000066 rms=0.000634 Jy/beam
! Combined flux in latest and established models = 0.649096 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 71 components and 0.649096 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.261003Jy  sigma=0.001594
! Fit after  self-cal, rms=0.263162Jy  sigma=0.001583
! 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.263162Jy  sigma=0.001583
! Fit after  self-cal, rms=0.259198Jy  sigma=0.001574
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.849 mas, bmaj=3.624 mas, bpa=4.633 degrees
! Estimated noise=294.174 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00331781 Jy
! Component: 100  -  total flux cleaned = 0.00441686 Jy
! Component: 150  -  total flux cleaned = 0.00530039 Jy
! Component: 200  -  total flux cleaned = 0.00585892 Jy
! Total flux subtracted in 200 components = 0.00585892 Jy
! Clean residual min=-0.003046 max=0.002930 Jy/beam
! Clean residual mean=0.000025 rms=0.000646 Jy/beam
! Combined flux in latest and established models = 0.654955 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 79 components and 0.654955 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.259127Jy  sigma=0.001573
! Fit after  self-cal, rms=0.261331Jy  sigma=0.001567
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 = -5.0965e-05 Jy
! Component: 100  -  total flux cleaned = 0.000430643 Jy
! Component: 150  -  total flux cleaned = 0.000741147 Jy
! Component: 200  -  total flux cleaned = 0.000973485 Jy
! Total flux subtracted in 200 components = 0.000973485 Jy
! Clean residual min=-0.003397 max=0.002699 Jy/beam
! Clean residual mean=0.000006 rms=0.000635 Jy/beam
! Combined flux in latest and established models = 0.655928 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 91 components and 0.655928 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.261299Jy  sigma=0.001567
! Fit after  self-cal, rms=0.261295Jy  sigma=0.001567
! 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.261295Jy  sigma=0.001567
! Fit after  self-cal, rms=0.260952Jy  sigma=0.001564
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.847 mas, bmaj=3.603 mas, bpa=4.518 degrees
! Estimated noise=294.319 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00213697 Jy
! Component: 100  -  total flux cleaned = 0.00268089 Jy
! Component: 150  -  total flux cleaned = 0.00316561 Jy
! Component: 200  -  total flux cleaned = 0.003485 Jy
! Total flux subtracted in 200 components = 0.003485 Jy
! Clean residual min=-0.003107 max=0.002953 Jy/beam
! Clean residual mean=-0.000007 rms=0.000628 Jy/beam
! Combined flux in latest and established models = 0.659413 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 95 components and 0.659413 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.260903Jy  sigma=0.001563
! Fit after  self-cal, rms=0.262451Jy  sigma=0.001562
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.000256014 Jy
! Component: 100  -  total flux cleaned = -0.000145936 Jy
! Component: 150  -  total flux cleaned = -3.85601e-05 Jy
! Component: 200  -  total flux cleaned = 6.29365e-05 Jy
! Total flux subtracted in 200 components = 6.29365e-05 Jy
! Clean residual min=-0.003285 max=0.002812 Jy/beam
! Clean residual mean=-0.000013 rms=0.000615 Jy/beam
! Combined flux in latest and established models = 0.659476 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 100 components and 0.659476 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.262429Jy  sigma=0.001561
! Fit after  self-cal, rms=0.262532Jy  sigma=0.001561
! 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.262532Jy  sigma=0.001561
! Fit after  self-cal, rms=0.263219Jy  sigma=0.001560
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.263 mas, bmaj=9.509 mas, bpa=2.982 degrees
! Estimated noise=400.419 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00225603 Jy
! Component: 100  -  total flux cleaned = 0.0032879 Jy
! Component: 150  -  total flux cleaned = 0.00381096 Jy
! Component: 200  -  total flux cleaned = 0.00388169 Jy
! Total flux subtracted in 200 components = 0.00388169 Jy
! Clean residual min=-0.002918 max=0.004005 Jy/beam
! Clean residual mean=-0.000103 rms=0.000903 Jy/beam
! Combined flux in latest and established models = 0.663358 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 112 components and 0.663358 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.263224Jy  sigma=0.001560
! Fit after  self-cal, rms=0.263900Jy  sigma=0.001560
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)
! Added new window around map position (-51.5, 26.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00235463 Jy
! Component: 100  -  total flux cleaned = 0.00205184 Jy
! Component: 150  -  total flux cleaned = 0.00174081 Jy
! Component: 200  -  total flux cleaned = 0.00152716 Jy
! Total flux subtracted in 200 components = 0.00152716 Jy
! Clean residual min=-0.002571 max=0.003168 Jy/beam
! Clean residual mean=-0.000152 rms=0.000813 Jy/beam
! Combined flux in latest and established models = 0.664885 Jy
! Performing phase self-cal
! Adding 47 model components to the UV plane model.
! The established model now contains 159 components and 0.664885 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.263870Jy  sigma=0.001560
! Fit after  self-cal, rms=0.263893Jy  sigma=0.001559
! 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.845 mas, bmaj=3.587 mas, bpa=4.444 degrees
! Estimated noise=294.625 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.845 x 3.587 at 4.444 degrees (North through East)
! Clean map  min=-0.00282  max=0.43882 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
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=2.153 mas, bmaj=2.363 mas, bpa=-15.34 degrees
! Estimated noise=766.048 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.314266 Jy
! Component: 100  -  total flux cleaned = 0.433937 Jy
! Component: 150  -  total flux cleaned = 0.49121 Jy
! Component: 200  -  total flux cleaned = 0.523382 Jy
! Total flux subtracted in 200 components = 0.523382 Jy
! Clean residual min=-0.009363 max=0.017959 Jy/beam
! Clean residual mean=0.000105 rms=0.002201 Jy/beam
! Combined flux in latest and established models = 0.523382 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 0.523382 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.845 mas, bmaj=3.587 mas, bpa=4.444 degrees
! Estimated noise=294.625 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.0435239 Jy
! Component: 100  -  total flux cleaned = 0.0699937 Jy
! Component: 150  -  total flux cleaned = 0.0872543 Jy
! Component: 200  -  total flux cleaned = 0.0992403 Jy
! Total flux subtracted in 200 components = 0.0992403 Jy
! Clean residual min=-0.003150 max=0.006713 Jy/beam
! Clean residual mean=0.000312 rms=0.001140 Jy/beam
! Combined flux in latest and established models = 0.622622 Jy
! Adding 48 model components to the UV plane model.
! The established model now contains 54 components and 0.622622 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00872436 Jy
! Component: 100  -  total flux cleaned = 0.0152947 Jy
! Component: 150  -  total flux cleaned = 0.02039 Jy
! Component: 200  -  total flux cleaned = 0.0245505 Jy
! Total flux subtracted in 200 components = 0.0245505 Jy
! Clean residual min=-0.002925 max=0.003256 Jy/beam
! Clean residual mean=0.000102 rms=0.000723 Jy/beam
! Combined flux in latest and established models = 0.647172 Jy
! Adding 42 model components to the UV plane model.
! The established model now contains 81 components and 0.647173 Jy
! Inverting map 
! Added new window around map position (-21.5, 0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00378977 Jy
! Component: 100  -  total flux cleaned = 0.00693068 Jy
! Component: 150  -  total flux cleaned = 0.00902724 Jy
! Component: 200  -  total flux cleaned = 0.0106985 Jy
! Total flux subtracted in 200 components = 0.0106985 Jy
! Clean residual min=-0.002888 max=0.002401 Jy/beam
! Clean residual mean=0.000013 rms=0.000614 Jy/beam
! Combined flux in latest and established models = 0.657871 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 97 components and 0.657871 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.263 mas, bmaj=9.509 mas, bpa=2.982 degrees
! Estimated noise=400.419 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00408986 Jy
! Component: 100  -  total flux cleaned = 0.00648304 Jy
! Component: 150  -  total flux cleaned = 0.00719255 Jy
! Component: 200  -  total flux cleaned = 0.00745922 Jy
! Total flux subtracted in 200 components = 0.00745922 Jy
! Clean residual min=-0.002813 max=0.002547 Jy/beam
! Clean residual mean=-0.000155 rms=0.000773 Jy/beam
! Combined flux in latest and established models = 0.66533 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.000231559 Jy
! Component: 100  -  total flux cleaned = 0.00048607 Jy
! Component: 150  -  total flux cleaned = 0.000806719 Jy
! Component: 200  -  total flux cleaned = 0.000931849 Jy
! Total flux subtracted in 200 components = 0.000931849 Jy
! Clean residual min=-0.002705 max=0.002447 Jy/beam
! Clean residual mean=-0.000181 rms=0.000742 Jy/beam
! Combined flux in latest and established models = 0.666262 Jy
! Adding 96 model components to the UV plane model.
! The established model now contains 184 components and 0.666263 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.845 mas, bmaj=3.587 mas, bpa=4.444 degrees
! Estimated noise=294.625 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000949948 Jy
! Component: 100  -  total flux cleaned = -0.00136779 Jy
! Component: 150  -  total flux cleaned = -0.0014973 Jy
! Component: 200  -  total flux cleaned = -0.00162094 Jy
! Total flux subtracted in 200 components = -0.00162094 Jy
! Clean residual min=-0.002932 max=0.001976 Jy/beam
! Clean residual mean=-0.000048 rms=0.000554 Jy/beam
! Combined flux in latest and established models = 0.664642 Jy
selfcal
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 212 components and 0.664642 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.263766Jy  sigma=0.001558
! Fit after  self-cal, rms=0.263598Jy  sigma=0.001557
wmodel J1044+8054_S_1999_05_10_pus_map.mod
! Writing 212 model components to file: J1044+8054_S_1999_05_10_pus_map.mod
wobs J1044+8054_S_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J1044+8054_S_1999_05_10_pus_uvs.fits
wwins J1044+8054_S_1999_05_10_pus_map.win
! wwins: Wrote 7 windows to J1044+8054_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.00125073 Jy
! Component: 100  -  total flux cleaned = -0.00206406 Jy
! Component: 150  -  total flux cleaned = -0.00247672 Jy
! Component: 200  -  total flux cleaned = -0.00283794 Jy
! Component: 250  -  total flux cleaned = -0.00308358 Jy
! Component: 300  -  total flux cleaned = -0.00325518 Jy
! Component: 350  -  total flux cleaned = -0.00345753 Jy
! Component: 400  -  total flux cleaned = -0.0035903 Jy
! Component: 450  -  total flux cleaned = -0.00378643 Jy
! Component: 500  -  total flux cleaned = -0.00391543 Jy
! Component: 550  -  total flux cleaned = -0.00404288 Jy
! Component: 600  -  total flux cleaned = -0.0041689 Jy
! Component: 650  -  total flux cleaned = -0.00429328 Jy
! Component: 700  -  total flux cleaned = -0.0044167 Jy
! Component: 750  -  total flux cleaned = -0.00453898 Jy
! Component: 800  -  total flux cleaned = -0.00472068 Jy
! Component: 850  -  total flux cleaned = -0.00481088 Jy
! Component: 900  -  total flux cleaned = -0.00495976 Jy
! Component: 950  -  total flux cleaned = -0.0050778 Jy
! Component: 1000  -  total flux cleaned = -0.00522433 Jy
! Component: 1050  -  total flux cleaned = -0.00542757 Jy
! Component: 1100  -  total flux cleaned = -0.00551405 Jy
! Component: 1150  -  total flux cleaned = -0.00562837 Jy
! Component: 1200  -  total flux cleaned = -0.00574207 Jy
! Component: 1250  -  total flux cleaned = -0.00585488 Jy
! Component: 1300  -  total flux cleaned = -0.00596705 Jy
! Component: 1350  -  total flux cleaned = -0.00607864 Jy
! Component: 1400  -  total flux cleaned = -0.00621693 Jy
! Component: 1450  -  total flux cleaned = -0.00618949 Jy
! Component: 1500  -  total flux cleaned = -0.00635403 Jy
! Component: 1550  -  total flux cleaned = -0.0064085 Jy
! Component: 1600  -  total flux cleaned = -0.00646291 Jy
! Component: 1650  -  total flux cleaned = -0.00659768 Jy
! Component: 1700  -  total flux cleaned = -0.00659756 Jy
! Component: 1750  -  total flux cleaned = -0.00670436 Jy
! Component: 1800  -  total flux cleaned = -0.00678393 Jy
! Component: 1850  -  total flux cleaned = -0.00686304 Jy
! Component: 1900  -  total flux cleaned = -0.006863 Jy
! Component: 1950  -  total flux cleaned = -0.00699344 Jy
! Component: 2000  -  total flux cleaned = -0.00696744 Jy
! Total flux subtracted in 2048 components = -0.00699347 Jy
! Clean residual min=-0.001979 max=0.001601 Jy/beam
! Clean residual mean=0.000003 rms=0.000479 Jy/beam
! Combined flux in latest and established models = 0.657648 Jy
keep
! Adding 148 model components to the UV plane model.
! The established model now contains 360 components and 0.657648 Jy
![Exited script file: muppet]
wmap "J1044+8054_S_1999_05_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.845 x 3.587 at 4.444 degrees (North through East)
! Clean map  min=-0.0027286  max=0.43974 Jy/beam
! Writing clean map to FITS file: J1044+8054_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.439736 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000478295 
device "J1044+8054_S_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J1044+8054_S_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.326306 0.326306 0.652613 1.30523 2.61045 5.2209 10.4418 20.8836 41.7672 83.5344
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0014 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.439 
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.845 x 3.587 at 4.444 degrees (North through East)
! Clean map  min=-0.0027286  max=0.43974 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1044+8054_S_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J1044+8054_S_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1044+8054_S_1999_05_10_pus_uvs.log closed on Mon Jan 21 17:36:22 2008