! Started logfile: J0922-3959_S_2003_09_17_pus_uvs.log on Mon May 21 21:19:54 2007
obs J0922-3959_S_2003_09_17_pus_uva.fits
! Reading UV FITS file: J0922-3959_S_2003_09_17_pus_uva.fits
! AN table 1: 35 integrations on 120 of 120 possible baselines.
! AN table 2: 37 integrations on 120 of 120 possible baselines.
! AN table 3: 28 integrations on 120 of 120 possible baselines.
! AN table 4: 40 integrations on 120 of 120 possible baselines.
! AN table 5: 116 integrations on 120 of 120 possible baselines.
! AN table 6: 44 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.0860278 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0922-3959
! 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.
! 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 12388 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 389 telescope corrections were flagged in sub-array 1.
!  A total of 437 telescope corrections were flagged in sub-array 2.
!  A total of 326 telescope corrections were flagged in sub-array 3.
!  A total of 541 telescope corrections were flagged in sub-array 4.
!  A total of 1582 telescope corrections were flagged in sub-array 5.
!  A total of 370 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 2.
!  A total of 389 telescope corrections were flagged in sub-array 1.
!  A total of 437 telescope corrections were flagged in sub-array 2.
!  A total of 326 telescope corrections were flagged in sub-array 3.
!  A total of 541 telescope corrections were flagged in sub-array 4.
!  A total of 1582 telescope corrections were flagged in sub-array 5.
!  A total of 370 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 3.
!  A total of 389 telescope corrections were flagged in sub-array 1.
!  A total of 437 telescope corrections were flagged in sub-array 2.
!  A total of 326 telescope corrections were flagged in sub-array 3.
!  A total of 541 telescope corrections were flagged in sub-array 4.
!  A total of 1582 telescope corrections were flagged in sub-array 5.
!  A total of 370 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 4.
!  A total of 389 telescope corrections were flagged in sub-array 1.
!  A total of 437 telescope corrections were flagged in sub-array 2.
!  A total of 326 telescope corrections were flagged in sub-array 3.
!  A total of 541 telescope corrections were flagged in sub-array 4.
!  A total of 1582 telescope corrections were flagged in sub-array 5.
!  A total of 370 telescope corrections were flagged in sub-array 6.
! 
! Fit before self-cal, rms=0.840905Jy  sigma=0.004914
! Fit after  self-cal, rms=0.413838Jy  sigma=0.002307
! 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.028 mas, bmaj=6.41 mas, bpa=1.32 degrees
! Estimated noise=1935.99 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.568574 Jy
! Component: 100  -  total flux cleaned = 0.761729 Jy
! Total flux subtracted in 100 components = 0.761729 Jy
! Clean residual min=-0.037359 max=0.084064 Jy/beam
! Clean residual mean=0.001371 rms=0.012625 Jy/beam
! Combined flux in latest and established models = 0.761729 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 12 components and 0.76173 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.437976Jy  sigma=0.002441
! Fit after  self-cal, rms=0.437874Jy  sigma=0.002441
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.100814 Jy
! Component: 100  -  total flux cleaned = 0.168742 Jy
! Total flux subtracted in 100 components = 0.168742 Jy
! Clean residual min=-0.030301 max=0.054076 Jy/beam
! Clean residual mean=0.000943 rms=0.009361 Jy/beam
! Combined flux in latest and established models = 0.930471 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 35 components and 0.930471 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.360079Jy  sigma=0.001953
! Fit after  self-cal, rms=0.360038Jy  sigma=0.001952
! 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.632 mas, bmaj=7.822 mas, bpa=-6.335 degrees
! Estimated noise=1164.45 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.161722 Jy
! Component: 100  -  total flux cleaned = 0.240096 Jy
! Component: 150  -  total flux cleaned = 0.279324 Jy
! Component: 200  -  total flux cleaned = 0.298967 Jy
! Total flux subtracted in 200 components = 0.298967 Jy
! Clean residual min=-0.025783 max=0.054972 Jy/beam
! Clean residual mean=0.000933 rms=0.012350 Jy/beam
! Combined flux in latest and established models = 1.22944 Jy
! Performing phase self-cal
! Adding 47 model components to the UV plane model.
! The established model now contains 68 components and 1.22944 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.297280Jy  sigma=0.001481
! Fit after  self-cal, rms=0.297176Jy  sigma=0.001480
! Inverting map 
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        1.09     GC        1.00*    HN        1.00*    KP        0.86     
!   LA        0.90     MK        0.92     NL        1.25     NY        1.00*    
!   ON        1.00*    OV        1.78     PT        0.93     SC        0.96     
!   TS        1.00*    KK        0.95     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.97     GC        1.00*    HN        1.00*    KP        0.93     
!   LA        0.97     MK        1.00*    NL        1.28     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        0.91     SC        1.01     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.01     
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.92     GC        1.00*    HN        1.00*    KP        0.93     
!   LA        0.98     MK        1.00*    NL        1.07     NY        1.00*    
!   ON        1.00*    OV        0.80     PT        0.95     SC        1.03     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.47     
! 
!  A total of 99 telescope corrections were flagged in sub-array 4.
!  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 75 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.92     GC        1.00*    HN        1.00*    KP        0.93     
!   LA        0.98     MK        0.98     NL        1.19     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   FD        0.94     GC        1.00*    HN        1.00*    KP        0.90     
!   LA        0.91     MK        0.95     NL        1.20     NY        1.00*    
!   ON        1.00*    OV        1.04     PT        0.96     SC        1.02     
!   TS        1.00*    KK        0.99     WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 39 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.14     GC        1.00*    HN        1.00*    KP        0.96     
!   LA        0.93     MK        1.03     NL        1.28     NY        1.00*    
!   ON        1.00*    OV        1.49     PT        0.91     SC        0.95     
!   TS        1.00*    KK        0.94     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.99     GC        1.00*    HN        1.00*    KP        1.00     
!   LA        0.99     MK        1.00*    NL        1.37     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        0.89     SC        1.03     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.09     
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.95     GC        1.00*    HN        1.00*    KP        1.01     
!   LA        0.99     MK        1.00*    NL        1.15     NY        1.00*    
!   ON        1.00*    OV        0.94     PT        0.95     SC        1.01     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.43     
! 
!  A total of 99 telescope corrections were flagged in sub-array 4.
!  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 75 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.93     GC        1.00*    HN        1.00*    KP        1.01     
!   LA        0.99     MK        1.09     NL        1.27     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   FD        0.96     GC        1.00*    HN        1.00*    KP        0.99     
!   LA        0.94     MK        0.99     NL        1.24     NY        1.00*    
!   ON        1.00*    OV        0.96     PT        0.92     SC        1.10     
!   TS        1.00*    KK        0.99     WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 39 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.05     GC        1.00*    HN        1.00*    KP        0.97     
!   LA        0.91     MK        0.95     NL        1.25     NY        1.00*    
!   ON        1.00*    OV        3.13     PT        0.94     SC        0.88     
!   TS        1.00*    KK        0.96     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.95     GC        1.00*    HN        1.00*    KP        1.04     
!   LA        0.92     MK        1.00*    NL        1.32     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        0.93     SC        1.05     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.13     
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.95     GC        1.00*    HN        1.00*    KP        0.99     
!   LA        0.93     MK        1.00*    NL        1.04     NY        1.00*    
!   ON        1.00*    OV        0.93     PT        0.98     SC        1.02     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.49     
! 
!  A total of 99 telescope corrections were flagged in sub-array 4.
!  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 75 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.91     GC        1.00*    HN        1.00*    KP        1.00     
!   LA        0.91     MK        1.05     NL        1.22     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   FD        0.90     GC        1.00*    HN        1.00*    KP        0.99     
!   LA        0.94     MK        0.96     NL        1.22     NY        1.00*    
!   ON        1.00*    OV        0.93     PT        0.97     SC        1.00     
!   TS        1.00*    KK        1.00     WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 39 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.06     GC        1.00*    HN        1.00*    KP        0.93     
!   LA        0.95     MK        0.92     NL        1.28     NY        1.00*    
!   ON        1.00*    OV        4.11     PT        0.92     SC        0.79     
!   TS        1.00*    KK        1.03     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.95     GC        1.00*    HN        1.00*    KP        1.04     
!   LA        0.95     MK        1.00*    NL        1.29     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        0.89     SC        1.04     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.11     
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.97     GC        1.00*    HN        1.00*    KP        0.99     
!   LA        0.98     MK        1.00*    NL        1.08     NY        1.00*    
!   ON        1.00*    OV        0.85     PT        0.96     SC        0.99     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.40     
! 
!  A total of 99 telescope corrections were flagged in sub-array 4.
!  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 75 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.92     GC        1.00*    HN        1.00*    KP        1.02     
!   LA        0.97     MK        0.97     NL        1.22     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   FD        0.94     GC        1.00*    HN        1.00*    KP        0.98     
!   LA        0.96     MK        0.91     NL        1.22     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.91     SC        0.87     
!   TS        1.00*    KK        1.02     WZ        1.00*    WF        1.00*    
! 
! 
! Fit before self-cal, rms=0.297176Jy  sigma=0.001480
! Fit after  self-cal, rms=0.295871Jy  sigma=0.001208
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.653 mas, bmaj=8.214 mas, bpa=-8.959 degrees
! Estimated noise=1221.69 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.000249286 Jy
! Component: 100  -  total flux cleaned = 9.11981e-05 Jy
! Component: 150  -  total flux cleaned = -4.41363e-05 Jy
! Component: 200  -  total flux cleaned = -0.000402891 Jy
! Total flux subtracted in 200 components = -0.000402891 Jy
! Clean residual min=-0.007650 max=0.009145 Jy/beam
! Clean residual mean=-0.000028 rms=0.002278 Jy/beam
! Combined flux in latest and established models = 1.22904 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 74 components and 1.22904 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.295725Jy  sigma=0.001207
! Fit after  self-cal, rms=0.297033Jy  sigma=0.001206
! 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.297033Jy  sigma=0.001206
! Fit after  self-cal, rms=0.297945Jy  sigma=0.001206
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.65 mas, bmaj=8.193 mas, bpa=-8.912 degrees
! Estimated noise=1219.94 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00031663 Jy
! Component: 100  -  total flux cleaned = 0.000216075 Jy
! Component: 150  -  total flux cleaned = 0.000114199 Jy
! Component: 200  -  total flux cleaned = -0.000153109 Jy
! Total flux subtracted in 200 components = -0.000153109 Jy
! Clean residual min=-0.007637 max=0.008940 Jy/beam
! Clean residual mean=-0.000046 rms=0.002224 Jy/beam
! Combined flux in latest and established models = 1.22888 Jy
selfcal
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 74 components and 1.22888 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.297862Jy  sigma=0.001205
! Fit after  self-cal, rms=0.297863Jy  sigma=0.001205
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.000236016 Jy
! Component: 100  -  total flux cleaned = -0.000237972 Jy
! Component: 150  -  total flux cleaned = -0.000304965 Jy
! Component: 200  -  total flux cleaned = -0.000367149 Jy
! Total flux subtracted in 200 components = -0.000367149 Jy
! Clean residual min=-0.007733 max=0.008829 Jy/beam
! Clean residual mean=-0.000043 rms=0.002212 Jy/beam
! Combined flux in latest and established models = 1.22851 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 77 components and 1.22852 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.297830Jy  sigma=0.001205
! Fit after  self-cal, rms=0.297827Jy  sigma=0.001205
! 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.297827Jy  sigma=0.001205
! Fit after  self-cal, rms=0.298249Jy  sigma=0.001205
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.648 mas, bmaj=8.179 mas, bpa=-8.91 degrees
! Estimated noise=1218.67 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000103575 Jy
! Component: 100  -  total flux cleaned = 0.00018036 Jy
! Component: 150  -  total flux cleaned = 0.000118716 Jy
! Component: 200  -  total flux cleaned = 7.98114e-06 Jy
! Total flux subtracted in 200 components = 7.98114e-06 Jy
! Clean residual min=-0.007746 max=0.008613 Jy/beam
! Clean residual mean=-0.000063 rms=0.002180 Jy/beam
! Combined flux in latest and established models = 1.22852 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 78 components and 1.22852 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.298217Jy  sigma=0.001205
! Fit after  self-cal, rms=0.298215Jy  sigma=0.001205
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.000236605 Jy
! Component: 100  -  total flux cleaned = -0.000183416 Jy
! Component: 150  -  total flux cleaned = -0.000232171 Jy
! Component: 200  -  total flux cleaned = -0.000232787 Jy
! Total flux subtracted in 200 components = -0.000232787 Jy
! Clean residual min=-0.007824 max=0.008573 Jy/beam
! Clean residual mean=-0.000062 rms=0.002176 Jy/beam
! Combined flux in latest and established models = 1.22829 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 80 components and 1.22829 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.298199Jy  sigma=0.001204
! Fit after  self-cal, rms=0.298196Jy  sigma=0.001204
! 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.298196Jy  sigma=0.001204
! Fit after  self-cal, rms=0.298503Jy  sigma=0.001204
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=9.051 mas, bmaj=27.95 mas, bpa=-6.259 degrees
! Estimated noise=1625.48 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000112438 Jy
! Component: 100  -  total flux cleaned = 0.000118654 Jy
! Component: 150  -  total flux cleaned = 0.000122528 Jy
! Component: 200  -  total flux cleaned = 0.000124473 Jy
! Total flux subtracted in 200 components = 0.000124473 Jy
! Clean residual min=-0.008209 max=0.010764 Jy/beam
! Clean residual mean=-0.000161 rms=0.003412 Jy/beam
! Combined flux in latest and established models = 1.22841 Jy
selfcal
! Performing phase self-cal
! Adding 3 model components to the UV plane model.
! The established model now contains 80 components and 1.22841 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.298515Jy  sigma=0.001204
! Fit after  self-cal, rms=0.298501Jy  sigma=0.001204
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 = 1.51785e-06 Jy
! Component: 100  -  total flux cleaned = -6.30822e-07 Jy
! Component: 150  -  total flux cleaned = -3.2168e-06 Jy
! Component: 200  -  total flux cleaned = -3.96475e-06 Jy
! Total flux subtracted in 200 components = -3.96475e-06 Jy
! Clean residual min=-0.008178 max=0.010673 Jy/beam
! Clean residual mean=-0.000161 rms=0.003396 Jy/beam
! Combined flux in latest and established models = 1.22841 Jy
! Performing phase self-cal
! Adding 3 model components to the UV plane model.
! The established model now contains 80 components and 1.22841 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.298516Jy  sigma=0.001204
! Fit after  self-cal, rms=0.298505Jy  sigma=0.001204
! 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.648 mas, bmaj=8.174 mas, bpa=-8.923 degrees
! Estimated noise=1218.31 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.648 x 8.174 at -8.923 degrees (North through East)
! Clean map  min=-0.0073817  max=0.89012 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.298505Jy  sigma=0.001204
! Fit after  self-cal, rms=0.290734Jy  sigma=0.001069
! Inverting map and beam 
! Estimated beam: bmin=2.646 mas, bmaj=8.173 mas, bpa=-8.924 degrees
! Estimated noise=1218.34 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00101643 Jy
! Component: 100  -  total flux cleaned = 0.00112585 Jy
! Component: 150  -  total flux cleaned = 0.00107741 Jy
! Component: 200  -  total flux cleaned = 0.00103208 Jy
! Total flux subtracted in 200 components = 0.00103208 Jy
! Clean residual min=-0.008132 max=0.008295 Jy/beam
! Clean residual mean=-0.000079 rms=0.002136 Jy/beam
! Combined flux in latest and established models = 1.22944 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 81 components and 1.22944 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.290711Jy  sigma=0.001068
! Fit after  self-cal, rms=0.290707Jy  sigma=0.001068
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 5.32669e-05 Jy
! Component: 100  -  total flux cleaned = 9.63501e-06 Jy
! Component: 150  -  total flux cleaned = -7.25774e-05 Jy
! Component: 200  -  total flux cleaned = -0.000110985 Jy
! Total flux subtracted in 200 components = -0.000110985 Jy
! Clean residual min=-0.008170 max=0.008258 Jy/beam
! Clean residual mean=-0.000078 rms=0.002132 Jy/beam
! Combined flux in latest and established models = 1.22933 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 82 components and 1.22933 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.290697Jy  sigma=0.001068
! Fit after  self-cal, rms=0.290694Jy  sigma=0.001068
! 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.290694Jy  sigma=0.001068
! Fit after  self-cal, rms=0.290862Jy  sigma=0.001068
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.082 mas, bmaj=6.813 mas, bpa=-4.163 degrees
! Estimated noise=2134.97 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.631663 Jy
! Component: 100  -  total flux cleaned = 0.841101 Jy
! Component: 150  -  total flux cleaned = 0.962402 Jy
! Component: 200  -  total flux cleaned = 1.04318 Jy
! Total flux subtracted in 200 components = 1.04318 Jy
! Clean residual min=-0.018446 max=0.044201 Jy/beam
! Clean residual mean=0.000539 rms=0.006192 Jy/beam
! Combined flux in latest and established models = 1.04318 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 38 model components to the UV plane model.
! The established model now contains 38 components and 1.04318 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.645 mas, bmaj=8.169 mas, bpa=-8.947 degrees
! Estimated noise=1218.08 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)
! Added new window around map position (0.5, -6.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0959013 Jy
! Component: 100  -  total flux cleaned = 0.14132 Jy
! Component: 150  -  total flux cleaned = 0.163286 Jy
! Component: 200  -  total flux cleaned = 0.174612 Jy
! Total flux subtracted in 200 components = 0.174612 Jy
! Clean residual min=-0.009134 max=0.007862 Jy/beam
! Clean residual mean=0.000022 rms=0.002405 Jy/beam
! Combined flux in latest and established models = 1.21779 Jy
! Adding 66 model components to the UV plane model.
! The established model now contains 95 components and 1.21779 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=9.05 mas, bmaj=27.91 mas, bpa=-6.261 degrees
! Estimated noise=1627.15 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0101767 Jy
! Component: 100  -  total flux cleaned = 0.0136121 Jy
! Component: 150  -  total flux cleaned = 0.0146868 Jy
! Component: 200  -  total flux cleaned = 0.0147215 Jy
! Total flux subtracted in 200 components = 0.0147215 Jy
! Clean residual min=-0.008431 max=0.008096 Jy/beam
! Clean residual mean=-0.000197 rms=0.002965 Jy/beam
! Combined flux in latest and established models = 1.23251 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 = 2.76313e-05 Jy
! Component: 100  -  total flux cleaned = 5.40717e-05 Jy
! Component: 150  -  total flux cleaned = 5.10264e-05 Jy
! Component: 200  -  total flux cleaned = 4.79948e-05 Jy
! Total flux subtracted in 200 components = 4.79949e-05 Jy
! Clean residual min=-0.008369 max=0.008048 Jy/beam
! Clean residual mean=-0.000200 rms=0.002945 Jy/beam
! Combined flux in latest and established models = 1.23256 Jy
! Adding 24 model components to the UV plane model.
! The established model now contains 114 components and 1.23256 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.645 mas, bmaj=8.169 mas, bpa=-8.947 degrees
! Estimated noise=1218.08 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00106578 Jy
! Component: 100  -  total flux cleaned = -0.000857794 Jy
! Component: 150  -  total flux cleaned = -0.000781866 Jy
! Component: 200  -  total flux cleaned = -0.00078131 Jy
! Total flux subtracted in 200 components = -0.00078131 Jy
! Clean residual min=-0.008239 max=0.006825 Jy/beam
! Clean residual mean=-0.000084 rms=0.001945 Jy/beam
! Combined flux in latest and established models = 1.23178 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 130 components and 1.23178 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.290680Jy  sigma=0.001067
! Fit after  self-cal, rms=0.290606Jy  sigma=0.001066
wmodel J0922-3959_S_2003_09_17_pus_map.mod
! Writing 130 model components to file: J0922-3959_S_2003_09_17_pus_map.mod
wobs J0922-3959_S_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J0922-3959_S_2003_09_17_pus_uvs.fits
wwins J0922-3959_S_2003_09_17_pus_map.win
! wwins: Wrote 2 windows to J0922-3959_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.00129585 Jy
! Component: 100  -  total flux cleaned = -0.00255449 Jy
! Component: 150  -  total flux cleaned = -0.00381232 Jy
! Component: 200  -  total flux cleaned = -0.00488661 Jy
! Component: 250  -  total flux cleaned = -0.00599838 Jy
! Component: 300  -  total flux cleaned = -0.0072379 Jy
! Component: 350  -  total flux cleaned = -0.0084301 Jy
! Component: 400  -  total flux cleaned = -0.00949668 Jy
! Component: 450  -  total flux cleaned = -0.0102895 Jy
! Component: 500  -  total flux cleaned = -0.0110588 Jy
! Component: 550  -  total flux cleaned = -0.0118071 Jy
! Component: 600  -  total flux cleaned = -0.0128986 Jy
! Component: 650  -  total flux cleaned = -0.0135367 Jy
! Component: 700  -  total flux cleaned = -0.014162 Jy
! Component: 750  -  total flux cleaned = -0.0146384 Jy
! Component: 800  -  total flux cleaned = -0.0150384 Jy
! Component: 850  -  total flux cleaned = -0.0155612 Jy
! Component: 900  -  total flux cleaned = -0.0159445 Jy
! Component: 950  -  total flux cleaned = -0.0163834 Jy
! Component: 1000  -  total flux cleaned = -0.0168763 Jy
! Component: 1050  -  total flux cleaned = -0.0171789 Jy
! Component: 1100  -  total flux cleaned = -0.0174772 Jy
! Component: 1150  -  total flux cleaned = -0.0177707 Jy
! Component: 1200  -  total flux cleaned = -0.0180608 Jy
! Component: 1250  -  total flux cleaned = -0.0185164 Jy
! Component: 1300  -  total flux cleaned = -0.0186846 Jy
! Component: 1350  -  total flux cleaned = -0.019016 Jy
! Component: 1400  -  total flux cleaned = -0.0193421 Jy
! Component: 1450  -  total flux cleaned = -0.0195561 Jy
! Component: 1500  -  total flux cleaned = -0.0197664 Jy
! Component: 1550  -  total flux cleaned = -0.0197149 Jy
! Component: 1600  -  total flux cleaned = -0.01987 Jy
! Component: 1650  -  total flux cleaned = -0.019972 Jy
! Component: 1700  -  total flux cleaned = -0.0200719 Jy
! Component: 1750  -  total flux cleaned = -0.0201709 Jy
! Component: 1800  -  total flux cleaned = -0.020269 Jy
! Component: 1850  -  total flux cleaned = -0.0201729 Jy
! Component: 1900  -  total flux cleaned = -0.0201732 Jy
! Component: 1950  -  total flux cleaned = -0.0201254 Jy
! Component: 2000  -  total flux cleaned = -0.020078 Jy
! Total flux subtracted in 2048 components = -0.0200775 Jy
! Clean residual min=-0.003011 max=0.002471 Jy/beam
! Clean residual mean=-0.000031 rms=0.000953 Jy/beam
! Combined flux in latest and established models = 1.2117 Jy
keep
! Adding 117 model components to the UV plane model.
! The established model now contains 247 components and 1.2117 Jy
wmap "J0922-3959_S_2003_09_17_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.645 x 8.169 at -8.947 degrees (North through East)
! Clean map  min=-0.0061134  max=0.89513 Jy/beam
! Writing clean map to FITS file: J0922-3959_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.895131 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000948031 
device "J0922-3959_S_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J0922-3959_S_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.317729 0.317729 0.635459 1.27092 2.54183 5.08367 10.1673 20.3347 40.6693 81.3387
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0028 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.895 
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.645 x 8.169 at -8.947 degrees (North through East)
! Clean map  min=-0.0061134  max=0.89513 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0922-3959_S_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J0922-3959_S_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0922-3959_S_2003_09_17_pus_uvs.log closed on Mon May 21 21:21:17 2007