! Started logfile: J1127-1857_X_1999_05_10_pus_uvs.log on Tue Jan 15 17:29:40 2008
obs J1127-1857_X_1999_05_10_pus_uva.fits
! Reading UV FITS file: J1127-1857_X_1999_05_10_pus_uva.fits
! AN table 1: 51 integrations on 153 of 153 possible baselines.
! AN table 2: 49 integrations on 153 of 153 possible baselines.
! AN table 3: 89 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.129647 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1127-1857
! 
! 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 1763 lines of history.
! 
! Reading 14996 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 J1127-1857_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 705 telescope corrections were flagged in sub-array 1.
!  A total of 571 telescope corrections were flagged in sub-array 2.
!  A total of 1184 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 704 telescope corrections were flagged in sub-array 1.
!  A total of 574 telescope corrections were flagged in sub-array 2.
!  A total of 1183 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 704 telescope corrections were flagged in sub-array 1.
!  A total of 574 telescope corrections were flagged in sub-array 2.
!  A total of 1185 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 704 telescope corrections were flagged in sub-array 1.
!  A total of 626 telescope corrections were flagged in sub-array 2.
!  A total of 1186 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.373262Jy  sigma=0.012725
! Fit after  self-cal, rms=0.967625Jy  sigma=0.010479
! 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.865% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
! Estimated beam: bmin=0.6825 mas, bmaj=1.528 mas, bpa=-4.422 degrees
! Estimated noise=1360.08 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 = 1.47291 Jy
! Component: 100  -  total flux cleaned = 1.82028 Jy
! Total flux subtracted in 100 components = 1.82028 Jy
! Clean residual min=-0.050666 max=0.135110 Jy/beam
! Clean residual mean=0.001612 rms=0.017062 Jy/beam
! Combined flux in latest and established models = 1.82028 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 13 components and 1.82028 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.378656Jy  sigma=0.003538
! Fit after  self-cal, rms=0.378740Jy  sigma=0.003537
! Inverting map 
! Your choice of large map pixels excluded 0.865% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.151789 Jy
! Component: 100  -  total flux cleaned = 0.235094 Jy
! Total flux subtracted in 100 components = 0.235094 Jy
! Clean residual min=-0.032595 max=0.047390 Jy/beam
! Clean residual mean=0.000380 rms=0.010543 Jy/beam
! Combined flux in latest and established models = 2.05537 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 20 components and 2.05537 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.290395Jy  sigma=0.002363
! Fit after  self-cal, rms=0.290446Jy  sigma=0.002361
! Inverting map 
! Your choice of large map pixels excluded 0.865% of the data.
!  The x-axis pixel size should ideally be below 0.1944 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.865% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
! Estimated beam: bmin=0.7626 mas, bmaj=1.718 mas, bpa=-7.876 degrees
! Estimated noise=659.032 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.0850798 Jy
! Component: 100  -  total flux cleaned = 0.12482 Jy
! Component: 150  -  total flux cleaned = 0.143757 Jy
! Component: 200  -  total flux cleaned = 0.147329 Jy
! Total flux subtracted in 200 components = 0.147329 Jy
! Clean residual min=-0.033133 max=0.024754 Jy/beam
! Clean residual mean=-0.000858 rms=0.007627 Jy/beam
! Combined flux in latest and established models = 2.2027 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 28 components and 2.2027 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266643Jy  sigma=0.002070
! Fit after  self-cal, rms=0.266690Jy  sigma=0.002070
! Inverting map 
! Your choice of large map pixels excluded 0.865% of the data.
!  The x-axis pixel size should ideally be below 0.1944 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        1.01     FD        0.97     GC        1.00*    HH        1.00*    
!   HN        0.98     KK        1.00*    KP        1.00     LA        0.99     
!   MC        1.00*    MK        1.00*    NL        1.05     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        1.02     SC        1.00     
!   WF        1.27     WZ        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        1.00*    GC        1.00*    HH        0.96     
!   HN        1.17     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.10     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.06     OV        1.00*    PT        1.00*    SC        1.07     
!   WF        1.11     WZ        1.07     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00     GC        1.00*    HH        1.00*    
!   HN        0.95     KK        1.00     KP        1.01     LA        0.97     
!   MC        1.00*    MK        0.97     NL        1.04     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        1.03     SC        1.00     
!   WF        1.09     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        0.96     GC        1.00*    HH        1.00*    
!   HN        0.93     KK        1.00*    KP        1.02     LA        1.00     
!   MC        1.00*    MK        1.00*    NL        1.00     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        0.94     SC        0.99     
!   WF        1.08     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.96     
!   HN        1.25     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.11     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.07     OV        1.00*    PT        1.00*    SC        1.06     
!   WF        1.11     WZ        1.09     
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        0.99     GC        1.00*    HH        1.00*    
!   HN        0.95     KK        1.01     KP        1.02     LA        0.99     
!   MC        1.00*    MK        0.97     NL        1.00     NY        1.00*    
!   ON        1.00*    OV        0.96     PT        0.95     SC        0.99     
!   WF        1.03     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.08     FD        0.99     GC        1.00*    HH        1.00*    
!   HN        0.94     KK        1.00*    KP        1.04     LA        1.00     
!   MC        1.00*    MK        1.00*    NL        1.02     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        0.96     SC        1.00     
!   WF        1.08     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.00     
!   HN        1.30     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.17     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.08     OV        1.00*    PT        1.00*    SC        1.10     
!   WF        1.08     WZ        1.08     
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        1.01     GC        1.00*    HH        1.00*    
!   HN        0.96     KK        1.07     KP        1.05     LA        0.98     
!   MC        1.00*    MK        0.97     NL        1.01     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        0.97     SC        1.05     
!   WF        1.04     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        0.97     GC        1.00*    HH        1.00*    
!   HN        0.94     KK        1.00*    KP        1.02     LA        1.01     
!   MC        1.00*    MK        1.00*    NL        1.02     NY        1.00*    
!   ON        1.00*    OV        1.01     PT        0.99     SC        0.96     
!   WF        1.03     WZ        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        1.00*    GC        1.00*    HH        1.08     
!   HN        1.26     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.14     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.05     OV        1.00*    PT        1.00*    SC        1.03     
!   WF        1.09     WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.00     GC        1.00*    HH        1.00*    
!   HN        0.95     KK        1.03     KP        1.03     LA        1.00     
!   MC        1.00*    MK        0.98     NL        1.01     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.99     SC        1.02     
!   WF        1.02     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.266690Jy  sigma=0.002070
! Fit after  self-cal, rms=0.252548Jy  sigma=0.001767
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.867% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
! Estimated beam: bmin=0.7767 mas, bmaj=1.768 mas, bpa=-8.218 degrees
! Estimated noise=667.204 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.00644653 Jy
! Component: 100  -  total flux cleaned = -0.00687031 Jy
! Component: 150  -  total flux cleaned = -0.00719684 Jy
! Component: 200  -  total flux cleaned = -0.00720449 Jy
! Total flux subtracted in 200 components = -0.00720449 Jy
! Clean residual min=-0.016905 max=0.014976 Jy/beam
! Clean residual mean=-0.001136 rms=0.004227 Jy/beam
! Combined flux in latest and established models = 2.1955 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 38 components and 2.1955 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.251447Jy  sigma=0.001754
! Fit after  self-cal, rms=0.251406Jy  sigma=0.001754
! Inverting map 
! Your choice of large map pixels excluded 0.867% of the data.
!  The x-axis pixel size should ideally be below 0.1944 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.251406Jy  sigma=0.001754
! Fit after  self-cal, rms=0.247605Jy  sigma=0.001586
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.867% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
! Estimated beam: bmin=0.7794 mas, bmaj=1.772 mas, bpa=-8.196 degrees
! Estimated noise=667.426 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00950283 Jy
! Component: 100  -  total flux cleaned = -0.00950083 Jy
! Component: 150  -  total flux cleaned = -0.00995621 Jy
! Component: 200  -  total flux cleaned = -0.00995065 Jy
! Total flux subtracted in 200 components = -0.00995065 Jy
! Clean residual min=-0.010459 max=0.008246 Jy/beam
! Clean residual mean=-0.000403 rms=0.002499 Jy/beam
! Combined flux in latest and established models = 2.18555 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 39 components and 2.18555 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.246934Jy  sigma=0.001577
! Fit after  self-cal, rms=0.246950Jy  sigma=0.001577
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.867% of the data.
!  The x-axis pixel size should ideally be below 0.1944 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.000184835 Jy
! Component: 100  -  total flux cleaned = -0.000328816 Jy
! Component: 150  -  total flux cleaned = -0.000325165 Jy
! Component: 200  -  total flux cleaned = -0.000327495 Jy
! Total flux subtracted in 200 components = -0.000327495 Jy
! Clean residual min=-0.010507 max=0.008210 Jy/beam
! Clean residual mean=-0.000396 rms=0.002462 Jy/beam
! Combined flux in latest and established models = 2.18522 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 39 components and 2.18522 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.246808Jy  sigma=0.001575
! Fit after  self-cal, rms=0.246806Jy  sigma=0.001575
! Inverting map 
! Your choice of large map pixels excluded 0.867% of the data.
!  The x-axis pixel size should ideally be below 0.1944 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.246806Jy  sigma=0.001575
! Fit after  self-cal, rms=0.247680Jy  sigma=0.001572
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.867% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
! Estimated beam: bmin=0.7814 mas, bmaj=1.776 mas, bpa=-8.2 degrees
! Estimated noise=668.065 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00632884 Jy
! Component: 100  -  total flux cleaned = -0.00651314 Jy
! Component: 150  -  total flux cleaned = -0.00667528 Jy
! Component: 200  -  total flux cleaned = -0.006815 Jy
! Total flux subtracted in 200 components = -0.006815 Jy
! Clean residual min=-0.009062 max=0.007665 Jy/beam
! Clean residual mean=-0.000307 rms=0.002290 Jy/beam
! Combined flux in latest and established models = 2.17841 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 41 components and 2.17841 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.247407Jy  sigma=0.001568
! Fit after  self-cal, rms=0.247363Jy  sigma=0.001568
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.867% of the data.
!  The x-axis pixel size should ideally be below 0.1944 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.00025391 Jy
! Component: 100  -  total flux cleaned = -0.000362538 Jy
! Component: 150  -  total flux cleaned = -0.000452006 Jy
! Component: 200  -  total flux cleaned = -0.000454087 Jy
! Total flux subtracted in 200 components = -0.000454087 Jy
! Clean residual min=-0.009046 max=0.007630 Jy/beam
! Clean residual mean=-0.000299 rms=0.002272 Jy/beam
! Combined flux in latest and established models = 2.17795 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 41 components and 2.17795 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.247295Jy  sigma=0.001567
! Fit after  self-cal, rms=0.247286Jy  sigma=0.001567
! Inverting map 
! Your choice of large map pixels excluded 0.867% of the data.
!  The x-axis pixel size should ideally be below 0.1944 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.247286Jy  sigma=0.001567
! Fit after  self-cal, rms=0.248106Jy  sigma=0.001565
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.867% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
! Estimated beam: bmin=2.314 mas, bmaj=4.682 mas, bpa=-6.171 degrees
! Estimated noise=813.299 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00407749 Jy
! Component: 100  -  total flux cleaned = -0.00554472 Jy
! Component: 150  -  total flux cleaned = -0.0058486 Jy
! Component: 200  -  total flux cleaned = -0.0059158 Jy
! Total flux subtracted in 200 components = -0.0059158 Jy
! Clean residual min=-0.006628 max=0.009561 Jy/beam
! Clean residual mean=-0.000509 rms=0.003128 Jy/beam
! Combined flux in latest and established models = 2.17204 Jy
selfcal
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 44 components and 2.17204 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.248052Jy  sigma=0.001565
! Fit after  self-cal, rms=0.248023Jy  sigma=0.001565
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.867% of the data.
!  The x-axis pixel size should ideally be below 0.1944 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 = -4.29416e-05 Jy
! Component: 100  -  total flux cleaned = -0.00010543 Jy
! Component: 150  -  total flux cleaned = -0.000145571 Jy
! Component: 200  -  total flux cleaned = -0.000203486 Jy
! Total flux subtracted in 200 components = -0.000203486 Jy
! Clean residual min=-0.006645 max=0.009573 Jy/beam
! Clean residual mean=-0.000502 rms=0.003127 Jy/beam
! Combined flux in latest and established models = 2.17183 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 44 components and 2.17183 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.248008Jy  sigma=0.001564
! Fit after  self-cal, rms=0.248005Jy  sigma=0.001564
! Inverting map 
! Your choice of large map pixels excluded 0.867% of the data.
!  The x-axis pixel size should ideally be below 0.1944 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.867% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
! Estimated beam: bmin=0.7828 mas, bmaj=1.779 mas, bpa=-8.216 degrees
! Estimated noise=668.508 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7828 x 1.779 at -8.216 degrees (North through East)
! Clean map  min=-0.0072807  max=1.9255 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.248005Jy  sigma=0.001564
! Fit after  self-cal, rms=0.259158Jy  sigma=0.001375
! Inverting map and beam 
! Your choice of large map pixels excluded 0.867% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
! Estimated beam: bmin=0.7835 mas, bmaj=1.781 mas, bpa=-8.249 degrees
! Estimated noise=667.685 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00458074 Jy
! Component: 100  -  total flux cleaned = -0.00497255 Jy
! Component: 150  -  total flux cleaned = -0.00512764 Jy
! Component: 200  -  total flux cleaned = -0.00532388 Jy
! Total flux subtracted in 200 components = -0.00532388 Jy
! Clean residual min=-0.008318 max=0.007756 Jy/beam
! Clean residual mean=-0.000087 rms=0.002072 Jy/beam
! Combined flux in latest and established models = 2.16651 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 48 components and 2.16651 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.259113Jy  sigma=0.001373
! Fit after  self-cal, rms=0.259102Jy  sigma=0.001373
! Inverting map 
! Your choice of large map pixels excluded 0.867% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000253491 Jy
! Component: 100  -  total flux cleaned = -0.000358685 Jy
! Component: 150  -  total flux cleaned = -0.00040527 Jy
! Component: 200  -  total flux cleaned = -0.000407283 Jy
! Total flux subtracted in 200 components = -0.000407283 Jy
! Clean residual min=-0.008258 max=0.007769 Jy/beam
! Clean residual mean=-0.000080 rms=0.002067 Jy/beam
! Combined flux in latest and established models = 2.1661 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 50 components and 2.1661 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.259093Jy  sigma=0.001373
! Fit after  self-cal, rms=0.259088Jy  sigma=0.001372
! Inverting map 
! Your choice of large map pixels excluded 0.867% of the data.
!  The x-axis pixel size should ideally be below 0.1944 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.259088Jy  sigma=0.001372
! Fit after  self-cal, rms=0.259618Jy  sigma=0.001372
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.867% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
! Estimated beam: bmin=0.6927 mas, bmaj=1.567 mas, bpa=-4.494 degrees
! Estimated noise=1394.14 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.50856 Jy
! Component: 100  -  total flux cleaned = 1.85379 Jy
! Component: 150  -  total flux cleaned = 1.98633 Jy
! Component: 200  -  total flux cleaned = 2.05765 Jy
! Total flux subtracted in 200 components = 2.05765 Jy
! Clean residual min=-0.022575 max=0.039720 Jy/beam
! Clean residual mean=0.000544 rms=0.006775 Jy/beam
! Combined flux in latest and established models = 2.05765 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 20 model components to the UV plane model.
! The established model now contains 20 components and 2.05765 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 0.867% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
! Estimated beam: bmin=0.7846 mas, bmaj=1.783 mas, bpa=-8.241 degrees
! Estimated noise=667.861 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.0549371 Jy
! Component: 100  -  total flux cleaned = 0.0805394 Jy
! Component: 150  -  total flux cleaned = 0.0918154 Jy
! Component: 200  -  total flux cleaned = 0.093717 Jy
! Total flux subtracted in 200 components = 0.093717 Jy
! Clean residual min=-0.009204 max=0.011301 Jy/beam
! Clean residual mean=0.000131 rms=0.002505 Jy/beam
! Combined flux in latest and established models = 2.15137 Jy
! Adding 12 model components to the UV plane model.
! The established model now contains 26 components and 2.15137 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.867% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
! Added new window around map position (0.4, -2.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00354638 Jy
! Component: 100  -  total flux cleaned = 0.00420965 Jy
! Component: 150  -  total flux cleaned = 0.00479752 Jy
! Component: 200  -  total flux cleaned = 0.00559052 Jy
! Total flux subtracted in 200 components = 0.00559052 Jy
! Clean residual min=-0.008936 max=0.008791 Jy/beam
! Clean residual mean=0.000038 rms=0.002245 Jy/beam
! Combined flux in latest and established models = 2.15696 Jy
! Adding 7 model components to the UV plane model.
! The established model now contains 29 components and 2.15696 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.867% of the data.
!  The x-axis pixel size should ideally be below 0.1944 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.867% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
! Estimated beam: bmin=2.316 mas, bmaj=4.685 mas, bpa=-6.166 degrees
! Estimated noise=810.316 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00263368 Jy
! Component: 100  -  total flux cleaned = 0.00271391 Jy
! Component: 150  -  total flux cleaned = 0.00285443 Jy
! Component: 200  -  total flux cleaned = 0.00304998 Jy
! Total flux subtracted in 200 components = 0.00304998 Jy
! Clean residual min=-0.006216 max=0.009916 Jy/beam
! Clean residual mean=-0.000024 rms=0.003087 Jy/beam
! Combined flux in latest and established models = 2.16001 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.000121285 Jy
! Component: 100  -  total flux cleaned = 0.00023486 Jy
! Component: 150  -  total flux cleaned = 0.000288936 Jy
! Component: 200  -  total flux cleaned = 0.000389297 Jy
! Total flux subtracted in 200 components = 0.000389297 Jy
! Clean residual min=-0.006093 max=0.009890 Jy/beam
! Clean residual mean=-0.000037 rms=0.003077 Jy/beam
! Combined flux in latest and established models = 2.1604 Jy
! Adding 9 model components to the UV plane model.
! The established model now contains 36 components and 2.1604 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.867% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 0.867% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
! Estimated beam: bmin=0.7846 mas, bmaj=1.783 mas, bpa=-8.241 degrees
! Estimated noise=667.861 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000923294 Jy
! Component: 100  -  total flux cleaned = -0.000904451 Jy
! Component: 150  -  total flux cleaned = -0.000906123 Jy
! Component: 200  -  total flux cleaned = -0.000907355 Jy
! Total flux subtracted in 200 components = -0.000907355 Jy
! Clean residual min=-0.008227 max=0.008256 Jy/beam
! Clean residual mean=-0.000003 rms=0.002132 Jy/beam
! Combined flux in latest and established models = 2.15949 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 42 components and 2.15949 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.260512Jy  sigma=0.001374
! Fit after  self-cal, rms=0.260321Jy  sigma=0.001374
wmodel J1127-1857_X_1999_05_10_pus_map.mod
! Writing 42 model components to file: J1127-1857_X_1999_05_10_pus_map.mod
wobs J1127-1857_X_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J1127-1857_X_1999_05_10_pus_uvs.fits
wwins J1127-1857_X_1999_05_10_pus_map.win
! wwins: Wrote 2 windows to J1127-1857_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.867% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00146298 Jy
! Component: 100  -  total flux cleaned = 0.00326542 Jy
! Component: 150  -  total flux cleaned = 0.00483462 Jy
! Component: 200  -  total flux cleaned = 0.00597481 Jy
! Component: 250  -  total flux cleaned = 0.00684808 Jy
! Component: 300  -  total flux cleaned = 0.00800167 Jy
! Component: 350  -  total flux cleaned = 0.00851003 Jy
! Component: 400  -  total flux cleaned = 0.0089051 Jy
! Component: 450  -  total flux cleaned = 0.00909866 Jy
! Component: 500  -  total flux cleaned = 0.0093822 Jy
! Component: 550  -  total flux cleaned = 0.00965975 Jy
! Component: 600  -  total flux cleaned = 0.00992957 Jy
! Component: 650  -  total flux cleaned = 0.0101057 Jy
! Component: 700  -  total flux cleaned = 0.0104514 Jy
! Component: 750  -  total flux cleaned = 0.0106212 Jy
! Component: 800  -  total flux cleaned = 0.0108721 Jy
! Component: 850  -  total flux cleaned = 0.0111191 Jy
! Component: 900  -  total flux cleaned = 0.011361 Jy
! Component: 950  -  total flux cleaned = 0.0114402 Jy
! Component: 1000  -  total flux cleaned = 0.0117552 Jy
! Total flux subtracted in 1024 components = 0.0117554 Jy
! Clean residual min=-0.004451 max=0.005083 Jy/beam
! Clean residual mean=-0.000151 rms=0.001618 Jy/beam
! Combined flux in latest and established models = 2.17125 Jy
keep
! Adding 66 model components to the UV plane model.
! The established model now contains 108 components and 2.17125 Jy
![Exited script file: muppet]
wmap "J1127-1857_X_1999_05_10_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 0.867% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7846 x 1.783 at -8.241 degrees (North through East)
! Clean map  min=-0.0072569  max=1.9403 Jy/beam
! Writing clean map to FITS file: J1127-1857_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 1.94026 
invert
! Inverting map 
! Your choice of large map pixels excluded 0.867% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00161262 
device "J1127-1857_X_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J1127-1857_X_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.24934 0.24934 0.498681 0.997362 1.99472 3.98945 7.97889 15.9578 31.9156 63.8311
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0048 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.94 
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.7846 x 1.783 at -8.241 degrees (North through East)
! Clean map  min=-0.0072569  max=1.9403 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1127-1857_X_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J1127-1857_X_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1127-1857_X_1999_05_10_pus_uvs.log closed on Tue Jan 15 17:29:45 2008