! Started logfile: J2158-1501_X_2003_09_17_pus_uvs.log on Sat May 12 22:24:26 2007
obs J2158-1501_X_2003_09_17_pus_uva.fits
! Reading UV FITS file: J2158-1501_X_2003_09_17_pus_uva.fits
! AN table 1: 131 integrations on 120 of 120 possible baselines.
! AN table 2: 88 integrations on 120 of 120 possible baselines.
! AN table 3: 188 integrations on 120 of 120 possible baselines.
! AN table 4: 20 integrations on 120 of 120 possible baselines.
! AN table 5: 14 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.112169 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2158-1501
! 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  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 1485 lines of history.
! 
! Reading 23744 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
float field_size
field_size = 256
float field_cell
field_cell = 0.2
float taper_size
taper_size = 70.
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 1325 telescope corrections were flagged in sub-array 1.
!  A total of 1041 telescope corrections were flagged in sub-array 2.
!  A total of 2241 telescope corrections were flagged in sub-array 3.
!  A total of 320 telescope corrections were flagged in sub-array 4.
!  A total of 191 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 1325 telescope corrections were flagged in sub-array 1.
!  A total of 1041 telescope corrections were flagged in sub-array 2.
!  A total of 2241 telescope corrections were flagged in sub-array 3.
!  A total of 320 telescope corrections were flagged in sub-array 4.
!  A total of 191 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 1325 telescope corrections were flagged in sub-array 1.
!  A total of 1041 telescope corrections were flagged in sub-array 2.
!  A total of 2241 telescope corrections were flagged in sub-array 3.
!  A total of 320 telescope corrections were flagged in sub-array 4.
!  A total of 191 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 1325 telescope corrections were flagged in sub-array 1.
!  A total of 1041 telescope corrections were flagged in sub-array 2.
!  A total of 2241 telescope corrections were flagged in sub-array 3.
!  A total of 320 telescope corrections were flagged in sub-array 4.
!  A total of 191 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.888784Jy  sigma=0.008293
! Fit after  self-cal, rms=0.450258Jy  sigma=0.004181
! 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.85% of the data.
!  The x-axis pixel size should ideally be below 0.1893 milli-arcsec
! Estimated beam: bmin=0.5733 mas, bmaj=2.298 mas, bpa=-1.359 degrees
! Estimated noise=996.065 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.665478 Jy
! Component: 100  -  total flux cleaned = 0.891714 Jy
! Total flux subtracted in 100 components = 0.891714 Jy
! Clean residual min=-0.074593 max=0.167809 Jy/beam
! Clean residual mean=0.001802 rms=0.022492 Jy/beam
! Combined flux in latest and established models = 0.891714 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.891714 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.428663Jy  sigma=0.004137
! Fit after  self-cal, rms=0.427846Jy  sigma=0.004129
! Inverting map 
! Your choice of large map pixels excluded 0.85% of the data.
!  The x-axis pixel size should ideally be below 0.1893 milli-arcsec
! Added new window around map position (-1.6, -2.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.162163 Jy
! Component: 100  -  total flux cleaned = 0.263351 Jy
! Total flux subtracted in 100 components = 0.263351 Jy
! Clean residual min=-0.051289 max=0.069825 Jy/beam
! Clean residual mean=0.001074 rms=0.014501 Jy/beam
! Combined flux in latest and established models = 1.15507 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 18 components and 1.15507 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.301847Jy  sigma=0.002818
! Fit after  self-cal, rms=0.293147Jy  sigma=0.002750
! Inverting map 
! Your choice of large map pixels excluded 0.85% of the data.
!  The x-axis pixel size should ideally be below 0.1893 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.85% of the data.
!  The x-axis pixel size should ideally be below 0.1893 milli-arcsec
! Estimated beam: bmin=0.8031 mas, bmaj=2.49 mas, bpa=-2.504 degrees
! Estimated noise=520.249 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.163757 Jy
! Component: 100  -  total flux cleaned = 0.259104 Jy
! Component: 150  -  total flux cleaned = 0.318294 Jy
! Component: 200  -  total flux cleaned = 0.355415 Jy
! Total flux subtracted in 200 components = 0.355415 Jy
! Clean residual min=-0.019171 max=0.046181 Jy/beam
! Clean residual mean=0.001092 rms=0.008804 Jy/beam
! Combined flux in latest and established models = 1.51048 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 42 components and 1.51048 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.191612Jy  sigma=0.001586
! Fit after  self-cal, rms=0.183255Jy  sigma=0.001502
! Inverting map 
! Your choice of large map pixels excluded 0.85% of the data.
!  The x-axis pixel size should ideally be below 0.1893 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 39 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.96     GC        1.00*    HN        1.03     KP        1.00     
!   LA        0.96     MK        0.95     NL        1.09     NY        1.00*    
!   ON        1.00*    OV        0.96     PT        0.96     SC        1.02     
!   TS        1.00*    KK        0.99     WZ        1.00*    WF        1.12     
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.94     GC        1.00*    HN        0.99     KP        1.01     
!   LA        0.97     MK        1.00*    NL        1.04     NY        1.00*    
!   ON        1.00*    OV        0.95     PT        0.96     SC        0.93     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.05     
! 
!  A total of 207 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.95     GC        1.00*    HN        1.03     KP        1.01     
!   LA        0.98     MK        1.01     NL        1.06     NY        1.00*    
!   ON        1.00*    OV        0.97     PT        0.97     SC        1.01     
!   TS        1.19     KK        1.04     WZ        1.00*    WF        1.10     
! 
!  Telescope amplitude corrections in sub-array 4:
!   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 33 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   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*    
! 
! 
! Correcting IF 2.
!  A total of 39 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.96     GC        1.00*    HN        1.03     KP        0.95     
!   LA        0.98     MK        0.95     NL        1.09     NY        1.00*    
!   ON        1.00*    OV        0.95     PT        0.99     SC        0.97     
!   TS        1.00*    KK        0.97     WZ        1.00*    WF        1.03     
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.93     GC        1.00*    HN        0.99     KP        0.95     
!   LA        0.98     MK        1.00*    NL        1.02     NY        1.00*    
!   ON        1.00*    OV        0.94     PT        1.00     SC        0.90     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.01     
! 
!  A total of 207 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.95     GC        1.00*    HN        1.06     KP        0.96     
!   LA        0.98     MK        1.02     NL        1.05     NY        1.00*    
!   ON        1.00*    OV        0.96     PT        1.01     SC        0.97     
!   TS        1.17     KK        1.06     WZ        1.00*    WF        1.04     
! 
!  Telescope amplitude corrections in sub-array 4:
!   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 33 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   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*    
! 
! 
! Correcting IF 3.
!  A total of 39 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.95     GC        1.00*    HN        1.02     KP        0.94     
!   LA        0.99     MK        0.93     NL        1.05     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        1.00     SC        0.99     
!   TS        1.00*    KK        0.92     WZ        1.00*    WF        1.13     
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.92     GC        1.00*    HN        0.99     KP        0.95     
!   LA        0.98     MK        1.00*    NL        1.01     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        1.00     SC        0.88     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.07     
! 
!  A total of 207 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.94     GC        1.00*    HN        1.03     KP        0.95     
!   LA        1.00     MK        1.01     NL        1.03     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        1.02     SC        0.96     
!   TS        1.21     KK        1.00     WZ        1.00*    WF        1.09     
! 
!  Telescope amplitude corrections in sub-array 4:
!   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 33 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   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*    
! 
! 
! Correcting IF 4.
!  A total of 39 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.96     GC        1.00*    HN        1.05     KP        0.95     
!   LA        0.96     MK        0.95     NL        1.07     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        1.00     SC        1.04     
!   TS        1.00*    KK        0.97     WZ        1.00*    WF        1.04     
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.94     GC        1.00*    HN        1.01     KP        0.96     
!   LA        0.95     MK        1.00*    NL        1.01     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        1.01     SC        0.94     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.02     
! 
!  A total of 207 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.95     GC        1.00*    HN        1.06     KP        0.96     
!   LA        0.97     MK        1.03     NL        1.04     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        1.02     SC        0.99     
!   TS        1.23     KK        1.01     WZ        1.00*    WF        1.04     
! 
!  Telescope amplitude corrections in sub-array 4:
!   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 33 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   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*    
! 
! 
! Fit before self-cal, rms=0.183255Jy  sigma=0.001502
! Fit after  self-cal, rms=0.172570Jy  sigma=0.001354
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.872% of the data.
!  The x-axis pixel size should ideally be below 0.1893 milli-arcsec
! Estimated beam: bmin=0.7974 mas, bmaj=2.488 mas, bpa=-2.45 degrees
! Estimated noise=521.491 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (-2.4, -3.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0184908 Jy
! Component: 100  -  total flux cleaned = 0.0203971 Jy
! Component: 150  -  total flux cleaned = 0.0213467 Jy
! Component: 200  -  total flux cleaned = 0.0217108 Jy
! Total flux subtracted in 200 components = 0.0217108 Jy
! Clean residual min=-0.011501 max=0.010526 Jy/beam
! Clean residual mean=0.001278 rms=0.002735 Jy/beam
! Combined flux in latest and established models = 1.53219 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 59 components and 1.53219 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.168026Jy  sigma=0.001310
! Fit after  self-cal, rms=0.167367Jy  sigma=0.001302
! Inverting map 
! Your choice of large map pixels excluded 0.872% of the data.
!  The x-axis pixel size should ideally be below 0.1893 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.167367Jy  sigma=0.001302
! Fit after  self-cal, rms=0.164908Jy  sigma=0.001282
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.872% of the data.
!  The x-axis pixel size should ideally be below 0.1893 milli-arcsec
! Estimated beam: bmin=0.7974 mas, bmaj=2.482 mas, bpa=-2.394 degrees
! Estimated noise=520.701 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00906054 Jy
! Component: 100  -  total flux cleaned = 0.0101384 Jy
! Component: 150  -  total flux cleaned = 0.0107438 Jy
! Component: 200  -  total flux cleaned = 0.0112652 Jy
! Total flux subtracted in 200 components = 0.0112652 Jy
! Clean residual min=-0.007175 max=0.007968 Jy/beam
! Clean residual mean=0.000609 rms=0.001829 Jy/beam
! Combined flux in latest and established models = 1.54346 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 64 components and 1.54346 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.163230Jy  sigma=0.001267
! Fit after  self-cal, rms=0.162973Jy  sigma=0.001264
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.872% of the data.
!  The x-axis pixel size should ideally be below 0.1893 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 (-0.8, -1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00315287 Jy
! Component: 100  -  total flux cleaned = 0.003974 Jy
! Component: 150  -  total flux cleaned = 0.00464552 Jy
! Component: 200  -  total flux cleaned = 0.00503643 Jy
! Total flux subtracted in 200 components = 0.00503643 Jy
! Clean residual min=-0.005861 max=0.006734 Jy/beam
! Clean residual mean=0.000493 rms=0.001581 Jy/beam
! Combined flux in latest and established models = 1.54849 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 76 components and 1.54849 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.162037Jy  sigma=0.001257
! Fit after  self-cal, rms=0.161914Jy  sigma=0.001255
! Inverting map 
! Your choice of large map pixels excluded 0.872% of the data.
!  The x-axis pixel size should ideally be below 0.1893 milli-arcsec
! Added new window around map position (-3.2, -8.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00346116 Jy
! Component: 100  -  total flux cleaned = 0.00367984 Jy
! Component: 150  -  total flux cleaned = 0.00387929 Jy
! Component: 200  -  total flux cleaned = 0.00387886 Jy
! Total flux subtracted in 200 components = 0.00387886 Jy
! Clean residual min=-0.004553 max=0.005056 Jy/beam
! Clean residual mean=0.000421 rms=0.001329 Jy/beam
! Combined flux in latest and established models = 1.55237 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 89 components and 1.55237 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.161287Jy  sigma=0.001250
! Fit after  self-cal, rms=0.161221Jy  sigma=0.001249
! Inverting map 
! Your choice of large map pixels excluded 0.872% of the data.
!  The x-axis pixel size should ideally be below 0.1893 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.161221Jy  sigma=0.001249
! Fit after  self-cal, rms=0.160378Jy  sigma=0.001246
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.872% of the data.
!  The x-axis pixel size should ideally be below 0.1893 milli-arcsec
! Estimated beam: bmin=0.7986 mas, bmaj=2.478 mas, bpa=-2.352 degrees
! Estimated noise=520.162 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00463136 Jy
! Component: 100  -  total flux cleaned = 0.00540225 Jy
! Component: 150  -  total flux cleaned = 0.00556439 Jy
! Component: 200  -  total flux cleaned = 0.00556386 Jy
! Total flux subtracted in 200 components = 0.00556386 Jy
! Clean residual min=-0.003861 max=0.004306 Jy/beam
! Clean residual mean=0.000307 rms=0.001115 Jy/beam
! Combined flux in latest and established models = 1.55794 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 102 components and 1.55794 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.159855Jy  sigma=0.001241
! Fit after  self-cal, rms=0.159803Jy  sigma=0.001241
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.872% of the data.
!  The x-axis pixel size should ideally be below 0.1893 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.000984381 Jy
! Component: 100  -  total flux cleaned = 0.00113852 Jy
! Component: 150  -  total flux cleaned = 0.00140575 Jy
! Component: 200  -  total flux cleaned = 0.00140666 Jy
! Total flux subtracted in 200 components = 0.00140666 Jy
! Clean residual min=-0.003538 max=0.003749 Jy/beam
! Clean residual mean=0.000276 rms=0.001006 Jy/beam
! Combined flux in latest and established models = 1.55934 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 110 components and 1.55934 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.159537Jy  sigma=0.001238
! Fit after  self-cal, rms=0.159510Jy  sigma=0.001238
! Inverting map 
! Your choice of large map pixels excluded 0.872% of the data.
!  The x-axis pixel size should ideally be below 0.1893 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.159510Jy  sigma=0.001238
! Fit after  self-cal, rms=0.159356Jy  sigma=0.001237
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.872% of the data.
!  The x-axis pixel size should ideally be below 0.1893 milli-arcsec
! Estimated beam: bmin=2.312 mas, bmaj=4.644 mas, bpa=-3.596 degrees
! Estimated noise=649.933 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00274686 Jy
! Component: 100  -  total flux cleaned = 0.00318666 Jy
! Component: 150  -  total flux cleaned = 0.00357346 Jy
! Component: 200  -  total flux cleaned = 0.00391998 Jy
! Total flux subtracted in 200 components = 0.00391998 Jy
! Clean residual min=-0.001516 max=0.002592 Jy/beam
! Clean residual mean=0.000330 rms=0.000720 Jy/beam
! Combined flux in latest and established models = 1.56326 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 119 components and 1.56326 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.159223Jy  sigma=0.001236
! Fit after  self-cal, rms=0.159188Jy  sigma=0.001236
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.872% of the data.
!  The x-axis pixel size should ideally be below 0.1893 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.00028298 Jy
! Component: 100  -  total flux cleaned = 0.000728136 Jy
! Component: 150  -  total flux cleaned = 0.00100033 Jy
! Component: 200  -  total flux cleaned = 0.00117237 Jy
! Total flux subtracted in 200 components = 0.00117237 Jy
! Clean residual min=-0.001458 max=0.002314 Jy/beam
! Clean residual mean=0.000280 rms=0.000683 Jy/beam
! Combined flux in latest and established models = 1.56443 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 127 components and 1.56443 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.159137Jy  sigma=0.001235
! Fit after  self-cal, rms=0.159123Jy  sigma=0.001235
! Inverting map 
! Your choice of large map pixels excluded 0.872% of the data.
!  The x-axis pixel size should ideally be below 0.1893 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.872% of the data.
!  The x-axis pixel size should ideally be below 0.1893 milli-arcsec
! Estimated beam: bmin=0.7994 mas, bmaj=2.476 mas, bpa=-2.327 degrees
! Estimated noise=520.054 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7994 x 2.476 at -2.327 degrees (North through East)
! Clean map  min=-0.0027682  max=0.88605 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.159123Jy  sigma=0.001235
! Fit after  self-cal, rms=0.150648Jy  sigma=0.001123
! Inverting map and beam 
! Your choice of large map pixels excluded 0.872% of the data.
!  The x-axis pixel size should ideally be below 0.1893 milli-arcsec
! Estimated beam: bmin=0.7999 mas, bmaj=2.475 mas, bpa=-2.303 degrees
! Estimated noise=520.102 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00238173 Jy
! Component: 100  -  total flux cleaned = 0.00226512 Jy
! Component: 150  -  total flux cleaned = 0.00215879 Jy
! Component: 200  -  total flux cleaned = 0.00186414 Jy
! Total flux subtracted in 200 components = 0.00186414 Jy
! Clean residual min=-0.002942 max=0.002815 Jy/beam
! Clean residual mean=-0.000031 rms=0.000809 Jy/beam
! Combined flux in latest and established models = 1.5663 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 149 components and 1.5663 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.150475Jy  sigma=0.001121
! Fit after  self-cal, rms=0.150460Jy  sigma=0.001121
! Inverting map 
! Your choice of large map pixels excluded 0.872% of the data.
!  The x-axis pixel size should ideally be below 0.1893 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000483586 Jy
! Component: 100  -  total flux cleaned = 0.000486783 Jy
! Component: 150  -  total flux cleaned = 0.000398434 Jy
! Component: 200  -  total flux cleaned = 0.000233685 Jy
! Total flux subtracted in 200 components = 0.000233685 Jy
! Clean residual min=-0.002771 max=0.002814 Jy/beam
! Clean residual mean=-0.000035 rms=0.000767 Jy/beam
! Combined flux in latest and established models = 1.56653 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 155 components and 1.56653 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.150350Jy  sigma=0.001120
! Fit after  self-cal, rms=0.150344Jy  sigma=0.001120
! Inverting map 
! Your choice of large map pixels excluded 0.872% of the data.
!  The x-axis pixel size should ideally be below 0.1893 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.150344Jy  sigma=0.001120
! Fit after  self-cal, rms=0.150452Jy  sigma=0.001120
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.872% of the data.
!  The x-axis pixel size should ideally be below 0.1893 milli-arcsec
! Estimated beam: bmin=0.5893 mas, bmaj=2.279 mas, bpa=-1.211 degrees
! Estimated noise=1014.54 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.664708 Jy
! Component: 100  -  total flux cleaned = 0.919979 Jy
! Component: 150  -  total flux cleaned = 1.07709 Jy
! Component: 200  -  total flux cleaned = 1.1812 Jy
! Total flux subtracted in 200 components = 1.1812 Jy
! Clean residual min=-0.024661 max=0.057443 Jy/beam
! Clean residual mean=0.001003 rms=0.010550 Jy/beam
! Combined flux in latest and established models = 1.1812 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 18 model components to the UV plane model.
! The established model now contains 18 components and 1.1812 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 0.872% of the data.
!  The x-axis pixel size should ideally be below 0.1893 milli-arcsec
! Estimated beam: bmin=0.8002 mas, bmaj=2.475 mas, bpa=-2.299 degrees
! Estimated noise=520.265 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.149699 Jy
! Component: 100  -  total flux cleaned = 0.23662 Jy
! Component: 150  -  total flux cleaned = 0.289881 Jy
! Component: 200  -  total flux cleaned = 0.322732 Jy
! Total flux subtracted in 200 components = 0.322732 Jy
! Clean residual min=-0.007397 max=0.017072 Jy/beam
! Clean residual mean=0.001372 rms=0.004175 Jy/beam
! Combined flux in latest and established models = 1.50393 Jy
! Adding 50 model components to the UV plane model.
! The established model now contains 59 components and 1.50393 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.872% of the data.
!  The x-axis pixel size should ideally be below 0.1893 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.872% of the data.
!  The x-axis pixel size should ideally be below 0.1893 milli-arcsec
! Estimated beam: bmin=2.311 mas, bmaj=4.642 mas, bpa=-3.61 degrees
! Estimated noise=649.961 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0308563 Jy
! Component: 100  -  total flux cleaned = 0.0440967 Jy
! Component: 150  -  total flux cleaned = 0.0511242 Jy
! Component: 200  -  total flux cleaned = 0.0553822 Jy
! Total flux subtracted in 200 components = 0.0553822 Jy
! Clean residual min=-0.001959 max=0.003259 Jy/beam
! Clean residual mean=0.000337 rms=0.001018 Jy/beam
! Combined flux in latest and established models = 1.55931 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.00279616 Jy
! Component: 100  -  total flux cleaned = 0.00470134 Jy
! Component: 150  -  total flux cleaned = 0.00549379 Jy
! Component: 200  -  total flux cleaned = 0.00583127 Jy
! Total flux subtracted in 200 components = 0.00583127 Jy
! Clean residual min=-0.001573 max=0.002312 Jy/beam
! Clean residual mean=0.000088 rms=0.000692 Jy/beam
! Combined flux in latest and established models = 1.56514 Jy
! Adding 76 model components to the UV plane model.
! The established model now contains 123 components and 1.56514 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.872% of the data.
!  The x-axis pixel size should ideally be below 0.1893 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 0.872% of the data.
!  The x-axis pixel size should ideally be below 0.1893 milli-arcsec
! Estimated beam: bmin=0.8002 mas, bmaj=2.475 mas, bpa=-2.299 degrees
! Estimated noise=520.265 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000806951 Jy
! Component: 100  -  total flux cleaned = 0.000792257 Jy
! Component: 150  -  total flux cleaned = 0.000482713 Jy
! Component: 200  -  total flux cleaned = 0.000351509 Jy
! Total flux subtracted in 200 components = 0.000351509 Jy
! Clean residual min=-0.004399 max=0.003969 Jy/beam
! Clean residual mean=0.000030 rms=0.000964 Jy/beam
! Combined flux in latest and established models = 1.5655 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 141 components and 1.5655 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.150569Jy  sigma=0.001122
! Fit after  self-cal, rms=0.150438Jy  sigma=0.001120
wmodel J2158-1501_X_2003_09_17_pus_map.mod
! Writing 141 model components to file: J2158-1501_X_2003_09_17_pus_map.mod
wobs J2158-1501_X_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J2158-1501_X_2003_09_17_pus_uvs.fits
wwins J2158-1501_X_2003_09_17_pus_map.win
! wwins: Wrote 5 windows to J2158-1501_X_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 
! Your choice of large map pixels excluded 0.872% of the data.
!  The x-axis pixel size should ideally be below 0.1893 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000776627 Jy
! Component: 100  -  total flux cleaned = 0.00101313 Jy
! Component: 150  -  total flux cleaned = 0.00128601 Jy
! Component: 200  -  total flux cleaned = 0.00138805 Jy
! Component: 250  -  total flux cleaned = 0.00153297 Jy
! Component: 300  -  total flux cleaned = 0.00167035 Jy
! Component: 350  -  total flux cleaned = 0.00171445 Jy
! Component: 400  -  total flux cleaned = 0.00167083 Jy
! Component: 450  -  total flux cleaned = 0.00162919 Jy
! Component: 500  -  total flux cleaned = 0.00162852 Jy
! Component: 550  -  total flux cleaned = 0.0015493 Jy
! Component: 600  -  total flux cleaned = 0.00158854 Jy
! Component: 650  -  total flux cleaned = 0.00151331 Jy
! Component: 700  -  total flux cleaned = 0.00147686 Jy
! Component: 750  -  total flux cleaned = 0.00147741 Jy
! Component: 800  -  total flux cleaned = 0.00144215 Jy
! Component: 850  -  total flux cleaned = 0.00147675 Jy
! Component: 900  -  total flux cleaned = 0.00147645 Jy
! Component: 950  -  total flux cleaned = 0.00150945 Jy
! Component: 1000  -  total flux cleaned = 0.00144431 Jy
! Total flux subtracted in 1024 components = 0.00141239 Jy
! Clean residual min=-0.001814 max=0.001818 Jy/beam
! Clean residual mean=0.000001 rms=0.000615 Jy/beam
! Combined flux in latest and established models = 1.56691 Jy
keep
! Adding 61 model components to the UV plane model.
! The established model now contains 200 components and 1.56691 Jy
wmap "J2158-1501_X_2003_09_17_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 0.872% of the data.
!  The x-axis pixel size should ideally be below 0.1893 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8002 x 2.475 at -2.299 degrees (North through East)
! Clean map  min=-0.0030126  max=0.87629 Jy/beam
! Writing clean map to FITS file: J2158-1501_X_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 0.876289 
invert
! Inverting map 
! Your choice of large map pixels excluded 0.872% of the data.
!  The x-axis pixel size should ideally be below 0.1893 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000615704 
device "J2158-1501_X_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J2158-1501_X_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.210788 0.210788 0.421576 0.843152 1.6863 3.37261 6.74522 13.4904 26.9809 53.9618
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0018 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.876 
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.8002 x 2.475 at -2.299 degrees (North through East)
! Clean map  min=-0.0030126  max=0.87629 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2158-1501_X_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J2158-1501_X_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2158-1501_X_2003_09_17_pus_uvs.log closed on Sat May 12 22:25:46 2007