! Started logfile: J1037-2934_S_2003_09_17_pus_uvs.log on Mon May 21 21:32:33 2007
obs J1037-2934_S_2003_09_17_pus_uva.fits
! Reading UV FITS file: J1037-2934_S_2003_09_17_pus_uva.fits
! AN table 1: 8 integrations on 120 of 120 possible baselines.
! AN table 2: 201 integrations on 120 of 120 possible baselines.
! AN table 3: 15 integrations on 120 of 120 possible baselines.
! AN table 4: 27 integrations on 120 of 120 possible baselines.
! AN table 5: 39 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.111868 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1037-2934
! 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 15572 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 128 telescope corrections were flagged in sub-array 1.
!  A total of 2100 telescope corrections were flagged in sub-array 2.
!  A total of 173 telescope corrections were flagged in sub-array 3.
!  A total of 343 telescope corrections were flagged in sub-array 4.
!  A total of 591 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 128 telescope corrections were flagged in sub-array 1.
!  A total of 2100 telescope corrections were flagged in sub-array 2.
!  A total of 173 telescope corrections were flagged in sub-array 3.
!  A total of 343 telescope corrections were flagged in sub-array 4.
!  A total of 591 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 128 telescope corrections were flagged in sub-array 1.
!  A total of 2100 telescope corrections were flagged in sub-array 2.
!  A total of 173 telescope corrections were flagged in sub-array 3.
!  A total of 343 telescope corrections were flagged in sub-array 4.
!  A total of 591 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 128 telescope corrections were flagged in sub-array 1.
!  A total of 2100 telescope corrections were flagged in sub-array 2.
!  A total of 173 telescope corrections were flagged in sub-array 3.
!  A total of 343 telescope corrections were flagged in sub-array 4.
!  A total of 591 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=1.190141Jy  sigma=0.006024
! Fit after  self-cal, rms=0.395920Jy  sigma=0.001873
! 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.789 mas, bmaj=10.66 mas, bpa=9.475 degrees
! Estimated noise=2042.22 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.586835 Jy
! Component: 100  -  total flux cleaned = 0.768951 Jy
! Total flux subtracted in 100 components = 0.768951 Jy
! Clean residual min=-0.029673 max=0.074702 Jy/beam
! Clean residual mean=0.000052 rms=0.010287 Jy/beam
! Combined flux in latest and established models = 0.768951 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 0.768951 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.373499Jy  sigma=0.001712
! Fit after  self-cal, rms=0.373345Jy  sigma=0.001712
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.077699 Jy
! Component: 100  -  total flux cleaned = 0.122821 Jy
! Total flux subtracted in 100 components = 0.122821 Jy
! Clean residual min=-0.029265 max=0.029410 Jy/beam
! Clean residual mean=-0.000014 rms=0.007124 Jy/beam
! Combined flux in latest and established models = 0.891772 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 29 components and 0.891772 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.347567Jy  sigma=0.001518
! Fit after  self-cal, rms=0.347559Jy  sigma=0.001518
! 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=3.937 mas, bmaj=12 mas, bpa=4.047 degrees
! Estimated noise=1111.94 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.0640291 Jy
! Component: 100  -  total flux cleaned = 0.0998911 Jy
! Component: 150  -  total flux cleaned = 0.120406 Jy
! Component: 200  -  total flux cleaned = 0.132447 Jy
! Total flux subtracted in 200 components = 0.132447 Jy
! Clean residual min=-0.025123 max=0.022359 Jy/beam
! Clean residual mean=-0.001476 rms=0.006791 Jy/beam
! Combined flux in latest and established models = 1.02422 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 46 components and 1.02422 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.337959Jy  sigma=0.001432
! Fit after  self-cal, rms=0.337929Jy  sigma=0.001432
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   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 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.04     GC        1.00*    HN        1.07     KP        0.94     
!   LA        0.96     MK        1.00*    NL        0.98     NY        1.00*    
!   ON        1.00*    OV        1.04     PT        0.96     SC        0.99     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        0.96     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.99     GC        1.00*    HN        1.00*    KP        1.05     
!   LA        1.00     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.93     PT        1.03     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00     GC        1.00*    HN        1.00     KP        0.97     
!   LA        0.97     MK        1.00*    NL        1.12     NY        1.00*    
!   ON        1.00*    OV        0.94     PT        1.00*    SC        0.94     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.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.
!  Telescope amplitude corrections in sub-array 1:
!   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 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.07     GC        1.00*    HN        1.21     KP        1.03     
!   LA        0.98     MK        1.00*    NL        1.02     NY        1.00*    
!   ON        1.00*    OV        1.04     PT        0.96     SC        1.02     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.03     GC        1.00*    HN        1.00*    KP        1.05     
!   LA        1.03     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.00     PT        0.98     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.01     GC        1.00*    HN        1.06     KP        1.05     
!   LA        1.03     MK        1.00*    NL        1.15     NY        1.00*    
!   ON        1.00*    OV        0.97     PT        1.00*    SC        0.96     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.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.
!  Telescope amplitude corrections in sub-array 1:
!   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 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.02     GC        1.00*    HN        1.18     KP        1.00     
!   LA        0.92     MK        1.00*    NL        0.95     NY        1.00*    
!   ON        1.00*    OV        0.95     PT        0.99     SC        1.03     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.01     GC        1.00*    HN        1.00*    KP        1.09     
!   LA        0.99     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.95     PT        1.07     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00     GC        1.00*    HN        1.09     KP        1.02     
!   LA        0.94     MK        1.00*    NL        1.08     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.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.
!  Telescope amplitude corrections in sub-array 1:
!   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 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.02     GC        1.00*    HN        0.89     KP        1.00     
!   LA        0.96     MK        1.00*    NL        0.98     NY        1.00*    
!   ON        1.00*    OV        0.84     PT        0.94     SC        0.98     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        0.98     
! 
!  A total of 6 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        0.98     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.92     PT        0.99     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.97     GC        1.00*    HN        0.92     KP        1.01     
!   LA        0.97     MK        1.00*    NL        1.10     NY        1.00*    
!   ON        1.00*    OV        0.94     PT        1.00*    SC        0.92     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.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.337929Jy  sigma=0.001432
! Fit after  self-cal, rms=0.317975Jy  sigma=0.001387
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=4.109 mas, bmaj=12.35 mas, bpa=2.38 degrees
! Estimated noise=1125.39 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.00675596 Jy
! Component: 100  -  total flux cleaned = -0.00839818 Jy
! Component: 150  -  total flux cleaned = -0.00866133 Jy
! Component: 200  -  total flux cleaned = -0.00866508 Jy
! Total flux subtracted in 200 components = -0.00866508 Jy
! Clean residual min=-0.019624 max=0.021500 Jy/beam
! Clean residual mean=-0.000916 rms=0.005959 Jy/beam
! Combined flux in latest and established models = 1.01555 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 54 components and 1.01555 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.317666Jy  sigma=0.001386
! Fit after  self-cal, rms=0.317617Jy  sigma=0.001386
! 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.317617Jy  sigma=0.001386
! Fit after  self-cal, rms=0.315550Jy  sigma=0.001327
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=4.109 mas, bmaj=12.38 mas, bpa=2.474 degrees
! Estimated noise=1125.91 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00682559 Jy
! Component: 100  -  total flux cleaned = -0.00750041 Jy
! Component: 150  -  total flux cleaned = -0.00788268 Jy
! Component: 200  -  total flux cleaned = -0.00821787 Jy
! Total flux subtracted in 200 components = -0.00821787 Jy
! Clean residual min=-0.010820 max=0.011185 Jy/beam
! Clean residual mean=-0.000637 rms=0.003024 Jy/beam
! Combined flux in latest and established models = 1.00734 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 63 components and 1.00734 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.315126Jy  sigma=0.001325
! Fit after  self-cal, rms=0.315413Jy  sigma=0.001325
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.00013415 Jy
! Component: 100  -  total flux cleaned = -0.000556665 Jy
! Component: 150  -  total flux cleaned = -0.000804399 Jy
! Component: 200  -  total flux cleaned = -0.00103023 Jy
! Total flux subtracted in 200 components = -0.00103023 Jy
! Clean residual min=-0.010419 max=0.010917 Jy/beam
! Clean residual mean=-0.000614 rms=0.002979 Jy/beam
! Combined flux in latest and established models = 1.00631 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 67 components and 1.00631 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.315279Jy  sigma=0.001324
! Fit after  self-cal, rms=0.315281Jy  sigma=0.001324
! 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.315281Jy  sigma=0.001324
! Fit after  self-cal, rms=0.316491Jy  sigma=0.001313
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=4.101 mas, bmaj=12.42 mas, bpa=2.51 degrees
! Estimated noise=1124.56 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00405971 Jy
! Component: 100  -  total flux cleaned = -0.00471018 Jy
! Component: 150  -  total flux cleaned = -0.00508815 Jy
! Component: 200  -  total flux cleaned = -0.00525168 Jy
! Total flux subtracted in 200 components = -0.00525168 Jy
! Clean residual min=-0.008733 max=0.009371 Jy/beam
! Clean residual mean=-0.000355 rms=0.002354 Jy/beam
! Combined flux in latest and established models = 1.00105 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 72 components and 1.00105 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.316164Jy  sigma=0.001311
! Fit after  self-cal, rms=0.316381Jy  sigma=0.001311
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.000440076 Jy
! Component: 100  -  total flux cleaned = -0.000701191 Jy
! Component: 150  -  total flux cleaned = -0.000823963 Jy
! Component: 200  -  total flux cleaned = -0.00104443 Jy
! Total flux subtracted in 200 components = -0.00104443 Jy
! Clean residual min=-0.007993 max=0.008949 Jy/beam
! Clean residual mean=-0.000336 rms=0.002282 Jy/beam
! Combined flux in latest and established models = 1.00001 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 76 components and 1.00001 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.316262Jy  sigma=0.001311
! Fit after  self-cal, rms=0.316265Jy  sigma=0.001311
! 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.316265Jy  sigma=0.001311
! Fit after  self-cal, rms=0.316404Jy  sigma=0.001310
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.421 mas, bmaj=17.74 mas, bpa=-5.809 degrees
! Estimated noise=1297.16 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00293446 Jy
! Component: 100  -  total flux cleaned = -0.00323609 Jy
! Component: 150  -  total flux cleaned = -0.00348912 Jy
! Component: 200  -  total flux cleaned = -0.00369952 Jy
! Total flux subtracted in 200 components = -0.00369952 Jy
! Clean residual min=-0.007772 max=0.009027 Jy/beam
! Clean residual mean=-0.000443 rms=0.002772 Jy/beam
! Combined flux in latest and established models = 0.99631 Jy
selfcal
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 78 components and 0.99631 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.316293Jy  sigma=0.001310
! Fit after  self-cal, rms=0.316320Jy  sigma=0.001310
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.000486706 Jy
! Component: 100  -  total flux cleaned = 0.000296148 Jy
! Component: 150  -  total flux cleaned = 0.000136938 Jy
! Component: 200  -  total flux cleaned = -6.06168e-05 Jy
! Total flux subtracted in 200 components = -6.06168e-05 Jy
! Clean residual min=-0.007346 max=0.008731 Jy/beam
! Clean residual mean=-0.000447 rms=0.002732 Jy/beam
! Combined flux in latest and established models = 0.99625 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 79 components and 0.99625 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.316311Jy  sigma=0.001310
! Fit after  self-cal, rms=0.316308Jy  sigma=0.001310
! 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=4.102 mas, bmaj=12.45 mas, bpa=2.532 degrees
! Estimated noise=1123.79 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.102 x 12.45 at 2.532 degrees (North through East)
! Clean map  min=-0.0069597  max=0.82616 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.316308Jy  sigma=0.001310
! Fit after  self-cal, rms=0.317856Jy  sigma=0.001179
! Inverting map and beam 
! Estimated beam: bmin=4.103 mas, bmaj=12.5 mas, bpa=2.499 degrees
! Estimated noise=1122.17 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00376429 Jy
! Component: 100  -  total flux cleaned = -0.0046377 Jy
! Component: 150  -  total flux cleaned = -0.0051144 Jy
! Component: 200  -  total flux cleaned = -0.00545469 Jy
! Total flux subtracted in 200 components = -0.00545469 Jy
! Clean residual min=-0.006575 max=0.008176 Jy/beam
! Clean residual mean=-0.000168 rms=0.002063 Jy/beam
! Combined flux in latest and established models = 0.990795 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 87 components and 0.990795 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.317768Jy  sigma=0.001178
! Fit after  self-cal, rms=0.317770Jy  sigma=0.001178
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000267253 Jy
! Component: 100  -  total flux cleaned = -0.000325453 Jy
! Component: 150  -  total flux cleaned = -0.000474844 Jy
! Component: 200  -  total flux cleaned = -0.000565834 Jy
! Total flux subtracted in 200 components = -0.000565834 Jy
! Clean residual min=-0.006459 max=0.008077 Jy/beam
! Clean residual mean=-0.000160 rms=0.002055 Jy/beam
! Combined flux in latest and established models = 0.990229 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 91 components and 0.990229 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.317747Jy  sigma=0.001178
! Fit after  self-cal, rms=0.317749Jy  sigma=0.001178
! 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.317749Jy  sigma=0.001178
! Fit after  self-cal, rms=0.318421Jy  sigma=0.001178
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=3.308 mas, bmaj=11.37 mas, bpa=3.574 degrees
! Estimated noise=1872.32 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.616406 Jy
! Component: 100  -  total flux cleaned = 0.783493 Jy
! Component: 150  -  total flux cleaned = 0.859729 Jy
! Component: 200  -  total flux cleaned = 0.901817 Jy
! Total flux subtracted in 200 components = 0.901817 Jy
! Clean residual min=-0.011913 max=0.021801 Jy/beam
! Clean residual mean=0.000038 rms=0.003949 Jy/beam
! Combined flux in latest and established models = 0.901817 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 28 model components to the UV plane model.
! The established model now contains 28 components and 0.901817 Jy
! Inverting map and beam 
! Estimated beam: bmin=4.107 mas, bmaj=12.52 mas, bpa=2.516 degrees
! Estimated noise=1122.03 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.0397268 Jy
! Component: 100  -  total flux cleaned = 0.0597602 Jy
! Component: 150  -  total flux cleaned = 0.0703247 Jy
! Component: 200  -  total flux cleaned = 0.0759983 Jy
! Total flux subtracted in 200 components = 0.0759983 Jy
! Clean residual min=-0.006414 max=0.008412 Jy/beam
! Clean residual mean=0.000103 rms=0.002187 Jy/beam
! Combined flux in latest and established models = 0.977815 Jy
! Adding 23 model components to the UV plane model.
! The established model now contains 48 components and 0.977815 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=7.435 mas, bmaj=17.85 mas, bpa=-5.778 degrees
! Estimated noise=1292.16 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00535677 Jy
! Component: 100  -  total flux cleaned = 0.00737294 Jy
! Component: 150  -  total flux cleaned = 0.00772534 Jy
! Component: 200  -  total flux cleaned = 0.00776375 Jy
! Total flux subtracted in 200 components = 0.00776375 Jy
! Clean residual min=-0.005684 max=0.008937 Jy/beam
! Clean residual mean=-0.000098 rms=0.002687 Jy/beam
! Combined flux in latest and established models = 0.985579 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 = 7.24804e-05 Jy
! Component: 100  -  total flux cleaned = 0.000107927 Jy
! Component: 150  -  total flux cleaned = 0.000142151 Jy
! Component: 200  -  total flux cleaned = 0.000205703 Jy
! Total flux subtracted in 200 components = 0.000205703 Jy
! Clean residual min=-0.005675 max=0.008856 Jy/beam
! Clean residual mean=-0.000106 rms=0.002677 Jy/beam
! Combined flux in latest and established models = 0.985785 Jy
! Adding 15 model components to the UV plane model.
! The established model now contains 59 components and 0.985785 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=4.107 mas, bmaj=12.52 mas, bpa=2.516 degrees
! Estimated noise=1122.03 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00120587 Jy
! Component: 100  -  total flux cleaned = -0.00129468 Jy
! Component: 150  -  total flux cleaned = -0.00140883 Jy
! Component: 200  -  total flux cleaned = -0.00150644 Jy
! Total flux subtracted in 200 components = -0.00150644 Jy
! Clean residual min=-0.006218 max=0.007881 Jy/beam
! Clean residual mean=-0.000028 rms=0.002020 Jy/beam
! Combined flux in latest and established models = 0.984278 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 73 components and 0.984278 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.318362Jy  sigma=0.001178
! Fit after  self-cal, rms=0.318389Jy  sigma=0.001178
wmodel J1037-2934_S_2003_09_17_pus_map.mod
! Writing 73 model components to file: J1037-2934_S_2003_09_17_pus_map.mod
wobs J1037-2934_S_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J1037-2934_S_2003_09_17_pus_uvs.fits
wwins J1037-2934_S_2003_09_17_pus_map.win
! wwins: Wrote 1 windows to J1037-2934_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.0024117 Jy
! Component: 100  -  total flux cleaned = 0.00327196 Jy
! Component: 150  -  total flux cleaned = 0.00366483 Jy
! Component: 200  -  total flux cleaned = 0.00375774 Jy
! Component: 250  -  total flux cleaned = 0.00358654 Jy
! Component: 300  -  total flux cleaned = 0.00367076 Jy
! Component: 350  -  total flux cleaned = 0.00367045 Jy
! Component: 400  -  total flux cleaned = 0.00367026 Jy
! Component: 450  -  total flux cleaned = 0.00352243 Jy
! Component: 500  -  total flux cleaned = 0.00323627 Jy
! Component: 550  -  total flux cleaned = 0.00295924 Jy
! Component: 600  -  total flux cleaned = 0.00261899 Jy
! Component: 650  -  total flux cleaned = 0.00215407 Jy
! Component: 700  -  total flux cleaned = 0.00176589 Jy
! Component: 750  -  total flux cleaned = 0.00144973 Jy
! Component: 800  -  total flux cleaned = 0.00126351 Jy
! Component: 850  -  total flux cleaned = 0.000959103 Jy
! Component: 900  -  total flux cleaned = 0.000662264 Jy
! Component: 950  -  total flux cleaned = 0.000371641 Jy
! Component: 1000  -  total flux cleaned = 0.000143549 Jy
! Component: 1050  -  total flux cleaned = -0.000135668 Jy
! Component: 1100  -  total flux cleaned = -0.000245886 Jy
! Component: 1150  -  total flux cleaned = -0.000515284 Jy
! Component: 1200  -  total flux cleaned = -0.00067358 Jy
! Component: 1250  -  total flux cleaned = -0.000829095 Jy
! Component: 1300  -  total flux cleaned = -0.000930516 Jy
! Component: 1350  -  total flux cleaned = -0.00108155 Jy
! Component: 1400  -  total flux cleaned = -0.00113128 Jy
! Component: 1450  -  total flux cleaned = -0.00127826 Jy
! Component: 1500  -  total flux cleaned = -0.00151935 Jy
! Component: 1550  -  total flux cleaned = -0.00151831 Jy
! Component: 1600  -  total flux cleaned = -0.00161272 Jy
! Component: 1650  -  total flux cleaned = -0.00170554 Jy
! Component: 1700  -  total flux cleaned = -0.00170627 Jy
! Component: 1750  -  total flux cleaned = -0.00188775 Jy
! Component: 1800  -  total flux cleaned = -0.00188841 Jy
! Component: 1850  -  total flux cleaned = -0.00202123 Jy
! Component: 1900  -  total flux cleaned = -0.00206526 Jy
! Component: 1950  -  total flux cleaned = -0.00223764 Jy
! Component: 2000  -  total flux cleaned = -0.00223754 Jy
! Total flux subtracted in 2048 components = -0.00227999 Jy
! Clean residual min=-0.002405 max=0.002582 Jy/beam
! Clean residual mean=-0.000020 rms=0.000951 Jy/beam
! Combined flux in latest and established models = 0.981998 Jy
keep
! Adding 150 model components to the UV plane model.
! The established model now contains 223 components and 0.981999 Jy
wmap "J1037-2934_S_2003_09_17_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.107 x 12.52 at 2.516 degrees (North through East)
! Clean map  min=-0.0041482  max=0.82919 Jy/beam
! Writing clean map to FITS file: J1037-2934_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 0.829188 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000953961 
device "J1037-2934_S_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J1037-2934_S_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.345143 0.345143 0.690286 1.38057 2.76114 5.52229 11.0446 22.0892 44.1783 88.3566
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0028 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.829 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.107 x 12.52 at 2.516 degrees (North through East)
! Clean map  min=-0.0041482  max=0.82919 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1037-2934_S_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J1037-2934_S_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1037-2934_S_2003_09_17_pus_uvs.log closed on Mon May 21 21:33:56 2007