! Started logfile: J0403-3605_X_2003_09_17_pus_uvs.log on Sat May 12 20:51:52 2007
obs J0403-3605_X_2003_09_17_pus_uva.fits
! Reading UV FITS file: J0403-3605_X_2003_09_17_pus_uva.fits
! AN table 1: 58 integrations on 120 of 120 possible baselines.
! AN table 2: 243 integrations on 120 of 120 possible baselines.
! AN table 3: 19 integrations on 120 of 120 possible baselines.
! AN table 4: 50 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.072973 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0403-3605
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1485 lines of history.
! 
! Reading 12960 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 726 telescope corrections were flagged in sub-array 1.
!  A total of 3040 telescope corrections were flagged in sub-array 2.
!  A total of 236 telescope corrections were flagged in sub-array 3.
!  A total of 722 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 726 telescope corrections were flagged in sub-array 1.
!  A total of 3040 telescope corrections were flagged in sub-array 2.
!  A total of 236 telescope corrections were flagged in sub-array 3.
!  A total of 722 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 726 telescope corrections were flagged in sub-array 1.
!  A total of 3040 telescope corrections were flagged in sub-array 2.
!  A total of 236 telescope corrections were flagged in sub-array 3.
!  A total of 722 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 726 telescope corrections were flagged in sub-array 1.
!  A total of 3040 telescope corrections were flagged in sub-array 2.
!  A total of 236 telescope corrections were flagged in sub-array 3.
!  A total of 722 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.540798Jy  sigma=0.012950
! Fit after  self-cal, rms=1.312635Jy  sigma=0.011565
! 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 1.7% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=0.6252 mas, bmaj=2.151 mas, bpa=-0.1356 degrees
! Estimated noise=1621.36 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.7158 Jy
! Component: 100  -  total flux cleaned = 2.09247 Jy
! Total flux subtracted in 100 components = 2.09247 Jy
! Clean residual min=-0.086764 max=0.182347 Jy/beam
! Clean residual mean=0.002754 rms=0.030887 Jy/beam
! Combined flux in latest and established models = 2.09247 Jy
! Performing phase self-cal
! Adding 3 model components to the UV plane model.
! The established model now contains 3 components and 2.09247 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.435511Jy  sigma=0.003716
! Fit after  self-cal, rms=0.435513Jy  sigma=0.003716
! Inverting map 
! Your choice of large map pixels excluded 1.7% of the data.
!  The x-axis pixel size should ideally be below 0.1903 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 1.7% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=0.8267 mas, bmaj=2.604 mas, bpa=-5.719 degrees
! Estimated noise=799.529 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.207967 Jy
! Component: 100  -  total flux cleaned = 0.296979 Jy
! Component: 150  -  total flux cleaned = 0.327526 Jy
! Component: 200  -  total flux cleaned = 0.331279 Jy
! Total flux subtracted in 200 components = 0.331279 Jy
! Clean residual min=-0.065654 max=0.126907 Jy/beam
! Clean residual mean=-0.002688 rms=0.024781 Jy/beam
! Combined flux in latest and established models = 2.42375 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 2.42375 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.379843Jy  sigma=0.002672
! Fit after  self-cal, rms=0.379798Jy  sigma=0.002672
! Inverting map 
! Your choice of large map pixels excluded 1.7% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.94     GC        1.00*    HN        1.00*    KP        0.99     
!   LA        0.98     MK        1.00*    NL        1.24     NY        1.00*    
!   ON        1.00*    OV        0.95     PT        0.97     SC        0.95     
!   TS        1.00*    KK        0.93     WZ        1.00*    WF        1.00*    
! 
!  A total of 120 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.95     GC        1.00*    HN        1.43     KP        1.01     
!   LA        0.98     MK        0.92     NL        1.22     NY        1.00*    
!   ON        1.00*    OV        0.95     PT        0.98     SC        0.96     
!   TS        1.00*    KK        1.06     WZ        1.00*    WF        1.10     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.95     GC        1.00*    HN        1.00*    KP        1.00*    
!   LA        0.99     MK        1.00*    NL        1.18     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        0.94     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 30 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        1.00     
!   LA        0.99     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.95     PT        0.98     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.94     GC        1.00*    HN        1.00*    KP        0.93     
!   LA        0.98     MK        1.00*    NL        1.23     NY        1.00*    
!   ON        1.00*    OV        0.94     PT        1.00     SC        0.90     
!   TS        1.00*    KK        0.93     WZ        1.00*    WF        1.00*    
! 
!  A total of 120 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.95     GC        1.00*    HN        1.44     KP        0.95     
!   LA        0.98     MK        0.93     NL        1.19     NY        1.00*    
!   ON        1.00*    OV        0.94     PT        1.01     SC        0.92     
!   TS        1.00*    KK        1.06     WZ        1.00*    WF        1.04     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.94     GC        1.00*    HN        1.00*    KP        1.00*    
!   LA        0.97     MK        1.00*    NL        1.14     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        0.91     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 30 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.96     
!   LA        0.99     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.94     PT        1.02     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.92     GC        1.00*    HN        1.00*    KP        0.92     
!   LA        0.96     MK        1.00*    NL        1.19     NY        1.00*    
!   ON        1.00*    OV        0.96     PT        0.99     SC        0.94     
!   TS        1.00*    KK        0.88     WZ        1.00*    WF        1.00*    
! 
!  A total of 120 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.92     GC        1.00*    HN        1.38     KP        0.92     
!   LA        0.98     MK        0.93     NL        1.15     NY        1.00*    
!   ON        1.00*    OV        0.97     PT        1.00     SC        0.92     
!   TS        1.00*    KK        1.01     WZ        1.00*    WF        1.11     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.92     GC        1.00*    HN        1.00*    KP        1.00*    
!   LA        0.96     MK        1.00*    NL        1.11     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        0.91     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 30 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.92     
!   LA        0.99     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.97     PT        0.98     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.92     GC        1.00*    HN        1.00*    KP        0.92     
!   LA        0.93     MK        1.00*    NL        1.17     NY        1.00*    
!   ON        1.00*    OV        0.94     PT        0.98     SC        0.96     
!   TS        1.00*    KK        0.90     WZ        1.00*    WF        1.00*    
! 
!  A total of 120 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.93     GC        1.00*    HN        1.42     KP        0.93     
!   LA        0.94     MK        0.95     NL        1.16     NY        1.00*    
!   ON        1.00*    OV        0.95     PT        0.99     SC        0.95     
!   TS        1.00*    KK        1.02     WZ        1.00*    WF        1.02     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.93     GC        1.00*    HN        1.00*    KP        1.00*    
!   LA        0.94     MK        1.00*    NL        1.14     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        0.94     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 30 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.92     
!   LA        0.97     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.95     PT        0.99     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Fit before self-cal, rms=0.379798Jy  sigma=0.002672
! Fit after  self-cal, rms=0.217338Jy  sigma=0.001385
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 1.65% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=0.8357 mas, bmaj=2.537 mas, bpa=-6.345 degrees
! Estimated noise=817.772 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.0104986 Jy
! Component: 100  -  total flux cleaned = -0.0115929 Jy
! Component: 150  -  total flux cleaned = -0.0115984 Jy
! Component: 200  -  total flux cleaned = -0.0118263 Jy
! Total flux subtracted in 200 components = -0.0118263 Jy
! Clean residual min=-0.015630 max=0.017568 Jy/beam
! Clean residual mean=-0.000101 rms=0.004509 Jy/beam
! Combined flux in latest and established models = 2.41192 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 13 components and 2.41192 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.216258Jy  sigma=0.001378
! Fit after  self-cal, rms=0.216902Jy  sigma=0.001378
! Inverting map 
! Your choice of large map pixels excluded 1.65% of the data.
!  The x-axis pixel size should ideally be below 0.1903 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.216902Jy  sigma=0.001378
! Fit after  self-cal, rms=0.214065Jy  sigma=0.001347
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.65% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=0.8372 mas, bmaj=2.539 mas, bpa=-6.323 degrees
! Estimated noise=815.632 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0106788 Jy
! Component: 100  -  total flux cleaned = -0.013243 Jy
! Component: 150  -  total flux cleaned = -0.0136239 Jy
! Component: 200  -  total flux cleaned = -0.013803 Jy
! Total flux subtracted in 200 components = -0.013803 Jy
! Clean residual min=-0.013911 max=0.015583 Jy/beam
! Clean residual mean=0.000040 rms=0.003848 Jy/beam
! Combined flux in latest and established models = 2.39812 Jy
selfcal
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 15 components and 2.39812 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.213171Jy  sigma=0.001343
! Fit after  self-cal, rms=0.213123Jy  sigma=0.001343
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.65% of the data.
!  The x-axis pixel size should ideally be below 0.1903 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.000651832 Jy
! Component: 100  -  total flux cleaned = -0.000667078 Jy
! Component: 150  -  total flux cleaned = -0.000839472 Jy
! Component: 200  -  total flux cleaned = -0.000838419 Jy
! Total flux subtracted in 200 components = -0.000838419 Jy
! Clean residual min=-0.013592 max=0.015226 Jy/beam
! Clean residual mean=0.000063 rms=0.003775 Jy/beam
! Combined flux in latest and established models = 2.39728 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 15 components and 2.39728 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.212867Jy  sigma=0.001340
! Fit after  self-cal, rms=0.212834Jy  sigma=0.001340
! Inverting map 
! Your choice of large map pixels excluded 1.65% of the data.
!  The x-axis pixel size should ideally be below 0.1903 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.212834Jy  sigma=0.001340
! Fit after  self-cal, rms=0.198548Jy  sigma=0.001255
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.65% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=0.8383 mas, bmaj=2.543 mas, bpa=-6.338 degrees
! Estimated noise=815.841 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00619597 Jy
! Component: 100  -  total flux cleaned = -0.00690574 Jy
! Component: 150  -  total flux cleaned = -0.00691276 Jy
! Component: 200  -  total flux cleaned = -0.00691086 Jy
! Total flux subtracted in 200 components = -0.00691086 Jy
! Clean residual min=-0.007574 max=0.011396 Jy/beam
! Clean residual mean=0.000529 rms=0.002246 Jy/beam
! Combined flux in latest and established models = 2.39037 Jy
selfcal
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 15 components and 2.39037 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.197844Jy  sigma=0.001251
! Fit after  self-cal, rms=0.197985Jy  sigma=0.001251
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.65% of the data.
!  The x-axis pixel size should ideally be below 0.1903 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.4, 1.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00726873 Jy
! Component: 100  -  total flux cleaned = 0.00619862 Jy
! Component: 150  -  total flux cleaned = 0.00619207 Jy
! Component: 200  -  total flux cleaned = 0.00656058 Jy
! Total flux subtracted in 200 components = 0.00656058 Jy
! Clean residual min=-0.006645 max=0.007383 Jy/beam
! Clean residual mean=0.000329 rms=0.001903 Jy/beam
! Combined flux in latest and established models = 2.39693 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 24 components and 2.39693 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.196932Jy  sigma=0.001245
! Fit after  self-cal, rms=0.196833Jy  sigma=0.001244
! Inverting map 
! Your choice of large map pixels excluded 1.65% of the data.
!  The x-axis pixel size should ideally be below 0.1903 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.196833Jy  sigma=0.001244
! Fit after  self-cal, rms=0.196749Jy  sigma=0.001243
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.65% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=2.491 mas, bmaj=7.308 mas, bpa=-1.144 degrees
! Estimated noise=1004.26 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00203967 Jy
! Component: 100  -  total flux cleaned = -0.00212383 Jy
! Component: 150  -  total flux cleaned = -0.00213065 Jy
! Component: 200  -  total flux cleaned = -0.00207414 Jy
! Total flux subtracted in 200 components = -0.00207414 Jy
! Clean residual min=-0.003153 max=0.007498 Jy/beam
! Clean residual mean=0.000770 rms=0.001960 Jy/beam
! Combined flux in latest and established models = 2.39486 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 31 components and 2.39486 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.196400Jy  sigma=0.001241
! Fit after  self-cal, rms=0.196375Jy  sigma=0.001241
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.65% of the data.
!  The x-axis pixel size should ideally be below 0.1903 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.000657196 Jy
! Component: 100  -  total flux cleaned = 0.000815344 Jy
! Component: 150  -  total flux cleaned = 0.000811963 Jy
! Component: 200  -  total flux cleaned = 0.000808712 Jy
! Total flux subtracted in 200 components = 0.000808712 Jy
! Clean residual min=-0.003515 max=0.007408 Jy/beam
! Clean residual mean=0.000721 rms=0.002003 Jy/beam
! Combined flux in latest and established models = 2.39567 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 36 components and 2.39567 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.196259Jy  sigma=0.001240
! Fit after  self-cal, rms=0.196248Jy  sigma=0.001240
! Inverting map 
! Your choice of large map pixels excluded 1.65% of the data.
!  The x-axis pixel size should ideally be below 0.1903 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 1.65% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=0.8388 mas, bmaj=2.543 mas, bpa=-6.307 degrees
! Estimated noise=815.642 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8388 x 2.543 at -6.307 degrees (North through East)
! Clean map  min=-0.0052176  max=2.2429 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.196248Jy  sigma=0.001240
! Fit after  self-cal, rms=0.175173Jy  sigma=0.001061
! Inverting map and beam 
! Your choice of large map pixels excluded 1.65% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=0.8395 mas, bmaj=2.544 mas, bpa=-6.282 degrees
! Estimated noise=815.302 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00137749 Jy
! Component: 100  -  total flux cleaned = -0.00211111 Jy
! Component: 150  -  total flux cleaned = -0.00241051 Jy
! Component: 200  -  total flux cleaned = -0.00241092 Jy
! Total flux subtracted in 200 components = -0.00241092 Jy
! Clean residual min=-0.004657 max=0.005409 Jy/beam
! Clean residual mean=0.000359 rms=0.001515 Jy/beam
! Combined flux in latest and established models = 2.39326 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 44 components and 2.39326 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.174652Jy  sigma=0.001059
! Fit after  self-cal, rms=0.174643Jy  sigma=0.001059
! Inverting map 
! Your choice of large map pixels excluded 1.65% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000956657 Jy
! Component: 100  -  total flux cleaned = 0.000955993 Jy
! Component: 150  -  total flux cleaned = 0.000953701 Jy
! Component: 200  -  total flux cleaned = 0.00104689 Jy
! Total flux subtracted in 200 components = 0.00104689 Jy
! Clean residual min=-0.004749 max=0.005253 Jy/beam
! Clean residual mean=0.000328 rms=0.001475 Jy/beam
! Combined flux in latest and established models = 2.3943 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 47 components and 2.3943 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.174453Jy  sigma=0.001058
! Fit after  self-cal, rms=0.174449Jy  sigma=0.001058
! Inverting map 
! Your choice of large map pixels excluded 1.65% of the data.
!  The x-axis pixel size should ideally be below 0.1903 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.174449Jy  sigma=0.001058
! Fit after  self-cal, rms=0.174403Jy  sigma=0.001057
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 1.65% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=0.6762 mas, bmaj=2.031 mas, bpa=-1.831 degrees
! Estimated noise=1523.58 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.75585 Jy
! Component: 100  -  total flux cleaned = 2.13937 Jy
! Component: 150  -  total flux cleaned = 2.25051 Jy
! Component: 200  -  total flux cleaned = 2.29902 Jy
! Total flux subtracted in 200 components = 2.29902 Jy
! Clean residual min=-0.012198 max=0.024026 Jy/beam
! Clean residual mean=0.001009 rms=0.004636 Jy/beam
! Combined flux in latest and established models = 2.29902 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 13 model components to the UV plane model.
! The established model now contains 13 components and 2.29902 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 1.65% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=0.8399 mas, bmaj=2.544 mas, bpa=-6.268 degrees
! Estimated noise=814.838 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.043267 Jy
! Component: 100  -  total flux cleaned = 0.0649265 Jy
! Component: 150  -  total flux cleaned = 0.0768739 Jy
! Component: 200  -  total flux cleaned = 0.0837436 Jy
! Total flux subtracted in 200 components = 0.0837436 Jy
! Clean residual min=-0.004639 max=0.007276 Jy/beam
! Clean residual mean=0.000629 rms=0.001596 Jy/beam
! Combined flux in latest and established models = 2.38276 Jy
! Adding 27 model components to the UV plane model.
! The established model now contains 36 components and 2.38276 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.65% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Added new window around map position (-1.4, -8.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00368096 Jy
! Component: 100  -  total flux cleaned = 0.00488172 Jy
! Component: 150  -  total flux cleaned = 0.00542556 Jy
! Component: 200  -  total flux cleaned = 0.00578176 Jy
! Total flux subtracted in 200 components = 0.00578175 Jy
! Clean residual min=-0.004495 max=0.005663 Jy/beam
! Clean residual mean=0.000466 rms=0.001351 Jy/beam
! Combined flux in latest and established models = 2.38854 Jy
! Adding 24 model components to the UV plane model.
! The established model now contains 56 components and 2.38854 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.65% of the data.
!  The x-axis pixel size should ideally be below 0.1903 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 1.65% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=2.492 mas, bmaj=7.317 mas, bpa=-1.121 degrees
! Estimated noise=1001.69 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00158858 Jy
! Component: 100  -  total flux cleaned = 0.00151382 Jy
! Component: 150  -  total flux cleaned = 0.00144902 Jy
! Component: 200  -  total flux cleaned = 0.00139283 Jy
! Total flux subtracted in 200 components = 0.00139283 Jy
! Clean residual min=-0.003577 max=0.006225 Jy/beam
! Clean residual mean=0.000817 rms=0.001635 Jy/beam
! Combined flux in latest and established models = 2.38993 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 = 4.77228e-05 Jy
! Component: 100  -  total flux cleaned = 4.97337e-05 Jy
! Component: 150  -  total flux cleaned = 9.15234e-05 Jy
! Component: 200  -  total flux cleaned = 0.000171415 Jy
! Total flux subtracted in 200 components = 0.000171415 Jy
! Clean residual min=-0.003474 max=0.006203 Jy/beam
! Clean residual mean=0.000806 rms=0.001622 Jy/beam
! Combined flux in latest and established models = 2.39011 Jy
! Adding 20 model components to the UV plane model.
! The established model now contains 72 components and 2.39011 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.65% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 1.65% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=0.8399 mas, bmaj=2.544 mas, bpa=-6.268 degrees
! Estimated noise=814.838 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000400989 Jy
! Component: 100  -  total flux cleaned = -0.000499627 Jy
! Component: 150  -  total flux cleaned = -0.000422504 Jy
! Component: 200  -  total flux cleaned = -0.000352185 Jy
! Total flux subtracted in 200 components = -0.000352185 Jy
! Clean residual min=-0.004075 max=0.005734 Jy/beam
! Clean residual mean=0.000419 rms=0.001259 Jy/beam
! Combined flux in latest and established models = 2.38975 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 83 components and 2.38975 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.173826Jy  sigma=0.001054
! Fit after  self-cal, rms=0.173816Jy  sigma=0.001054
wmodel J0403-3605_X_2003_09_17_pus_map.mod
! Writing 83 model components to file: J0403-3605_X_2003_09_17_pus_map.mod
wobs J0403-3605_X_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J0403-3605_X_2003_09_17_pus_uvs.fits
wwins J0403-3605_X_2003_09_17_pus_map.win
! wwins: Wrote 3 windows to J0403-3605_X_2003_09_17_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! Your choice of large map pixels excluded 1.65% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00241462 Jy
! Component: 100  -  total flux cleaned = 0.00374698 Jy
! Component: 150  -  total flux cleaned = 0.00456378 Jy
! Component: 200  -  total flux cleaned = 0.00501957 Jy
! Component: 250  -  total flux cleaned = 0.00555852 Jy
! Component: 300  -  total flux cleaned = 0.00606941 Jy
! Component: 350  -  total flux cleaned = 0.00651164 Jy
! Component: 400  -  total flux cleaned = 0.00684422 Jy
! Component: 450  -  total flux cleaned = 0.00721233 Jy
! Component: 500  -  total flux cleaned = 0.00752542 Jy
! Component: 550  -  total flux cleaned = 0.00791658 Jy
! Component: 600  -  total flux cleaned = 0.00829629 Jy
! Component: 650  -  total flux cleaned = 0.00866615 Jy
! Component: 700  -  total flux cleaned = 0.00910669 Jy
! Component: 750  -  total flux cleaned = 0.0095362 Jy
! Component: 800  -  total flux cleaned = 0.00999406 Jy
! Component: 850  -  total flux cleaned = 0.0103674 Jy
! Component: 900  -  total flux cleaned = 0.0106602 Jy
! Component: 950  -  total flux cleaned = 0.0109125 Jy
! Component: 1000  -  total flux cleaned = 0.0111953 Jy
! Total flux subtracted in 1024 components = 0.0113697 Jy
! Clean residual min=-0.002133 max=0.001817 Jy/beam
! Clean residual mean=0.000180 rms=0.000709 Jy/beam
! Combined flux in latest and established models = 2.40112 Jy
keep
! Adding 56 model components to the UV plane model.
! The established model now contains 139 components and 2.40112 Jy
wmap "J0403-3605_X_2003_09_17_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 1.65% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8399 x 2.544 at -6.268 degrees (North through East)
! Clean map  min=-0.0050375  max=2.245 Jy/beam
! Writing clean map to FITS file: J0403-3605_X_2003_09_17_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 2.245 
invert
! Inverting map 
! Your choice of large map pixels excluded 1.65% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000706734 
device "J0403-3605_X_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J0403-3605_X_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.0944409 0.0944409 0.188882 0.377763 0.755527 1.51105 3.02211 6.04422 12.0884 24.1769 48.3537 96.7074
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0021 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.245 
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.8399 x 2.544 at -6.268 degrees (North through East)
! Clean map  min=-0.0050375  max=2.245 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0403-3605_X_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J0403-3605_X_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0403-3605_X_2003_09_17_pus_uvs.log closed on Sat May 12 20:52:54 2007