! Started logfile: J2258-2758_X_1999_05_10_pus_uvs.log on Mon Jan 14 13:00:22 2008
obs J2258-2758_X_1999_05_10_pus_uva.fits
! Reading UV FITS file: J2258-2758_X_1999_05_10_pus_uva.fits
! AN table 1: 11 integrations on 153 of 153 possible baselines.
! AN table 2: 148 integrations on 153 of 153 possible baselines.
! AN table 3: 66 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.060915 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2258-2758
! 
! 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 1759 lines of history.
! 
! Reading 8388 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 J2258-2758_X_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 = 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 198 telescope corrections were flagged in sub-array 1.
!  A total of 2310 telescope corrections were flagged in sub-array 2.
!  A total of 1001 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 198 telescope corrections were flagged in sub-array 1.
!  A total of 2310 telescope corrections were flagged in sub-array 2.
!  A total of 984 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 198 telescope corrections were flagged in sub-array 1.
!  A total of 2310 telescope corrections were flagged in sub-array 2.
!  A total of 984 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 198 telescope corrections were flagged in sub-array 1.
!  A total of 2361 telescope corrections were flagged in sub-array 2.
!  A total of 984 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=3.226711Jy  sigma=0.030259
! Fit after  self-cal, rms=3.082335Jy  sigma=0.029850
! 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.468% of the data.
!  The x-axis pixel size should ideally be below 0.1985 milli-arcsec
! Estimated beam: bmin=0.6662 mas, bmaj=1.307 mas, bpa=-0.007215 degrees
! Estimated noise=1639.61 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 = 3.09464 Jy
! Component: 100  -  total flux cleaned = 3.81127 Jy
! Total flux subtracted in 100 components = 3.81127 Jy
! Clean residual min=-0.138480 max=0.279186 Jy/beam
! Clean residual mean=0.002644 rms=0.045611 Jy/beam
! Combined flux in latest and established models = 3.81127 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 3.81127 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.630894Jy  sigma=0.006426
! Fit after  self-cal, rms=0.630850Jy  sigma=0.006425
! Inverting map 
! Your choice of large map pixels excluded 0.468% of the data.
!  The x-axis pixel size should ideally be below 0.1985 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.313393 Jy
! Component: 100  -  total flux cleaned = 0.488235 Jy
! Total flux subtracted in 100 components = 0.488235 Jy
! Clean residual min=-0.115600 max=0.151344 Jy/beam
! Clean residual mean=0.000304 rms=0.031132 Jy/beam
! Combined flux in latest and established models = 4.2995 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 15 components and 4.2995 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.475435Jy  sigma=0.004287
! Fit after  self-cal, rms=0.475449Jy  sigma=0.004287
! Inverting map 
! Your choice of large map pixels excluded 0.468% of the data.
!  The x-axis pixel size should ideally be below 0.1985 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.468% of the data.
!  The x-axis pixel size should ideally be below 0.1985 milli-arcsec
! Estimated beam: bmin=0.8132 mas, bmaj=1.95 mas, bpa=-5.703 degrees
! Estimated noise=912.958 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.121627 Jy
! Component: 100  -  total flux cleaned = 0.179563 Jy
! Component: 150  -  total flux cleaned = 0.209129 Jy
! Component: 200  -  total flux cleaned = 0.222135 Jy
! Total flux subtracted in 200 components = 0.222135 Jy
! Clean residual min=-0.076780 max=0.093779 Jy/beam
! Clean residual mean=-0.008070 rms=0.025533 Jy/beam
! Combined flux in latest and established models = 4.52164 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 20 components and 4.52164 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.464373Jy  sigma=0.003868
! Fit after  self-cal, rms=0.464347Jy  sigma=0.003868
! Inverting map 
! Your choice of large map pixels excluded 0.468% of the data.
!  The x-axis pixel size should ideally be below 0.1985 milli-arcsec
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.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.95     GC        1.00*    HH        1.00*    
!   HN        1.05     KK        1.00     KP        0.98     LA        0.97     
!   MC        1.00*    MK        0.91     NL        0.99     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        1.00     SC        1.01     
!   WF        1.10     WZ        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.94     GC        1.00*    HH        0.95     
!   HN        0.98     KK        1.00*    KP        0.99     LA        0.97     
!   MC        1.15     MK        1.00*    NL        1.16     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        1.02     SC        1.03     
!   WF        1.92     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        0.94     GC        1.00*    HH        1.00*    
!   HN        1.05     KK        1.02     KP        0.99     LA        1.02     
!   MC        1.00*    MK        0.89     NL        0.96     NY        1.00*    
!   ON        1.00*    OV        0.94     PT        0.92     SC        1.00     
!   WF        1.16     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.94     GC        1.00*    HH        0.85     
!   HN        0.98     KK        1.00*    KP        1.01     LA        0.98     
!   MC        1.28     MK        1.00*    NL        1.20     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.93     SC        1.01     
!   WF        1.05     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        0.96     GC        1.00*    HH        1.00*    
!   HN        1.06     KK        1.07     KP        1.00     LA        1.00     
!   MC        1.00*    MK        0.88     NL        0.99     NY        1.00*    
!   ON        1.00*    OV        0.96     PT        0.93     SC        1.01     
!   WF        1.18     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.96     GC        1.00*    HH        0.88     
!   HN        1.02     KK        1.00*    KP        1.03     LA        0.96     
!   MC        1.33     MK        1.00*    NL        1.18     NY        1.00*    
!   ON        1.00*    OV        1.01     PT        0.93     SC        1.03     
!   WF        1.04     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        0.94     GC        1.00*    HH        1.00*    
!   HN        1.06     KK        1.03     KP        0.99     LA        1.02     
!   MC        1.00*    MK        0.89     NL        0.98     NY        1.00*    
!   ON        1.00*    OV        0.96     PT        0.94     SC        0.98     
!   WF        1.16     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.94     GC        1.00*    HH        0.93     
!   HN        1.02     KK        1.00*    KP        1.01     LA        0.98     
!   MC        1.31     MK        1.00*    NL        1.18     NY        1.00*    
!   ON        1.00*    OV        1.01     PT        0.96     SC        1.00     
!   WF        1.03     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.464347Jy  sigma=0.003868
! Fit after  self-cal, rms=0.316117Jy  sigma=0.002157
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.432% of the data.
!  The x-axis pixel size should ideally be below 0.1985 milli-arcsec
! Estimated beam: bmin=0.8292 mas, bmaj=2.231 mas, bpa=-6.233 degrees
! Estimated noise=921.256 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.012002 Jy
! Component: 100  -  total flux cleaned = -0.0134763 Jy
! Component: 150  -  total flux cleaned = -0.0141416 Jy
! Component: 200  -  total flux cleaned = -0.0147858 Jy
! Total flux subtracted in 200 components = -0.0147858 Jy
! Clean residual min=-0.041233 max=0.032980 Jy/beam
! Clean residual mean=-0.001716 rms=0.008589 Jy/beam
! Combined flux in latest and established models = 4.50685 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 28 components and 4.50685 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.312378Jy  sigma=0.002128
! Fit after  self-cal, rms=0.313104Jy  sigma=0.002128
! Inverting map 
! Your choice of large map pixels excluded 0.432% of the data.
!  The x-axis pixel size should ideally be below 0.1985 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.313104Jy  sigma=0.002128
! Fit after  self-cal, rms=0.308405Jy  sigma=0.002113
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.432% of the data.
!  The x-axis pixel size should ideally be below 0.1985 milli-arcsec
! Estimated beam: bmin=0.8308 mas, bmaj=2.236 mas, bpa=-6.22 degrees
! Estimated noise=920.805 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0105246 Jy
! Component: 100  -  total flux cleaned = -0.0117499 Jy
! Component: 150  -  total flux cleaned = -0.0128244 Jy
! Component: 200  -  total flux cleaned = -0.013322 Jy
! Total flux subtracted in 200 components = -0.013322 Jy
! Clean residual min=-0.035773 max=0.033208 Jy/beam
! Clean residual mean=-0.001503 rms=0.008031 Jy/beam
! Combined flux in latest and established models = 4.49353 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 30 components and 4.49353 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.305806Jy  sigma=0.002093
! Fit after  self-cal, rms=0.305934Jy  sigma=0.002093
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.432% of the data.
!  The x-axis pixel size should ideally be below 0.1985 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.00050379 Jy
! Component: 100  -  total flux cleaned = -0.000955809 Jy
! Component: 150  -  total flux cleaned = -0.00139323 Jy
! Component: 200  -  total flux cleaned = -0.00218831 Jy
! Total flux subtracted in 200 components = -0.00218831 Jy
! Clean residual min=-0.032263 max=0.033644 Jy/beam
! Clean residual mean=-0.001442 rms=0.007758 Jy/beam
! Combined flux in latest and established models = 4.49134 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 31 components and 4.49134 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.304471Jy  sigma=0.002084
! Fit after  self-cal, rms=0.304512Jy  sigma=0.002084
! Inverting map 
! Your choice of large map pixels excluded 0.432% of the data.
!  The x-axis pixel size should ideally be below 0.1985 milli-arcsec
! Added new window around map position (-3, -3.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0318109 Jy
! Component: 100  -  total flux cleaned = 0.0405486 Jy
! Component: 150  -  total flux cleaned = 0.0411174 Jy
! Component: 200  -  total flux cleaned = 0.0406734 Jy
! Total flux subtracted in 200 components = 0.0406734 Jy
! Clean residual min=-0.032523 max=0.018465 Jy/beam
! Clean residual mean=-0.002483 rms=0.005900 Jy/beam
! Combined flux in latest and established models = 4.53201 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 49 components and 4.53201 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.300842Jy  sigma=0.002038
! Fit after  self-cal, rms=0.300072Jy  sigma=0.002031
! Inverting map 
! Your choice of large map pixels excluded 0.432% of the data.
!  The x-axis pixel size should ideally be below 0.1985 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.300072Jy  sigma=0.002031
! Fit after  self-cal, rms=0.299769Jy  sigma=0.002026
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.432% of the data.
!  The x-axis pixel size should ideally be below 0.1985 milli-arcsec
! Estimated beam: bmin=0.832 mas, bmaj=2.238 mas, bpa=-6.157 degrees
! Estimated noise=920.846 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0074103 Jy
! Component: 100  -  total flux cleaned = 0.00895181 Jy
! Component: 150  -  total flux cleaned = 0.00849993 Jy
! Component: 200  -  total flux cleaned = 0.00851908 Jy
! Total flux subtracted in 200 components = 0.00851908 Jy
! Clean residual min=-0.028439 max=0.013452 Jy/beam
! Clean residual mean=-0.002672 rms=0.004961 Jy/beam
! Combined flux in latest and established models = 4.54053 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 52 components and 4.54053 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.298085Jy  sigma=0.002006
! Fit after  self-cal, rms=0.297759Jy  sigma=0.002004
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.432% of the data.
!  The x-axis pixel size should ideally be below 0.1985 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.00654438 Jy
! Component: 100  -  total flux cleaned = 0.00655832 Jy
! Component: 150  -  total flux cleaned = 0.00655204 Jy
! Component: 200  -  total flux cleaned = 0.00622702 Jy
! Total flux subtracted in 200 components = 0.00622702 Jy
! Clean residual min=-0.026843 max=0.011245 Jy/beam
! Clean residual mean=-0.002835 rms=0.004508 Jy/beam
! Combined flux in latest and established models = 4.54676 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 59 components and 4.54676 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.296908Jy  sigma=0.001996
! Fit after  self-cal, rms=0.296801Jy  sigma=0.001995
! Inverting map 
! Your choice of large map pixels excluded 0.432% of the data.
!  The x-axis pixel size should ideally be below 0.1985 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.296801Jy  sigma=0.001995
! Fit after  self-cal, rms=0.296471Jy  sigma=0.001992
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.432% of the data.
!  The x-axis pixel size should ideally be below 0.1985 milli-arcsec
! Estimated beam: bmin=2.115 mas, bmaj=5.002 mas, bpa=-4.35 degrees
! Estimated noise=1120.39 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0092012 Jy
! Component: 100  -  total flux cleaned = -0.00997093 Jy
! Component: 150  -  total flux cleaned = -0.0109116 Jy
! Component: 200  -  total flux cleaned = -0.0114527 Jy
! Total flux subtracted in 200 components = -0.0114527 Jy
! Clean residual min=-0.018299 max=0.006203 Jy/beam
! Clean residual mean=-0.005399 rms=0.004296 Jy/beam
! Combined flux in latest and established models = 4.53531 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 68 components and 4.53531 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.296197Jy  sigma=0.001987
! Fit after  self-cal, rms=0.295777Jy  sigma=0.001984
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.432% of the data.
!  The x-axis pixel size should ideally be below 0.1985 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.000771103 Jy
! Component: 100  -  total flux cleaned = 0.000535511 Jy
! Component: 150  -  total flux cleaned = 0.000330746 Jy
! Component: 200  -  total flux cleaned = 0.000146711 Jy
! Total flux subtracted in 200 components = 0.000146711 Jy
! Clean residual min=-0.017791 max=0.004972 Jy/beam
! Clean residual mean=-0.005407 rms=0.004154 Jy/beam
! Combined flux in latest and established models = 4.53545 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 72 components and 4.53545 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.295774Jy  sigma=0.001984
! Fit after  self-cal, rms=0.295591Jy  sigma=0.001983
! Inverting map 
! Your choice of large map pixels excluded 0.432% of the data.
!  The x-axis pixel size should ideally be below 0.1985 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Your choice of large map pixels excluded 0.432% of the data.
!  The x-axis pixel size should ideally be below 0.1985 milli-arcsec
! Estimated beam: bmin=0.8332 mas, bmaj=2.24 mas, bpa=-6.092 degrees
! Estimated noise=921.102 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8332 x 2.24 at -6.092 degrees (North through East)
! Clean map  min=-0.016887  max=4.0615 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.295591Jy  sigma=0.001983
! Fit after  self-cal, rms=0.265846Jy  sigma=0.001225
! Inverting map and beam 
! Your choice of large map pixels excluded 0.432% of the data.
!  The x-axis pixel size should ideally be below 0.1985 milli-arcsec
! Estimated beam: bmin=0.8345 mas, bmaj=2.242 mas, bpa=-5.992 degrees
! Estimated noise=917.927 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00315266 Jy
! Component: 100  -  total flux cleaned = -0.00349261 Jy
! Component: 150  -  total flux cleaned = -0.00349634 Jy
! Component: 200  -  total flux cleaned = -0.00376662 Jy
! Total flux subtracted in 200 components = -0.00376661 Jy
! Clean residual min=-0.020243 max=0.010137 Jy/beam
! Clean residual mean=-0.002104 rms=0.003186 Jy/beam
! Combined flux in latest and established models = 4.53169 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 75 components and 4.53169 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.264836Jy  sigma=0.001212
! Fit after  self-cal, rms=0.264885Jy  sigma=0.001211
! Inverting map 
! Your choice of large map pixels excluded 0.432% of the data.
!  The x-axis pixel size should ideally be below 0.1985 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00229547 Jy
! Component: 100  -  total flux cleaned = 0.00229615 Jy
! Component: 150  -  total flux cleaned = 0.0023048 Jy
! Component: 200  -  total flux cleaned = 0.00249599 Jy
! Total flux subtracted in 200 components = 0.00249599 Jy
! Clean residual min=-0.018901 max=0.008522 Jy/beam
! Clean residual mean=-0.002171 rms=0.002980 Jy/beam
! Combined flux in latest and established models = 4.53418 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 80 components and 4.53418 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.264490Jy  sigma=0.001206
! Fit after  self-cal, rms=0.264532Jy  sigma=0.001206
! Inverting map 
! Your choice of large map pixels excluded 0.432% of the data.
!  The x-axis pixel size should ideally be below 0.1985 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.264532Jy  sigma=0.001206
! Fit after  self-cal, rms=0.264178Jy  sigma=0.001201
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.432% of the data.
!  The x-axis pixel size should ideally be below 0.1985 milli-arcsec
! Estimated beam: bmin=0.6765 mas, bmaj=1.496 mas, bpa=-0.1529 degrees
! Estimated noise=1632.7 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 3.13518 Jy
! Component: 100  -  total flux cleaned = 3.84007 Jy
! Component: 150  -  total flux cleaned = 4.09659 Jy
! Component: 200  -  total flux cleaned = 4.23466 Jy
! Total flux subtracted in 200 components = 4.23466 Jy
! Clean residual min=-0.036585 max=0.077893 Jy/beam
! Clean residual mean=0.001265 rms=0.012694 Jy/beam
! Combined flux in latest and established models = 4.23465 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 18 model components to the UV plane model.
! The established model now contains 18 components and 4.23465 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 0.432% of the data.
!  The x-axis pixel size should ideally be below 0.1985 milli-arcsec
! Estimated beam: bmin=0.8356 mas, bmaj=2.243 mas, bpa=-5.945 degrees
! Estimated noise=917.558 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)
! Added new window around map position (0, -1.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.108034 Jy
! Component: 100  -  total flux cleaned = 0.173166 Jy
! Component: 150  -  total flux cleaned = 0.215687 Jy
! Component: 200  -  total flux cleaned = 0.244027 Jy
! Total flux subtracted in 200 components = 0.244027 Jy
! Clean residual min=-0.014168 max=0.016541 Jy/beam
! Clean residual mean=-0.000653 rms=0.004613 Jy/beam
! Combined flux in latest and established models = 4.47868 Jy
! Adding 39 model components to the UV plane model.
! The established model now contains 57 components and 4.47868 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.432% of the data.
!  The x-axis pixel size should ideally be below 0.1985 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.432% of the data.
!  The x-axis pixel size should ideally be below 0.1985 milli-arcsec
! Estimated beam: bmin=2.115 mas, bmaj=5.007 mas, bpa=-4.336 degrees
! Estimated noise=1113.71 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0266314 Jy
! Component: 100  -  total flux cleaned = 0.0391666 Jy
! Component: 150  -  total flux cleaned = 0.0407467 Jy
! Component: 200  -  total flux cleaned = 0.0404905 Jy
! Total flux subtracted in 200 components = 0.0404905 Jy
! Clean residual min=-0.011881 max=0.004875 Jy/beam
! Clean residual mean=-0.003860 rms=0.003042 Jy/beam
! Combined flux in latest and established models = 4.51917 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.000226659 Jy
! Component: 100  -  total flux cleaned = -0.000430255 Jy
! Component: 150  -  total flux cleaned = -0.00061512 Jy
! Component: 200  -  total flux cleaned = -0.000783784 Jy
! Total flux subtracted in 200 components = -0.000783784 Jy
! Clean residual min=-0.011296 max=0.004429 Jy/beam
! Clean residual mean=-0.003826 rms=0.002770 Jy/beam
! Combined flux in latest and established models = 4.51839 Jy
! Adding 36 model components to the UV plane model.
! The established model now contains 86 components and 4.51839 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.432% of the data.
!  The x-axis pixel size should ideally be below 0.1985 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 0.432% of the data.
!  The x-axis pixel size should ideally be below 0.1985 milli-arcsec
! Estimated beam: bmin=0.8356 mas, bmaj=2.243 mas, bpa=-5.945 degrees
! Estimated noise=917.558 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00182434 Jy
! Component: 100  -  total flux cleaned = -0.00181497 Jy
! Component: 150  -  total flux cleaned = -0.00214434 Jy
! Component: 200  -  total flux cleaned = -0.00244882 Jy
! Total flux subtracted in 200 components = -0.00244882 Jy
! Clean residual min=-0.010815 max=0.008673 Jy/beam
! Clean residual mean=-0.001672 rms=0.002636 Jy/beam
! Combined flux in latest and established models = 4.51594 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 106 components and 4.51594 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.265002Jy  sigma=0.001206
! Fit after  self-cal, rms=0.265024Jy  sigma=0.001204
wmodel J2258-2758_X_1999_05_10_pus_map.mod
! Writing 106 model components to file: J2258-2758_X_1999_05_10_pus_map.mod
wobs J2258-2758_X_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J2258-2758_X_1999_05_10_pus_uvs.fits
wwins J2258-2758_X_1999_05_10_pus_map.win
! wwins: Wrote 3 windows to J2258-2758_X_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 
! Your choice of large map pixels excluded 0.432% of the data.
!  The x-axis pixel size should ideally be below 0.1985 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.00471178 Jy
! Component: 100  -  total flux cleaned = -0.0089286 Jy
! Component: 150  -  total flux cleaned = -0.0125305 Jy
! Component: 200  -  total flux cleaned = -0.0156343 Jy
! Component: 250  -  total flux cleaned = -0.0187473 Jy
! Component: 300  -  total flux cleaned = -0.0217446 Jy
! Component: 350  -  total flux cleaned = -0.0243794 Jy
! Component: 400  -  total flux cleaned = -0.0268074 Jy
! Component: 450  -  total flux cleaned = -0.0291685 Jy
! Component: 500  -  total flux cleaned = -0.0314665 Jy
! Component: 550  -  total flux cleaned = -0.0334722 Jy
! Component: 600  -  total flux cleaned = -0.035087 Jy
! Component: 650  -  total flux cleaned = -0.0367811 Jy
! Component: 700  -  total flux cleaned = -0.0385523 Jy
! Component: 750  -  total flux cleaned = -0.0400716 Jy
! Component: 800  -  total flux cleaned = -0.0415625 Jy
! Component: 850  -  total flux cleaned = -0.0430244 Jy
! Component: 900  -  total flux cleaned = -0.0441537 Jy
! Component: 950  -  total flux cleaned = -0.0454657 Jy
! Component: 1000  -  total flux cleaned = -0.0467544 Jy
! Total flux subtracted in 1024 components = -0.0473406 Jy
! Clean residual min=-0.005621 max=0.004877 Jy/beam
! Clean residual mean=-0.000915 rms=0.001866 Jy/beam
! Combined flux in latest and established models = 4.4686 Jy
keep
! Adding 66 model components to the UV plane model.
! The established model now contains 172 components and 4.4686 Jy
![Exited script file: muppet]
wmap "J2258-2758_X_1999_05_10_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 0.432% of the data.
!  The x-axis pixel size should ideally be below 0.1985 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8356 x 2.243 at -5.945 degrees (North through East)
! Clean map  min=-0.010212  max=4.0664 Jy/beam
! Writing clean map to FITS file: J2258-2758_X_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 4.06635 
invert
! Inverting map 
! Your choice of large map pixels excluded 0.432% of the data.
!  The x-axis pixel size should ideally be below 0.1985 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00187955 
device "J2258-2758_X_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J2258-2758_X_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.138666 0.138666 0.277331 0.554663 1.10933 2.21865 4.4373 8.87461 17.7492 35.4984 70.9968
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0056 
print "peak=",int(1000*peak_flux)/1000
! peak= 4.066 
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.8356 x 2.243 at -5.945 degrees (North through East)
! Clean map  min=-0.010212  max=4.0664 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2258-2758_X_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J2258-2758_X_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2258-2758_X_1999_05_10_pus_uvs.log closed on Mon Jan 14 13:00:29 2008