! Started logfile: J0241-0815_S_2001_07_05_pus_uvs.log on Sun Aug 12 17:18:32 2007
obs J0241-0815_S_2001_07_05_pus_uva.fits
! Reading UV FITS file: J0241-0815_S_2001_07_05_pus_uva.fits
! AN table 1: 11 integrations on 171 of 171 possible baselines.
! AN table 2: 177 integrations on 171 of 171 possible baselines.
! AN table 3: 220 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.12553 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0241-0815
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1778 lines of history.
! 
! Reading 35032 visibilities.
select I
! Polarization I is unavailable.
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
print "field_size =",field_size
! field_size = 512 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 209 telescope corrections were flagged in sub-array 1.
!  A total of 2363 telescope corrections were flagged in sub-array 2.
!  A total of 2975 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 209 telescope corrections were flagged in sub-array 1.
!  A total of 2363 telescope corrections were flagged in sub-array 2.
!  A total of 2975 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 209 telescope corrections were flagged in sub-array 1.
!  A total of 2363 telescope corrections were flagged in sub-array 2.
!  A total of 2975 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 209 telescope corrections were flagged in sub-array 1.
!  A total of 2388 telescope corrections were flagged in sub-array 2.
!  A total of 3055 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.824416Jy  sigma=0.006171
! Fit after  self-cal, rms=0.603223Jy  sigma=0.004224
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.119 mas, bmaj=6.072 mas, bpa=-1.963 degrees
! Estimated noise=1204.5 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.372516 Jy
! Component: 100  -  total flux cleaned = 0.53965 Jy
! Total flux subtracted in 100 components = 0.53965 Jy
! Clean residual min=-0.028986 max=0.102600 Jy/beam
! Clean residual mean=-0.000638 rms=0.012399 Jy/beam
! Combined flux in latest and established models = 0.53965 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 16 components and 0.53965 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.374444Jy  sigma=0.002912
! Fit after  self-cal, rms=0.372478Jy  sigma=0.002905
! Inverting map 
! Added new window around map position (3, 1.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.108521 Jy
! Component: 100  -  total flux cleaned = 0.180526 Jy
! Total flux subtracted in 100 components = 0.180526 Jy
! Clean residual min=-0.025861 max=0.075890 Jy/beam
! Clean residual mean=-0.000432 rms=0.009543 Jy/beam
! Combined flux in latest and established models = 0.720175 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 41 components and 0.720175 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.305183Jy  sigma=0.002305
! Fit after  self-cal, rms=0.303182Jy  sigma=0.002291
! Inverting map 
! Added new window around map position (6.5, 4.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0716904 Jy
! Component: 100  -  total flux cleaned = 0.120541 Jy
! Total flux subtracted in 100 components = 0.120541 Jy
! Clean residual min=-0.019094 max=0.048297 Jy/beam
! Clean residual mean=-0.000308 rms=0.007782 Jy/beam
! Combined flux in latest and established models = 0.840716 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 71 components and 0.840716 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266655Jy  sigma=0.001953
! Fit after  self-cal, rms=0.265082Jy  sigma=0.001941
! Inverting map 
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
win_mult = win_mult * 1.6
clean_niter = clean_niter * 2
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.72 mas, bmaj=7.77 mas, bpa=-3.533 degrees
! Estimated noise=527.797 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.0941878 Jy
! Component: 100  -  total flux cleaned = 0.151685 Jy
! Component: 150  -  total flux cleaned = 0.189907 Jy
! Component: 200  -  total flux cleaned = 0.215835 Jy
! Total flux subtracted in 200 components = 0.215835 Jy
! Clean residual min=-0.017427 max=0.058694 Jy/beam
! Clean residual mean=0.000754 rms=0.007184 Jy/beam
! Combined flux in latest and established models = 1.05655 Jy
! Performing phase self-cal
! Adding 51 model components to the UV plane model.
! The established model now contains 108 components and 1.05655 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232315Jy  sigma=0.001591
! Fit after  self-cal, rms=0.230621Jy  sigma=0.001576
! Inverting map 
! Added new window around map position (-5, -1.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0421824 Jy
! Component: 100  -  total flux cleaned = 0.064379 Jy
! Component: 150  -  total flux cleaned = 0.0795406 Jy
! Component: 200  -  total flux cleaned = 0.0899665 Jy
! Total flux subtracted in 200 components = 0.0899665 Jy
! Clean residual min=-0.014678 max=0.038070 Jy/beam
! Clean residual mean=0.000300 rms=0.005785 Jy/beam
! Combined flux in latest and established models = 1.14652 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 131 components and 1.14652 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223799Jy  sigma=0.001500
! Fit after  self-cal, rms=0.223171Jy  sigma=0.001495
! Inverting map 
! Added new window around map position (-20.5, -9).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0330463 Jy
! Component: 100  -  total flux cleaned = 0.0473956 Jy
! Component: 150  -  total flux cleaned = 0.0506263 Jy
! Component: 200  -  total flux cleaned = 0.0512963 Jy
! Total flux subtracted in 200 components = 0.0512963 Jy
! Clean residual min=-0.011794 max=0.013254 Jy/beam
! Clean residual mean=-0.000120 rms=0.004350 Jy/beam
! Combined flux in latest and established models = 1.19781 Jy
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 167 components and 1.19781 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.218682Jy  sigma=0.001454
! Fit after  self-cal, rms=0.218138Jy  sigma=0.001449
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   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*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.07     FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.00*    KP        1.00     
!   LA        1.05     MC        1.11     MK        1.00*    NL        1.00     
!   NY        1.00*    OV        1.03     PT        0.99     SC        0.97     
!   TS        1.00*    WF        0.94     WZ        1.04     
! 
!  A total of 156 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.87     GC        1.19     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        0.97     KP        0.86     
!   LA        0.94     MC        1.00*    MK        0.97     NL        1.02     
!   NY        1.00*    OV        0.96     PT        0.92     SC        0.95     
!   TS        1.00*    WF        1.12     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   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*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.00*    KP        0.90     
!   LA        1.02     MC        1.00     MK        1.00*    NL        0.99     
!   NY        1.00*    OV        1.06     PT        1.02     SC        0.97     
!   TS        1.00*    WF        1.00     WZ        1.04     
! 
!  A total of 156 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.91     GC        1.12     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        0.97     KP        0.96     
!   LA        0.90     MC        1.00*    MK        0.98     NL        1.00     
!   NY        1.00*    OV        1.00     PT        0.94     SC        0.98     
!   TS        1.00*    WF        1.13     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   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*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.09     FD        0.97     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.00*    KP        1.09     
!   LA        1.03     MC        1.16     MK        1.00*    NL        1.03     
!   NY        1.00*    OV        1.05     PT        1.01     SC        0.98     
!   TS        1.00*    WF        1.13     WZ        1.02     
! 
!  A total of 156 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.89     GC        1.15     GG        1.00*    
!   HH        1.00*    HN        1.18     KK        1.02     KP        0.98     
!   LA        0.99     MC        1.00*    MK        1.01     NL        1.09     
!   NY        1.00*    OV        1.06     PT        0.97     SC        1.00     
!   TS        1.00*    WF        1.12     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   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*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.08     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.94     KK        1.00*    KP        1.07     
!   LA        1.02     MC        1.00*    MK        1.00*    NL        1.02     
!   NY        1.00*    OV        1.06     PT        1.07     SC        0.98     
!   TS        1.00*    WF        1.00     WZ        1.14     
! 
!  A total of 138 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.92     GC        1.14     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        0.98     KP        1.00     
!   LA        0.96     MC        1.00*    MK        1.00     NL        1.05     
!   NY        1.00*    OV        1.00     PT        0.97     SC        0.98     
!   TS        1.00*    WF        1.15     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.218138Jy  sigma=0.001449
! Fit after  self-cal, rms=0.215651Jy  sigma=0.001360
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.768 mas, bmaj=7.918 mas, bpa=-3.618 degrees
! Estimated noise=536.754 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.00648857 Jy
! Component: 100  -  total flux cleaned = 0.00680289 Jy
! Component: 150  -  total flux cleaned = 0.00784777 Jy
! Component: 200  -  total flux cleaned = 0.00855113 Jy
! Total flux subtracted in 200 components = 0.00855113 Jy
! Clean residual min=-0.006488 max=0.007881 Jy/beam
! Clean residual mean=0.000384 rms=0.002072 Jy/beam
! Combined flux in latest and established models = 1.20637 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 194 components and 1.20637 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.214784Jy  sigma=0.001353
! Fit after  self-cal, rms=0.214896Jy  sigma=0.001352
! Inverting map 
selfcal true, true, soltime1
! Performing amp+phase self-cal over 120 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.214896Jy  sigma=0.001352
! Fit after  self-cal, rms=0.218879Jy  sigma=0.001319
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.764 mas, bmaj=7.976 mas, bpa=-3.52 degrees
! Estimated noise=536.737 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00353508 Jy
! Component: 100  -  total flux cleaned = 0.00398776 Jy
! Component: 150  -  total flux cleaned = 0.00457219 Jy
! Component: 200  -  total flux cleaned = 0.00509914 Jy
! Total flux subtracted in 200 components = 0.00509914 Jy
! Clean residual min=-0.004075 max=0.007296 Jy/beam
! Clean residual mean=0.000349 rms=0.001424 Jy/beam
! Combined flux in latest and established models = 1.21146 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 211 components and 1.21146 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.218521Jy  sigma=0.001316
! Fit after  self-cal, rms=0.218628Jy  sigma=0.001315
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (12, 7.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00579102 Jy
! Component: 100  -  total flux cleaned = 0.00655593 Jy
! Component: 150  -  total flux cleaned = 0.00738278 Jy
! Component: 200  -  total flux cleaned = 0.00797321 Jy
! Total flux subtracted in 200 components = 0.00797321 Jy
! Clean residual min=-0.003585 max=0.005030 Jy/beam
! Clean residual mean=0.000289 rms=0.001185 Jy/beam
! Combined flux in latest and established models = 1.21944 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 234 components and 1.21944 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.218308Jy  sigma=0.001312
! Fit after  self-cal, rms=0.218300Jy  sigma=0.001312
! Inverting map 
selfcal true, true, soltime2
! Performing amp+phase self-cal over 20 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.218300Jy  sigma=0.001312
! Fit after  self-cal, rms=0.220984Jy  sigma=0.001311
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.756 mas, bmaj=7.969 mas, bpa=-3.501 degrees
! Estimated noise=535.623 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00457249 Jy
! Component: 100  -  total flux cleaned = 0.00503183 Jy
! Component: 150  -  total flux cleaned = 0.00585201 Jy
! Component: 200  -  total flux cleaned = 0.00647286 Jy
! Total flux subtracted in 200 components = 0.00647286 Jy
! Clean residual min=-0.003183 max=0.004661 Jy/beam
! Clean residual mean=0.000221 rms=0.001037 Jy/beam
! Combined flux in latest and established models = 1.22591 Jy
selfcal
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 250 components and 1.22591 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220809Jy  sigma=0.001309
! Fit after  self-cal, rms=0.220826Jy  sigma=0.001309
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (46, 17).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00357717 Jy
! Component: 100  -  total flux cleaned = 0.00469904 Jy
! Component: 150  -  total flux cleaned = 0.00536827 Jy
! Component: 200  -  total flux cleaned = 0.00578419 Jy
! Total flux subtracted in 200 components = 0.00578419 Jy
! Clean residual min=-0.002808 max=0.003685 Jy/beam
! Clean residual mean=0.000178 rms=0.000936 Jy/beam
! Combined flux in latest and established models = 1.2317 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 266 components and 1.23169 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220693Jy  sigma=0.001308
! Fit after  self-cal, rms=0.220680Jy  sigma=0.001308
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
win_mult = win_mult * 1.2
selfcal true, true, soltime2
! Performing amp+phase self-cal over 20 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220680Jy  sigma=0.001308
! Fit after  self-cal, rms=0.221169Jy  sigma=0.001307
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.622 mas, bmaj=12.34 mas, bpa=-2.282 degrees
! Estimated noise=668.68 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00453758 Jy
! Component: 100  -  total flux cleaned = 0.00766439 Jy
! Component: 150  -  total flux cleaned = 0.00894539 Jy
! Component: 200  -  total flux cleaned = 0.00928536 Jy
! Total flux subtracted in 200 components = 0.00928536 Jy
! Clean residual min=-0.003018 max=0.003648 Jy/beam
! Clean residual mean=0.000285 rms=0.001071 Jy/beam
! Combined flux in latest and established models = 1.24098 Jy
selfcal
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 293 components and 1.24098 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.221122Jy  sigma=0.001307
! Fit after  self-cal, rms=0.221130Jy  sigma=0.001307
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000684009 Jy
! Component: 100  -  total flux cleaned = 0.000901599 Jy
! Component: 150  -  total flux cleaned = 0.00116983 Jy
! Component: 200  -  total flux cleaned = 0.00129359 Jy
! Total flux subtracted in 200 components = 0.00129359 Jy
! Clean residual min=-0.002983 max=0.003379 Jy/beam
! Clean residual mean=0.000266 rms=0.001030 Jy/beam
! Combined flux in latest and established models = 1.24227 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 307 components and 1.24227 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.221113Jy  sigma=0.001307
! Fit after  self-cal, rms=0.221112Jy  sigma=0.001307
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Estimated beam: bmin=2.757 mas, bmaj=7.961 mas, bpa=-3.476 degrees
! Estimated noise=535.947 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.757 x 7.961 at -3.476 degrees (North through East)
! Clean map  min=-0.0042328  max=0.5069 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.221112Jy  sigma=0.001307
! Fit after  self-cal, rms=0.354916Jy  sigma=0.001164
! Inverting map and beam 
! Estimated beam: bmin=2.732 mas, bmaj=7.963 mas, bpa=-3.668 degrees
! Estimated noise=533.559 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000211906 Jy
! Component: 100  -  total flux cleaned = 0.000209991 Jy
! Component: 150  -  total flux cleaned = 0.000300698 Jy
! Component: 200  -  total flux cleaned = 0.000299727 Jy
! Total flux subtracted in 200 components = 0.000299727 Jy
! Clean residual min=-0.002721 max=0.004014 Jy/beam
! Clean residual mean=0.000140 rms=0.000759 Jy/beam
! Combined flux in latest and established models = 1.24257 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 325 components and 1.24257 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.354858Jy  sigma=0.001163
! Fit after  self-cal, rms=0.354862Jy  sigma=0.001163
! Inverting map 
! Added new window around map position (-13, -5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00223251 Jy
! Component: 100  -  total flux cleaned = 0.00212989 Jy
! Component: 150  -  total flux cleaned = 0.00212753 Jy
! Component: 200  -  total flux cleaned = 0.00220817 Jy
! Total flux subtracted in 200 components = 0.00220817 Jy
! Clean residual min=-0.002570 max=0.002983 Jy/beam
! Clean residual mean=0.000124 rms=0.000705 Jy/beam
! Combined flux in latest and established models = 1.24478 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 344 components and 1.24478 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.354783Jy  sigma=0.001162
! Fit after  self-cal, rms=0.354787Jy  sigma=0.001162
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.354787Jy  sigma=0.001162
! Fit after  self-cal, rms=0.348106Jy  sigma=0.001162
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.122 mas, bmaj=6.33 mas, bpa=-3.271 degrees
! Estimated noise=1238.04 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.381505 Jy
! Component: 100  -  total flux cleaned = 0.563392 Jy
! Component: 150  -  total flux cleaned = 0.68526 Jy
! Component: 200  -  total flux cleaned = 0.772948 Jy
! Total flux subtracted in 200 components = 0.772948 Jy
! Clean residual min=-0.017369 max=0.050744 Jy/beam
! Clean residual mean=-0.000340 rms=0.007210 Jy/beam
! Combined flux in latest and established models = 0.772948 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 33 model components to the UV plane model.
! The established model now contains 33 components and 0.772948 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.724 mas, bmaj=7.967 mas, bpa=-3.73 degrees
! Estimated noise=532.501 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.123471 Jy
! Component: 100  -  total flux cleaned = 0.202884 Jy
! Component: 150  -  total flux cleaned = 0.259765 Jy
! Component: 200  -  total flux cleaned = 0.301656 Jy
! Total flux subtracted in 200 components = 0.301656 Jy
! Clean residual min=-0.008761 max=0.024000 Jy/beam
! Clean residual mean=0.001130 rms=0.005010 Jy/beam
! Combined flux in latest and established models = 1.0746 Jy
! Adding 68 model components to the UV plane model.
! The established model now contains 92 components and 1.0746 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.031658 Jy
! Component: 100  -  total flux cleaned = 0.0562254 Jy
! Component: 150  -  total flux cleaned = 0.0755898 Jy
! Component: 200  -  total flux cleaned = 0.0910609 Jy
! Total flux subtracted in 200 components = 0.0910609 Jy
! Clean residual min=-0.004461 max=0.009260 Jy/beam
! Clean residual mean=0.000600 rms=0.002212 Jy/beam
! Combined flux in latest and established models = 1.16567 Jy
! Adding 75 model components to the UV plane model.
! The established model now contains 155 components and 1.16567 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.618 mas, bmaj=12.32 mas, bpa=-2.263 degrees
! Estimated noise=668.549 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0231562 Jy
! Component: 100  -  total flux cleaned = 0.0384025 Jy
! Component: 150  -  total flux cleaned = 0.0488763 Jy
! Component: 200  -  total flux cleaned = 0.0561985 Jy
! Total flux subtracted in 200 components = 0.0561985 Jy
! Clean residual min=-0.003012 max=0.004088 Jy/beam
! Clean residual mean=0.000572 rms=0.001335 Jy/beam
! Combined flux in latest and established models = 1.22186 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.00535092 Jy
! Component: 100  -  total flux cleaned = 0.00951103 Jy
! Component: 150  -  total flux cleaned = 0.0128574 Jy
! Component: 200  -  total flux cleaned = 0.0155763 Jy
! Total flux subtracted in 200 components = 0.0155763 Jy
! Clean residual min=-0.002731 max=0.002613 Jy/beam
! Clean residual mean=0.000334 rms=0.000858 Jy/beam
! Combined flux in latest and established models = 1.23744 Jy
! Adding 154 model components to the UV plane model.
! The established model now contains 286 components and 1.23744 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.724 mas, bmaj=7.967 mas, bpa=-3.73 degrees
! Estimated noise=532.501 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0021656 Jy
! Component: 100  -  total flux cleaned = 0.00309522 Jy
! Component: 150  -  total flux cleaned = 0.00384585 Jy
! Component: 200  -  total flux cleaned = 0.004596 Jy
! Total flux subtracted in 200 components = 0.004596 Jy
! Clean residual min=-0.002409 max=0.002375 Jy/beam
! Clean residual mean=0.000120 rms=0.000655 Jy/beam
! Combined flux in latest and established models = 1.24204 Jy
selfcal
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 314 components and 1.24204 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.347846Jy  sigma=0.001161
! Fit after  self-cal, rms=0.347738Jy  sigma=0.001160
wmodel J0241-0815_S_2001_07_05_pus_map.mod
! Writing 314 model components to file: J0241-0815_S_2001_07_05_pus_map.mod
wobs J0241-0815_S_2001_07_05_pus_uvs.fits
! Writing UV FITS file: J0241-0815_S_2001_07_05_pus_uvs.fits
wwins J0241-0815_S_2001_07_05_pus_map.win
! wwins: Wrote 8 windows to J0241-0815_S_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 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -7.47377e-05 Jy
! Component: 100  -  total flux cleaned = 0.000119379 Jy
! Component: 150  -  total flux cleaned = 0.000376721 Jy
! Component: 200  -  total flux cleaned = 0.00051751 Jy
! Component: 250  -  total flux cleaned = 0.000857309 Jy
! Component: 300  -  total flux cleaned = 0.00108875 Jy
! Component: 350  -  total flux cleaned = 0.00131564 Jy
! Component: 400  -  total flux cleaned = 0.00153783 Jy
! Component: 450  -  total flux cleaned = 0.00166207 Jy
! Component: 500  -  total flux cleaned = 0.00172275 Jy
! Component: 550  -  total flux cleaned = 0.00178292 Jy
! Component: 600  -  total flux cleaned = 0.00184235 Jy
! Component: 650  -  total flux cleaned = 0.00195909 Jy
! Component: 700  -  total flux cleaned = 0.00201669 Jy
! Component: 750  -  total flux cleaned = 0.00210204 Jy
! Component: 800  -  total flux cleaned = 0.00218601 Jy
! Component: 850  -  total flux cleaned = 0.00224131 Jy
! Component: 900  -  total flux cleaned = 0.00229593 Jy
! Component: 950  -  total flux cleaned = 0.00237667 Jy
! Component: 1000  -  total flux cleaned = 0.00240328 Jy
! Component: 1050  -  total flux cleaned = 0.00248252 Jy
! Component: 1100  -  total flux cleaned = 0.00250851 Jy
! Component: 1150  -  total flux cleaned = 0.0025857 Jy
! Component: 1200  -  total flux cleaned = 0.00263635 Jy
! Component: 1250  -  total flux cleaned = 0.00266151 Jy
! Component: 1300  -  total flux cleaned = 0.00266142 Jy
! Component: 1350  -  total flux cleaned = 0.00273523 Jy
! Component: 1400  -  total flux cleaned = 0.00278395 Jy
! Component: 1450  -  total flux cleaned = 0.00280793 Jy
! Component: 1500  -  total flux cleaned = 0.00285605 Jy
! Component: 1550  -  total flux cleaned = 0.00297517 Jy
! Component: 1600  -  total flux cleaned = 0.00306942 Jy
! Component: 1650  -  total flux cleaned = 0.00313946 Jy
! Component: 1700  -  total flux cleaned = 0.00323225 Jy
! Component: 1750  -  total flux cleaned = 0.00332429 Jy
! Component: 1800  -  total flux cleaned = 0.00341544 Jy
! Component: 1850  -  total flux cleaned = 0.00346075 Jy
! Component: 1900  -  total flux cleaned = 0.00352817 Jy
! Component: 1950  -  total flux cleaned = 0.00359527 Jy
! Component: 2000  -  total flux cleaned = 0.00366188 Jy
! Total flux subtracted in 2048 components = 0.00377197 Jy
! Clean residual min=-0.001309 max=0.001521 Jy/beam
! Clean residual mean=0.000063 rms=0.000442 Jy/beam
! Combined flux in latest and established models = 1.24581 Jy
keep
! Adding 146 model components to the UV plane model.
! The established model now contains 459 components and 1.24581 Jy
wmap "J0241-0815_S_2001_07_05_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.724 x 7.967 at -3.73 degrees (North through East)
! Clean map  min=-0.0020005  max=0.50269 Jy/beam
! Writing clean map to FITS file: J0241-0815_S_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 0.502689 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00044213 
device "J0241-0815_S_2001_07_05_pus\_map.eps/VPS"
! Attempting to open device: 'J0241-0815_S_2001_07_05_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.263859 0.263859 0.527717 1.05543 2.11087 4.22174 8.44347 16.8869 33.7739 67.5478
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0013 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.502 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.724 x 7.967 at -3.73 degrees (North through East)
! Clean map  min=-0.0020005  max=0.50269 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0241-0815_S_2001_07_05_pus\_map.gif/vgif"
! Attempting to open device: 'J0241-0815_S_2001_07_05_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0241-0815_S_2001_07_05_pus_uvs.log closed on Sun Aug 12 17:21:06 2007