! Started logfile: J1625-2527_X_1999_12_20_pus_uvs.log on Fri Dec 14 17:25:45 2007
obs J1625-2527_X_1999_12_20_pus_uva.fits
! Reading UV FITS file: J1625-2527_X_1999_12_20_pus_uva.fits
! AN table 1: 84 integrations on 190 of 190 possible baselines.
! AN table 2: 85 integrations on 190 of 190 possible baselines.
! AN table 3: 142 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0519377 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1625-2527
! 
! 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 12276 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 J1625-2527_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 1320 telescope corrections were flagged in sub-array 1.
!  A total of 1532 telescope corrections were flagged in sub-array 2.
!  A total of 2283 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1320 telescope corrections were flagged in sub-array 1.
!  A total of 1532 telescope corrections were flagged in sub-array 2.
!  A total of 2283 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1320 telescope corrections were flagged in sub-array 1.
!  A total of 1532 telescope corrections were flagged in sub-array 2.
!  A total of 2283 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1330 telescope corrections were flagged in sub-array 1.
!  A total of 1532 telescope corrections were flagged in sub-array 2.
!  A total of 2283 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.045033Jy  sigma=0.010782
! Fit after  self-cal, rms=0.477417Jy  sigma=0.004389
! 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.491% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
! Estimated beam: bmin=0.6707 mas, bmaj=1.611 mas, bpa=-0.3949 degrees
! Estimated noise=1412.43 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.42572 Jy
! Component: 100  -  total flux cleaned = 0.528 Jy
! Total flux subtracted in 100 components = 0.528 Jy
! Clean residual min=-0.022353 max=0.042389 Jy/beam
! Clean residual mean=0.001352 rms=0.008757 Jy/beam
! Combined flux in latest and established models = 0.528 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 0.528 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.231140Jy  sigma=0.001941
! Fit after  self-cal, rms=0.231111Jy  sigma=0.001941
! Inverting map 
! Your choice of large map pixels excluded 0.491% of the data.
!  The x-axis pixel size should ideally be below 0.1932 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.491% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
! Estimated beam: bmin=0.9442 mas, bmaj=2.085 mas, bpa=0.8123 degrees
! Estimated noise=675.762 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.0733157 Jy
! Component: 100  -  total flux cleaned = 0.106149 Jy
! Component: 150  -  total flux cleaned = 0.122661 Jy
! Component: 200  -  total flux cleaned = 0.131106 Jy
! Total flux subtracted in 200 components = 0.131106 Jy
! Clean residual min=-0.015668 max=0.032542 Jy/beam
! Clean residual mean=0.002816 rms=0.008735 Jy/beam
! Combined flux in latest and established models = 0.659106 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 36 components and 0.659106 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.214364Jy  sigma=0.001587
! Fit after  self-cal, rms=0.214532Jy  sigma=0.001586
! Inverting map 
! Your choice of large map pixels excluded 0.491% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.76     FD        0.94     GC        1.00*    HH        1.00*    
!   HN        0.98     KK        1.00*    KP        0.99     LA        0.97     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.00     PT        1.00     SC        1.02     TS        1.00*    
!   WF        0.97     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 132 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.22     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.04     MK        1.00*    NY        1.00*    ON        1.09     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        0.89     GN        1.00*    NL        1.00*    
! 
!  A total of 228 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.92     GC        1.00*    HH        1.00*    
!   HN        1.04     KK        0.99     KP        0.94     LA        0.93     
!   MC        1.00*    MK        1.06     NY        1.00*    ON        1.00*    
!   OV        0.93     PT        0.96     SC        1.07     TS        1.00*    
!   WF        1.01     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.85     FD        0.95     GC        1.00*    HH        1.00*    
!   HN        0.96     KK        1.00*    KP        0.94     LA        0.98     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.02     PT        0.98     SC        0.98     TS        1.00*    
!   WF        0.95     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 132 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.99     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.90     MK        1.00*    NY        1.00*    ON        1.27     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        0.96     GN        1.00*    NL        1.00*    
! 
!  A total of 228 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        0.92     GC        1.00*    HH        1.00*    
!   HN        1.05     KK        0.94     KP        0.90     LA        0.93     
!   MC        1.00*    MK        1.08     NY        1.00*    ON        1.00*    
!   OV        0.94     PT        0.94     SC        1.02     TS        1.00*    
!   WF        1.01     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.82     FD        0.97     GC        1.00*    HH        1.00*    
!   HN        1.00     KK        1.00*    KP        0.97     LA        0.97     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.01     PT        0.99     SC        0.99     TS        1.00*    
!   WF        0.96     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 132 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.92     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.10     MK        1.00*    NY        1.00*    ON        1.21     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        0.87     GN        1.00*    NL        1.00*    
! 
!  A total of 228 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.93     GC        1.00*    HH        1.00*    
!   HN        1.05     KK        1.00     KP        0.92     LA        0.94     
!   MC        1.00*    MK        1.07     NY        1.00*    ON        1.00*    
!   OV        0.95     PT        0.94     SC        0.99     TS        1.00*    
!   WF        1.02     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        2.14     FD        0.96     GC        1.00*    HH        1.00*    
!   HN        0.98     KK        1.00*    KP        0.96     LA        1.01     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.99     PT        0.98     SC        0.97     TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 132 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.88     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.12     MK        1.00*    NY        1.00*    ON        1.17     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.13     GN        1.00*    NL        1.00*    
! 
!  A total of 228 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.92     GC        1.00*    HH        1.00*    
!   HN        1.07     KK        0.94     KP        0.92     LA        0.94     
!   MC        1.00*    MK        1.06     NY        1.00*    ON        1.00*    
!   OV        0.93     PT        0.95     SC        1.03     TS        1.00*    
!   WF        1.06     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
! 
! Fit before self-cal, rms=0.214532Jy  sigma=0.001586
! Fit after  self-cal, rms=0.179219Jy  sigma=0.001251
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.566% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
! Estimated beam: bmin=0.9357 mas, bmaj=2.599 mas, bpa=-2.364 degrees
! Estimated noise=681.753 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 (-1.8, 2.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00729876 Jy
! Component: 100  -  total flux cleaned = 0.00876884 Jy
! Component: 150  -  total flux cleaned = 0.00866613 Jy
! Component: 200  -  total flux cleaned = 0.00857582 Jy
! Total flux subtracted in 200 components = 0.00857582 Jy
! Clean residual min=-0.003967 max=0.005649 Jy/beam
! Clean residual mean=0.000699 rms=0.001334 Jy/beam
! Combined flux in latest and established models = 0.667682 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 55 components and 0.667682 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.178763Jy  sigma=0.001248
! Fit after  self-cal, rms=0.179037Jy  sigma=0.001246
! Inverting map 
! Your choice of large map pixels excluded 0.566% of the data.
!  The x-axis pixel size should ideally be below 0.1932 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.179037Jy  sigma=0.001246
! Fit after  self-cal, rms=0.177970Jy  sigma=0.001245
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.566% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
! Estimated beam: bmin=0.9335 mas, bmaj=2.592 mas, bpa=-2.402 degrees
! Estimated noise=681.956 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00442147 Jy
! Component: 100  -  total flux cleaned = 0.00545716 Jy
! Component: 150  -  total flux cleaned = 0.00569606 Jy
! Component: 200  -  total flux cleaned = 0.00589718 Jy
! Total flux subtracted in 200 components = 0.00589718 Jy
! Clean residual min=-0.003421 max=0.005236 Jy/beam
! Clean residual mean=0.000598 rms=0.001205 Jy/beam
! Combined flux in latest and established models = 0.673579 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 64 components and 0.673579 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177759Jy  sigma=0.001244
! Fit after  self-cal, rms=0.177670Jy  sigma=0.001244
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.566% of the data.
!  The x-axis pixel size should ideally be below 0.1932 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)
! Added new window around map position (3.2, 9.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00436308 Jy
! Component: 100  -  total flux cleaned = 0.00677552 Jy
! Component: 150  -  total flux cleaned = 0.00775368 Jy
! Component: 200  -  total flux cleaned = 0.00819714 Jy
! Total flux subtracted in 200 components = 0.00819714 Jy
! Clean residual min=-0.003297 max=0.004312 Jy/beam
! Clean residual mean=0.000440 rms=0.001067 Jy/beam
! Combined flux in latest and established models = 0.681777 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 78 components and 0.681777 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177457Jy  sigma=0.001243
! Fit after  self-cal, rms=0.177436Jy  sigma=0.001243
! Inverting map 
! Your choice of large map pixels excluded 0.566% of the data.
!  The x-axis pixel size should ideally be below 0.1932 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.177436Jy  sigma=0.001243
! Fit after  self-cal, rms=0.176827Jy  sigma=0.001242
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.566% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
! Estimated beam: bmin=0.9317 mas, bmaj=2.587 mas, bpa=-2.489 degrees
! Estimated noise=682.165 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00284445 Jy
! Component: 100  -  total flux cleaned = 0.00379197 Jy
! Component: 150  -  total flux cleaned = 0.00390998 Jy
! Component: 200  -  total flux cleaned = 0.00401713 Jy
! Total flux subtracted in 200 components = 0.00401713 Jy
! Clean residual min=-0.002709 max=0.004140 Jy/beam
! Clean residual mean=0.000365 rms=0.001031 Jy/beam
! Combined flux in latest and established models = 0.685794 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 87 components and 0.685794 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.176719Jy  sigma=0.001242
! Fit after  self-cal, rms=0.176681Jy  sigma=0.001242
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.566% of the data.
!  The x-axis pixel size should ideally be below 0.1932 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.000564427 Jy
! Component: 100  -  total flux cleaned = 0.000614349 Jy
! Component: 150  -  total flux cleaned = 0.000614949 Jy
! Component: 200  -  total flux cleaned = 0.000569092 Jy
! Total flux subtracted in 200 components = 0.000569092 Jy
! Clean residual min=-0.002833 max=0.004048 Jy/beam
! Clean residual mean=0.000346 rms=0.001011 Jy/beam
! Combined flux in latest and established models = 0.686363 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 97 components and 0.686363 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.176636Jy  sigma=0.001241
! Fit after  self-cal, rms=0.176630Jy  sigma=0.001241
! Inverting map 
! Your choice of large map pixels excluded 0.566% of the data.
!  The x-axis pixel size should ideally be below 0.1932 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.176630Jy  sigma=0.001241
! Fit after  self-cal, rms=0.176410Jy  sigma=0.001241
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.566% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
! Estimated beam: bmin=2.586 mas, bmaj=5.992 mas, bpa=0.7108 degrees
! Estimated noise=815.809 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00152619 Jy
! Component: 100  -  total flux cleaned = 0.00189588 Jy
! Component: 150  -  total flux cleaned = 0.00180509 Jy
! Component: 200  -  total flux cleaned = 0.00176315 Jy
! Total flux subtracted in 200 components = 0.00176315 Jy
! Clean residual min=-0.002360 max=0.004607 Jy/beam
! Clean residual mean=0.000585 rms=0.001267 Jy/beam
! Combined flux in latest and established models = 0.688126 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 105 components and 0.688126 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.176367Jy  sigma=0.001241
! Fit after  self-cal, rms=0.176354Jy  sigma=0.001241
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.566% of the data.
!  The x-axis pixel size should ideally be below 0.1932 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.000304247 Jy
! Component: 100  -  total flux cleaned = 0.000221604 Jy
! Component: 150  -  total flux cleaned = 0.000180572 Jy
! Component: 200  -  total flux cleaned = 6.64553e-05 Jy
! Total flux subtracted in 200 components = 6.64553e-05 Jy
! Clean residual min=-0.002251 max=0.004520 Jy/beam
! Clean residual mean=0.000572 rms=0.001227 Jy/beam
! Combined flux in latest and established models = 0.688192 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 108 components and 0.688192 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.176340Jy  sigma=0.001241
! Fit after  self-cal, rms=0.176341Jy  sigma=0.001241
! Inverting map 
! Your choice of large map pixels excluded 0.566% of the data.
!  The x-axis pixel size should ideally be below 0.1932 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.566% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
! Estimated beam: bmin=0.9305 mas, bmaj=2.585 mas, bpa=-2.548 degrees
! Estimated noise=682.658 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9305 x 2.585 at -2.548 degrees (North through East)
! Clean map  min=-0.0037056  max=0.57304 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.176341Jy  sigma=0.001241
! Fit after  self-cal, rms=0.242063Jy  sigma=0.001137
! Inverting map and beam 
! Your choice of large map pixels excluded 0.566% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
! Estimated beam: bmin=0.9308 mas, bmaj=2.577 mas, bpa=-2.471 degrees
! Estimated noise=683.317 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000955918 Jy
! Component: 100  -  total flux cleaned = 0.00101239 Jy
! Component: 150  -  total flux cleaned = 0.00121572 Jy
! Component: 200  -  total flux cleaned = 0.00130518 Jy
! Total flux subtracted in 200 components = 0.00130518 Jy
! Clean residual min=-0.002820 max=0.003736 Jy/beam
! Clean residual mean=0.000255 rms=0.000964 Jy/beam
! Combined flux in latest and established models = 0.689498 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 120 components and 0.689498 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.241994Jy  sigma=0.001137
! Fit after  self-cal, rms=0.242013Jy  sigma=0.001137
! Inverting map 
! Your choice of large map pixels excluded 0.566% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000235503 Jy
! Component: 100  -  total flux cleaned = 0.000152118 Jy
! Component: 150  -  total flux cleaned = 7.25372e-05 Jy
! Component: 200  -  total flux cleaned = 3.34082e-05 Jy
! Total flux subtracted in 200 components = 3.34082e-05 Jy
! Clean residual min=-0.002874 max=0.003757 Jy/beam
! Clean residual mean=0.000252 rms=0.000953 Jy/beam
! Combined flux in latest and established models = 0.689531 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 122 components and 0.689531 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.241971Jy  sigma=0.001137
! Fit after  self-cal, rms=0.241972Jy  sigma=0.001137
! Inverting map 
! Your choice of large map pixels excluded 0.566% of the data.
!  The x-axis pixel size should ideally be below 0.1932 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.241972Jy  sigma=0.001137
! Fit after  self-cal, rms=0.293763Jy  sigma=0.001136
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.566% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
! Estimated beam: bmin=0.6889 mas, bmaj=1.685 mas, bpa=-3.641 degrees
! Estimated noise=1437.6 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.428851 Jy
! Component: 100  -  total flux cleaned = 0.527372 Jy
! Component: 150  -  total flux cleaned = 0.572323 Jy
! Component: 200  -  total flux cleaned = 0.599988 Jy
! Total flux subtracted in 200 components = 0.599988 Jy
! Clean residual min=-0.008043 max=0.014868 Jy/beam
! Clean residual mean=0.000724 rms=0.003331 Jy/beam
! Combined flux in latest and established models = 0.599988 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 26 model components to the UV plane model.
! The established model now contains 26 components and 0.599988 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 0.566% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
! Estimated beam: bmin=0.9302 mas, bmaj=2.577 mas, bpa=-2.489 degrees
! Estimated noise=683.576 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.037889 Jy
! Component: 100  -  total flux cleaned = 0.057071 Jy
! Component: 150  -  total flux cleaned = 0.0679115 Jy
! Component: 200  -  total flux cleaned = 0.0746355 Jy
! Total flux subtracted in 200 components = 0.0746355 Jy
! Clean residual min=-0.003719 max=0.005545 Jy/beam
! Clean residual mean=0.000649 rms=0.001351 Jy/beam
! Combined flux in latest and established models = 0.674623 Jy
! Adding 59 model components to the UV plane model.
! The established model now contains 72 components and 0.674623 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.566% of the data.
!  The x-axis pixel size should ideally be below 0.1932 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.566% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
! Estimated beam: bmin=2.581 mas, bmaj=5.978 mas, bpa=0.7388 degrees
! Estimated noise=818.458 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00716772 Jy
! Component: 100  -  total flux cleaned = 0.0112012 Jy
! Component: 150  -  total flux cleaned = 0.0130291 Jy
! Component: 200  -  total flux cleaned = 0.0136684 Jy
! Total flux subtracted in 200 components = 0.0136684 Jy
! Clean residual min=-0.002886 max=0.003832 Jy/beam
! Clean residual mean=0.000588 rms=0.001218 Jy/beam
! Combined flux in latest and established models = 0.688292 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.000334406 Jy
! Component: 100  -  total flux cleaned = 0.000567836 Jy
! Component: 150  -  total flux cleaned = 0.000775502 Jy
! Component: 200  -  total flux cleaned = 0.000777957 Jy
! Total flux subtracted in 200 components = 0.000777957 Jy
! Clean residual min=-0.002611 max=0.003840 Jy/beam
! Clean residual mean=0.000530 rms=0.001202 Jy/beam
! Combined flux in latest and established models = 0.68907 Jy
! Adding 40 model components to the UV plane model.
! The established model now contains 105 components and 0.68907 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.566% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 0.566% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
! Estimated beam: bmin=0.9302 mas, bmaj=2.577 mas, bpa=-2.489 degrees
! Estimated noise=683.576 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000512931 Jy
! Component: 100  -  total flux cleaned = 0.00104346 Jy
! Component: 150  -  total flux cleaned = 0.00127129 Jy
! Component: 200  -  total flux cleaned = 0.00126742 Jy
! Total flux subtracted in 200 components = 0.00126742 Jy
! Clean residual min=-0.003018 max=0.003765 Jy/beam
! Clean residual mean=0.000245 rms=0.001005 Jy/beam
! Combined flux in latest and established models = 0.690337 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 117 components and 0.690337 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.293891Jy  sigma=0.001137
! Fit after  self-cal, rms=0.293940Jy  sigma=0.001136
wmodel J1625-2527_X_1999_12_20_pus_map.mod
! Writing 117 model components to file: J1625-2527_X_1999_12_20_pus_map.mod
wobs J1625-2527_X_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J1625-2527_X_1999_12_20_pus_uvs.fits
wwins J1625-2527_X_1999_12_20_pus_map.win
! wwins: Wrote 3 windows to J1625-2527_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 0.566% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00155663 Jy
! Component: 100  -  total flux cleaned = 0.0025063 Jy
! Component: 150  -  total flux cleaned = 0.00291744 Jy
! Component: 200  -  total flux cleaned = 0.00316123 Jy
! Component: 250  -  total flux cleaned = 0.00343924 Jy
! Component: 300  -  total flux cleaned = 0.00370845 Jy
! Component: 350  -  total flux cleaned = 0.00396859 Jy
! Component: 400  -  total flux cleaned = 0.00422071 Jy
! Component: 450  -  total flux cleaned = 0.00430173 Jy
! Component: 500  -  total flux cleaned = 0.00438094 Jy
! Component: 550  -  total flux cleaned = 0.0044974 Jy
! Component: 600  -  total flux cleaned = 0.00464879 Jy
! Component: 650  -  total flux cleaned = 0.00472279 Jy
! Component: 700  -  total flux cleaned = 0.00490352 Jy
! Component: 750  -  total flux cleaned = 0.00497431 Jy
! Component: 800  -  total flux cleaned = 0.00507824 Jy
! Component: 850  -  total flux cleaned = 0.00521467 Jy
! Component: 900  -  total flux cleaned = 0.00538046 Jy
! Component: 950  -  total flux cleaned = 0.00551069 Jy
! Component: 1000  -  total flux cleaned = 0.0057347 Jy
! Total flux subtracted in 1024 components = 0.00582912 Jy
! Clean residual min=-0.001571 max=0.001882 Jy/beam
! Clean residual mean=0.000150 rms=0.000640 Jy/beam
! Combined flux in latest and established models = 0.696166 Jy
keep
! Adding 57 model components to the UV plane model.
! The established model now contains 174 components and 0.696166 Jy
![Exited script file: muppet]
wmap "J1625-2527_X_1999_12_20_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 0.566% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9302 x 2.577 at -2.489 degrees (North through East)
! Clean map  min=-0.0027747  max=0.57701 Jy/beam
! Writing clean map to FITS file: J1625-2527_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.577007 
invert
! Inverting map 
! Your choice of large map pixels excluded 0.566% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000638447 
device "J1625-2527_X_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J1625-2527_X_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.331944 0.331944 0.663888 1.32778 2.65555 5.3111 10.6222 21.2444 42.4888 84.9777
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0019 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.577 
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.9302 x 2.577 at -2.489 degrees (North through East)
! Clean map  min=-0.0027747  max=0.57701 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1625-2527_X_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J1625-2527_X_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1625-2527_X_1999_12_20_pus_uvs.log closed on Fri Dec 14 17:25:53 2007