! Started logfile: J0538-4405_X_2001_10_29_pus_uvs.log on Mon Feb 25 16:39:28 2008
obs J0538-4405_X_2001_10_29_pus_uva.fits
! Reading UV FITS file: J0538-4405_X_2001_10_29_pus_uva.fits
! AN table 1: 29 integrations on 153 of 153 possible baselines.
! AN table 2: 9 integrations on 153 of 153 possible baselines.
! AN table 3: 10 integrations on 153 of 153 possible baselines.
! AN table 4: 11 integrations on 153 of 153 possible baselines.
! AN table 5: 20 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.0196078 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0538-4405
! 
! 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 948 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.2 
print "taper_size =",taper_size
! taper_size = 70 
![@muppet J0538-4405_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 = 512x512 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 489 telescope corrections were flagged in sub-array 1.
!  A total of 162 telescope corrections were flagged in sub-array 2.
!  A total of 180 telescope corrections were flagged in sub-array 3.
!  A total of 198 telescope corrections were flagged in sub-array 4.
!  A total of 274 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 489 telescope corrections were flagged in sub-array 1.
!  A total of 162 telescope corrections were flagged in sub-array 2.
!  A total of 180 telescope corrections were flagged in sub-array 3.
!  A total of 198 telescope corrections were flagged in sub-array 4.
!  A total of 274 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 489 telescope corrections were flagged in sub-array 1.
!  A total of 162 telescope corrections were flagged in sub-array 2.
!  A total of 180 telescope corrections were flagged in sub-array 3.
!  A total of 198 telescope corrections were flagged in sub-array 4.
!  A total of 274 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 489 telescope corrections were flagged in sub-array 1.
!  A total of 162 telescope corrections were flagged in sub-array 2.
!  A total of 180 telescope corrections were flagged in sub-array 3.
!  A total of 198 telescope corrections were flagged in sub-array 4.
!  A total of 274 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=4.483223Jy  sigma=0.032751
! Fit after  self-cal, rms=4.064417Jy  sigma=0.032300
! 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=0.6115 mas, bmaj=2.108 mas, bpa=6.351 degrees
! Estimated noise=5664.5 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.54409 Jy
! Component: 100  -  total flux cleaned = 4.50838 Jy
! Total flux subtracted in 100 components = 4.50838 Jy
! Clean residual min=-0.156578 max=0.352155 Jy/beam
! Clean residual mean=0.010045 rms=0.082766 Jy/beam
! Combined flux in latest and established models = 4.50838 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 4.50838 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.907820Jy  sigma=0.007332
! Fit after  self-cal, rms=0.907296Jy  sigma=0.007326
! 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=0.8112 mas, bmaj=2.801 mas, bpa=7.739 degrees
! Estimated noise=3309.03 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.656231 Jy
! Component: 100  -  total flux cleaned = 0.925378 Jy
! Component: 150  -  total flux cleaned = 1.04121 Jy
! Component: 200  -  total flux cleaned = 1.09357 Jy
! Total flux subtracted in 200 components = 1.09356 Jy
! Clean residual min=-0.105351 max=0.118483 Jy/beam
! Clean residual mean=0.000859 rms=0.037301 Jy/beam
! Combined flux in latest and established models = 5.60195 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 34 components and 5.60194 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.365920Jy  sigma=0.002540
! Fit after  self-cal, rms=0.365618Jy  sigma=0.002537
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        0.97     KP        0.95     LA        1.01     
!   MA        1.00*    MC        1.00*    MK        0.99     NL        1.00*    
!   OV        1.00     PT        1.01     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.01     KP        0.96     LA        0.99     
!   MA        1.00*    MC        1.00*    MK        0.98     NL        1.00*    
!   OV        1.00     PT        0.99     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        0.97     KP        0.95     LA        1.02     
!   MA        1.00*    MC        1.00*    MK        1.00     NL        1.00*    
!   OV        0.99     PT        1.01     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        0.97     KP        0.98     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        1.05     NL        1.00*    
!   OV        0.98     PT        1.01     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.365618Jy  sigma=0.002537
! Fit after  self-cal, rms=0.241534Jy  sigma=0.001897
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.9617 mas, bmaj=9.852 mas, bpa=-6.31 degrees
! Estimated noise=3582.17 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, -25.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0538992 Jy
! Component: 100  -  total flux cleaned = 0.0578826 Jy
! Component: 150  -  total flux cleaned = 0.0598171 Jy
! Component: 200  -  total flux cleaned = 0.0620991 Jy
! Total flux subtracted in 200 components = 0.0620991 Jy
! Clean residual min=-0.023952 max=0.019957 Jy/beam
! Clean residual mean=0.000639 rms=0.005596 Jy/beam
! Combined flux in latest and established models = 5.66404 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 52 components and 5.66404 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227528Jy  sigma=0.001813
! Fit after  self-cal, rms=0.226429Jy  sigma=0.001804
! 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.226429Jy  sigma=0.001804
! Fit after  self-cal, rms=0.224328Jy  sigma=0.001795
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=0.9599 mas, bmaj=9.852 mas, bpa=-6.317 degrees
! Estimated noise=3581.09 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0198905 Jy
! Component: 100  -  total flux cleaned = 0.0243835 Jy
! Component: 150  -  total flux cleaned = 0.0257462 Jy
! Component: 200  -  total flux cleaned = 0.0264472 Jy
! Total flux subtracted in 200 components = 0.0264472 Jy
! Clean residual min=-0.012903 max=0.009743 Jy/beam
! Clean residual mean=0.000068 rms=0.004227 Jy/beam
! Combined flux in latest and established models = 5.69049 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 68 components and 5.69049 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222092Jy  sigma=0.001786
! Fit after  self-cal, rms=0.221883Jy  sigma=0.001784
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.00516385 Jy
! Component: 100  -  total flux cleaned = 0.00572216 Jy
! Component: 150  -  total flux cleaned = 0.00604735 Jy
! Component: 200  -  total flux cleaned = 0.00648212 Jy
! Total flux subtracted in 200 components = 0.00648212 Jy
! Clean residual min=-0.012747 max=0.009797 Jy/beam
! Clean residual mean=-0.000018 rms=0.004263 Jy/beam
! Combined flux in latest and established models = 5.69697 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 79 components and 5.69697 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.221481Jy  sigma=0.001783
! Fit after  self-cal, rms=0.221453Jy  sigma=0.001782
! 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.221453Jy  sigma=0.001782
! Fit after  self-cal, rms=0.221025Jy  sigma=0.001779
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=0.9588 mas, bmaj=9.853 mas, bpa=-6.322 degrees
! Estimated noise=3582.07 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00924466 Jy
! Component: 100  -  total flux cleaned = 0.0119925 Jy
! Component: 150  -  total flux cleaned = 0.0123467 Jy
! Component: 200  -  total flux cleaned = 0.0127987 Jy
! Total flux subtracted in 200 components = 0.0127987 Jy
! Clean residual min=-0.010145 max=0.007763 Jy/beam
! Clean residual mean=-0.000088 rms=0.003496 Jy/beam
! Combined flux in latest and established models = 5.70977 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 85 components and 5.70977 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220424Jy  sigma=0.001777
! Fit after  self-cal, rms=0.220401Jy  sigma=0.001777
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.00179686 Jy
! Component: 100  -  total flux cleaned = 0.00213794 Jy
! Component: 150  -  total flux cleaned = 0.00243554 Jy
! Component: 200  -  total flux cleaned = 0.00252422 Jy
! Total flux subtracted in 200 components = 0.00252422 Jy
! Clean residual min=-0.010019 max=0.008159 Jy/beam
! Clean residual mean=-0.000125 rms=0.003463 Jy/beam
! Combined flux in latest and established models = 5.7123 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 89 components and 5.7123 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220265Jy  sigma=0.001777
! Fit after  self-cal, rms=0.220263Jy  sigma=0.001777
! Inverting map 
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.220263Jy  sigma=0.001777
! Fit after  self-cal, rms=0.220442Jy  sigma=0.001776
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.12 mas, bmaj=14.28 mas, bpa=7.999 degrees
! Estimated noise=4239.79 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00627717 Jy
! Component: 100  -  total flux cleaned = 0.00660343 Jy
! Component: 150  -  total flux cleaned = 0.00669186 Jy
! Component: 200  -  total flux cleaned = 0.00677257 Jy
! Total flux subtracted in 200 components = 0.00677257 Jy
! Clean residual min=-0.012366 max=0.008831 Jy/beam
! Clean residual mean=-0.000158 rms=0.004394 Jy/beam
! Combined flux in latest and established models = 5.71907 Jy
selfcal
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 111 components and 5.71907 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220240Jy  sigma=0.001776
! Fit after  self-cal, rms=0.220152Jy  sigma=0.001775
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.000178363 Jy
! Component: 100  -  total flux cleaned = 0.000257002 Jy
! Component: 150  -  total flux cleaned = 0.000415109 Jy
! Component: 200  -  total flux cleaned = 0.000564838 Jy
! Total flux subtracted in 200 components = 0.000564838 Jy
! Clean residual min=-0.012046 max=0.008433 Jy/beam
! Clean residual mean=-0.000167 rms=0.004331 Jy/beam
! Combined flux in latest and established models = 5.71963 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 114 components and 5.71963 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220123Jy  sigma=0.001775
! Fit after  self-cal, rms=0.220102Jy  sigma=0.001775
! 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=0.9583 mas, bmaj=9.854 mas, bpa=-6.325 degrees
! Estimated noise=3584.24 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9583 x 9.854 at -6.325 degrees (North through East)
! Clean map  min=-0.019299  max=5.1906 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.220102Jy  sigma=0.001775
! Fit after  self-cal, rms=0.127809Jy  sigma=0.000916
! Inverting map and beam 
! Estimated beam: bmin=0.9607 mas, bmaj=9.854 mas, bpa=-6.316 degrees
! Estimated noise=3587.17 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0103777 Jy
! Component: 100  -  total flux cleaned = -0.011325 Jy
! Component: 150  -  total flux cleaned = -0.0122151 Jy
! Component: 200  -  total flux cleaned = -0.0126344 Jy
! Total flux subtracted in 200 components = -0.0126344 Jy
! Clean residual min=-0.011570 max=0.009752 Jy/beam
! Clean residual mean=-0.000048 rms=0.003267 Jy/beam
! Combined flux in latest and established models = 5.707 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 129 components and 5.707 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.126272Jy  sigma=0.000908
! Fit after  self-cal, rms=0.126229Jy  sigma=0.000907
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00164383 Jy
! Component: 100  -  total flux cleaned = -0.0021149 Jy
! Component: 150  -  total flux cleaned = -0.00222449 Jy
! Component: 200  -  total flux cleaned = -0.00233031 Jy
! Total flux subtracted in 200 components = -0.00233031 Jy
! Clean residual min=-0.009680 max=0.008999 Jy/beam
! Clean residual mean=-0.000033 rms=0.003111 Jy/beam
! Combined flux in latest and established models = 5.70467 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 135 components and 5.70467 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.125997Jy  sigma=0.000906
! Fit after  self-cal, rms=0.126000Jy  sigma=0.000906
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.126000Jy  sigma=0.000906
! Fit after  self-cal, rms=0.125477Jy  sigma=0.000902
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=0.6796 mas, bmaj=11 mas, bpa=-7.197 degrees
! Estimated noise=6700.59 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 3.80189 Jy
! Component: 100  -  total flux cleaned = 4.64535 Jy
! Component: 150  -  total flux cleaned = 5.00387 Jy
! Component: 200  -  total flux cleaned = 5.22759 Jy
! Total flux subtracted in 200 components = 5.22759 Jy
! Clean residual min=-0.074335 max=0.130626 Jy/beam
! Clean residual mean=0.005116 rms=0.035185 Jy/beam
! Combined flux in latest and established models = 5.22759 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 15 model components to the UV plane model.
! The established model now contains 15 components and 5.22759 Jy
! Inverting map and beam 
! Estimated beam: bmin=0.9616 mas, bmaj=9.853 mas, bpa=-6.312 degrees
! Estimated noise=3587.13 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.239945 Jy
! Component: 100  -  total flux cleaned = 0.339373 Jy
! Component: 150  -  total flux cleaned = 0.392548 Jy
! Component: 200  -  total flux cleaned = 0.422159 Jy
! Total flux subtracted in 200 components = 0.422159 Jy
! Clean residual min=-0.025302 max=0.021299 Jy/beam
! Clean residual mean=0.001256 rms=0.006232 Jy/beam
! Combined flux in latest and established models = 5.64974 Jy
! Adding 28 model components to the UV plane model.
! The established model now contains 36 components and 5.64975 Jy
! Inverting map 
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 
! Estimated beam: bmin=3.126 mas, bmaj=14.34 mas, bpa=8.059 degrees
! Estimated noise=4228.54 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0210819 Jy
! Component: 100  -  total flux cleaned = 0.0299949 Jy
! Component: 150  -  total flux cleaned = 0.0330854 Jy
! Component: 200  -  total flux cleaned = 0.0333908 Jy
! Total flux subtracted in 200 components = 0.0333908 Jy
! Clean residual min=-0.009779 max=0.010879 Jy/beam
! Clean residual mean=0.000544 rms=0.004894 Jy/beam
! Combined flux in latest and established models = 5.68314 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.000287979 Jy
! Component: 100  -  total flux cleaned = 0.000432627 Jy
! Component: 150  -  total flux cleaned = 0.000695904 Jy
! Component: 200  -  total flux cleaned = 0.000949378 Jy
! Total flux subtracted in 200 components = 0.000949378 Jy
! Clean residual min=-0.010161 max=0.010581 Jy/beam
! Clean residual mean=0.000502 rms=0.004804 Jy/beam
! Combined flux in latest and established models = 5.68409 Jy
! Adding 18 model components to the UV plane model.
! The established model now contains 48 components and 5.68408 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=0.9616 mas, bmaj=9.853 mas, bpa=-6.312 degrees
! Estimated noise=3587.13 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00237601 Jy
! Component: 100  -  total flux cleaned = 0.00266654 Jy
! Component: 150  -  total flux cleaned = 0.00288415 Jy
! Component: 200  -  total flux cleaned = 0.00286819 Jy
! Total flux subtracted in 200 components = 0.00286819 Jy
! Clean residual min=-0.009032 max=0.009219 Jy/beam
! Clean residual mean=0.000263 rms=0.003338 Jy/beam
! Combined flux in latest and established models = 5.68695 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 70 components and 5.68695 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.125787Jy  sigma=0.000904
! Fit after  self-cal, rms=0.125714Jy  sigma=0.000903
wmodel J0538-4405_X_2001_10_29_pus_map.mod
! Writing 70 model components to file: J0538-4405_X_2001_10_29_pus_map.mod
wobs J0538-4405_X_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J0538-4405_X_2001_10_29_pus_uvs.fits
wwins J0538-4405_X_2001_10_29_pus_map.win
! wwins: Wrote 2 windows to J0538-4405_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 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000155027 Jy
! Component: 100  -  total flux cleaned = 0.00166627 Jy
! Component: 150  -  total flux cleaned = 0.00342609 Jy
! Component: 200  -  total flux cleaned = 0.00457245 Jy
! Component: 250  -  total flux cleaned = 0.00541849 Jy
! Component: 300  -  total flux cleaned = 0.00658811 Jy
! Component: 350  -  total flux cleaned = 0.00833499 Jy
! Component: 400  -  total flux cleaned = 0.00921694 Jy
! Component: 450  -  total flux cleaned = 0.00990183 Jy
! Component: 500  -  total flux cleaned = 0.010649 Jy
! Component: 550  -  total flux cleaned = 0.0112928 Jy
! Component: 600  -  total flux cleaned = 0.0118405 Jy
! Component: 650  -  total flux cleaned = 0.0122977 Jy
! Component: 700  -  total flux cleaned = 0.0125281 Jy
! Component: 750  -  total flux cleaned = 0.0126062 Jy
! Component: 800  -  total flux cleaned = 0.0126044 Jy
! Component: 850  -  total flux cleaned = 0.0126056 Jy
! Component: 900  -  total flux cleaned = 0.0126045 Jy
! Component: 950  -  total flux cleaned = 0.0126008 Jy
! Component: 1000  -  total flux cleaned = 0.0126002 Jy
! Component: 1050  -  total flux cleaned = 0.0126993 Jy
! Component: 1100  -  total flux cleaned = 0.0127034 Jy
! Component: 1150  -  total flux cleaned = 0.0126979 Jy
! Component: 1200  -  total flux cleaned = 0.0127005 Jy
! Component: 1250  -  total flux cleaned = 0.0126978 Jy
! Component: 1300  -  total flux cleaned = 0.012699 Jy
! Component: 1350  -  total flux cleaned = 0.0126983 Jy
! Component: 1400  -  total flux cleaned = 0.0126956 Jy
! Component: 1450  -  total flux cleaned = 0.0126933 Jy
! Component: 1500  -  total flux cleaned = 0.0126951 Jy
! Component: 1550  -  total flux cleaned = 0.0126976 Jy
! Component: 1600  -  total flux cleaned = 0.0126961 Jy
! Component: 1650  -  total flux cleaned = 0.0126981 Jy
! Component: 1700  -  total flux cleaned = 0.0127009 Jy
! Component: 1750  -  total flux cleaned = 0.0127097 Jy
! Component: 1800  -  total flux cleaned = 0.0127113 Jy
! Component: 1850  -  total flux cleaned = 0.012712 Jy
! Component: 1900  -  total flux cleaned = 0.0127103 Jy
! Component: 1950  -  total flux cleaned = 0.0127157 Jy
! Component: 2000  -  total flux cleaned = 0.0127236 Jy
! Total flux subtracted in 2048 components = 0.0127273 Jy
! Clean residual min=-0.018767 max=0.017522 Jy/beam
! Clean residual mean=-0.000134 rms=0.005097 Jy/beam
! Combined flux in latest and established models = 5.69968 Jy
keep
! Adding 55 model components to the UV plane model.
! The established model now contains 125 components and 5.69968 Jy
![Exited script file: muppet]
wmap "J0538-4405_X_2001_10_29_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9616 x 9.853 at -6.312 degrees (North through East)
! Clean map  min=-0.032592  max=5.1879 Jy/beam
! Writing clean map to FITS file: J0538-4405_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 5.18794 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00590304 
device "J0538-4405_X_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J0538-4405_X_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.341352 0.341352 0.682703 1.36541 2.73081 5.46163 10.9233 21.8465 43.693 87.386
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0177 
print "peak=",int(1000*peak_flux)/1000
! peak= 5.187 
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.9616 x 9.853 at -6.312 degrees (North through East)
! Clean map  min=-0.032592  max=5.1879 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0538-4405_X_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J0538-4405_X_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0538-4405_X_2001_10_29_pus_uvs.log closed on Mon Feb 25 16:39:33 2008