! Started logfile: J0745-0044_X_2001_07_05_pus_uvs.log on Wed Jul  4 20:12:25 2007
obs J0745-0044_X_2001_07_05_pus_uva.fits
! Reading UV FITS file: J0745-0044_X_2001_07_05_pus_uva.fits
! AN table 1: 49 integrations on 171 of 171 possible baselines.
! AN table 2: 107 integrations on 171 of 171 possible baselines.
! AN table 3: 9 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.236683 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0745-0044
! 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 2370 lines of history.
! 
! Reading 26712 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 = 256 
print "field_cell =",field_cell
! field_cell = 0.2 
print "taper_size =",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 494 telescope corrections were flagged in sub-array 1.
!  A total of 1069 telescope corrections were flagged in sub-array 2.
!  A total of 171 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 494 telescope corrections were flagged in sub-array 1.
!  A total of 1069 telescope corrections were flagged in sub-array 2.
!  A total of 171 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 494 telescope corrections were flagged in sub-array 1.
!  A total of 1069 telescope corrections were flagged in sub-array 2.
!  A total of 171 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 494 telescope corrections were flagged in sub-array 1.
!  A total of 1069 telescope corrections were flagged in sub-array 2.
!  A total of 171 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.054911Jy  sigma=0.010309
! Fit after  self-cal, rms=0.603905Jy  sigma=0.005830
! 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 7.11% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! Estimated beam: bmin=0.552 mas, bmaj=1.323 mas, bpa=-1.463 degrees
! Estimated noise=905.68 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.92912 Jy
! Component: 100  -  total flux cleaned = 1.29946 Jy
! Total flux subtracted in 100 components = 1.29946 Jy
! Clean residual min=-0.045189 max=0.180616 Jy/beam
! Clean residual mean=0.001094 rms=0.018389 Jy/beam
! Combined flux in latest and established models = 1.29946 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 1.29946 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.382471Jy  sigma=0.003588
! Fit after  self-cal, rms=0.381617Jy  sigma=0.003581
! Inverting map 
! Your choice of large map pixels excluded 7.11% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! Added new window around map position (0.6, 0.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.194474 Jy
! Component: 100  -  total flux cleaned = 0.304876 Jy
! Total flux subtracted in 100 components = 0.304876 Jy
! Clean residual min=-0.031934 max=0.113420 Jy/beam
! Clean residual mean=0.000539 rms=0.009010 Jy/beam
! Combined flux in latest and established models = 1.60433 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 15 components and 1.60433 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.237842Jy  sigma=0.002030
! Fit after  self-cal, rms=0.235842Jy  sigma=0.002004
! Inverting map 
! Your choice of large map pixels excluded 7.11% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! Added new window around map position (-0.8, -0.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0916918 Jy
! Component: 100  -  total flux cleaned = 0.142294 Jy
! Total flux subtracted in 100 components = 0.142294 Jy
! Clean residual min=-0.017147 max=0.026539 Jy/beam
! Clean residual mean=0.000295 rms=0.004947 Jy/beam
! Combined flux in latest and established models = 1.74663 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 20 components and 1.74663 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.189142Jy  sigma=0.001523
! Fit after  self-cal, rms=0.188314Jy  sigma=0.001516
! Inverting map 
! Your choice of large map pixels excluded 7.11% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0348559 Jy
! Component: 100  -  total flux cleaned = 0.0564637 Jy
! Total flux subtracted in 100 components = 0.0564637 Jy
! Clean residual min=-0.015267 max=0.018000 Jy/beam
! Clean residual mean=0.000193 rms=0.004008 Jy/beam
! Combined flux in latest and established models = 1.80309 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 23 components and 1.80309 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.181602Jy  sigma=0.001455
! Fit after  self-cal, rms=0.181276Jy  sigma=0.001452
! Inverting map 
! Your choice of large map pixels excluded 7.11% of the data.
!  The x-axis pixel size should ideally be below 0.1612 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 7.11% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! Estimated beam: bmin=0.6305 mas, bmaj=1.941 mas, bpa=-3.837 degrees
! Estimated noise=487.475 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.00358335 Jy
! Component: 100  -  total flux cleaned = 0.00359987 Jy
! Component: 150  -  total flux cleaned = 0.00360837 Jy
! Component: 200  -  total flux cleaned = 0.00359432 Jy
! Total flux subtracted in 200 components = 0.00359432 Jy
! Clean residual min=-0.014199 max=0.012961 Jy/beam
! Clean residual mean=0.000777 rms=0.003684 Jy/beam
! Combined flux in latest and established models = 1.80668 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 35 components and 1.80668 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179659Jy  sigma=0.001438
! Fit after  self-cal, rms=0.179617Jy  sigma=0.001438
! Inverting map 
! Your choice of large map pixels excluded 7.11% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        1.00     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.92     KP        0.98     
!   LA        0.99     MC        1.00*    MK        1.00     NL        1.03     
!   NY        1.00*    OV        0.98     PT        1.01     SC        1.00*    
!   TS        0.91     WF        1.00*    WZ        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.99     GC        0.95     GG        1.00*    
!   HH        1.09     HN        0.98     KK        0.89     KP        1.00     
!   LA        0.99     MC        1.18     MK        0.99     NL        0.99     
!   NY        1.00*    OV        1.01     PT        1.00     SC        1.01     
!   TS        1.00*    WF        1.00     WZ        0.98     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.99     GC        0.96     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.94     KP        0.97     
!   LA        0.98     MC        1.00*    MK        1.00     NL        1.00     
!   NY        1.00*    OV        0.97     PT        0.98     SC        1.00*    
!   TS        0.90     WF        1.00*    WZ        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.99     GC        0.93     GG        1.00*    
!   HH        1.15     HN        0.98     KK        0.92     KP        1.00     
!   LA        0.98     MC        1.18     MK        0.97     NL        0.95     
!   NY        1.00*    OV        1.01     PT        0.97     SC        0.96     
!   TS        1.00*    WF        0.99     WZ        0.99     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.98     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.92     KP        1.02     
!   LA        1.00     MC        1.00*    MK        1.04     NL        1.03     
!   NY        1.00*    OV        1.03     PT        1.00     SC        1.00*    
!   TS        0.86     WF        1.00*    WZ        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        0.98     GC        0.96     GG        1.00*    
!   HH        1.32     HN        1.00     KK        0.89     KP        1.04     
!   LA        1.00     MC        1.17     MK        0.99     NL        0.99     
!   NY        1.00*    OV        1.07     PT        1.00     SC        0.99     
!   TS        1.00*    WF        1.01     WZ        0.98     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.97     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.97     KP        0.97     
!   LA        0.99     MC        1.00*    MK        1.08     NL        1.04     
!   NY        1.00*    OV        1.01     PT        1.00     SC        1.00*    
!   TS        0.86     WF        1.00*    WZ        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        0.96     GC        0.98     GG        1.00*    
!   HH        1.51     HN        1.01     KK        0.91     KP        1.00     
!   LA        0.99     MC        1.18     MK        1.01     NL        1.00     
!   NY        1.00*    OV        1.04     PT        1.00     SC        1.05     
!   TS        1.00*    WF        1.00     WZ        0.98     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Fit before self-cal, rms=0.179617Jy  sigma=0.001438
! Fit after  self-cal, rms=0.170387Jy  sigma=0.001278
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 7.16% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! Estimated beam: bmin=0.6396 mas, bmaj=1.993 mas, bpa=-4.034 degrees
! Estimated noise=492.617 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.000436643 Jy
! Component: 100  -  total flux cleaned = -0.000981786 Jy
! Component: 150  -  total flux cleaned = -0.00158805 Jy
! Component: 200  -  total flux cleaned = -0.0017688 Jy
! Total flux subtracted in 200 components = -0.0017688 Jy
! Clean residual min=-0.007133 max=0.008152 Jy/beam
! Clean residual mean=0.000409 rms=0.001832 Jy/beam
! Combined flux in latest and established models = 1.80492 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 43 components and 1.80492 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.169464Jy  sigma=0.001271
! Fit after  self-cal, rms=0.169461Jy  sigma=0.001270
! Inverting map 
! Your choice of large map pixels excluded 7.16% of the data.
!  The x-axis pixel size should ideally be below 0.1612 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.169461Jy  sigma=0.001270
! Fit after  self-cal, rms=0.166967Jy  sigma=0.001237
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 7.16% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! Estimated beam: bmin=0.6414 mas, bmaj=1.989 mas, bpa=-4.026 degrees
! Estimated noise=492.843 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0014828 Jy
! Component: 100  -  total flux cleaned = 0.000903082 Jy
! Component: 150  -  total flux cleaned = 0.000568162 Jy
! Component: 200  -  total flux cleaned = 0.000418844 Jy
! Total flux subtracted in 200 components = 0.000418844 Jy
! Clean residual min=-0.003712 max=0.006113 Jy/beam
! Clean residual mean=0.000176 rms=0.001043 Jy/beam
! Combined flux in latest and established models = 1.80533 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 46 components and 1.80533 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.166435Jy  sigma=0.001232
! Fit after  self-cal, rms=0.166410Jy  sigma=0.001232
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 7.16% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0.2, 3.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00330061 Jy
! Component: 100  -  total flux cleaned = 0.00304101 Jy
! Component: 150  -  total flux cleaned = 0.00268654 Jy
! Component: 200  -  total flux cleaned = 0.00258188 Jy
! Total flux subtracted in 200 components = 0.00258188 Jy
! Clean residual min=-0.002939 max=0.004391 Jy/beam
! Clean residual mean=0.000137 rms=0.000905 Jy/beam
! Combined flux in latest and established models = 1.80792 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 57 components and 1.80792 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.166118Jy  sigma=0.001229
! Fit after  self-cal, rms=0.166111Jy  sigma=0.001229
! Inverting map 
! Your choice of large map pixels excluded 7.16% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! Added new window around map position (1.2, 1.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00181902 Jy
! Component: 100  -  total flux cleaned = 0.00147355 Jy
! Component: 150  -  total flux cleaned = 0.0012711 Jy
! Component: 200  -  total flux cleaned = 0.0010864 Jy
! Total flux subtracted in 200 components = 0.0010864 Jy
! Clean residual min=-0.002770 max=0.003554 Jy/beam
! Clean residual mean=0.000125 rms=0.000849 Jy/beam
! Combined flux in latest and established models = 1.809 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 68 components and 1.809 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.165849Jy  sigma=0.001228
! Fit after  self-cal, rms=0.165840Jy  sigma=0.001227
! Inverting map 
! Your choice of large map pixels excluded 7.16% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! Added new window around map position (3, 2.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00198027 Jy
! Component: 100  -  total flux cleaned = 0.00158288 Jy
! Component: 150  -  total flux cleaned = 0.00140422 Jy
! Component: 200  -  total flux cleaned = 0.00132243 Jy
! Total flux subtracted in 200 components = 0.00132243 Jy
! Clean residual min=-0.002553 max=0.003042 Jy/beam
! Clean residual mean=0.000112 rms=0.000780 Jy/beam
! Combined flux in latest and established models = 1.81033 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 80 components and 1.81033 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.165668Jy  sigma=0.001226
! Fit after  self-cal, rms=0.165664Jy  sigma=0.001226
! Inverting map 
! Your choice of large map pixels excluded 7.16% of the data.
!  The x-axis pixel size should ideally be below 0.1612 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.165664Jy  sigma=0.001226
! Fit after  self-cal, rms=0.165754Jy  sigma=0.001226
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 7.16% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! Estimated beam: bmin=0.6422 mas, bmaj=1.99 mas, bpa=-4.031 degrees
! Estimated noise=492.629 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000909327 Jy
! Component: 100  -  total flux cleaned = 0.00117878 Jy
! Component: 150  -  total flux cleaned = 0.00133552 Jy
! Component: 200  -  total flux cleaned = 0.00133467 Jy
! Total flux subtracted in 200 components = 0.00133467 Jy
! Clean residual min=-0.002330 max=0.002670 Jy/beam
! Clean residual mean=0.000087 rms=0.000696 Jy/beam
! Combined flux in latest and established models = 1.81166 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 87 components and 1.81166 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.165648Jy  sigma=0.001225
! Fit after  self-cal, rms=0.165642Jy  sigma=0.001225
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 7.16% of the data.
!  The x-axis pixel size should ideally be below 0.1612 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.000110698 Jy
! Component: 100  -  total flux cleaned = 0.000175494 Jy
! Component: 150  -  total flux cleaned = 0.000176177 Jy
! Component: 200  -  total flux cleaned = 0.000235029 Jy
! Total flux subtracted in 200 components = 0.000235029 Jy
! Clean residual min=-0.002297 max=0.002613 Jy/beam
! Clean residual mean=0.000086 rms=0.000680 Jy/beam
! Combined flux in latest and established models = 1.8119 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 91 components and 1.81189 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.165570Jy  sigma=0.001224
! Fit after  self-cal, rms=0.165568Jy  sigma=0.001224
! Inverting map 
! Your choice of large map pixels excluded 7.16% of the data.
!  The x-axis pixel size should ideally be below 0.1612 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.165568Jy  sigma=0.001224
! Fit after  self-cal, rms=0.165568Jy  sigma=0.001224
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 7.16% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! Estimated beam: bmin=2.403 mas, bmaj=3.42 mas, bpa=-0.3669 degrees
! Estimated noise=637.379 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000686616 Jy
! Component: 100  -  total flux cleaned = 0.000882145 Jy
! Component: 150  -  total flux cleaned = 0.000941057 Jy
! Component: 200  -  total flux cleaned = 0.000968494 Jy
! Total flux subtracted in 200 components = 0.000968494 Jy
! Clean residual min=-0.002041 max=0.002447 Jy/beam
! Clean residual mean=0.000129 rms=0.000788 Jy/beam
! Combined flux in latest and established models = 1.81286 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 111 components and 1.81286 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.165564Jy  sigma=0.001224
! Fit after  self-cal, rms=0.165561Jy  sigma=0.001224
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 7.16% of the data.
!  The x-axis pixel size should ideally be below 0.1612 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.000247755 Jy
! Component: 100  -  total flux cleaned = 0.000272847 Jy
! Component: 150  -  total flux cleaned = 0.000317951 Jy
! Component: 200  -  total flux cleaned = 0.000318502 Jy
! Total flux subtracted in 200 components = 0.000318502 Jy
! Clean residual min=-0.002035 max=0.002462 Jy/beam
! Clean residual mean=0.000122 rms=0.000780 Jy/beam
! Combined flux in latest and established models = 1.81318 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 121 components and 1.81318 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.165557Jy  sigma=0.001224
! Fit after  self-cal, rms=0.165554Jy  sigma=0.001224
! Inverting map 
! Your choice of large map pixels excluded 7.16% of the data.
!  The x-axis pixel size should ideally be below 0.1612 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 7.16% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! Estimated beam: bmin=0.6424 mas, bmaj=1.99 mas, bpa=-4.031 degrees
! Estimated noise=492.477 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6424 x 1.99 at -4.031 degrees (North through East)
! Clean map  min=-0.0022848  max=1.1702 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.165554Jy  sigma=0.001224
! Fit after  self-cal, rms=0.157961Jy  sigma=0.001143
! Inverting map and beam 
! Your choice of large map pixels excluded 7.16% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! Estimated beam: bmin=0.6423 mas, bmaj=1.991 mas, bpa=-4.036 degrees
! Estimated noise=492.412 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000109946 Jy
! Component: 100  -  total flux cleaned = 0.000109784 Jy
! Component: 150  -  total flux cleaned = 0.000106926 Jy
! Component: 200  -  total flux cleaned = 0.000106324 Jy
! Total flux subtracted in 200 components = 0.000106324 Jy
! Clean residual min=-0.002191 max=0.002474 Jy/beam
! Clean residual mean=0.000068 rms=0.000641 Jy/beam
! Combined flux in latest and established models = 1.81329 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 126 components and 1.81329 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.157883Jy  sigma=0.001143
! Fit after  self-cal, rms=0.157883Jy  sigma=0.001143
! Inverting map 
! Your choice of large map pixels excluded 7.16% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.94338e-05 Jy
! Component: 100  -  total flux cleaned = 8.43313e-05 Jy
! Component: 150  -  total flux cleaned = 8.48491e-05 Jy
! Component: 200  -  total flux cleaned = 8.57923e-05 Jy
! Total flux subtracted in 200 components = 8.57923e-05 Jy
! Clean residual min=-0.002173 max=0.002426 Jy/beam
! Clean residual mean=0.000068 rms=0.000633 Jy/beam
! Combined flux in latest and established models = 1.81337 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 132 components and 1.81337 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.157823Jy  sigma=0.001142
! Fit after  self-cal, rms=0.157825Jy  sigma=0.001142
! Inverting map 
! Your choice of large map pixels excluded 7.16% of the data.
!  The x-axis pixel size should ideally be below 0.1612 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.157825Jy  sigma=0.001142
! Fit after  self-cal, rms=0.157845Jy  sigma=0.001142
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 7.16% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! Estimated beam: bmin=0.557 mas, bmaj=1.381 mas, bpa=-2.026 degrees
! Estimated noise=899.104 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.920019 Jy
! Component: 100  -  total flux cleaned = 1.2858 Jy
! Component: 150  -  total flux cleaned = 1.48535 Jy
! Component: 200  -  total flux cleaned = 1.60304 Jy
! Total flux subtracted in 200 components = 1.60304 Jy
! Clean residual min=-0.017361 max=0.059995 Jy/beam
! Clean residual mean=0.000402 rms=0.006834 Jy/beam
! Combined flux in latest and established models = 1.60304 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 1.60304 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 7.16% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! Estimated beam: bmin=0.6425 mas, bmaj=1.991 mas, bpa=-4.036 degrees
! Estimated noise=492.337 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.101726 Jy
! Component: 100  -  total flux cleaned = 0.152089 Jy
! Component: 150  -  total flux cleaned = 0.178644 Jy
! Component: 200  -  total flux cleaned = 0.193088 Jy
! Total flux subtracted in 200 components = 0.193088 Jy
! Clean residual min=-0.003739 max=0.007054 Jy/beam
! Clean residual mean=0.000284 rms=0.001241 Jy/beam
! Combined flux in latest and established models = 1.79613 Jy
! Adding 24 model components to the UV plane model.
! The established model now contains 29 components and 1.79613 Jy
! Inverting map 
! Your choice of large map pixels excluded 7.16% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00830932 Jy
! Component: 100  -  total flux cleaned = 0.0133601 Jy
! Component: 150  -  total flux cleaned = 0.0146606 Jy
! Component: 200  -  total flux cleaned = 0.015033 Jy
! Total flux subtracted in 200 components = 0.015033 Jy
! Clean residual min=-0.003509 max=0.003134 Jy/beam
! Clean residual mean=0.000089 rms=0.000787 Jy/beam
! Combined flux in latest and established models = 1.81116 Jy
! Adding 26 model components to the UV plane model.
! The established model now contains 46 components and 1.81116 Jy
! Inverting map 
! Your choice of large map pixels excluded 7.16% of the data.
!  The x-axis pixel size should ideally be below 0.1612 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 7.16% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! Estimated beam: bmin=2.402 mas, bmaj=3.42 mas, bpa=-0.3966 degrees
! Estimated noise=637.265 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00213281 Jy
! Component: 100  -  total flux cleaned = 0.00248534 Jy
! Component: 150  -  total flux cleaned = 0.00248405 Jy
! Component: 200  -  total flux cleaned = 0.00252886 Jy
! Total flux subtracted in 200 components = 0.00252886 Jy
! Clean residual min=-0.002004 max=0.002471 Jy/beam
! Clean residual mean=0.000114 rms=0.000807 Jy/beam
! Combined flux in latest and established models = 1.81369 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 = 3.97229e-05 Jy
! Component: 100  -  total flux cleaned = 7.61594e-05 Jy
! Component: 150  -  total flux cleaned = 0.000111723 Jy
! Component: 200  -  total flux cleaned = 0.0001458 Jy
! Total flux subtracted in 200 components = 0.0001458 Jy
! Clean residual min=-0.002061 max=0.002436 Jy/beam
! Clean residual mean=0.000111 rms=0.000784 Jy/beam
! Combined flux in latest and established models = 1.81384 Jy
! Adding 26 model components to the UV plane model.
! The established model now contains 70 components and 1.81384 Jy
! Inverting map 
! Your choice of large map pixels excluded 7.16% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 7.16% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! Estimated beam: bmin=0.6425 mas, bmaj=1.991 mas, bpa=-4.036 degrees
! Estimated noise=492.337 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000622827 Jy
! Component: 100  -  total flux cleaned = -0.000526103 Jy
! Component: 150  -  total flux cleaned = -0.000432431 Jy
! Component: 200  -  total flux cleaned = -0.000349632 Jy
! Total flux subtracted in 200 components = -0.000349632 Jy
! Clean residual min=-0.002986 max=0.003045 Jy/beam
! Clean residual mean=0.000059 rms=0.000689 Jy/beam
! Combined flux in latest and established models = 1.81349 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 80 components and 1.81349 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.158681Jy  sigma=0.001145
! Fit after  self-cal, rms=0.158342Jy  sigma=0.001144
wmodel J0745-0044_X_2001_07_05_pus_map.mod
! Writing 80 model components to file: J0745-0044_X_2001_07_05_pus_map.mod
wobs J0745-0044_X_2001_07_05_pus_uvs.fits
! Writing UV FITS file: J0745-0044_X_2001_07_05_pus_uvs.fits
wwins J0745-0044_X_2001_07_05_pus_map.win
! wwins: Wrote 6 windows to J0745-0044_X_2001_07_05_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 7.16% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000640021 Jy
! Component: 100  -  total flux cleaned = 0.00108771 Jy
! Component: 150  -  total flux cleaned = 0.00129513 Jy
! Component: 200  -  total flux cleaned = 0.00160694 Jy
! Component: 250  -  total flux cleaned = 0.00182955 Jy
! Component: 300  -  total flux cleaned = 0.00214963 Jy
! Component: 350  -  total flux cleaned = 0.00255952 Jy
! Component: 400  -  total flux cleaned = 0.00298762 Jy
! Component: 450  -  total flux cleaned = 0.0033404 Jy
! Component: 500  -  total flux cleaned = 0.0036541 Jy
! Component: 550  -  total flux cleaned = 0.00399108 Jy
! Component: 600  -  total flux cleaned = 0.00429063 Jy
! Component: 650  -  total flux cleaned = 0.00455492 Jy
! Component: 700  -  total flux cleaned = 0.00478554 Jy
! Component: 750  -  total flux cleaned = 0.00504102 Jy
! Component: 800  -  total flux cleaned = 0.00529221 Jy
! Component: 850  -  total flux cleaned = 0.00556636 Jy
! Component: 900  -  total flux cleaned = 0.00575522 Jy
! Component: 950  -  total flux cleaned = 0.00602109 Jy
! Component: 1000  -  total flux cleaned = 0.00623073 Jy
! Total flux subtracted in 1024 components = 0.00633449 Jy
! Clean residual min=-0.001505 max=0.001371 Jy/beam
! Clean residual mean=0.000056 rms=0.000498 Jy/beam
! Combined flux in latest and established models = 1.81982 Jy
keep
! Adding 60 model components to the UV plane model.
! The established model now contains 137 components and 1.81982 Jy
wmap "J0745-0044_X_2001_07_05_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 7.16% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6425 x 1.991 at -4.036 degrees (North through East)
! Clean map  min=-0.0021213  max=1.1718 Jy/beam
! Writing clean map to FITS file: J0745-0044_X_2001_07_05_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.17175 
invert
! Inverting map 
! Your choice of large map pixels excluded 7.16% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000497399 
device "J0745-0044_X_2001_07_05_pus\_map.eps/VPS"
! Attempting to open device: 'J0745-0044_X_2001_07_05_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.127348 0.127348 0.254695 0.50939 1.01878 2.03756 4.07512 8.15024 16.3005 32.601 65.2019
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0014 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.171 
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.6425 x 1.991 at -4.036 degrees (North through East)
! Clean map  min=-0.0021213  max=1.1718 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0745-0044_X_2001_07_05_pus\_map.gif/vgif"
! Attempting to open device: 'J0745-0044_X_2001_07_05_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0745-0044_X_2001_07_05_pus_uvs.log closed on Wed Jul  4 20:13:27 2007