! Started logfile: J1625-2527_S_2003_09_17_pus_uvs.log on Mon May 21 22:17:49 2007
obs J1625-2527_S_2003_09_17_pus_uva.fits
! Reading UV FITS file: J1625-2527_S_2003_09_17_pus_uva.fits
! AN table 1: 61 integrations on 120 of 120 possible baselines.
! AN table 2: 70 integrations on 120 of 120 possible baselines.
! AN table 3: 145 integrations on 120 of 120 possible baselines.
! AN table 4: 58 integrations on 120 of 120 possible baselines.
! AN table 5: 18 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.0452888 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1625-2527
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! 
! 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  2.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1732 lines of history.
! 
! Reading 7652 visibilities.
select I
! Polarization I is unavailable.
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
print "field_size =",field_size
! field_size = 512 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 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 931 telescope corrections were flagged in sub-array 1.
!  A total of 1084 telescope corrections were flagged in sub-array 2.
!  A total of 2088 telescope corrections were flagged in sub-array 3.
!  A total of 619 telescope corrections were flagged in sub-array 4.
!  A total of 161 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 931 telescope corrections were flagged in sub-array 1.
!  A total of 1084 telescope corrections were flagged in sub-array 2.
!  A total of 2088 telescope corrections were flagged in sub-array 3.
!  A total of 619 telescope corrections were flagged in sub-array 4.
!  A total of 161 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 931 telescope corrections were flagged in sub-array 1.
!  A total of 1084 telescope corrections were flagged in sub-array 2.
!  A total of 2088 telescope corrections were flagged in sub-array 3.
!  A total of 619 telescope corrections were flagged in sub-array 4.
!  A total of 161 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 931 telescope corrections were flagged in sub-array 1.
!  A total of 1084 telescope corrections were flagged in sub-array 2.
!  A total of 2088 telescope corrections were flagged in sub-array 3.
!  A total of 619 telescope corrections were flagged in sub-array 4.
!  A total of 161 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=1.269938Jy  sigma=0.007497
! Fit after  self-cal, rms=0.801633Jy  sigma=0.004266
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.273 mas, bmaj=13.43 mas, bpa=3.29 degrees
! Estimated noise=2147.36 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.13546 Jy
! Component: 100  -  total flux cleaned = 1.43166 Jy
! Total flux subtracted in 100 components = 1.43166 Jy
! Clean residual min=-0.072025 max=0.129090 Jy/beam
! Clean residual mean=0.000113 rms=0.025047 Jy/beam
! Combined flux in latest and established models = 1.43166 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 1.43166 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.567342Jy  sigma=0.002734
! Fit after  self-cal, rms=0.567293Jy  sigma=0.002734
! Inverting map 
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
win_mult = win_mult * 1.6
clean_niter = clean_niter * 2
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.871 mas, bmaj=17.66 mas, bpa=1.083 degrees
! Estimated noise=1369.15 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.173343 Jy
! Component: 100  -  total flux cleaned = 0.245046 Jy
! Component: 150  -  total flux cleaned = 0.276617 Jy
! Component: 200  -  total flux cleaned = 0.279269 Jy
! Total flux subtracted in 200 components = 0.279269 Jy
! Clean residual min=-0.057000 max=0.041832 Jy/beam
! Clean residual mean=-0.001573 rms=0.015950 Jy/beam
! Combined flux in latest and established models = 1.71093 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 41 components and 1.71093 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.509469Jy  sigma=0.002393
! Fit after  self-cal, rms=0.509332Jy  sigma=0.002392
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.05     GC        1.00*    HN        1.01     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        1.05     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.02     
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 111 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.05     GC        1.00*    HN        1.00*    KP        1.04     
!   LA        1.06     MK        1.05     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.93     PT        1.04     SC        1.00*    
!   TS        1.06     KK        1.00     WZ        1.00*    WF        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.05     GC        1.00*    HN        1.00*    KP        0.99     
!   LA        1.02     MK        0.97     NL        1.12     NY        1.00*    
!   ON        1.00*    OV        0.82     PT        1.02     SC        1.00*    
!   TS        1.00*    KK        1.01     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   FD        1.01     GC        1.00*    HN        0.99     KP        1.00     
!   LA        1.01     MK        1.00*    NL        1.04     NY        1.00*    
!   ON        1.00*    OV        0.90     PT        1.02     SC        1.04     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.99     GC        1.00*    HN        1.18     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        1.11     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.05     
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 111 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.06     GC        1.00*    HN        1.00*    KP        1.10     
!   LA        1.08     MK        1.06     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.99     PT        1.01     SC        1.00*    
!   TS        1.03     KK        0.97     WZ        1.00*    WF        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.02     GC        1.00*    HN        1.00*    KP        1.05     
!   LA        1.00     MK        1.05     NL        1.17     NY        1.00*    
!   ON        1.00*    OV        0.90     PT        0.98     SC        1.00*    
!   TS        1.00*    KK        1.01     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   FD        1.02     GC        1.00*    HN        1.10     KP        1.09     
!   LA        1.00     MK        1.00*    NL        1.07     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        1.00     SC        1.10     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.92     GC        1.00*    HN        1.14     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        1.11     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        0.99     
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 111 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.04     GC        1.00*    HN        1.00*    KP        1.13     
!   LA        1.00     MK        1.03     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.95     PT        1.04     SC        1.00*    
!   TS        0.99     KK        0.93     WZ        1.00*    WF        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.99     GC        1.00*    HN        1.00*    KP        1.04     
!   LA        0.95     MK        1.01     NL        1.07     NY        1.00*    
!   ON        1.00*    OV        0.91     PT        1.02     SC        1.00*    
!   TS        1.00*    KK        0.98     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.97     GC        1.00*    HN        1.06     KP        1.06     
!   LA        0.98     MK        1.00*    NL        1.02     NY        1.00*    
!   ON        1.00*    OV        0.97     PT        1.02     SC        1.04     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.92     GC        1.00*    HN        1.10     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        0.98     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.01     
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 111 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.02     GC        1.00*    HN        1.00*    KP        1.09     
!   LA        1.04     MK        0.97     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.91     PT        1.00     SC        1.00*    
!   TS        1.00     KK        0.97     WZ        1.00*    WF        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.94     GC        1.00*    HN        1.00*    KP        1.08     
!   LA        0.91     MK        0.94     NL        1.03     NY        1.00*    
!   ON        1.00*    OV        0.52     PT        1.02     SC        1.00*    
!   TS        1.00*    KK        1.16     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.98     GC        1.00*    HN        1.04     KP        1.03     
!   LA        1.00     MK        1.00*    NL        1.03     NY        1.00*    
!   ON        1.00*    OV        0.89     PT        0.98     SC        0.99     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Fit before self-cal, rms=0.509332Jy  sigma=0.002392
! Fit after  self-cal, rms=0.284869Jy  sigma=0.002018
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.974 mas, bmaj=18.06 mas, bpa=0.2424 degrees
! Estimated noise=1472.46 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.000496874 Jy
! Component: 100  -  total flux cleaned = 0.000508118 Jy
! Component: 150  -  total flux cleaned = 0.000251491 Jy
! Component: 200  -  total flux cleaned = 0.000478616 Jy
! Total flux subtracted in 200 components = 0.000478616 Jy
! Clean residual min=-0.022511 max=0.028984 Jy/beam
! Clean residual mean=0.002144 rms=0.008941 Jy/beam
! Combined flux in latest and established models = 1.71141 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 52 components and 1.71141 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.284328Jy  sigma=0.002015
! Fit after  self-cal, rms=0.284470Jy  sigma=0.002013
! Inverting map 
selfcal true, true, soltime1
! Performing amp+phase self-cal over 120 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.284470Jy  sigma=0.002013
! Fit after  self-cal, rms=0.284821Jy  sigma=0.002013
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.982 mas, bmaj=18.06 mas, bpa=0.2297 degrees
! Estimated noise=1476.82 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0019912 Jy
! Component: 100  -  total flux cleaned = 0.00198129 Jy
! Component: 150  -  total flux cleaned = 0.00197738 Jy
! Component: 200  -  total flux cleaned = 0.00220235 Jy
! Total flux subtracted in 200 components = 0.00220235 Jy
! Clean residual min=-0.022237 max=0.029149 Jy/beam
! Clean residual mean=0.002178 rms=0.008920 Jy/beam
! Combined flux in latest and established models = 1.71361 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 53 components and 1.71361 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.284400Jy  sigma=0.002011
! Fit after  self-cal, rms=0.284395Jy  sigma=0.002011
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -3.80815e-05 Jy
! Component: 100  -  total flux cleaned = -4.56034e-05 Jy
! Component: 150  -  total flux cleaned = 0.000145641 Jy
! Component: 200  -  total flux cleaned = 0.000327614 Jy
! Total flux subtracted in 200 components = 0.000327614 Jy
! Clean residual min=-0.022084 max=0.028984 Jy/beam
! Clean residual mean=0.002166 rms=0.008871 Jy/beam
! Combined flux in latest and established models = 1.71394 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 57 components and 1.71394 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.284206Jy  sigma=0.002009
! Fit after  self-cal, rms=0.284206Jy  sigma=0.002009
! Inverting map 
selfcal true, true, soltime2
! Performing amp+phase self-cal over 20 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.284206Jy  sigma=0.002009
! Fit after  self-cal, rms=0.238975Jy  sigma=0.001674
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.989 mas, bmaj=18.05 mas, bpa=0.2471 degrees
! Estimated noise=1483.98 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00363497 Jy
! Component: 100  -  total flux cleaned = 0.00367073 Jy
! Component: 150  -  total flux cleaned = 0.00367528 Jy
! Component: 200  -  total flux cleaned = 0.00367634 Jy
! Total flux subtracted in 200 components = 0.00367634 Jy
! Clean residual min=-0.010060 max=0.015848 Jy/beam
! Clean residual mean=0.001739 rms=0.003383 Jy/beam
! Combined flux in latest and established models = 1.71762 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 68 components and 1.71762 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.238507Jy  sigma=0.001670
! Fit after  self-cal, rms=0.238592Jy  sigma=0.001670
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (-11.5, 16).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0138457 Jy
! Component: 100  -  total flux cleaned = 0.0190356 Jy
! Component: 150  -  total flux cleaned = 0.0201874 Jy
! Component: 200  -  total flux cleaned = 0.0206055 Jy
! Total flux subtracted in 200 components = 0.0206055 Jy
! Clean residual min=-0.009928 max=0.012673 Jy/beam
! Clean residual mean=0.000922 rms=0.002900 Jy/beam
! Combined flux in latest and established models = 1.73822 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 94 components and 1.73822 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.237758Jy  sigma=0.001664
! Fit after  self-cal, rms=0.237667Jy  sigma=0.001664
! Inverting map 
! Added new window around map position (30.5, 58.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00939101 Jy
! Component: 100  -  total flux cleaned = 0.0107881 Jy
! Component: 150  -  total flux cleaned = 0.0105917 Jy
! Component: 200  -  total flux cleaned = 0.0103939 Jy
! Total flux subtracted in 200 components = 0.0103939 Jy
! Clean residual min=-0.009577 max=0.009854 Jy/beam
! Clean residual mean=0.000666 rms=0.002563 Jy/beam
! Combined flux in latest and established models = 1.74862 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 114 components and 1.74862 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.237081Jy  sigma=0.001659
! Fit after  self-cal, rms=0.237028Jy  sigma=0.001659
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 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.237028Jy  sigma=0.001659
! Fit after  self-cal, rms=0.237915Jy  sigma=0.001660
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.567 mas, bmaj=22.29 mas, bpa=1.04 degrees
! Estimated noise=1887.59 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00683967 Jy
! Component: 100  -  total flux cleaned = 0.0102162 Jy
! Component: 150  -  total flux cleaned = 0.0106527 Jy
! Component: 200  -  total flux cleaned = 0.0106487 Jy
! Total flux subtracted in 200 components = 0.0106487 Jy
! Clean residual min=-0.007217 max=0.008874 Jy/beam
! Clean residual mean=0.001013 rms=0.002472 Jy/beam
! Combined flux in latest and established models = 1.75927 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 132 components and 1.75927 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.237832Jy  sigma=0.001658
! Fit after  self-cal, rms=0.237794Jy  sigma=0.001658
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00126696 Jy
! Component: 100  -  total flux cleaned = 0.00138555 Jy
! Component: 150  -  total flux cleaned = 0.0013859 Jy
! Component: 200  -  total flux cleaned = 0.00148717 Jy
! Total flux subtracted in 200 components = 0.00148717 Jy
! Clean residual min=-0.007009 max=0.008730 Jy/beam
! Clean residual mean=0.000940 rms=0.002324 Jy/beam
! Combined flux in latest and established models = 1.76075 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 140 components and 1.76075 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.237788Jy  sigma=0.001658
! Fit after  self-cal, rms=0.237785Jy  sigma=0.001658
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Estimated beam: bmin=2.994 mas, bmaj=18.06 mas, bpa=0.264 degrees
! Estimated noise=1490.51 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.994 x 18.06 at 0.264 degrees (North through East)
! Clean map  min=-0.0085302  max=1.5406 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.237785Jy  sigma=0.001658
! Fit after  self-cal, rms=0.186360Jy  sigma=0.001075
! Inverting map and beam 
! Estimated beam: bmin=2.992 mas, bmaj=18 mas, bpa=0.2253 degrees
! Estimated noise=1485.3 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00139092 Jy
! Component: 100  -  total flux cleaned = 0.00121556 Jy
! Component: 150  -  total flux cleaned = 0.00152245 Jy
! Component: 200  -  total flux cleaned = 0.00166016 Jy
! Total flux subtracted in 200 components = 0.00166016 Jy
! Clean residual min=-0.006376 max=0.006330 Jy/beam
! Clean residual mean=0.000613 rms=0.001701 Jy/beam
! Combined flux in latest and established models = 1.76241 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 165 components and 1.76241 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.186095Jy  sigma=0.001073
! Fit after  self-cal, rms=0.186076Jy  sigma=0.001073
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000586642 Jy
! Component: 100  -  total flux cleaned = 0.000708455 Jy
! Component: 150  -  total flux cleaned = 0.000824844 Jy
! Component: 200  -  total flux cleaned = 0.00104856 Jy
! Total flux subtracted in 200 components = 0.00104856 Jy
! Clean residual min=-0.006634 max=0.006089 Jy/beam
! Clean residual mean=0.000576 rms=0.001645 Jy/beam
! Combined flux in latest and established models = 1.76346 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 181 components and 1.76346 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.185942Jy  sigma=0.001072
! Fit after  self-cal, rms=0.185930Jy  sigma=0.001072
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.185930Jy  sigma=0.001072
! Fit after  self-cal, rms=0.185955Jy  sigma=0.001072
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.475 mas, bmaj=13.99 mas, bpa=0.7951 degrees
! Estimated noise=1976.9 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.1602 Jy
! Component: 100  -  total flux cleaned = 1.43797 Jy
! Component: 150  -  total flux cleaned = 1.55693 Jy
! Component: 200  -  total flux cleaned = 1.62019 Jy
! Total flux subtracted in 200 components = 1.62019 Jy
! Clean residual min=-0.017691 max=0.030921 Jy/beam
! Clean residual mean=0.000348 rms=0.005784 Jy/beam
! Combined flux in latest and established models = 1.62019 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 15 model components to the UV plane model.
! The established model now contains 15 components and 1.62019 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.995 mas, bmaj=18 mas, bpa=0.2223 degrees
! Estimated noise=1485.7 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.0558216 Jy
! Component: 100  -  total flux cleaned = 0.0835011 Jy
! Component: 150  -  total flux cleaned = 0.101526 Jy
! Component: 200  -  total flux cleaned = 0.114669 Jy
! Total flux subtracted in 200 components = 0.114669 Jy
! Clean residual min=-0.006604 max=0.009440 Jy/beam
! Clean residual mean=0.001638 rms=0.002459 Jy/beam
! Combined flux in latest and established models = 1.73486 Jy
! Adding 54 model components to the UV plane model.
! The established model now contains 63 components and 1.73486 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.548 mas, bmaj=22.22 mas, bpa=1.049 degrees
! Estimated noise=1884.57 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0126006 Jy
! Component: 100  -  total flux cleaned = 0.0205763 Jy
! Component: 150  -  total flux cleaned = 0.0259648 Jy
! Component: 200  -  total flux cleaned = 0.0280344 Jy
! Total flux subtracted in 200 components = 0.0280344 Jy
! Clean residual min=-0.006396 max=0.007458 Jy/beam
! Clean residual mean=0.001257 rms=0.002098 Jy/beam
! Combined flux in latest and established models = 1.76289 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.00100885 Jy
! Component: 100  -  total flux cleaned = 0.00153811 Jy
! Component: 150  -  total flux cleaned = 0.00191328 Jy
! Component: 200  -  total flux cleaned = 0.00233087 Jy
! Total flux subtracted in 200 components = 0.00233087 Jy
! Clean residual min=-0.006614 max=0.007320 Jy/beam
! Clean residual mean=0.001090 rms=0.001998 Jy/beam
! Combined flux in latest and established models = 1.76522 Jy
! Adding 56 model components to the UV plane model.
! The established model now contains 111 components and 1.76522 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.995 mas, bmaj=18 mas, bpa=0.2223 degrees
! Estimated noise=1485.7 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000191208 Jy
! Component: 100  -  total flux cleaned = -0.000586449 Jy
! Component: 150  -  total flux cleaned = -0.00075414 Jy
! Component: 200  -  total flux cleaned = -0.000753775 Jy
! Total flux subtracted in 200 components = -0.000753775 Jy
! Clean residual min=-0.007350 max=0.006430 Jy/beam
! Clean residual mean=0.000597 rms=0.001778 Jy/beam
! Combined flux in latest and established models = 1.76447 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 137 components and 1.76447 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.186093Jy  sigma=0.001073
! Fit after  self-cal, rms=0.186084Jy  sigma=0.001073
wmodel J1625-2527_S_2003_09_17_pus_map.mod
! Writing 137 model components to file: J1625-2527_S_2003_09_17_pus_map.mod
wobs J1625-2527_S_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J1625-2527_S_2003_09_17_pus_uvs.fits
wwins J1625-2527_S_2003_09_17_pus_map.win
! wwins: Wrote 3 windows to J1625-2527_S_2003_09_17_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000862081 Jy
! Component: 100  -  total flux cleaned = 0.000466554 Jy
! Component: 150  -  total flux cleaned = 0.0012222 Jy
! Component: 200  -  total flux cleaned = 0.00184736 Jy
! Component: 250  -  total flux cleaned = 0.00236229 Jy
! Component: 300  -  total flux cleaned = 0.00285832 Jy
! Component: 350  -  total flux cleaned = 0.00333988 Jy
! Component: 400  -  total flux cleaned = 0.00380771 Jy
! Component: 450  -  total flux cleaned = 0.00418853 Jy
! Component: 500  -  total flux cleaned = 0.00470853 Jy
! Component: 550  -  total flux cleaned = 0.00514276 Jy
! Component: 600  -  total flux cleaned = 0.00563788 Jy
! Component: 650  -  total flux cleaned = 0.00598364 Jy
! Component: 700  -  total flux cleaned = 0.00632174 Jy
! Component: 750  -  total flux cleaned = 0.00645445 Jy
! Component: 800  -  total flux cleaned = 0.00678077 Jy
! Component: 850  -  total flux cleaned = 0.00710139 Jy
! Component: 900  -  total flux cleaned = 0.007416 Jy
! Component: 950  -  total flux cleaned = 0.00766324 Jy
! Component: 1000  -  total flux cleaned = 0.00790728 Jy
! Component: 1050  -  total flux cleaned = 0.00820777 Jy
! Component: 1100  -  total flux cleaned = 0.00856211 Jy
! Component: 1150  -  total flux cleaned = 0.0086201 Jy
! Component: 1200  -  total flux cleaned = 0.00885003 Jy
! Component: 1250  -  total flux cleaned = 0.00896364 Jy
! Component: 1300  -  total flux cleaned = 0.00918765 Jy
! Component: 1350  -  total flux cleaned = 0.00935267 Jy
! Component: 1400  -  total flux cleaned = 0.00940693 Jy
! Component: 1450  -  total flux cleaned = 0.0095149 Jy
! Component: 1500  -  total flux cleaned = 0.00967409 Jy
! Component: 1550  -  total flux cleaned = 0.00972661 Jy
! Component: 1600  -  total flux cleaned = 0.00982996 Jy
! Component: 1650  -  total flux cleaned = 0.00993209 Jy
! Component: 1700  -  total flux cleaned = 0.0100332 Jy
! Component: 1750  -  total flux cleaned = 0.0101335 Jy
! Component: 1800  -  total flux cleaned = 0.0102323 Jy
! Component: 1850  -  total flux cleaned = 0.0103305 Jy
! Component: 1900  -  total flux cleaned = 0.0103785 Jy
! Component: 1950  -  total flux cleaned = 0.0103783 Jy
! Component: 2000  -  total flux cleaned = 0.0104263 Jy
! Total flux subtracted in 2048 components = 0.0104738 Jy
! Clean residual min=-0.002595 max=0.002563 Jy/beam
! Clean residual mean=0.000205 rms=0.001021 Jy/beam
! Combined flux in latest and established models = 1.77494 Jy
keep
! Adding 163 model components to the UV plane model.
! The established model now contains 300 components and 1.77495 Jy
wmap "J1625-2527_S_2003_09_17_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.995 x 18 at 0.2223 degrees (North through East)
! Clean map  min=-0.0075601  max=1.5341 Jy/beam
! Writing clean map to FITS file: J1625-2527_S_2003_09_17_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.53413 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00101861 
device "J1625-2527_S_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J1625-2527_S_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.199189 0.199189 0.398379 0.796757 1.59351 3.18703 6.37406 12.7481 25.4962 50.9925
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.003 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.534 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.995 x 18 at 0.2223 degrees (North through East)
! Clean map  min=-0.0075601  max=1.5341 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1625-2527_S_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J1625-2527_S_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1625-2527_S_2003_09_17_pus_uvs.log closed on Mon May 21 22:19:18 2007