! Started logfile: J1427-4206_X_1999_12_20_pus_uvs.log on Fri Dec 14 17:24:08 2007
obs J1427-4206_X_1999_12_20_pus_uva.fits
! Reading UV FITS file: J1427-4206_X_1999_12_20_pus_uva.fits
! AN table 1: 84 integrations on 190 of 190 possible baselines.
! AN table 2: 34 integrations on 190 of 190 possible baselines.
! AN table 3: 8 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0525063 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1427-4206
! 
! 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 2418 lines of history.
! 
! Reading 5028 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 J1427-4206_X_1999_12_20_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 1334 telescope corrections were flagged in sub-array 1.
!  A total of 511 telescope corrections were flagged in sub-array 2.
!  A total of 160 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1334 telescope corrections were flagged in sub-array 1.
!  A total of 511 telescope corrections were flagged in sub-array 2.
!  A total of 160 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1334 telescope corrections were flagged in sub-array 1.
!  A total of 511 telescope corrections were flagged in sub-array 2.
!  A total of 160 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1334 telescope corrections were flagged in sub-array 1.
!  A total of 511 telescope corrections were flagged in sub-array 2.
!  A total of 160 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.946382Jy  sigma=0.009567
! Fit after  self-cal, rms=0.393295Jy  sigma=0.003560
! 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 1.49% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=0.6419 mas, bmaj=2 mas, bpa=4.183 degrees
! Estimated noise=2051.42 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.517968 Jy
! Component: 100  -  total flux cleaned = 0.72848 Jy
! Total flux subtracted in 100 components = 0.72848 Jy
! Clean residual min=-0.049579 max=0.125222 Jy/beam
! Clean residual mean=0.002502 rms=0.031354 Jy/beam
! Combined flux in latest and established models = 0.72848 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 14 components and 0.72848 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.309073Jy  sigma=0.003508
! Fit after  self-cal, rms=0.308786Jy  sigma=0.003505
! Inverting map 
! Your choice of large map pixels excluded 1.49% of the data.
!  The x-axis pixel size should ideally be below 0.1902 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 1.49% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=0.923 mas, bmaj=3.105 mas, bpa=5.366 degrees
! Estimated noise=969.024 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.225295 Jy
! Component: 100  -  total flux cleaned = 0.313384 Jy
! Component: 150  -  total flux cleaned = 0.347963 Jy
! Component: 200  -  total flux cleaned = 0.361539 Jy
! Total flux subtracted in 200 components = 0.361539 Jy
! Clean residual min=-0.023254 max=0.035735 Jy/beam
! Clean residual mean=0.001979 rms=0.009519 Jy/beam
! Combined flux in latest and established models = 1.09002 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 20 components and 1.09002 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.147338Jy  sigma=0.001424
! Fit after  self-cal, rms=0.146980Jy  sigma=0.001421
! Inverting map 
! Your choice of large map pixels excluded 1.49% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.94     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.04     LA        0.97     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.17     PT        1.04     SC        1.08     TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.96     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        0.99     KP        0.94     LA        1.01     
!   MC        1.00*    MK        1.12     NY        1.00*    ON        1.00*    
!   OV        1.06     PT        1.01     SC        0.92     TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   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*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.96     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        0.99     LA        0.98     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.16     PT        1.02     SC        1.03     TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.95     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00     KP        0.90     LA        1.00     
!   MC        1.00*    MK        1.07     NY        1.00*    ON        1.00*    
!   OV        1.07     PT        1.01     SC        0.92     TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   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*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.96     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.01     LA        0.98     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.16     PT        1.04     SC        1.01     TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.97     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        0.96     KP        0.90     LA        1.00     
!   MC        1.00*    MK        1.03     NY        1.00*    ON        1.00*    
!   OV        1.06     PT        1.01     SC        1.02     TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   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*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.97     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.01     LA        1.00     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.10     PT        1.01     SC        0.99     TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.97     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        0.98     KP        0.92     LA        1.00     
!   MC        1.00*    MK        0.93     NY        1.00*    ON        1.00*    
!   OV        1.07     PT        0.99     SC        0.99     TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   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*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
! 
! Fit before self-cal, rms=0.146980Jy  sigma=0.001421
! Fit after  self-cal, rms=0.137440Jy  sigma=0.001303
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 1.5% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=0.9255 mas, bmaj=3.08 mas, bpa=5.321 degrees
! Estimated noise=967.969 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.000230725 Jy
! Component: 100  -  total flux cleaned = -9.20063e-05 Jy
! Component: 150  -  total flux cleaned = 3.1399e-05 Jy
! Component: 200  -  total flux cleaned = 0.000136844 Jy
! Total flux subtracted in 200 components = 0.000136844 Jy
! Clean residual min=-0.018689 max=0.026127 Jy/beam
! Clean residual mean=-0.000023 rms=0.006885 Jy/beam
! Combined flux in latest and established models = 1.09016 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 23 components and 1.09016 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.136962Jy  sigma=0.001300
! Fit after  self-cal, rms=0.136925Jy  sigma=0.001299
! Inverting map 
! Your choice of large map pixels excluded 1.5% of the data.
!  The x-axis pixel size should ideally be below 0.1902 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.136925Jy  sigma=0.001299
! Fit after  self-cal, rms=0.136424Jy  sigma=0.001299
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.5% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=0.9246 mas, bmaj=3.07 mas, bpa=5.258 degrees
! Estimated noise=967.24 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000385284 Jy
! Component: 100  -  total flux cleaned = -0.000380198 Jy
! Component: 150  -  total flux cleaned = -0.000260126 Jy
! Component: 200  -  total flux cleaned = -0.00015197 Jy
! Total flux subtracted in 200 components = -0.00015197 Jy
! Clean residual min=-0.018666 max=0.026067 Jy/beam
! Clean residual mean=-0.000035 rms=0.006858 Jy/beam
! Combined flux in latest and established models = 1.09 Jy
selfcal
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 23 components and 1.09 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.136060Jy  sigma=0.001297
! Fit after  self-cal, rms=0.135971Jy  sigma=0.001296
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.5% of the data.
!  The x-axis pixel size should ideally be below 0.1902 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.000126211 Jy
! Component: 100  -  total flux cleaned = -1.23795e-05 Jy
! Component: 150  -  total flux cleaned = -1.27308e-05 Jy
! Component: 200  -  total flux cleaned = 7.97818e-05 Jy
! Total flux subtracted in 200 components = 7.97818e-05 Jy
! Clean residual min=-0.018670 max=0.026046 Jy/beam
! Clean residual mean=-0.000039 rms=0.006868 Jy/beam
! Combined flux in latest and established models = 1.09008 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 24 components and 1.09008 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.135681Jy  sigma=0.001295
! Fit after  self-cal, rms=0.135607Jy  sigma=0.001294
! Inverting map 
! Your choice of large map pixels excluded 1.5% of the data.
!  The x-axis pixel size should ideally be below 0.1902 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.135607Jy  sigma=0.001294
! Fit after  self-cal, rms=0.135307Jy  sigma=0.001294
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.5% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=0.9242 mas, bmaj=3.06 mas, bpa=5.218 degrees
! Estimated noise=966.954 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000490686 Jy
! Component: 100  -  total flux cleaned = -0.000367401 Jy
! Component: 150  -  total flux cleaned = -0.000367659 Jy
! Component: 200  -  total flux cleaned = -0.000267015 Jy
! Total flux subtracted in 200 components = -0.000267015 Jy
! Clean residual min=-0.018637 max=0.025971 Jy/beam
! Clean residual mean=-0.000048 rms=0.006833 Jy/beam
! Combined flux in latest and established models = 1.08982 Jy
selfcal
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 24 components and 1.08982 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.134995Jy  sigma=0.001292
! Fit after  self-cal, rms=0.134916Jy  sigma=0.001292
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.5% of the data.
!  The x-axis pixel size should ideally be below 0.1902 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 = -1.50786e-05 Jy
! Component: 100  -  total flux cleaned = -2.74933e-05 Jy
! Component: 150  -  total flux cleaned = -2.84186e-05 Jy
! Component: 200  -  total flux cleaned = -1.536e-05 Jy
! Total flux subtracted in 200 components = -1.536e-05 Jy
! Clean residual min=-0.018674 max=0.025921 Jy/beam
! Clean residual mean=-0.000047 rms=0.006835 Jy/beam
! Combined flux in latest and established models = 1.0898 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 24 components and 1.0898 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.134644Jy  sigma=0.001290
! Fit after  self-cal, rms=0.134579Jy  sigma=0.001289
! Inverting map 
! Your choice of large map pixels excluded 1.5% of the data.
!  The x-axis pixel size should ideally be below 0.1902 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.134579Jy  sigma=0.001289
! Fit after  self-cal, rms=0.134481Jy  sigma=0.001289
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.5% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=3.687 mas, bmaj=14.15 mas, bpa=2.876 degrees
! Estimated noise=1129.29 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00136602 Jy
! Component: 100  -  total flux cleaned = 0.00136451 Jy
! Component: 150  -  total flux cleaned = 0.00136524 Jy
! Component: 200  -  total flux cleaned = 0.00136642 Jy
! Total flux subtracted in 200 components = 0.00136642 Jy
! Clean residual min=-0.016653 max=0.018103 Jy/beam
! Clean residual mean=-0.000198 rms=0.008889 Jy/beam
! Combined flux in latest and established models = 1.09117 Jy
selfcal
! Performing phase self-cal
! Adding 2 model components to the UV plane model.
! The established model now contains 26 components and 1.09117 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.134902Jy  sigma=0.001292
! Fit after  self-cal, rms=0.134721Jy  sigma=0.001291
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.5% of the data.
!  The x-axis pixel size should ideally be below 0.1902 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 = 1.42242e-05 Jy
! Component: 100  -  total flux cleaned = 1.63913e-05 Jy
! Component: 150  -  total flux cleaned = 1.58218e-05 Jy
! Component: 200  -  total flux cleaned = 1.46838e-05 Jy
! Total flux subtracted in 200 components = 1.46838e-05 Jy
! Clean residual min=-0.016657 max=0.018123 Jy/beam
! Clean residual mean=-0.000199 rms=0.008895 Jy/beam
! Combined flux in latest and established models = 1.09118 Jy
! Performing phase self-cal
! Adding 2 model components to the UV plane model.
! The established model now contains 26 components and 1.09118 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.135111Jy  sigma=0.001293
! Fit after  self-cal, rms=0.134947Jy  sigma=0.001292
! Inverting map 
! Your choice of large map pixels excluded 1.5% of the data.
!  The x-axis pixel size should ideally be below 0.1902 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.5% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=0.9242 mas, bmaj=3.055 mas, bpa=5.198 degrees
! Estimated noise=966.94 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9242 x 3.055 at 5.198 degrees (North through East)
! Clean map  min=-0.017233  max=0.7828 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.134947Jy  sigma=0.001292
! Fit after  self-cal, rms=0.124795Jy  sigma=0.001145
! Inverting map and beam 
! Your choice of large map pixels excluded 1.5% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=0.9246 mas, bmaj=3.055 mas, bpa=5.111 degrees
! Estimated noise=968.689 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000560298 Jy
! Component: 100  -  total flux cleaned = -0.00068198 Jy
! Component: 150  -  total flux cleaned = -0.00067719 Jy
! Component: 200  -  total flux cleaned = -0.000670868 Jy
! Total flux subtracted in 200 components = -0.000670868 Jy
! Clean residual min=-0.018464 max=0.025456 Jy/beam
! Clean residual mean=-0.000078 rms=0.006805 Jy/beam
! Combined flux in latest and established models = 1.09051 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 28 components and 1.09051 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.124423Jy  sigma=0.001142
! Fit after  self-cal, rms=0.124340Jy  sigma=0.001142
! Inverting map 
! Your choice of large map pixels excluded 1.5% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -3.53067e-05 Jy
! Component: 100  -  total flux cleaned = -0.000161307 Jy
! Component: 150  -  total flux cleaned = -0.000159531 Jy
! Component: 200  -  total flux cleaned = -0.000151664 Jy
! Total flux subtracted in 200 components = -0.000151664 Jy
! Clean residual min=-0.018517 max=0.025413 Jy/beam
! Clean residual mean=-0.000071 rms=0.006809 Jy/beam
! Combined flux in latest and established models = 1.09036 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 28 components and 1.09036 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.124054Jy  sigma=0.001140
! Fit after  self-cal, rms=0.123980Jy  sigma=0.001139
! Inverting map 
! Your choice of large map pixels excluded 1.5% of the data.
!  The x-axis pixel size should ideally be below 0.1902 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.123980Jy  sigma=0.001139
! Fit after  self-cal, rms=0.124022Jy  sigma=0.001139
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.5% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=0.6365 mas, bmaj=1.97 mas, bpa=4.18 degrees
! Estimated noise=2061.45 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.522644 Jy
! Component: 100  -  total flux cleaned = 0.737816 Jy
! Component: 150  -  total flux cleaned = 0.869337 Jy
! Component: 200  -  total flux cleaned = 0.950648 Jy
! Total flux subtracted in 200 components = 0.950648 Jy
! Clean residual min=-0.032531 max=0.064168 Jy/beam
! Clean residual mean=0.000835 rms=0.014554 Jy/beam
! Combined flux in latest and established models = 0.950648 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 24 model components to the UV plane model.
! The established model now contains 24 components and 0.950648 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 1.5% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=0.9253 mas, bmaj=3.055 mas, bpa=5.143 degrees
! Estimated noise=969.052 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.0854981 Jy
! Component: 100  -  total flux cleaned = 0.118197 Jy
! Component: 150  -  total flux cleaned = 0.130943 Jy
! Component: 200  -  total flux cleaned = 0.135912 Jy
! Total flux subtracted in 200 components = 0.135912 Jy
! Clean residual min=-0.018691 max=0.025462 Jy/beam
! Clean residual mean=0.000078 rms=0.006940 Jy/beam
! Combined flux in latest and established models = 1.08656 Jy
! Adding 15 model components to the UV plane model.
! The established model now contains 31 components and 1.08656 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.5% of the data.
!  The x-axis pixel size should ideally be below 0.1902 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.5% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=3.693 mas, bmaj=14.16 mas, bpa=2.853 degrees
! Estimated noise=1129.74 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00455767 Jy
! Component: 100  -  total flux cleaned = 0.00455654 Jy
! Component: 150  -  total flux cleaned = 0.00455514 Jy
! Component: 200  -  total flux cleaned = 0.00455377 Jy
! Total flux subtracted in 200 components = 0.00455377 Jy
! Clean residual min=-0.016681 max=0.018220 Jy/beam
! Clean residual mean=-0.000218 rms=0.008915 Jy/beam
! Combined flux in latest and established models = 1.09111 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 = -1.30777e-06 Jy
! Component: 100  -  total flux cleaned = -2.53494e-06 Jy
! Component: 150  -  total flux cleaned = -3.69834e-06 Jy
! Component: 200  -  total flux cleaned = -4.8065e-06 Jy
! Total flux subtracted in 200 components = -4.8065e-06 Jy
! Clean residual min=-0.016634 max=0.017809 Jy/beam
! Clean residual mean=-0.000217 rms=0.008760 Jy/beam
! Combined flux in latest and established models = 1.09111 Jy
! Adding 3 model components to the UV plane model.
! The established model now contains 33 components and 1.09111 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.5% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 1.5% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
! Estimated beam: bmin=0.9253 mas, bmaj=3.055 mas, bpa=5.143 degrees
! Estimated noise=969.052 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00220787 Jy
! Component: 100  -  total flux cleaned = -0.00223944 Jy
! Component: 150  -  total flux cleaned = -0.00224985 Jy
! Component: 200  -  total flux cleaned = -0.00225884 Jy
! Total flux subtracted in 200 components = -0.00225884 Jy
! Clean residual min=-0.018133 max=0.024497 Jy/beam
! Clean residual mean=-0.000039 rms=0.006742 Jy/beam
! Combined flux in latest and established models = 1.08885 Jy
selfcal
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 37 components and 1.08885 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.123840Jy  sigma=0.001137
! Fit after  self-cal, rms=0.123560Jy  sigma=0.001135
wmodel J1427-4206_X_1999_12_20_pus_map.mod
! Writing 37 model components to file: J1427-4206_X_1999_12_20_pus_map.mod
wobs J1427-4206_X_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J1427-4206_X_1999_12_20_pus_uvs.fits
wwins J1427-4206_X_1999_12_20_pus_map.win
! wwins: Wrote 1 windows to J1427-4206_X_1999_12_20_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.5% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00787112 Jy
! Component: 100  -  total flux cleaned = 0.00848657 Jy
! Component: 150  -  total flux cleaned = 0.00850732 Jy
! Component: 200  -  total flux cleaned = 0.00786419 Jy
! Component: 250  -  total flux cleaned = 0.00728005 Jy
! Component: 300  -  total flux cleaned = 0.00727129 Jy
! Component: 350  -  total flux cleaned = 0.00660193 Jy
! Component: 400  -  total flux cleaned = 0.00579949 Jy
! Component: 450  -  total flux cleaned = 0.00487543 Jy
! Component: 500  -  total flux cleaned = 0.00413777 Jy
! Component: 550  -  total flux cleaned = 0.00328989 Jy
! Component: 600  -  total flux cleaned = 0.00288299 Jy
! Component: 650  -  total flux cleaned = 0.00210528 Jy
! Component: 700  -  total flux cleaned = 0.00173241 Jy
! Component: 750  -  total flux cleaned = 0.00137244 Jy
! Component: 800  -  total flux cleaned = 0.000904728 Jy
! Component: 850  -  total flux cleaned = 0.000339217 Jy
! Component: 900  -  total flux cleaned = -9.76125e-05 Jy
! Component: 950  -  total flux cleaned = -0.00041646 Jy
! Component: 1000  -  total flux cleaned = -0.000725488 Jy
! Total flux subtracted in 1024 components = -0.00112484 Jy
! Clean residual min=-0.006025 max=0.007043 Jy/beam
! Clean residual mean=-0.000411 rms=0.002152 Jy/beam
! Combined flux in latest and established models = 1.08773 Jy
keep
! Adding 42 model components to the UV plane model.
! The established model now contains 79 components and 1.08773 Jy
![Exited script file: muppet]
wmap "J1427-4206_X_1999_12_20_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 1.5% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9253 x 3.055 at 5.143 degrees (North through East)
! Clean map  min=-0.0096707  max=0.78732 Jy/beam
! Writing clean map to FITS file: J1427-4206_X_1999_12_20_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.787315 
invert
! Inverting map 
! Your choice of large map pixels excluded 1.5% of the data.
!  The x-axis pixel size should ideally be below 0.1902 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00210626 
device "J1427-4206_X_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J1427-4206_X_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.802573 0.802573 1.60515 3.21029 6.42059 12.8412 25.6823 51.3647
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0063 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.787 
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.9253 x 3.055 at 5.143 degrees (North through East)
! Clean map  min=-0.0096707  max=0.78732 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1427-4206_X_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J1427-4206_X_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1427-4206_X_1999_12_20_pus_uvs.log closed on Fri Dec 14 17:24:11 2007