! Started logfile: J0241-0815_S_2001_10_29_pus_uvs.log on Wed Feb 27 15:13:31 2008
obs J0241-0815_S_2001_10_29_pus_uva.fits
! Reading UV FITS file: J0241-0815_S_2001_10_29_pus_uva.fits
! AN table 1: 151 integrations on 153 of 153 possible baselines.
! AN table 2: 32 integrations on 153 of 153 possible baselines.
! AN table 3: 58 integrations on 153 of 153 possible baselines.
! AN table 4: 34 integrations on 153 of 153 possible baselines.
! AN table 5: 12 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.0586413 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0241-0815
! 
! 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 2604 lines of history.
! 
! Reading 10300 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 
![@muppet J0241-0815_S_2001_10_29_pus]
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 2369 telescope corrections were flagged in sub-array 1.
!  A total of 429 telescope corrections were flagged in sub-array 2.
!  A total of 761 telescope corrections were flagged in sub-array 3.
!  A total of 582 telescope corrections were flagged in sub-array 4.
!  A total of 216 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 2369 telescope corrections were flagged in sub-array 1.
!  A total of 429 telescope corrections were flagged in sub-array 2.
!  A total of 761 telescope corrections were flagged in sub-array 3.
!  A total of 582 telescope corrections were flagged in sub-array 4.
!  A total of 216 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 2369 telescope corrections were flagged in sub-array 1.
!  A total of 429 telescope corrections were flagged in sub-array 2.
!  A total of 761 telescope corrections were flagged in sub-array 3.
!  A total of 582 telescope corrections were flagged in sub-array 4.
!  A total of 216 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 2577 telescope corrections were flagged in sub-array 1.
!  A total of 452 telescope corrections were flagged in sub-array 2.
!  A total of 761 telescope corrections were flagged in sub-array 3.
!  A total of 582 telescope corrections were flagged in sub-array 4.
!  A total of 216 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.854170Jy  sigma=0.006641
! Fit after  self-cal, rms=0.612376Jy  sigma=0.004832
! 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.081 mas, bmaj=5.813 mas, bpa=-2.234 degrees
! Estimated noise=1311.99 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.380879 Jy
! Component: 100  -  total flux cleaned = 0.551532 Jy
! Total flux subtracted in 100 components = 0.551532 Jy
! Clean residual min=-0.039309 max=0.106264 Jy/beam
! Clean residual mean=0.001940 rms=0.014786 Jy/beam
! Combined flux in latest and established models = 0.551532 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 16 components and 0.551532 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.387945Jy  sigma=0.002931
! Fit after  self-cal, rms=0.386813Jy  sigma=0.002924
! Inverting map 
! Added new window around map position (3.5, 2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.117686 Jy
! Component: 100  -  total flux cleaned = 0.198851 Jy
! Total flux subtracted in 100 components = 0.198851 Jy
! Clean residual min=-0.026363 max=0.080693 Jy/beam
! Clean residual mean=0.001422 rms=0.010697 Jy/beam
! Combined flux in latest and established models = 0.750383 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 28 components and 0.750383 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.307918Jy  sigma=0.002281
! Fit after  self-cal, rms=0.305467Jy  sigma=0.002260
! Inverting map 
! Added new window around map position (6.5, 3.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0766431 Jy
! Component: 100  -  total flux cleaned = 0.127777 Jy
! Total flux subtracted in 100 components = 0.127777 Jy
! Clean residual min=-0.021542 max=0.067431 Jy/beam
! Clean residual mean=0.001103 rms=0.008286 Jy/beam
! Combined flux in latest and established models = 0.87816 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 42 components and 0.87816 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266494Jy  sigma=0.001942
! Fit after  self-cal, rms=0.264961Jy  sigma=0.001927
! Inverting map 
! Added new window around map position (-5.5, -2.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0583675 Jy
! Component: 100  -  total flux cleaned = 0.097951 Jy
! Total flux subtracted in 100 components = 0.097951 Jy
! Clean residual min=-0.018206 max=0.035279 Jy/beam
! Clean residual mean=0.000856 rms=0.006500 Jy/beam
! Combined flux in latest and established models = 0.976111 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 59 components and 0.976111 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.240119Jy  sigma=0.001716
! Fit after  self-cal, rms=0.239743Jy  sigma=0.001712
! 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.438 mas, bmaj=6.347 mas, bpa=-4.183 degrees
! Estimated noise=938.428 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.0600713 Jy
! Component: 100  -  total flux cleaned = 0.100046 Jy
! Component: 150  -  total flux cleaned = 0.128283 Jy
! Component: 200  -  total flux cleaned = 0.148702 Jy
! Total flux subtracted in 200 components = 0.148702 Jy
! Clean residual min=-0.016493 max=0.036109 Jy/beam
! Clean residual mean=0.001849 rms=0.005849 Jy/beam
! Combined flux in latest and established models = 1.12481 Jy
! Performing phase self-cal
! Adding 62 model components to the UV plane model.
! The established model now contains 109 components and 1.12481 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220582Jy  sigma=0.001552
! Fit after  self-cal, rms=0.220273Jy  sigma=0.001550
! Inverting map 
! Added new window around map position (-21, -8.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0302983 Jy
! Component: 100  -  total flux cleaned = 0.0464585 Jy
! Component: 150  -  total flux cleaned = 0.0590512 Jy
! Component: 200  -  total flux cleaned = 0.069248 Jy
! Total flux subtracted in 200 components = 0.069248 Jy
! Clean residual min=-0.013911 max=0.018817 Jy/beam
! Clean residual mean=0.001029 rms=0.004632 Jy/beam
! Combined flux in latest and established models = 1.19406 Jy
! Performing phase self-cal
! Adding 52 model components to the UV plane model.
! The established model now contains 149 components and 1.19406 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.216033Jy  sigma=0.001505
! Fit after  self-cal, rms=0.215724Jy  sigma=0.001503
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 120 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        1.03     
!   HN        1.00*    KK        1.03     KP        1.11     LA        0.96     
!   MA        1.33     MC        0.97     MK        0.97     NL        1.01     
!   OV        0.91     PT        0.97     SC        1.00*    TS        1.83     
!   WF        1.00*    WZ        0.95     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.96     KK        1.00*    KP        0.77     LA        1.03     
!   MA        1.00*    MC        1.24     MK        1.00*    NL        0.98     
!   OV        1.07     PT        1.07     SC        0.95     TS        1.00*    
!   WF        1.03     WZ        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.92     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.01     KP        0.73     LA        1.02     
!   MA        1.00*    MC        1.00*    MK        1.00     NL        0.95     
!   OV        1.00     PT        0.99     SC        0.98     TS        1.00*    
!   WF        0.95     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 120 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.07     FD        1.00*    GG        1.00*    HH        0.93     
!   HN        1.00*    KK        1.02     KP        0.67     LA        0.91     
!   MA        1.37     MC        0.94     MK        0.96     NL        1.03     
!   OV        0.94     PT        0.93     SC        1.00*    TS        1.02     
!   WF        1.00*    WZ        1.00     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.09     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.03     KK        1.00*    KP        0.87     LA        1.04     
!   MA        1.00*    MC        1.25     MK        1.00*    NL        0.97     
!   OV        1.14     PT        1.04     SC        0.97     TS        1.00*    
!   WF        0.93     WZ        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.02     KK        0.99     KP        1.01     LA        0.97     
!   MA        1.00*    MC        1.00*    MK        1.08     NL        0.97     
!   OV        1.00     PT        1.00     SC        1.01     TS        1.00*    
!   WF        0.97     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 120 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.08     FD        1.00*    GG        1.00*    HH        1.06     
!   HN        1.00*    KK        0.96     KP        1.00     LA        0.94     
!   MA        0.95     MC        0.96     MK        0.97     NL        1.03     
!   OV        1.00     PT        0.96     SC        1.00*    TS        1.13     
!   WF        1.00*    WZ        0.98     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.12     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.07     KK        1.00*    KP        1.14     LA        1.06     
!   MA        1.00*    MC        1.25     MK        1.00*    NL        1.07     
!   OV        1.31     PT        1.17     SC        1.02     TS        1.00*    
!   WF        0.99     WZ        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.05     KK        1.07     KP        0.95     LA        1.01     
!   MA        1.00*    MC        1.00*    MK        0.95     NL        0.98     
!   OV        1.07     PT        1.02     SC        1.02     TS        1.00*    
!   WF        0.97     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   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        1.05     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.03     KP        0.97     LA        0.96     
!   MA        1.00*    MC        1.00*    MK        0.98     NL        1.08     
!   OV        0.96     PT        0.97     SC        1.00*    TS        1.07     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.12     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.00*    KP        0.89     LA        1.07     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.06     
!   OV        1.09     PT        1.00     SC        0.98     TS        1.00*    
!   WF        1.04     WZ        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.03     KK        0.99     KP        0.92     LA        1.06     
!   MA        1.00*    MC        1.00*    MK        1.02     NL        1.01     
!   OV        1.04     PT        1.02     SC        1.01     TS        1.00*    
!   WF        0.98     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Fit before self-cal, rms=0.215724Jy  sigma=0.001503
! Fit after  self-cal, rms=0.190932Jy  sigma=0.001286
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.496 mas, bmaj=6.959 mas, bpa=-4.902 degrees
! Estimated noise=963.548 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.0124102 Jy
! Component: 100  -  total flux cleaned = 0.0184886 Jy
! Component: 150  -  total flux cleaned = 0.0213522 Jy
! Component: 200  -  total flux cleaned = 0.0230495 Jy
! Total flux subtracted in 200 components = 0.0230495 Jy
! Clean residual min=-0.005972 max=0.006247 Jy/beam
! Clean residual mean=0.000315 rms=0.001654 Jy/beam
! Combined flux in latest and established models = 1.21711 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 178 components and 1.21711 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.190144Jy  sigma=0.001277
! Fit after  self-cal, rms=0.190463Jy  sigma=0.001276
! 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.190463Jy  sigma=0.001276
! Fit after  self-cal, rms=0.191684Jy  sigma=0.001276
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.5 mas, bmaj=6.97 mas, bpa=-4.86 degrees
! Estimated noise=965.192 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00292406 Jy
! Component: 100  -  total flux cleaned = 0.00392669 Jy
! Component: 150  -  total flux cleaned = 0.0051952 Jy
! Component: 200  -  total flux cleaned = 0.00622346 Jy
! Total flux subtracted in 200 components = 0.00622346 Jy
! Clean residual min=-0.005190 max=0.005654 Jy/beam
! Clean residual mean=0.000363 rms=0.001480 Jy/beam
! Combined flux in latest and established models = 1.22333 Jy
selfcal
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 190 components and 1.22333 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.191493Jy  sigma=0.001274
! Fit after  self-cal, rms=0.191519Jy  sigma=0.001274
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.00103028 Jy
! Component: 100  -  total flux cleaned = 0.00184128 Jy
! Component: 150  -  total flux cleaned = 0.00249262 Jy
! Component: 200  -  total flux cleaned = 0.00292883 Jy
! Total flux subtracted in 200 components = 0.00292883 Jy
! Clean residual min=-0.005013 max=0.005364 Jy/beam
! Clean residual mean=0.000328 rms=0.001433 Jy/beam
! Combined flux in latest and established models = 1.22626 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 196 components and 1.22626 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.191432Jy  sigma=0.001273
! Fit after  self-cal, rms=0.191428Jy  sigma=0.001273
! 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.191428Jy  sigma=0.001273
! Fit after  self-cal, rms=0.192131Jy  sigma=0.001273
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.504 mas, bmaj=6.984 mas, bpa=-4.857 degrees
! Estimated noise=967.289 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00020713 Jy
! Component: 100  -  total flux cleaned = 0.000938498 Jy
! Component: 150  -  total flux cleaned = 0.001441 Jy
! Component: 200  -  total flux cleaned = 0.00190355 Jy
! Total flux subtracted in 200 components = 0.00190355 Jy
! Clean residual min=-0.004756 max=0.005494 Jy/beam
! Clean residual mean=0.000354 rms=0.001384 Jy/beam
! Combined flux in latest and established models = 1.22817 Jy
selfcal
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 207 components and 1.22817 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.192058Jy  sigma=0.001272
! Fit after  self-cal, rms=0.192063Jy  sigma=0.001272
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.000375919 Jy
! Component: 100  -  total flux cleaned = 0.000732886 Jy
! Component: 150  -  total flux cleaned = 0.00106981 Jy
! Component: 200  -  total flux cleaned = 0.00138656 Jy
! Total flux subtracted in 200 components = 0.00138656 Jy
! Clean residual min=-0.004623 max=0.005432 Jy/beam
! Clean residual mean=0.000337 rms=0.001363 Jy/beam
! Combined flux in latest and established models = 1.22955 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 212 components and 1.22955 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.192017Jy  sigma=0.001272
! Fit after  self-cal, rms=0.192016Jy  sigma=0.001272
! 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.192016Jy  sigma=0.001272
! Fit after  self-cal, rms=0.192560Jy  sigma=0.001271
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.422 mas, bmaj=13.94 mas, bpa=-3.08 degrees
! Estimated noise=1311.8 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00374595 Jy
! Component: 100  -  total flux cleaned = 0.00542366 Jy
! Component: 150  -  total flux cleaned = 0.00633156 Jy
! Component: 200  -  total flux cleaned = 0.00695222 Jy
! Total flux subtracted in 200 components = 0.00695222 Jy
! Clean residual min=-0.005805 max=0.006957 Jy/beam
! Clean residual mean=0.000695 rms=0.001952 Jy/beam
! Combined flux in latest and established models = 1.2365 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 219 components and 1.2365 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.192557Jy  sigma=0.001271
! Fit after  self-cal, rms=0.192550Jy  sigma=0.001271
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.000554167 Jy
! Component: 100  -  total flux cleaned = 0.00098019 Jy
! Component: 150  -  total flux cleaned = 0.00125031 Jy
! Component: 200  -  total flux cleaned = 0.00132876 Jy
! Total flux subtracted in 200 components = 0.00132876 Jy
! Clean residual min=-0.005717 max=0.006750 Jy/beam
! Clean residual mean=0.000659 rms=0.001913 Jy/beam
! Combined flux in latest and established models = 1.23783 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 226 components and 1.23783 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.192561Jy  sigma=0.001271
! Fit after  self-cal, rms=0.192558Jy  sigma=0.001271
! 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.506 mas, bmaj=6.994 mas, bpa=-4.856 degrees
! Estimated noise=968.611 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.506 x 6.994 at -4.856 degrees (North through East)
! Clean map  min=-0.0044433  max=0.47547 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
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.176 mas, bmaj=5.832 mas, bpa=-3.521 degrees
! Estimated noise=1404.98 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.39183 Jy
! Component: 100  -  total flux cleaned = 0.574585 Jy
! Component: 150  -  total flux cleaned = 0.699142 Jy
! Component: 200  -  total flux cleaned = 0.79068 Jy
! Total flux subtracted in 200 components = 0.79068 Jy
! Clean residual min=-0.024772 max=0.053147 Jy/beam
! Clean residual mean=0.001319 rms=0.009122 Jy/beam
! Combined flux in latest and established models = 0.79068 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 28 model components to the UV plane model.
! The established model now contains 28 components and 0.79068 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.506 mas, bmaj=6.994 mas, bpa=-4.856 degrees
! Estimated noise=968.611 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.112356 Jy
! Component: 100  -  total flux cleaned = 0.186132 Jy
! Component: 150  -  total flux cleaned = 0.239462 Jy
! Component: 200  -  total flux cleaned = 0.279686 Jy
! Total flux subtracted in 200 components = 0.279686 Jy
! Clean residual min=-0.010296 max=0.029016 Jy/beam
! Clean residual mean=0.002333 rms=0.005386 Jy/beam
! Combined flux in latest and established models = 1.07037 Jy
! Adding 52 model components to the UV plane model.
! The established model now contains 71 components and 1.07037 Jy
! Inverting map 
! Added new window around map position (-3, 0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0321501 Jy
! Component: 100  -  total flux cleaned = 0.0563015 Jy
! Component: 150  -  total flux cleaned = 0.0752215 Jy
! Component: 200  -  total flux cleaned = 0.0904537 Jy
! Total flux subtracted in 200 components = 0.0904537 Jy
! Clean residual min=-0.006441 max=0.010839 Jy/beam
! Clean residual mean=0.001214 rms=0.002607 Jy/beam
! Combined flux in latest and established models = 1.16082 Jy
! Adding 60 model components to the UV plane model.
! The established model now contains 120 components and 1.16082 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.422 mas, bmaj=13.94 mas, bpa=-3.08 degrees
! Estimated noise=1311.8 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.02435 Jy
! Component: 100  -  total flux cleaned = 0.0403184 Jy
! Component: 150  -  total flux cleaned = 0.0512798 Jy
! Component: 200  -  total flux cleaned = 0.0589435 Jy
! Total flux subtracted in 200 components = 0.0589435 Jy
! Clean residual min=-0.005843 max=0.007857 Jy/beam
! Clean residual mean=0.001207 rms=0.002290 Jy/beam
! Combined flux in latest and established models = 1.21976 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.00550719 Jy
! Component: 100  -  total flux cleaned = 0.00958519 Jy
! Component: 150  -  total flux cleaned = 0.0126275 Jy
! Component: 200  -  total flux cleaned = 0.0149071 Jy
! Total flux subtracted in 200 components = 0.0149071 Jy
! Clean residual min=-0.005402 max=0.006961 Jy/beam
! Clean residual mean=0.000748 rms=0.001907 Jy/beam
! Combined flux in latest and established models = 1.23467 Jy
! Adding 119 model components to the UV plane model.
! The established model now contains 219 components and 1.23467 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.506 mas, bmaj=6.994 mas, bpa=-4.856 degrees
! Estimated noise=968.611 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000968878 Jy
! Component: 100  -  total flux cleaned = -0.000301494 Jy
! Component: 150  -  total flux cleaned = -0.000189355 Jy
! Component: 200  -  total flux cleaned = -0.000189978 Jy
! Total flux subtracted in 200 components = -0.000189978 Jy
! Clean residual min=-0.004901 max=0.005886 Jy/beam
! Clean residual mean=0.000307 rms=0.001349 Jy/beam
! Combined flux in latest and established models = 1.23448 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 236 components and 1.23448 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.192722Jy  sigma=0.001272
! Fit after  self-cal, rms=0.192659Jy  sigma=0.001271
wmodel J0241-0815_S_2001_10_29_pus_map.mod
! Writing 236 model components to file: J0241-0815_S_2001_10_29_pus_map.mod
wobs J0241-0815_S_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J0241-0815_S_2001_10_29_pus_uvs.fits
wwins J0241-0815_S_2001_10_29_pus_map.win
! wwins: Wrote 6 windows to J0241-0815_S_2001_10_29_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00251246 Jy
! Component: 100  -  total flux cleaned = 0.00392621 Jy
! Component: 150  -  total flux cleaned = 0.00474962 Jy
! Component: 200  -  total flux cleaned = 0.00529326 Jy
! Component: 250  -  total flux cleaned = 0.0058121 Jy
! Component: 300  -  total flux cleaned = 0.00624199 Jy
! Component: 350  -  total flux cleaned = 0.00672742 Jy
! Component: 400  -  total flux cleaned = 0.00719801 Jy
! Component: 450  -  total flux cleaned = 0.00778932 Jy
! Component: 500  -  total flux cleaned = 0.00836434 Jy
! Component: 550  -  total flux cleaned = 0.00861407 Jy
! Component: 600  -  total flux cleaned = 0.00916583 Jy
! Component: 650  -  total flux cleaned = 0.00946595 Jy
! Component: 700  -  total flux cleaned = 0.00982094 Jy
! Component: 750  -  total flux cleaned = 0.0102278 Jy
! Component: 800  -  total flux cleaned = 0.0105139 Jy
! Component: 850  -  total flux cleaned = 0.0108518 Jy
! Component: 900  -  total flux cleaned = 0.0111837 Jy
! Component: 950  -  total flux cleaned = 0.0113477 Jy
! Component: 1000  -  total flux cleaned = 0.0117776 Jy
! Component: 1050  -  total flux cleaned = 0.0120416 Jy
! Component: 1100  -  total flux cleaned = 0.0122501 Jy
! Component: 1150  -  total flux cleaned = 0.0124047 Jy
! Component: 1200  -  total flux cleaned = 0.0125575 Jy
! Component: 1250  -  total flux cleaned = 0.0127586 Jy
! Component: 1300  -  total flux cleaned = 0.0130064 Jy
! Component: 1350  -  total flux cleaned = 0.0132024 Jy
! Component: 1400  -  total flux cleaned = 0.0134448 Jy
! Component: 1450  -  total flux cleaned = 0.0136353 Jy
! Component: 1500  -  total flux cleaned = 0.0138712 Jy
! Component: 1550  -  total flux cleaned = 0.014058 Jy
! Component: 1600  -  total flux cleaned = 0.0142889 Jy
! Component: 1650  -  total flux cleaned = 0.0144255 Jy
! Component: 1700  -  total flux cleaned = 0.0146059 Jy
! Component: 1750  -  total flux cleaned = 0.0147396 Jy
! Component: 1800  -  total flux cleaned = 0.015004 Jy
! Component: 1850  -  total flux cleaned = 0.0150036 Jy
! Component: 1900  -  total flux cleaned = 0.0151335 Jy
! Component: 1950  -  total flux cleaned = 0.0153051 Jy
! Component: 2000  -  total flux cleaned = 0.0154324 Jy
! Total flux subtracted in 2048 components = 0.0155165 Jy
! Clean residual min=-0.002658 max=0.003298 Jy/beam
! Clean residual mean=0.000107 rms=0.000817 Jy/beam
! Combined flux in latest and established models = 1.25 Jy
keep
! Adding 135 model components to the UV plane model.
! The established model now contains 371 components and 1.25 Jy
![Exited script file: muppet]
wmap "J0241-0815_S_2001_10_29_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.506 x 6.994 at -4.856 degrees (North through East)
! Clean map  min=-0.003818  max=0.47576 Jy/beam
! Writing clean map to FITS file: J0241-0815_S_2001_10_29_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.475758 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000815007 
device "J0241-0815_S_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J0241-0815_S_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.513921 0.513921 1.02784 2.05569 4.11137 8.22274 16.4455 32.891 65.7819
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0024 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.475 
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.506 x 6.994 at -4.856 degrees (North through East)
! Clean map  min=-0.003818  max=0.47576 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0241-0815_S_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J0241-0815_S_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0241-0815_S_2001_10_29_pus_uvs.log closed on Wed Feb 27 15:13:41 2008