! Started logfile: J0730-1141_X_2003_05_07_pus_uvs.log on Thu Dec 14 15:03:52 2006
obs J0730-1141_X_2003_05_07_pus_uva.fits
! Reading UV FITS file: J0730-1141_X_2003_05_07_pus_uva.fits
! AN table 1: 60 integrations on 171 of 171 possible baselines.
! AN table 2: 46 integrations on 171 of 171 possible baselines.
! AN table 3: 14 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.189864 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0730-1141
! 
! 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 1739 lines of history.
! 
! Reading 15584 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 676 telescope corrections were flagged in sub-array 1.
!  A total of 525 telescope corrections were flagged in sub-array 2.
!  A total of 239 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 676 telescope corrections were flagged in sub-array 1.
!  A total of 525 telescope corrections were flagged in sub-array 2.
!  A total of 239 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 676 telescope corrections were flagged in sub-array 1.
!  A total of 525 telescope corrections were flagged in sub-array 2.
!  A total of 239 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 676 telescope corrections were flagged in sub-array 1.
!  A total of 525 telescope corrections were flagged in sub-array 2.
!  A total of 239 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=2.691591Jy  sigma=0.024013
! Fit after  self-cal, rms=2.254890Jy  sigma=0.020810
! 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 4.17% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1907 milli-arcsec
! Estimated beam: bmin=0.5355 mas, bmaj=1.045 mas, bpa=-1.94 degrees
! Estimated noise=1572.82 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 = 2.2926 Jy
! Component: 100  -  total flux cleaned = 3.09517 Jy
! Total flux subtracted in 100 components = 3.09517 Jy
! Clean residual min=-0.122189 max=0.373590 Jy/beam
! Clean residual mean=0.003705 rms=0.047712 Jy/beam
! Combined flux in latest and established models = 3.09517 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 3.09517 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.799205Jy  sigma=0.007292
! Fit after  self-cal, rms=0.796107Jy  sigma=0.007278
! Inverting map 
! Your choice of large map pixels excluded 4.17% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1907 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.428561 Jy
! Component: 100  -  total flux cleaned = 0.668375 Jy
! Total flux subtracted in 100 components = 0.668375 Jy
! Clean residual min=-0.085163 max=0.118737 Jy/beam
! Clean residual mean=0.001518 rms=0.027038 Jy/beam
! Combined flux in latest and established models = 3.76354 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 17 components and 3.76354 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.539840Jy  sigma=0.004136
! Fit after  self-cal, rms=0.537746Jy  sigma=0.004124
! Inverting map 
! Your choice of large map pixels excluded 4.17% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1907 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 4.17% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1907 milli-arcsec
! Estimated beam: bmin=0.6296 mas, bmaj=1.487 mas, bpa=-6.404 degrees
! Estimated noise=750.579 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.164438 Jy
! Component: 100  -  total flux cleaned = 0.232752 Jy
! Component: 150  -  total flux cleaned = 0.258915 Jy
! Component: 200  -  total flux cleaned = 0.262376 Jy
! Total flux subtracted in 200 components = 0.262376 Jy
! Clean residual min=-0.061848 max=0.066277 Jy/beam
! Clean residual mean=0.000930 rms=0.021645 Jy/beam
! Combined flux in latest and established models = 4.02592 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 21 components and 4.02592 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.511168Jy  sigma=0.003557
! Fit after  self-cal, rms=0.510826Jy  sigma=0.003555
! Inverting map 
! Your choice of large map pixels excluded 4.17% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1907 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.97     GG        1.00*    HN        0.95     
!   KK        1.00*    KP        1.09     LA        0.97     MA        1.02     
!   MC        1.44     MK        1.00*    NL        1.08     ON        1.00*    
!   OV        1.03     PT        0.99     SC        0.97     TC        1.02     
!   TS        1.00*    WF        1.04     WZ        0.95     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.97     GG        1.00*    HN        0.96     
!   KK        1.02     KP        1.03     LA        0.94     MA        1.00*    
!   MC        1.00*    MK        0.96     NL        1.00*    ON        1.00*    
!   OV        0.95     PT        0.96     SC        0.93     TC        1.00     
!   TS        1.00*    WF        1.05     WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        0.98     GG        1.00*    HN        0.96     
!   KK        1.00*    KP        1.02     LA        0.98     MA        1.02     
!   MC        1.38     MK        1.00*    NL        1.03     ON        1.00*    
!   OV        1.02     PT        1.03     SC        0.93     TC        1.09     
!   TS        1.00*    WF        1.06     WZ        1.00     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.97     GG        1.00*    HN        0.97     
!   KK        1.01     KP        0.97     LA        0.95     MA        1.00*    
!   MC        1.00*    MK        0.97     NL        1.00*    ON        1.00*    
!   OV        0.95     PT        1.00     SC        0.88     TC        1.06     
!   TS        1.00*    WF        1.08     WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.08     FD        0.96     GG        1.00*    HN        0.96     
!   KK        1.00*    KP        0.95     LA        0.99     MA        1.03     
!   MC        1.49     MK        1.00*    NL        1.01     ON        1.00*    
!   OV        1.06     PT        1.06     SC        0.94     TC        1.06     
!   TS        1.00*    WF        1.01     WZ        0.97     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        0.95     GG        1.00*    HN        0.96     
!   KK        1.08     KP        0.90     LA        0.95     MA        1.00*    
!   MC        1.00*    MK        0.96     NL        1.00*    ON        1.00*    
!   OV        0.98     PT        1.03     SC        0.90     TC        0.99     
!   TS        1.00*    WF        1.02     WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        0.94     GG        1.00*    HN        0.98     
!   KK        1.00*    KP        1.02     LA        0.96     MA        1.05     
!   MC        2.71     MK        1.00*    NL        1.02     ON        1.00*    
!   OV        1.05     PT        1.06     SC        0.98     TC        1.08     
!   TS        1.00*    WF        0.99     WZ        0.94     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.93     GG        1.00*    HN        0.98     
!   KK        1.02     KP        0.96     LA        0.93     MA        1.00*    
!   MC        1.00*    MK        0.99     NL        1.00*    ON        1.00*    
!   OV        0.98     PT        1.03     SC        0.94     TC        1.01     
!   TS        1.00*    WF        0.99     WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Fit before self-cal, rms=0.510826Jy  sigma=0.003555
! Fit after  self-cal, rms=0.399803Jy  sigma=0.001798
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 4.13% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
! Estimated beam: bmin=0.662 mas, bmaj=1.527 mas, bpa=-6.286 degrees
! Estimated noise=765.493 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.0259987 Jy
! Component: 100  -  total flux cleaned = -0.0311115 Jy
! Component: 150  -  total flux cleaned = -0.0341588 Jy
! Component: 200  -  total flux cleaned = -0.0358484 Jy
! Total flux subtracted in 200 components = -0.0358484 Jy
! Clean residual min=-0.023693 max=0.033705 Jy/beam
! Clean residual mean=0.000812 rms=0.006859 Jy/beam
! Combined flux in latest and established models = 3.99007 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 29 components and 3.99007 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.388508Jy  sigma=0.001715
! Fit after  self-cal, rms=0.389133Jy  sigma=0.001714
! Inverting map 
! Your choice of large map pixels excluded 4.13% of the data.
!  The x-axis pixel size should ideally be below 0.1838 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.389133Jy  sigma=0.001714
! Fit after  self-cal, rms=0.390177Jy  sigma=0.001696
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.13% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
! Estimated beam: bmin=0.6661 mas, bmaj=1.529 mas, bpa=-6.284 degrees
! Estimated noise=766.651 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0165074 Jy
! Component: 100  -  total flux cleaned = -0.0194822 Jy
! Component: 150  -  total flux cleaned = -0.0206925 Jy
! Component: 200  -  total flux cleaned = -0.021204 Jy
! Total flux subtracted in 200 components = -0.021204 Jy
! Clean residual min=-0.017765 max=0.031319 Jy/beam
! Clean residual mean=0.001186 rms=0.005872 Jy/beam
! Combined flux in latest and established models = 3.96887 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 30 components and 3.96887 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.385947Jy  sigma=0.001666
! Fit after  self-cal, rms=0.385944Jy  sigma=0.001665
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.13% of the data.
!  The x-axis pixel size should ideally be below 0.1838 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 (-1.8, 2.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0281814 Jy
! Component: 100  -  total flux cleaned = 0.0306853 Jy
! Component: 150  -  total flux cleaned = 0.0326363 Jy
! Component: 200  -  total flux cleaned = 0.034552 Jy
! Total flux subtracted in 200 components = 0.034552 Jy
! Clean residual min=-0.014690 max=0.017394 Jy/beam
! Clean residual mean=0.000823 rms=0.004339 Jy/beam
! Combined flux in latest and established models = 4.00342 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 44 components and 4.00342 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.383509Jy  sigma=0.001630
! Fit after  self-cal, rms=0.383220Jy  sigma=0.001625
! Inverting map 
! Your choice of large map pixels excluded 4.13% of the data.
!  The x-axis pixel size should ideally be below 0.1838 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.383220Jy  sigma=0.001625
! Fit after  self-cal, rms=0.385318Jy  sigma=0.001613
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.13% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
! Estimated beam: bmin=0.6696 mas, bmaj=1.53 mas, bpa=-6.299 degrees
! Estimated noise=767.958 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00128125 Jy
! Component: 100  -  total flux cleaned = 0.00340253 Jy
! Component: 150  -  total flux cleaned = 0.00464552 Jy
! Component: 200  -  total flux cleaned = 0.0057296 Jy
! Total flux subtracted in 200 components = 0.0057296 Jy
! Clean residual min=-0.011855 max=0.015101 Jy/beam
! Clean residual mean=0.000708 rms=0.003464 Jy/beam
! Combined flux in latest and established models = 4.00915 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 51 components and 4.00915 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.383686Jy  sigma=0.001596
! Fit after  self-cal, rms=0.383617Jy  sigma=0.001595
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.13% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (-3.4, 1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00940943 Jy
! Component: 100  -  total flux cleaned = 0.0124933 Jy
! Component: 150  -  total flux cleaned = 0.0130842 Jy
! Component: 200  -  total flux cleaned = 0.0131002 Jy
! Total flux subtracted in 200 components = 0.0131002 Jy
! Clean residual min=-0.010866 max=0.011143 Jy/beam
! Clean residual mean=0.000559 rms=0.003113 Jy/beam
! Combined flux in latest and established models = 4.02225 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 65 components and 4.02225 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.382837Jy  sigma=0.001586
! Fit after  self-cal, rms=0.382806Jy  sigma=0.001585
! Inverting map 
! Your choice of large map pixels excluded 4.13% of the data.
!  The x-axis pixel size should ideally be below 0.1838 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.382806Jy  sigma=0.001585
! Fit after  self-cal, rms=0.384503Jy  sigma=0.001580
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.13% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
! Estimated beam: bmin=2.457 mas, bmaj=4.231 mas, bpa=-10.33 degrees
! Estimated noise=946.135 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00843703 Jy
! Component: 100  -  total flux cleaned = 0.0100137 Jy
! Component: 150  -  total flux cleaned = 0.0108795 Jy
! Component: 200  -  total flux cleaned = 0.0113902 Jy
! Total flux subtracted in 200 components = 0.0113902 Jy
! Clean residual min=-0.007921 max=0.011249 Jy/beam
! Clean residual mean=0.001049 rms=0.003809 Jy/beam
! Combined flux in latest and established models = 4.03364 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 76 components and 4.03364 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.384370Jy  sigma=0.001579
! Fit after  self-cal, rms=0.384325Jy  sigma=0.001578
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.13% of the data.
!  The x-axis pixel size should ideally be below 0.1838 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.00184611 Jy
! Component: 100  -  total flux cleaned = 0.00244602 Jy
! Component: 150  -  total flux cleaned = 0.0026807 Jy
! Component: 200  -  total flux cleaned = 0.00258336 Jy
! Total flux subtracted in 200 components = 0.00258336 Jy
! Clean residual min=-0.008031 max=0.010294 Jy/beam
! Clean residual mean=0.000991 rms=0.003730 Jy/beam
! Combined flux in latest and established models = 4.03623 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 81 components and 4.03622 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.384261Jy  sigma=0.001578
! Fit after  self-cal, rms=0.384216Jy  sigma=0.001577
! Inverting map 
! Your choice of large map pixels excluded 4.13% of the data.
!  The x-axis pixel size should ideally be below 0.1838 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 4.13% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
! Estimated beam: bmin=0.6716 mas, bmaj=1.531 mas, bpa=-6.301 degrees
! Estimated noise=768.368 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6716 x 1.531 at -6.301 degrees (North through East)
! Clean map  min=-0.0078673  max=3.1877 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.384216Jy  sigma=0.001577
! Fit after  self-cal, rms=0.381613Jy  sigma=0.001196
! Inverting map and beam 
! Your choice of large map pixels excluded 4.13% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
! Estimated beam: bmin=0.6713 mas, bmaj=1.531 mas, bpa=-6.323 degrees
! Estimated noise=767.108 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00468309 Jy
! Component: 100  -  total flux cleaned = -0.00496384 Jy
! Component: 150  -  total flux cleaned = -0.00520286 Jy
! Component: 200  -  total flux cleaned = -0.00541763 Jy
! Total flux subtracted in 200 components = -0.00541763 Jy
! Clean residual min=-0.007557 max=0.009511 Jy/beam
! Clean residual mean=0.000408 rms=0.002272 Jy/beam
! Combined flux in latest and established models = 4.03081 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 86 components and 4.03081 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.381105Jy  sigma=0.001190
! Fit after  self-cal, rms=0.381110Jy  sigma=0.001190
! Inverting map 
! Your choice of large map pixels excluded 4.13% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000425994 Jy
! Component: 100  -  total flux cleaned = 0.000631817 Jy
! Component: 150  -  total flux cleaned = 0.000455269 Jy
! Component: 200  -  total flux cleaned = 0.00045451 Jy
! Total flux subtracted in 200 components = 0.00045451 Jy
! Clean residual min=-0.006770 max=0.008537 Jy/beam
! Clean residual mean=0.000401 rms=0.002204 Jy/beam
! Combined flux in latest and established models = 4.03126 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 89 components and 4.03126 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.380862Jy  sigma=0.001187
! Fit after  self-cal, rms=0.380856Jy  sigma=0.001187
! Inverting map 
! Your choice of large map pixels excluded 4.13% of the data.
!  The x-axis pixel size should ideally be below 0.1838 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.380856Jy  sigma=0.001187
! Fit after  self-cal, rms=0.381940Jy  sigma=0.001185
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 4.13% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
! Estimated beam: bmin=0.5623 mas, bmaj=1.078 mas, bpa=-0.1935 degrees
! Estimated noise=1563.41 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.34882 Jy
! Component: 100  -  total flux cleaned = 3.08662 Jy
! Component: 150  -  total flux cleaned = 3.46031 Jy
! Component: 200  -  total flux cleaned = 3.66298 Jy
! Total flux subtracted in 200 components = 3.66298 Jy
! Clean residual min=-0.030587 max=0.098464 Jy/beam
! Clean residual mean=0.001513 rms=0.011420 Jy/beam
! Combined flux in latest and established models = 3.66298 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 14 model components to the UV plane model.
! The established model now contains 14 components and 3.66298 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 4.13% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
! Estimated beam: bmin=0.6723 mas, bmaj=1.531 mas, bpa=-6.315 degrees
! Estimated noise=767.23 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.159462 Jy
! Component: 100  -  total flux cleaned = 0.233759 Jy
! Component: 150  -  total flux cleaned = 0.277674 Jy
! Component: 200  -  total flux cleaned = 0.305637 Jy
! Total flux subtracted in 200 components = 0.305637 Jy
! Clean residual min=-0.009005 max=0.017765 Jy/beam
! Clean residual mean=0.001047 rms=0.004076 Jy/beam
! Combined flux in latest and established models = 3.96862 Jy
! Adding 35 model components to the UV plane model.
! The established model now contains 42 components and 3.96862 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.13% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
! Added new window around map position (-1.6, -0.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0193521 Jy
! Component: 100  -  total flux cleaned = 0.0326002 Jy
! Component: 150  -  total flux cleaned = 0.0420309 Jy
! Component: 200  -  total flux cleaned = 0.0488059 Jy
! Total flux subtracted in 200 components = 0.0488059 Jy
! Clean residual min=-0.006439 max=0.009070 Jy/beam
! Clean residual mean=0.000567 rms=0.002233 Jy/beam
! Combined flux in latest and established models = 4.01742 Jy
! Adding 27 model components to the UV plane model.
! The established model now contains 63 components and 4.01742 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.13% of the data.
!  The x-axis pixel size should ideally be below 0.1838 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 4.13% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
! Estimated beam: bmin=2.455 mas, bmaj=4.231 mas, bpa=-10.35 degrees
! Estimated noise=944.311 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00935917 Jy
! Component: 100  -  total flux cleaned = 0.0126287 Jy
! Component: 150  -  total flux cleaned = 0.0135673 Jy
! Component: 200  -  total flux cleaned = 0.0142249 Jy
! Total flux subtracted in 200 components = 0.0142249 Jy
! Clean residual min=-0.005453 max=0.009514 Jy/beam
! Clean residual mean=0.001011 rms=0.003169 Jy/beam
! Combined flux in latest and established models = 4.03165 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.000451133 Jy
! Component: 100  -  total flux cleaned = 0.000756707 Jy
! Component: 150  -  total flux cleaned = 0.000888998 Jy
! Component: 200  -  total flux cleaned = 0.00101183 Jy
! Total flux subtracted in 200 components = 0.00101183 Jy
! Clean residual min=-0.004912 max=0.009045 Jy/beam
! Clean residual mean=0.000991 rms=0.003047 Jy/beam
! Combined flux in latest and established models = 4.03266 Jy
! Adding 18 model components to the UV plane model.
! The established model now contains 77 components and 4.03266 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.13% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 4.13% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
! Estimated beam: bmin=0.6723 mas, bmaj=1.531 mas, bpa=-6.315 degrees
! Estimated noise=767.23 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00289682 Jy
! Component: 100  -  total flux cleaned = -0.00289797 Jy
! Component: 150  -  total flux cleaned = -0.00308656 Jy
! Component: 200  -  total flux cleaned = -0.00326137 Jy
! Total flux subtracted in 200 components = -0.00326137 Jy
! Clean residual min=-0.006235 max=0.007866 Jy/beam
! Clean residual mean=0.000451 rms=0.001924 Jy/beam
! Combined flux in latest and established models = 4.0294 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 84 components and 4.0294 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.386163Jy  sigma=0.001179
! Fit after  self-cal, rms=0.385732Jy  sigma=0.001177
wmodel J0730-1141_X_2003_05_07_pus_map.mod
! Writing 84 model components to file: J0730-1141_X_2003_05_07_pus_map.mod
wobs J0730-1141_X_2003_05_07_pus_uvs.fits
! Writing UV FITS file: J0730-1141_X_2003_05_07_pus_uvs.fits
wwins J0730-1141_X_2003_05_07_pus_map.win
! wwins: Wrote 4 windows to J0730-1141_X_2003_05_07_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 4.13% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00329477 Jy
! Component: 100  -  total flux cleaned = 0.00558212 Jy
! Component: 150  -  total flux cleaned = 0.00759935 Jy
! Component: 200  -  total flux cleaned = 0.00959156 Jy
! Component: 250  -  total flux cleaned = 0.011195 Jy
! Component: 300  -  total flux cleaned = 0.0122822 Jy
! Component: 350  -  total flux cleaned = 0.013241 Jy
! Component: 400  -  total flux cleaned = 0.0139179 Jy
! Component: 450  -  total flux cleaned = 0.0145751 Jy
! Component: 500  -  total flux cleaned = 0.0151367 Jy
! Component: 550  -  total flux cleaned = 0.0157642 Jy
! Component: 600  -  total flux cleaned = 0.0163002 Jy
! Component: 650  -  total flux cleaned = 0.0167494 Jy
! Component: 700  -  total flux cleaned = 0.0171903 Jy
! Component: 750  -  total flux cleaned = 0.017623 Jy
! Component: 800  -  total flux cleaned = 0.0179779 Jy
! Component: 850  -  total flux cleaned = 0.0183264 Jy
! Component: 900  -  total flux cleaned = 0.0186693 Jy
! Component: 950  -  total flux cleaned = 0.0189396 Jy
! Component: 1000  -  total flux cleaned = 0.0191395 Jy
! Total flux subtracted in 1024 components = 0.0194033 Jy
! Clean residual min=-0.003289 max=0.003798 Jy/beam
! Clean residual mean=0.000211 rms=0.001238 Jy/beam
! Combined flux in latest and established models = 4.0488 Jy
keep
! Adding 61 model components to the UV plane model.
! The established model now contains 144 components and 4.0488 Jy
wmap "J0730-1141_X_2003_05_07_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 4.13% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6723 x 1.531 at -6.315 degrees (North through East)
! Clean map  min=-0.0044328  max=3.1874 Jy/beam
! Writing clean map to FITS file: J0730-1141_X_2003_05_07_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 3.18736 
invert
! Inverting map 
! Your choice of large map pixels excluded 4.13% of the data.
!  The x-axis pixel size should ideally be below 0.1838 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00125062 
device "J0730-1141_X_2003_05_07_pus\_map.eps/VPS"
! Attempting to open device: 'J0730-1141_X_2003_05_07_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.117711 0.117711 0.235421 0.470843 0.941686 1.88337 3.76674 7.53349 15.067 30.1339 60.2679
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0037 
print "peak=",int(1000*peak_flux)/1000
! peak= 3.187 
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.6723 x 1.531 at -6.315 degrees (North through East)
! Clean map  min=-0.0044328  max=3.1874 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0730-1141_X_2003_05_07_pus\_map.gif/vgif"
! Attempting to open device: 'J0730-1141_X_2003_05_07_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0730-1141_X_2003_05_07_pus_uvs.log closed on Thu Dec 14 15:04:34 2006