! Started logfile: J0501-0159_X_2000_12_04_pus_uvs.log on Fri Oct 12 15:15:12 2007
obs J0501-0159_X_2000_12_04_pus_uva.fits
! Reading UV FITS file: J0501-0159_X_2000_12_04_pus_uva.fits
! AN table 1: 15 integrations on 190 of 190 possible baselines.
! AN table 2: 28 integrations on 190 of 190 possible baselines.
! AN table 3: 118 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.205884 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0501-0159
! 
! 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 2126 lines of history.
! 
! Reading 25192 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 
![@muppet J0501-0159_X_2000_12_04_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 = 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 267 telescope corrections were flagged in sub-array 1.
!  A total of 466 telescope corrections were flagged in sub-array 2.
!  A total of 1279 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 267 telescope corrections were flagged in sub-array 1.
!  A total of 466 telescope corrections were flagged in sub-array 2.
!  A total of 1279 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 267 telescope corrections were flagged in sub-array 1.
!  A total of 466 telescope corrections were flagged in sub-array 2.
!  A total of 1279 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 267 telescope corrections were flagged in sub-array 1.
!  A total of 466 telescope corrections were flagged in sub-array 2.
!  A total of 1279 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.662423Jy  sigma=0.005919
! Fit after  self-cal, rms=0.527313Jy  sigma=0.004772
! 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 8.35% of the data.
!  The x-axis pixel size should ideally be below 0.1643 milli-arcsec
! Estimated beam: bmin=0.5013 mas, bmaj=1.359 mas, bpa=1.624 degrees
! Estimated noise=1064.57 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.397649 Jy
! Component: 100  -  total flux cleaned = 0.484701 Jy
! Total flux subtracted in 100 components = 0.484701 Jy
! Clean residual min=-0.017525 max=0.034040 Jy/beam
! Clean residual mean=0.000483 rms=0.005251 Jy/beam
! Combined flux in latest and established models = 0.484701 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 0.484701 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.214107Jy  sigma=0.001630
! Fit after  self-cal, rms=0.214111Jy  sigma=0.001630
! Inverting map 
! Your choice of large map pixels excluded 8.35% of the data.
!  The x-axis pixel size should ideally be below 0.1643 milli-arcsec
! Added new window around map position (-1.2, 0.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0351457 Jy
! Component: 100  -  total flux cleaned = 0.0574127 Jy
! Total flux subtracted in 100 components = 0.0574127 Jy
! Clean residual min=-0.012793 max=0.020518 Jy/beam
! Clean residual mean=0.000448 rms=0.004048 Jy/beam
! Combined flux in latest and established models = 0.542113 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 11 components and 0.542113 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206090Jy  sigma=0.001495
! Fit after  self-cal, rms=0.205755Jy  sigma=0.001493
! Inverting map 
! Your choice of large map pixels excluded 8.35% of the data.
!  The x-axis pixel size should ideally be below 0.1643 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 8.35% of the data.
!  The x-axis pixel size should ideally be below 0.1643 milli-arcsec
! Estimated beam: bmin=0.5977 mas, bmaj=2.05 mas, bpa=-3.076 degrees
! Estimated noise=499.599 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.0317922 Jy
! Component: 100  -  total flux cleaned = 0.0504278 Jy
! Component: 150  -  total flux cleaned = 0.0624929 Jy
! Component: 200  -  total flux cleaned = 0.0703511 Jy
! Total flux subtracted in 200 components = 0.0703511 Jy
! Clean residual min=-0.007700 max=0.027726 Jy/beam
! Clean residual mean=0.001434 rms=0.004432 Jy/beam
! Combined flux in latest and established models = 0.612465 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 26 components and 0.612465 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.202089Jy  sigma=0.001419
! Fit after  self-cal, rms=0.201808Jy  sigma=0.001417
! Inverting map 
! Your choice of large map pixels excluded 8.35% of the data.
!  The x-axis pixel size should ideally be below 0.1643 milli-arcsec
! Added new window around map position (-4, 3.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0275122 Jy
! Component: 100  -  total flux cleaned = 0.042544 Jy
! Component: 150  -  total flux cleaned = 0.0518392 Jy
! Component: 200  -  total flux cleaned = 0.0581419 Jy
! Total flux subtracted in 200 components = 0.0581419 Jy
! Clean residual min=-0.004800 max=0.009229 Jy/beam
! Clean residual mean=0.000689 rms=0.001994 Jy/beam
! Combined flux in latest and established models = 0.670606 Jy
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 60 components and 0.670606 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.198601Jy  sigma=0.001364
! Fit after  self-cal, rms=0.198310Jy  sigma=0.001361
! Inverting map 
! Your choice of large map pixels excluded 8.35% of the data.
!  The x-axis pixel size should ideally be below 0.1643 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        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*    MA        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*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        1.00*    GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.02     
!   LA        1.02     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        1.00*    NY        1.00*    OV        1.03     PT        0.98     
!   SC        1.00*    TS        0.94     WF        1.00*    WZ        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.05     HN        0.99     KK        1.00*    KP        0.98     
!   LA        0.99     MA        1.04     MC        1.01     MK        1.00*    
!   NL        1.05     NY        1.00*    OV        1.01     PT        0.99     
!   SC        1.03     TS        1.00*    WF        1.00     WZ        0.99     
! 
! 
! Correcting IF 2.
!  A total of 33 telescope corrections were flagged in sub-array 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*    MA        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*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        1.00*    GC        0.91     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.00     
!   LA        1.05     MA        1.00*    MC        1.00*    MK        0.99     
!   NL        1.00*    NY        1.00*    OV        1.00     PT        1.00     
!   SC        1.00*    TS        0.95     WF        1.00*    WZ        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.00     GC        1.00*    GG        1.00*    
!   HH        0.94     HN        1.00     KK        1.00*    KP        0.99     
!   LA        0.98     MA        1.05     MC        1.03     MK        1.00*    
!   NL        0.99     NY        1.00*    OV        1.01     PT        0.99     
!   SC        1.01     TS        1.00*    WF        0.99     WZ        0.97     
! 
! 
! Correcting IF 3.
!  A total of 33 telescope corrections were flagged in sub-array 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*    MA        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*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.00*    GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.00     
!   LA        1.06     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        1.00*    NY        1.00*    OV        0.94     PT        0.97     
!   SC        1.00*    TS        0.97     WF        1.00*    WZ        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.04     GC        1.00*    GG        1.00*    
!   HH        0.96     HN        1.00     KK        1.00*    KP        0.97     
!   LA        1.00     MA        1.09     MC        1.05     MK        1.00*    
!   NL        0.98     NY        1.00*    OV        0.98     PT        0.96     
!   SC        1.03     TS        1.00*    WF        0.99     WZ        1.00     
! 
! 
! Correcting IF 4.
!  A total of 33 telescope corrections were flagged in sub-array 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*    MA        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*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.00*    GC        0.95     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.02     
!   LA        1.01     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        1.00*    NY        1.00*    OV        1.02     PT        1.00     
!   SC        1.00*    TS        0.99     WF        1.00*    WZ        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.03     GC        1.00*    GG        1.00*    
!   HH        0.92     HN        0.96     KK        1.00*    KP        0.98     
!   LA        0.99     MA        1.08     MC        1.09     MK        1.00*    
!   NL        0.99     NY        1.00*    OV        1.00     PT        0.95     
!   SC        1.01     TS        1.00*    WF        1.00     WZ        1.01     
! 
! 
! Fit before self-cal, rms=0.198310Jy  sigma=0.001361
! Fit after  self-cal, rms=0.197479Jy  sigma=0.001350
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 8.45% of the data.
!  The x-axis pixel size should ideally be below 0.1643 milli-arcsec
! Estimated beam: bmin=0.6017 mas, bmaj=2.1 mas, bpa=-3.346 degrees
! Estimated noise=499.356 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.00251393 Jy
! Component: 100  -  total flux cleaned = 0.00436214 Jy
! Component: 150  -  total flux cleaned = 0.00528155 Jy
! Component: 200  -  total flux cleaned = 0.00576426 Jy
! Total flux subtracted in 200 components = 0.00576426 Jy
! Clean residual min=-0.003330 max=0.005297 Jy/beam
! Clean residual mean=0.000442 rms=0.001297 Jy/beam
! Combined flux in latest and established models = 0.676371 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 80 components and 0.676371 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.197330Jy  sigma=0.001348
! Fit after  self-cal, rms=0.197341Jy  sigma=0.001348
! Inverting map 
! Your choice of large map pixels excluded 8.45% of the data.
!  The x-axis pixel size should ideally be below 0.1643 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.197341Jy  sigma=0.001348
! Fit after  self-cal, rms=0.197671Jy  sigma=0.001348
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 8.45% of the data.
!  The x-axis pixel size should ideally be below 0.1643 milli-arcsec
! Estimated beam: bmin=0.6023 mas, bmaj=2.103 mas, bpa=-3.351 degrees
! Estimated noise=498.891 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000507442 Jy
! Component: 100  -  total flux cleaned = 0.000975011 Jy
! Component: 150  -  total flux cleaned = 0.00138056 Jy
! Component: 200  -  total flux cleaned = 0.00159382 Jy
! Total flux subtracted in 200 components = 0.00159382 Jy
! Clean residual min=-0.003296 max=0.004770 Jy/beam
! Clean residual mean=0.000406 rms=0.001234 Jy/beam
! Combined flux in latest and established models = 0.677964 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 85 components and 0.677964 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.197626Jy  sigma=0.001347
! Fit after  self-cal, rms=0.197620Jy  sigma=0.001347
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 8.45% of the data.
!  The x-axis pixel size should ideally be below 0.1643 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.000870992 Jy
! Component: 100  -  total flux cleaned = 0.00107036 Jy
! Component: 150  -  total flux cleaned = 0.00130594 Jy
! Component: 200  -  total flux cleaned = 0.00151844 Jy
! Total flux subtracted in 200 components = 0.00151844 Jy
! Clean residual min=-0.003292 max=0.004506 Jy/beam
! Clean residual mean=0.000387 rms=0.001208 Jy/beam
! Combined flux in latest and established models = 0.679483 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 91 components and 0.679483 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.197608Jy  sigma=0.001347
! Fit after  self-cal, rms=0.197605Jy  sigma=0.001347
! Inverting map 
! Your choice of large map pixels excluded 8.45% of the data.
!  The x-axis pixel size should ideally be below 0.1643 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.197605Jy  sigma=0.001347
! Fit after  self-cal, rms=0.198447Jy  sigma=0.001346
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 8.45% of the data.
!  The x-axis pixel size should ideally be below 0.1643 milli-arcsec
! Estimated beam: bmin=0.6031 mas, bmaj=2.106 mas, bpa=-3.357 degrees
! Estimated noise=499.067 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000205501 Jy
! Component: 100  -  total flux cleaned = 0.000450755 Jy
! Component: 150  -  total flux cleaned = 0.000611964 Jy
! Component: 200  -  total flux cleaned = 0.000760723 Jy
! Total flux subtracted in 200 components = 0.000760723 Jy
! Clean residual min=-0.003333 max=0.004439 Jy/beam
! Clean residual mean=0.000352 rms=0.001196 Jy/beam
! Combined flux in latest and established models = 0.680244 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 93 components and 0.680244 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.198439Jy  sigma=0.001346
! Fit after  self-cal, rms=0.198440Jy  sigma=0.001346
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 8.45% of the data.
!  The x-axis pixel size should ideally be below 0.1643 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.00057628 Jy
! Component: 100  -  total flux cleaned = 0.000811483 Jy
! Component: 150  -  total flux cleaned = 0.000897955 Jy
! Component: 200  -  total flux cleaned = 0.000938379 Jy
! Total flux subtracted in 200 components = 0.000938379 Jy
! Clean residual min=-0.003306 max=0.004182 Jy/beam
! Clean residual mean=0.000343 rms=0.001183 Jy/beam
! Combined flux in latest and established models = 0.681182 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 96 components and 0.681182 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.198439Jy  sigma=0.001346
! Fit after  self-cal, rms=0.198436Jy  sigma=0.001346
! Inverting map 
! Your choice of large map pixels excluded 8.45% of the data.
!  The x-axis pixel size should ideally be below 0.1643 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.198436Jy  sigma=0.001346
! Fit after  self-cal, rms=0.199139Jy  sigma=0.001346
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 8.45% of the data.
!  The x-axis pixel size should ideally be below 0.1643 milli-arcsec
! Estimated beam: bmin=2.225 mas, bmaj=3.497 mas, bpa=-13.54 degrees
! Estimated noise=647.511 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00263151 Jy
! Component: 100  -  total flux cleaned = 0.00277897 Jy
! Component: 150  -  total flux cleaned = 0.00277527 Jy
! Component: 200  -  total flux cleaned = 0.0028758 Jy
! Total flux subtracted in 200 components = 0.0028758 Jy
! Clean residual min=-0.003209 max=0.006799 Jy/beam
! Clean residual mean=0.000733 rms=0.001902 Jy/beam
! Combined flux in latest and established models = 0.684058 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 103 components and 0.684058 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.199195Jy  sigma=0.001346
! Fit after  self-cal, rms=0.199194Jy  sigma=0.001346
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 8.45% of the data.
!  The x-axis pixel size should ideally be below 0.1643 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.000527613 Jy
! Component: 100  -  total flux cleaned = 0.000626003 Jy
! Component: 150  -  total flux cleaned = 0.000671567 Jy
! Component: 200  -  total flux cleaned = 0.000671357 Jy
! Total flux subtracted in 200 components = 0.000671357 Jy
! Clean residual min=-0.003195 max=0.006753 Jy/beam
! Clean residual mean=0.000711 rms=0.001878 Jy/beam
! Combined flux in latest and established models = 0.684729 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 108 components and 0.684729 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.199228Jy  sigma=0.001346
! Fit after  self-cal, rms=0.199228Jy  sigma=0.001346
! Inverting map 
! Your choice of large map pixels excluded 8.45% of the data.
!  The x-axis pixel size should ideally be below 0.1643 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 8.45% of the data.
!  The x-axis pixel size should ideally be below 0.1643 milli-arcsec
! Estimated beam: bmin=0.6037 mas, bmaj=2.108 mas, bpa=-3.364 degrees
! Estimated noise=499.407 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6037 x 2.108 at -3.364 degrees (North through East)
! Clean map  min=-0.0027373  max=0.50944 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.199228Jy  sigma=0.001346
! Fit after  self-cal, rms=0.227720Jy  sigma=0.001280
! Inverting map and beam 
! Your choice of large map pixels excluded 8.45% of the data.
!  The x-axis pixel size should ideally be below 0.1643 milli-arcsec
! Estimated beam: bmin=0.6035 mas, bmaj=2.109 mas, bpa=-3.377 degrees
! Estimated noise=499.604 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000314815 Jy
! Component: 100  -  total flux cleaned = -0.000185179 Jy
! Component: 150  -  total flux cleaned = -0.000196328 Jy
! Component: 200  -  total flux cleaned = -0.000107186 Jy
! Total flux subtracted in 200 components = -0.000107186 Jy
! Clean residual min=-0.003369 max=0.004083 Jy/beam
! Clean residual mean=0.000275 rms=0.001155 Jy/beam
! Combined flux in latest and established models = 0.684622 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 114 components and 0.684622 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227678Jy  sigma=0.001280
! Fit after  self-cal, rms=0.227686Jy  sigma=0.001280
! Inverting map 
! Your choice of large map pixels excluded 8.45% of the data.
!  The x-axis pixel size should ideally be below 0.1643 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000143142 Jy
! Component: 100  -  total flux cleaned = 9.9479e-05 Jy
! Component: 150  -  total flux cleaned = 0.000100396 Jy
! Component: 200  -  total flux cleaned = 0.000137256 Jy
! Total flux subtracted in 200 components = 0.000137256 Jy
! Clean residual min=-0.003320 max=0.003862 Jy/beam
! Clean residual mean=0.000277 rms=0.001147 Jy/beam
! Combined flux in latest and established models = 0.68476 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 119 components and 0.684759 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227671Jy  sigma=0.001280
! Fit after  self-cal, rms=0.227674Jy  sigma=0.001280
! Inverting map 
! Your choice of large map pixels excluded 8.45% of the data.
!  The x-axis pixel size should ideally be below 0.1643 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.227674Jy  sigma=0.001280
! Fit after  self-cal, rms=0.281173Jy  sigma=0.001280
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 8.45% of the data.
!  The x-axis pixel size should ideally be below 0.1643 milli-arcsec
! Estimated beam: bmin=0.5042 mas, bmaj=1.342 mas, bpa=1.202 degrees
! Estimated noise=1096.78 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.39962 Jy
! Component: 100  -  total flux cleaned = 0.488144 Jy
! Component: 150  -  total flux cleaned = 0.524872 Jy
! Component: 200  -  total flux cleaned = 0.549829 Jy
! Total flux subtracted in 200 components = 0.549829 Jy
! Clean residual min=-0.010157 max=0.016697 Jy/beam
! Clean residual mean=0.000413 rms=0.003399 Jy/beam
! Combined flux in latest and established models = 0.549829 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 16 model components to the UV plane model.
! The established model now contains 16 components and 0.549829 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 8.45% of the data.
!  The x-axis pixel size should ideally be below 0.1643 milli-arcsec
! Estimated beam: bmin=0.6042 mas, bmaj=2.109 mas, bpa=-3.375 degrees
! Estimated noise=500.264 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)
! Added new window around map position (-2.2, 2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0355585 Jy
! Component: 100  -  total flux cleaned = 0.0592334 Jy
! Component: 150  -  total flux cleaned = 0.0761446 Jy
! Component: 200  -  total flux cleaned = 0.0887906 Jy
! Total flux subtracted in 200 components = 0.0887906 Jy
! Clean residual min=-0.004084 max=0.007975 Jy/beam
! Clean residual mean=0.000766 rms=0.002203 Jy/beam
! Combined flux in latest and established models = 0.638619 Jy
! Adding 57 model components to the UV plane model.
! The established model now contains 64 components and 0.638619 Jy
! Inverting map 
! Your choice of large map pixels excluded 8.45% of the data.
!  The x-axis pixel size should ideally be below 0.1643 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 8.45% of the data.
!  The x-axis pixel size should ideally be below 0.1643 milli-arcsec
! Estimated beam: bmin=2.222 mas, bmaj=3.495 mas, bpa=-13.52 degrees
! Estimated noise=648.903 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0186936 Jy
! Component: 100  -  total flux cleaned = 0.0297862 Jy
! Component: 150  -  total flux cleaned = 0.0367213 Jy
! Component: 200  -  total flux cleaned = 0.0411507 Jy
! Total flux subtracted in 200 components = 0.0411507 Jy
! Clean residual min=-0.003566 max=0.006794 Jy/beam
! Clean residual mean=0.000841 rms=0.001905 Jy/beam
! Combined flux in latest and established models = 0.67977 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.0028948 Jy
! Component: 100  -  total flux cleaned = 0.0048182 Jy
! Component: 150  -  total flux cleaned = 0.00610785 Jy
! Component: 200  -  total flux cleaned = 0.00697655 Jy
! Total flux subtracted in 200 components = 0.00697655 Jy
! Clean residual min=-0.003624 max=0.006889 Jy/beam
! Clean residual mean=0.000638 rms=0.001844 Jy/beam
! Combined flux in latest and established models = 0.686746 Jy
! Adding 92 model components to the UV plane model.
! The established model now contains 146 components and 0.686746 Jy
! Inverting map 
! Your choice of large map pixels excluded 8.45% of the data.
!  The x-axis pixel size should ideally be below 0.1643 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 8.45% of the data.
!  The x-axis pixel size should ideally be below 0.1643 milli-arcsec
! Estimated beam: bmin=0.6042 mas, bmaj=2.109 mas, bpa=-3.375 degrees
! Estimated noise=500.264 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00073945 Jy
! Component: 100  -  total flux cleaned = -0.000506011 Jy
! Component: 150  -  total flux cleaned = -0.000302485 Jy
! Component: 200  -  total flux cleaned = -0.000185304 Jy
! Total flux subtracted in 200 components = -0.000185304 Jy
! Clean residual min=-0.003048 max=0.003997 Jy/beam
! Clean residual mean=0.000256 rms=0.001012 Jy/beam
! Combined flux in latest and established models = 0.686561 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 157 components and 0.686561 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.280899Jy  sigma=0.001278
! Fit after  self-cal, rms=0.280914Jy  sigma=0.001278
wmodel J0501-0159_X_2000_12_04_pus_map.mod
! Writing 157 model components to file: J0501-0159_X_2000_12_04_pus_map.mod
wobs J0501-0159_X_2000_12_04_pus_uvs.fits
! Writing UV FITS file: J0501-0159_X_2000_12_04_pus_uvs.fits
wwins J0501-0159_X_2000_12_04_pus_map.win
! wwins: Wrote 4 windows to J0501-0159_X_2000_12_04_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 8.45% of the data.
!  The x-axis pixel size should ideally be below 0.1643 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00171758 Jy
! Component: 100  -  total flux cleaned = 0.00250638 Jy
! Component: 150  -  total flux cleaned = 0.00331733 Jy
! Component: 200  -  total flux cleaned = 0.00387644 Jy
! Component: 250  -  total flux cleaned = 0.00440594 Jy
! Component: 300  -  total flux cleaned = 0.00482696 Jy
! Component: 350  -  total flux cleaned = 0.00523097 Jy
! Component: 400  -  total flux cleaned = 0.00550442 Jy
! Component: 450  -  total flux cleaned = 0.00576963 Jy
! Component: 500  -  total flux cleaned = 0.00609954 Jy
! Component: 550  -  total flux cleaned = 0.00634845 Jy
! Component: 600  -  total flux cleaned = 0.00652182 Jy
! Component: 650  -  total flux cleaned = 0.00675781 Jy
! Component: 700  -  total flux cleaned = 0.0069223 Jy
! Component: 750  -  total flux cleaned = 0.00711562 Jy
! Component: 800  -  total flux cleaned = 0.00730435 Jy
! Component: 850  -  total flux cleaned = 0.00755003 Jy
! Component: 900  -  total flux cleaned = 0.00772927 Jy
! Component: 950  -  total flux cleaned = 0.0078463 Jy
! Component: 1000  -  total flux cleaned = 0.00799075 Jy
! Total flux subtracted in 1024 components = 0.00801938 Jy
! Clean residual min=-0.001471 max=0.001600 Jy/beam
! Clean residual mean=0.000103 rms=0.000579 Jy/beam
! Combined flux in latest and established models = 0.69458 Jy
keep
! Adding 64 model components to the UV plane model.
! The established model now contains 221 components and 0.69458 Jy
![Exited script file: muppet]
wmap "J0501-0159_X_2000_12_04_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 8.45% of the data.
!  The x-axis pixel size should ideally be below 0.1643 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6042 x 2.109 at -3.375 degrees (North through East)
! Clean map  min=-0.0019925  max=0.51284 Jy/beam
! Writing clean map to FITS file: J0501-0159_X_2000_12_04_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.512836 
invert
! Inverting map 
! Your choice of large map pixels excluded 8.45% of the data.
!  The x-axis pixel size should ideally be below 0.1643 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000569473 
device "J0501-0159_X_2000_12_04_pus\_map.eps/VPS"
! Attempting to open device: 'J0501-0159_X_2000_12_04_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.333132 0.333132 0.666263 1.33253 2.66505 5.3301 10.6602 21.3204 42.6408 85.2817
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0017 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.512 
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.6042 x 2.109 at -3.375 degrees (North through East)
! Clean map  min=-0.0019925  max=0.51284 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0501-0159_X_2000_12_04_pus\_map.gif/vgif"
! Attempting to open device: 'J0501-0159_X_2000_12_04_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0501-0159_X_2000_12_04_pus_uvs.log closed on Fri Oct 12 15:15:19 2007