! Started logfile: J0730-1141_X_2001_10_29_pus_uvs.log on Mon Feb 25 16:09:08 2008
obs J0730-1141_X_2001_10_29_pus_uva.fits
! Reading UV FITS file: J0730-1141_X_2001_10_29_pus_uva.fits
! AN table 1: 76 integrations on 153 of 153 possible baselines.
! AN table 2: 23 integrations on 153 of 153 possible baselines.
! AN table 3: 161 integrations on 153 of 153 possible baselines.
! AN table 4: 39 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.0584738 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0730-1141
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1970 lines of history.
! 
! Reading 10700 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 J0730-1141_X_2001_10_29_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 1160 telescope corrections were flagged in sub-array 1.
!  A total of 231 telescope corrections were flagged in sub-array 2.
!  A total of 2623 telescope corrections were flagged in sub-array 3.
!  A total of 409 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1160 telescope corrections were flagged in sub-array 1.
!  A total of 231 telescope corrections were flagged in sub-array 2.
!  A total of 2623 telescope corrections were flagged in sub-array 3.
!  A total of 409 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1160 telescope corrections were flagged in sub-array 1.
!  A total of 231 telescope corrections were flagged in sub-array 2.
!  A total of 2623 telescope corrections were flagged in sub-array 3.
!  A total of 409 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1160 telescope corrections were flagged in sub-array 1.
!  A total of 231 telescope corrections were flagged in sub-array 2.
!  A total of 2623 telescope corrections were flagged in sub-array 3.
!  A total of 409 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=3.193203Jy  sigma=0.028446
! Fit after  self-cal, rms=2.965920Jy  sigma=0.026656
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.987% of the data.
!  The x-axis pixel size should ideally be below 0.1884 milli-arcsec
! Estimated beam: bmin=0.5926 mas, bmaj=1.284 mas, bpa=-1.804 degrees
! Estimated noise=1701.41 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 = 2.90118 Jy
! Component: 100  -  total flux cleaned = 3.55573 Jy
! Total flux subtracted in 100 components = 3.55573 Jy
! Clean residual min=-0.079807 max=0.238689 Jy/beam
! Clean residual mean=0.004497 rms=0.028572 Jy/beam
! Combined flux in latest and established models = 3.55573 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 3.55573 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.627979Jy  sigma=0.005144
! Fit after  self-cal, rms=0.627842Jy  sigma=0.005144
! Inverting map 
! Your choice of large map pixels excluded 0.987% of the data.
!  The x-axis pixel size should ideally be below 0.1884 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.258179 Jy
! Component: 100  -  total flux cleaned = 0.391167 Jy
! Total flux subtracted in 100 components = 0.391167 Jy
! Clean residual min=-0.060115 max=0.091333 Jy/beam
! Clean residual mean=0.002138 rms=0.017315 Jy/beam
! Combined flux in latest and established models = 3.9469 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 8 components and 3.9469 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.432885Jy  sigma=0.003062
! Fit after  self-cal, rms=0.432044Jy  sigma=0.003053
! Inverting map 
! Your choice of large map pixels excluded 0.987% of the data.
!  The x-axis pixel size should ideally be below 0.1884 milli-arcsec
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
win_mult = win_mult * 1.6
clean_niter = clean_niter * 2
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.987% of the data.
!  The x-axis pixel size should ideally be below 0.1884 milli-arcsec
! Estimated beam: bmin=0.8225 mas, bmaj=1.84 mas, bpa=-2.184 degrees
! Estimated noise=819.886 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.151796 Jy
! Component: 100  -  total flux cleaned = 0.217071 Jy
! Component: 150  -  total flux cleaned = 0.2493 Jy
! Component: 200  -  total flux cleaned = 0.265588 Jy
! Total flux subtracted in 200 components = 0.265588 Jy
! Clean residual min=-0.053657 max=0.060859 Jy/beam
! Clean residual mean=0.001501 rms=0.014857 Jy/beam
! Combined flux in latest and established models = 4.21249 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 14 components and 4.21249 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.382211Jy  sigma=0.002457
! Fit after  self-cal, rms=0.382096Jy  sigma=0.002457
! Inverting map 
! Your choice of large map pixels excluded 0.987% of the data.
!  The x-axis pixel size should ideally be below 0.1884 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.98     
!   HN        1.16     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.01     MC        0.97     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.01     TS        1.00*    
!   WF        1.00     WZ        0.84     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.06     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.05     KK        0.98     KP        1.00     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        0.97     NL        1.35     
!   OV        1.02     PT        1.01     SC        1.02     TS        1.00*    
!   WF        1.01     WZ        1.00*    
! 
!  A total of 141 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        1.01     
!   HN        1.00*    KK        0.93     KP        1.00     LA        1.00     
!   MA        1.02     MC        1.00     MK        0.95     NL        1.00     
!   OV        1.00     PT        0.98     SC        1.00*    TS        1.01     
!   WF        1.00*    WZ        1.08     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.00*    KP        1.00     LA        0.99     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.02     
!   OV        1.00     PT        1.00     SC        0.99     TS        1.00*    
!   WF        0.98     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.97     
!   HN        1.15     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.99     MC        0.98     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        0.98     TS        1.00*    
!   WF        0.99     WZ        0.83     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.08     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.04     KK        1.04     KP        1.01     LA        0.96     
!   MA        1.00*    MC        1.00*    MK        0.96     NL        1.33     
!   OV        1.02     PT        0.98     SC        0.99     TS        1.00*    
!   WF        1.00     WZ        1.00*    
! 
!  A total of 141 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        1.00     
!   HN        1.00*    KK        0.97     KP        1.00     LA        0.97     
!   MA        1.00     MC        1.02     MK        0.96     NL        0.97     
!   OV        1.00     PT        0.97     SC        1.00*    TS        1.00     
!   WF        1.00*    WZ        1.06     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.99     KK        1.00*    KP        1.01     LA        0.97     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        0.98     
!   OV        1.01     PT        0.98     SC        0.95     TS        1.00*    
!   WF        0.96     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.97     
!   HN        1.16     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.99     MC        0.94     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.01     TS        1.00*    
!   WF        1.03     WZ        0.85     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.05     KK        1.00     KP        1.00     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        0.99     NL        1.40     
!   OV        1.01     PT        1.01     SC        1.00     TS        1.00*    
!   WF        1.04     WZ        1.00*    
! 
!  A total of 141 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00     
!   HN        1.00*    KK        0.94     KP        1.00     LA        1.02     
!   MA        0.98     MC        1.00     MK        0.97     NL        1.01     
!   OV        0.98     PT        0.98     SC        1.00*    TS        1.00     
!   WF        1.00*    WZ        1.05     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.00*    KP        1.00     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.02     
!   OV        0.99     PT        1.00     SC        0.97     TS        1.00*    
!   WF        1.02     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.00     
!   HN        1.21     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.01     MC        0.97     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.04     TS        1.00*    
!   WF        1.02     WZ        0.82     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.10     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.07     KK        0.99     KP        1.02     LA        0.97     
!   MA        1.00*    MC        1.00*    MK        1.02     NL        1.46     
!   OV        0.99     PT        1.01     SC        1.07     TS        1.00*    
!   WF        1.03     WZ        1.00*    
! 
!  A total of 141 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.00*    GG        1.00*    HH        1.00     
!   HN        1.00*    KK        0.93     KP        1.02     LA        0.99     
!   MA        1.02     MC        1.00     MK        1.00     NL        1.03     
!   OV        0.98     PT        0.98     SC        1.00*    TS        1.00     
!   WF        1.00*    WZ        1.03     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.02     KK        1.00*    KP        1.02     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.03     
!   OV        0.98     PT        1.01     SC        1.02     TS        1.00*    
!   WF        1.02     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.382096Jy  sigma=0.002457
! Fit after  self-cal, rms=0.227441Jy  sigma=0.001393
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 1.09% of the data.
!  The x-axis pixel size should ideally be below 0.1884 milli-arcsec
! Estimated beam: bmin=0.8057 mas, bmaj=1.761 mas, bpa=-2.724 degrees
! Estimated noise=849.963 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 (-2, 2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0299175 Jy
! Component: 100  -  total flux cleaned = 0.0403203 Jy
! Component: 150  -  total flux cleaned = 0.0419165 Jy
! Component: 200  -  total flux cleaned = 0.043131 Jy
! Total flux subtracted in 200 components = 0.043131 Jy
! Clean residual min=-0.009806 max=0.011759 Jy/beam
! Clean residual mean=0.000980 rms=0.003221 Jy/beam
! Combined flux in latest and established models = 4.25562 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 30 components and 4.25562 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223307Jy  sigma=0.001341
! Fit after  self-cal, rms=0.222771Jy  sigma=0.001336
! Inverting map 
! Your choice of large map pixels excluded 1.09% of the data.
!  The x-axis pixel size should ideally be below 0.1884 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.222771Jy  sigma=0.001336
! Fit after  self-cal, rms=0.221393Jy  sigma=0.001328
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.09% of the data.
!  The x-axis pixel size should ideally be below 0.1884 milli-arcsec
! Estimated beam: bmin=0.8055 mas, bmaj=1.759 mas, bpa=-2.693 degrees
! Estimated noise=849.466 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0129082 Jy
! Component: 100  -  total flux cleaned = 0.014572 Jy
! Component: 150  -  total flux cleaned = 0.0161399 Jy
! Component: 200  -  total flux cleaned = 0.0174201 Jy
! Total flux subtracted in 200 components = 0.0174201 Jy
! Clean residual min=-0.008119 max=0.010462 Jy/beam
! Clean residual mean=0.000766 rms=0.002577 Jy/beam
! Combined flux in latest and established models = 4.27304 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 43 components and 4.27304 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220249Jy  sigma=0.001315
! Fit after  self-cal, rms=0.220059Jy  sigma=0.001314
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.09% of the data.
!  The x-axis pixel size should ideally be below 0.1884 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.00380723 Jy
! Component: 100  -  total flux cleaned = 0.0047577 Jy
! Component: 150  -  total flux cleaned = 0.00541279 Jy
! Component: 200  -  total flux cleaned = 0.0058427 Jy
! Total flux subtracted in 200 components = 0.0058427 Jy
! Clean residual min=-0.007714 max=0.009954 Jy/beam
! Clean residual mean=0.000627 rms=0.002431 Jy/beam
! Combined flux in latest and established models = 4.27888 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 48 components and 4.27888 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.219728Jy  sigma=0.001311
! Fit after  self-cal, rms=0.219661Jy  sigma=0.001310
! Inverting map 
! Your choice of large map pixels excluded 1.09% of the data.
!  The x-axis pixel size should ideally be below 0.1884 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.219661Jy  sigma=0.001310
! Fit after  self-cal, rms=0.218949Jy  sigma=0.001307
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.09% of the data.
!  The x-axis pixel size should ideally be below 0.1884 milli-arcsec
! Estimated beam: bmin=0.8057 mas, bmaj=1.757 mas, bpa=-2.66 degrees
! Estimated noise=849.322 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00418637 Jy
! Component: 100  -  total flux cleaned = 0.00545814 Jy
! Component: 150  -  total flux cleaned = 0.00633557 Jy
! Component: 200  -  total flux cleaned = 0.0072367 Jy
! Total flux subtracted in 200 components = 0.0072367 Jy
! Clean residual min=-0.006563 max=0.009073 Jy/beam
! Clean residual mean=0.000602 rms=0.002188 Jy/beam
! Combined flux in latest and established models = 4.28612 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 52 components and 4.28612 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.218525Jy  sigma=0.001303
! Fit after  self-cal, rms=0.218457Jy  sigma=0.001302
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.09% of the data.
!  The x-axis pixel size should ideally be below 0.1884 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.00227651 Jy
! Component: 100  -  total flux cleaned = 0.0028222 Jy
! Component: 150  -  total flux cleaned = 0.00306143 Jy
! Component: 200  -  total flux cleaned = 0.00349228 Jy
! Total flux subtracted in 200 components = 0.00349228 Jy
! Clean residual min=-0.006292 max=0.008725 Jy/beam
! Clean residual mean=0.000519 rms=0.002099 Jy/beam
! Combined flux in latest and established models = 4.28961 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 54 components and 4.28961 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.218271Jy  sigma=0.001301
! Fit after  self-cal, rms=0.218238Jy  sigma=0.001301
! Inverting map 
! Your choice of large map pixels excluded 1.09% of the data.
!  The x-axis pixel size should ideally be below 0.1884 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.218238Jy  sigma=0.001301
! Fit after  self-cal, rms=0.217891Jy  sigma=0.001299
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.09% of the data.
!  The x-axis pixel size should ideally be below 0.1884 milli-arcsec
! Estimated beam: bmin=2.19 mas, bmaj=4.001 mas, bpa=-3.88 degrees
! Estimated noise=1085.78 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00523869 Jy
! Component: 100  -  total flux cleaned = 0.0063384 Jy
! Component: 150  -  total flux cleaned = 0.00702531 Jy
! Component: 200  -  total flux cleaned = 0.00737556 Jy
! Total flux subtracted in 200 components = 0.00737556 Jy
! Clean residual min=-0.006603 max=0.009010 Jy/beam
! Clean residual mean=0.001012 rms=0.002859 Jy/beam
! Combined flux in latest and established models = 4.29698 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 69 components and 4.29698 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.217799Jy  sigma=0.001298
! Fit after  self-cal, rms=0.217749Jy  sigma=0.001298
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.09% of the data.
!  The x-axis pixel size should ideally be below 0.1884 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.000789 Jy
! Component: 100  -  total flux cleaned = 0.00115252 Jy
! Component: 150  -  total flux cleaned = 0.00137619 Jy
! Component: 200  -  total flux cleaned = 0.00156277 Jy
! Total flux subtracted in 200 components = 0.00156277 Jy
! Clean residual min=-0.006562 max=0.009016 Jy/beam
! Clean residual mean=0.000934 rms=0.002791 Jy/beam
! Combined flux in latest and established models = 4.29855 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 71 components and 4.29855 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.217744Jy  sigma=0.001298
! Fit after  self-cal, rms=0.217719Jy  sigma=0.001298
! Inverting map 
! Your choice of large map pixels excluded 1.09% of the data.
!  The x-axis pixel size should ideally be below 0.1884 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.09% of the data.
!  The x-axis pixel size should ideally be below 0.1884 milli-arcsec
! Estimated beam: bmin=0.8058 mas, bmaj=1.756 mas, bpa=-2.634 degrees
! Estimated noise=849.333 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8058 x 1.756 at -2.634 degrees (North through East)
! Clean map  min=-0.0057549  max=3.868 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.217719Jy  sigma=0.001298
! Fit after  self-cal, rms=0.174904Jy  sigma=0.001106
! Inverting map and beam 
! Your choice of large map pixels excluded 1.09% of the data.
!  The x-axis pixel size should ideally be below 0.1884 milli-arcsec
! Estimated beam: bmin=0.806 mas, bmaj=1.755 mas, bpa=-2.631 degrees
! Estimated noise=849.124 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00113197 Jy
! Component: 100  -  total flux cleaned = 0.00141821 Jy
! Component: 150  -  total flux cleaned = 0.00141946 Jy
! Component: 200  -  total flux cleaned = 0.00152141 Jy
! Total flux subtracted in 200 components = 0.00152141 Jy
! Clean residual min=-0.005660 max=0.008270 Jy/beam
! Clean residual mean=0.000454 rms=0.001839 Jy/beam
! Combined flux in latest and established models = 4.30007 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 77 components and 4.30007 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.174725Jy  sigma=0.001104
! Fit after  self-cal, rms=0.174701Jy  sigma=0.001104
! Inverting map 
! Your choice of large map pixels excluded 1.09% of the data.
!  The x-axis pixel size should ideally be below 0.1884 milli-arcsec
! Added new window around map position (1, 10.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00679059 Jy
! Component: 100  -  total flux cleaned = 0.0092027 Jy
! Component: 150  -  total flux cleaned = 0.00962369 Jy
! Component: 200  -  total flux cleaned = 0.00981259 Jy
! Total flux subtracted in 200 components = 0.00981259 Jy
! Clean residual min=-0.005143 max=0.005405 Jy/beam
! Clean residual mean=0.000306 rms=0.001648 Jy/beam
! Combined flux in latest and established models = 4.30988 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 89 components and 4.30988 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.174375Jy  sigma=0.001101
! Fit after  self-cal, rms=0.174332Jy  sigma=0.001101
! Inverting map 
! Your choice of large map pixels excluded 1.09% of the data.
!  The x-axis pixel size should ideally be below 0.1884 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.174332Jy  sigma=0.001101
! Fit after  self-cal, rms=0.174299Jy  sigma=0.001100
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.09% of the data.
!  The x-axis pixel size should ideally be below 0.1884 milli-arcsec
! Estimated beam: bmin=0.5926 mas, bmaj=1.273 mas, bpa=-1.899 degrees
! Estimated noise=1727.44 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.93397 Jy
! Component: 100  -  total flux cleaned = 3.60183 Jy
! Component: 150  -  total flux cleaned = 3.87029 Jy
! Component: 200  -  total flux cleaned = 4.00412 Jy
! Total flux subtracted in 200 components = 4.00412 Jy
! Clean residual min=-0.017186 max=0.061886 Jy/beam
! Clean residual mean=0.002118 rms=0.007785 Jy/beam
! Combined flux in latest and established models = 4.00412 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 6 model components to the UV plane model.
! The established model now contains 6 components and 4.00412 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 1.09% of the data.
!  The x-axis pixel size should ideally be below 0.1884 milli-arcsec
! Estimated beam: bmin=0.8061 mas, bmaj=1.755 mas, bpa=-2.616 degrees
! Estimated noise=849.221 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.104592 Jy
! Component: 100  -  total flux cleaned = 0.162824 Jy
! Component: 150  -  total flux cleaned = 0.20041 Jy
! Component: 200  -  total flux cleaned = 0.225799 Jy
! Total flux subtracted in 200 components = 0.225799 Jy
! Clean residual min=-0.008379 max=0.016469 Jy/beam
! Clean residual mean=0.002138 rms=0.004331 Jy/beam
! Combined flux in latest and established models = 4.22992 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 38 components and 4.22992 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.09% of the data.
!  The x-axis pixel size should ideally be below 0.1884 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.09% of the data.
!  The x-axis pixel size should ideally be below 0.1884 milli-arcsec
! Estimated beam: bmin=2.189 mas, bmaj=3.999 mas, bpa=-3.874 degrees
! Estimated noise=1085.79 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0311906 Jy
! Component: 100  -  total flux cleaned = 0.0482648 Jy
! Component: 150  -  total flux cleaned = 0.0588937 Jy
! Component: 200  -  total flux cleaned = 0.066256 Jy
! Total flux subtracted in 200 components = 0.066256 Jy
! Clean residual min=-0.005453 max=0.008884 Jy/beam
! Clean residual mean=0.001497 rms=0.003054 Jy/beam
! Combined flux in latest and established models = 4.29617 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.00512193 Jy
! Component: 100  -  total flux cleaned = 0.00874195 Jy
! Component: 150  -  total flux cleaned = 0.0112525 Jy
! Component: 200  -  total flux cleaned = 0.0117793 Jy
! Total flux subtracted in 200 components = 0.0117793 Jy
! Clean residual min=-0.004499 max=0.007529 Jy/beam
! Clean residual mean=0.000968 rms=0.002522 Jy/beam
! Combined flux in latest and established models = 4.30795 Jy
! Adding 58 model components to the UV plane model.
! The established model now contains 90 components and 4.30795 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.09% of the data.
!  The x-axis pixel size should ideally be below 0.1884 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 1.09% of the data.
!  The x-axis pixel size should ideally be below 0.1884 milli-arcsec
! Estimated beam: bmin=0.8061 mas, bmaj=1.755 mas, bpa=-2.616 degrees
! Estimated noise=849.221 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00139356 Jy
! Component: 100  -  total flux cleaned = -0.00176887 Jy
! Component: 150  -  total flux cleaned = -0.00148026 Jy
! Component: 200  -  total flux cleaned = -0.000960429 Jy
! Total flux subtracted in 200 components = -0.000960429 Jy
! Clean residual min=-0.004997 max=0.007394 Jy/beam
! Clean residual mean=0.000449 rms=0.001828 Jy/beam
! Combined flux in latest and established models = 4.30699 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 103 components and 4.30699 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.174505Jy  sigma=0.001101
! Fit after  self-cal, rms=0.174253Jy  sigma=0.001099
wmodel J0730-1141_X_2001_10_29_pus_map.mod
! Writing 103 model components to file: J0730-1141_X_2001_10_29_pus_map.mod
wobs J0730-1141_X_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J0730-1141_X_2001_10_29_pus_uvs.fits
wwins J0730-1141_X_2001_10_29_pus_map.win
! wwins: Wrote 3 windows to J0730-1141_X_2001_10_29_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.09% of the data.
!  The x-axis pixel size should ideally be below 0.1884 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00323106 Jy
! Component: 100  -  total flux cleaned = 0.00593799 Jy
! Component: 150  -  total flux cleaned = 0.00797398 Jy
! Component: 200  -  total flux cleaned = 0.00974924 Jy
! Component: 250  -  total flux cleaned = 0.0114842 Jy
! Component: 300  -  total flux cleaned = 0.0130365 Jy
! Component: 350  -  total flux cleaned = 0.014285 Jy
! Component: 400  -  total flux cleaned = 0.0149896 Jy
! Component: 450  -  total flux cleaned = 0.0153967 Jy
! Component: 500  -  total flux cleaned = 0.0155938 Jy
! Component: 550  -  total flux cleaned = 0.0157864 Jy
! Component: 600  -  total flux cleaned = 0.0160998 Jy
! Component: 650  -  total flux cleaned = 0.0163433 Jy
! Component: 700  -  total flux cleaned = 0.0165217 Jy
! Component: 750  -  total flux cleaned = 0.0166968 Jy
! Component: 800  -  total flux cleaned = 0.0168115 Jy
! Component: 850  -  total flux cleaned = 0.016979 Jy
! Component: 900  -  total flux cleaned = 0.0170335 Jy
! Component: 950  -  total flux cleaned = 0.0170869 Jy
! Component: 1000  -  total flux cleaned = 0.0170871 Jy
! Total flux subtracted in 1024 components = 0.0170876 Jy
! Clean residual min=-0.003589 max=0.002574 Jy/beam
! Clean residual mean=0.000027 rms=0.001032 Jy/beam
! Combined flux in latest and established models = 4.32408 Jy
keep
! Adding 69 model components to the UV plane model.
! The established model now contains 172 components and 4.32408 Jy
![Exited script file: muppet]
wmap "J0730-1141_X_2001_10_29_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 1.09% of the data.
!  The x-axis pixel size should ideally be below 0.1884 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8061 x 1.755 at -2.616 degrees (North through East)
! Clean map  min=-0.0037108  max=3.8752 Jy/beam
! Writing clean map to FITS file: J0730-1141_X_2001_10_29_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 3.87518 
invert
! Inverting map 
! Your choice of large map pixels excluded 1.09% of the data.
!  The x-axis pixel size should ideally be below 0.1884 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00103661 
device "J0730-1141_X_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J0730-1141_X_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.0802501 0.0802501 0.1605 0.321 0.642001 1.284 2.568 5.136 10.272 20.544 41.088 82.1761
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0031 
print "peak=",int(1000*peak_flux)/1000
! peak= 3.875 
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.8061 x 1.755 at -2.616 degrees (North through East)
! Clean map  min=-0.0037108  max=3.8752 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0730-1141_X_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J0730-1141_X_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0730-1141_X_2001_10_29_pus_uvs.log closed on Mon Feb 25 16:09:15 2008