! Started logfile: J0501-0159_X_1999_05_10_pus_uvs.log on Mon Jan 14 12:34:30 2008
obs J0501-0159_X_1999_05_10_pus_uva.fits
! Reading UV FITS file: J0501-0159_X_1999_05_10_pus_uva.fits
! AN table 1: 163 integrations on 153 of 153 possible baselines.
! AN table 2: 38 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.148051 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 1759 lines of history.
! 
! Reading 18212 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_1999_05_10_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 1959 telescope corrections were flagged in sub-array 1.
!  A total of 441 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 1939 telescope corrections were flagged in sub-array 1.
!  A total of 441 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 1939 telescope corrections were flagged in sub-array 1.
!  A total of 441 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 1939 telescope corrections were flagged in sub-array 1.
!  A total of 441 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=0.694385Jy  sigma=0.005708
! Fit after  self-cal, rms=0.411311Jy  sigma=0.003543
! 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 0.0665% of the data.
!  The x-axis pixel size should ideally be below 0.1976 milli-arcsec
! Estimated beam: bmin=0.6733 mas, bmaj=1.271 mas, bpa=1.914 degrees
! Estimated noise=1274.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.48259 Jy
! Component: 100  -  total flux cleaned = 0.596353 Jy
! Total flux subtracted in 100 components = 0.596353 Jy
! Clean residual min=-0.020824 max=0.049301 Jy/beam
! Clean residual mean=0.000407 rms=0.007786 Jy/beam
! Combined flux in latest and established models = 0.596353 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 0.596353 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.231687Jy  sigma=0.001980
! Fit after  self-cal, rms=0.231589Jy  sigma=0.001979
! Inverting map 
! Your choice of large map pixels excluded 0.0665% of the data.
!  The x-axis pixel size should ideally be below 0.1976 milli-arcsec
! Added new window around map position (-0.8, 0.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0564066 Jy
! Component: 100  -  total flux cleaned = 0.092038 Jy
! Total flux subtracted in 100 components = 0.092038 Jy
! Clean residual min=-0.017026 max=0.029587 Jy/beam
! Clean residual mean=0.000399 rms=0.005292 Jy/beam
! Combined flux in latest and established models = 0.688391 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 28 components and 0.688391 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209746Jy  sigma=0.001644
! Fit after  self-cal, rms=0.208878Jy  sigma=0.001640
! Inverting map 
! Your choice of large map pixels excluded 0.0665% of the data.
!  The x-axis pixel size should ideally be below 0.1976 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 0.0665% of the data.
!  The x-axis pixel size should ideally be below 0.1976 milli-arcsec
! Estimated beam: bmin=0.9489 mas, bmaj=1.693 mas, bpa=2.031 degrees
! Estimated noise=571.463 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.0521728 Jy
! Component: 100  -  total flux cleaned = 0.0819381 Jy
! Component: 150  -  total flux cleaned = 0.100531 Jy
! Component: 200  -  total flux cleaned = 0.112234 Jy
! Total flux subtracted in 200 components = 0.112234 Jy
! Clean residual min=-0.013170 max=0.036143 Jy/beam
! Clean residual mean=0.001772 rms=0.006025 Jy/beam
! Combined flux in latest and established models = 0.800625 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 49 components and 0.800625 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.197528Jy  sigma=0.001444
! Fit after  self-cal, rms=0.196807Jy  sigma=0.001438
! Inverting map 
! Your choice of large map pixels excluded 0.0665% of the data.
!  The x-axis pixel size should ideally be below 0.1976 milli-arcsec
! Added new window around map position (-3.8, 3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0335674 Jy
! Component: 100  -  total flux cleaned = 0.0504023 Jy
! Component: 150  -  total flux cleaned = 0.0608161 Jy
! Component: 200  -  total flux cleaned = 0.0678007 Jy
! Total flux subtracted in 200 components = 0.0678007 Jy
! Clean residual min=-0.008918 max=0.011438 Jy/beam
! Clean residual mean=0.000554 rms=0.003012 Jy/beam
! Combined flux in latest and established models = 0.868426 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 75 components and 0.868426 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.191993Jy  sigma=0.001356
! Fit after  self-cal, rms=0.191204Jy  sigma=0.001348
! Inverting map 
! Your choice of large map pixels excluded 0.0665% of the data.
!  The x-axis pixel size should ideally be below 0.1976 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 114 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.99     GC        1.00*    HH        0.95     
!   HN        1.00     KK        1.00*    KP        0.99     LA        0.95     
!   MC        1.03     MK        1.00*    NL        1.04     NY        1.00*    
!   ON        0.97     OV        1.01     PT        1.01     SC        1.00     
!   WF        0.99     WZ        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.97     GC        1.06     HH        1.00*    
!   HN        1.00     KK        0.93     KP        0.99     LA        0.96     
!   MC        1.00*    MK        0.95     NL        1.07     NY        1.00*    
!   ON        1.00*    OV        1.02     PT        1.01     SC        1.05     
!   WF        1.09     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 114 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.99     GC        1.00*    HH        0.94     
!   HN        0.99     KK        1.00*    KP        0.99     LA        0.97     
!   MC        1.06     MK        1.00*    NL        1.00     NY        1.00*    
!   ON        0.86     OV        0.99     PT        0.94     SC        0.99     
!   WF        1.05     WZ        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.99     GC        1.04     HH        1.00*    
!   HN        0.98     KK        0.94     KP        1.01     LA        0.98     
!   MC        1.00*    MK        0.94     NL        1.00     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.91     SC        1.07     
!   WF        1.07     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 114 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.03     GC        1.00*    HH        1.00     
!   HN        1.03     KK        1.00*    KP        1.02     LA        0.97     
!   MC        1.11     MK        1.00*    NL        1.01     NY        1.00*    
!   ON        0.88     OV        1.03     PT        0.96     SC        0.99     
!   WF        1.06     WZ        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        0.98     GC        1.05     HH        1.00*    
!   HN        1.03     KK        1.02     KP        1.02     LA        0.97     
!   MC        1.00*    MK        0.96     NL        1.02     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        0.95     SC        1.13     
!   WF        1.09     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 114 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.01     GC        1.00*    HH        1.02     
!   HN        1.00     KK        1.00*    KP        1.01     LA        1.00     
!   MC        1.10     MK        1.00*    NL        1.02     NY        1.00*    
!   ON        0.90     OV        1.03     PT        0.99     SC        0.98     
!   WF        1.03     WZ        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        0.98     GC        1.01     HH        1.00*    
!   HN        1.00     KK        0.98     KP        1.01     LA        0.98     
!   MC        1.00*    MK        0.95     NL        1.02     NY        1.00*    
!   ON        1.00*    OV        1.01     PT        0.98     SC        1.04     
!   WF        1.07     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.191204Jy  sigma=0.001348
! Fit after  self-cal, rms=0.190551Jy  sigma=0.001322
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.0689% of the data.
!  The x-axis pixel size should ideally be below 0.1976 milli-arcsec
! Estimated beam: bmin=0.9764 mas, bmaj=1.781 mas, bpa=2.211 degrees
! Estimated noise=574.557 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.00543246 Jy
! Component: 100  -  total flux cleaned = 0.00736602 Jy
! Component: 150  -  total flux cleaned = 0.00821378 Jy
! Component: 200  -  total flux cleaned = 0.00892586 Jy
! Total flux subtracted in 200 components = 0.00892586 Jy
! Clean residual min=-0.005556 max=0.008018 Jy/beam
! Clean residual mean=0.000406 rms=0.001772 Jy/beam
! Combined flux in latest and established models = 0.877351 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 88 components and 0.877351 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.190143Jy  sigma=0.001317
! Fit after  self-cal, rms=0.190027Jy  sigma=0.001316
! Inverting map 
! Your choice of large map pixels excluded 0.0689% of the data.
!  The x-axis pixel size should ideally be below 0.1976 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.190027Jy  sigma=0.001316
! Fit after  self-cal, rms=0.191194Jy  sigma=0.001315
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.0689% of the data.
!  The x-axis pixel size should ideally be below 0.1976 milli-arcsec
! Estimated beam: bmin=0.9787 mas, bmaj=1.784 mas, bpa=2.115 degrees
! Estimated noise=574.69 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0039871 Jy
! Component: 100  -  total flux cleaned = 0.00441435 Jy
! Component: 150  -  total flux cleaned = 0.00476826 Jy
! Component: 200  -  total flux cleaned = 0.00497121 Jy
! Total flux subtracted in 200 components = 0.00497121 Jy
! Clean residual min=-0.004255 max=0.006433 Jy/beam
! Clean residual mean=0.000488 rms=0.001557 Jy/beam
! Combined flux in latest and established models = 0.882322 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 95 components and 0.882323 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.191000Jy  sigma=0.001312
! Fit after  self-cal, rms=0.191011Jy  sigma=0.001312
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.0689% of the data.
!  The x-axis pixel size should ideally be below 0.1976 milli-arcsec
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (-2, 1.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00308481 Jy
! Component: 100  -  total flux cleaned = 0.00276601 Jy
! Component: 150  -  total flux cleaned = 0.00263629 Jy
! Component: 200  -  total flux cleaned = 0.00221178 Jy
! Total flux subtracted in 200 components = 0.00221178 Jy
! Clean residual min=-0.003674 max=0.006063 Jy/beam
! Clean residual mean=0.000441 rms=0.001369 Jy/beam
! Combined flux in latest and established models = 0.884534 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 109 components and 0.884534 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.190697Jy  sigma=0.001309
! Fit after  self-cal, rms=0.190650Jy  sigma=0.001309
! Inverting map 
! Your choice of large map pixels excluded 0.0689% of the data.
!  The x-axis pixel size should ideally be below 0.1976 milli-arcsec
! Added new window around map position (2.2, -11.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00525703 Jy
! Component: 100  -  total flux cleaned = 0.00701322 Jy
! Component: 150  -  total flux cleaned = 0.00775414 Jy
! Component: 200  -  total flux cleaned = 0.00832755 Jy
! Total flux subtracted in 200 components = 0.00832755 Jy
! Clean residual min=-0.003170 max=0.004135 Jy/beam
! Clean residual mean=0.000264 rms=0.001060 Jy/beam
! Combined flux in latest and established models = 0.892862 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 132 components and 0.892862 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.190447Jy  sigma=0.001306
! Fit after  self-cal, rms=0.190427Jy  sigma=0.001306
! Inverting map 
! Your choice of large map pixels excluded 0.0689% of the data.
!  The x-axis pixel size should ideally be below 0.1976 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.190427Jy  sigma=0.001306
! Fit after  self-cal, rms=0.189747Jy  sigma=0.001306
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.0689% of the data.
!  The x-axis pixel size should ideally be below 0.1976 milli-arcsec
! Estimated beam: bmin=0.9789 mas, bmaj=1.782 mas, bpa=2.179 degrees
! Estimated noise=573.877 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00189363 Jy
! Component: 100  -  total flux cleaned = 0.00234553 Jy
! Component: 150  -  total flux cleaned = 0.00274326 Jy
! Component: 200  -  total flux cleaned = 0.00289017 Jy
! Total flux subtracted in 200 components = 0.00289017 Jy
! Clean residual min=-0.003089 max=0.003632 Jy/beam
! Clean residual mean=0.000159 rms=0.000928 Jy/beam
! Combined flux in latest and established models = 0.895752 Jy
selfcal
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 145 components and 0.895752 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.189643Jy  sigma=0.001305
! Fit after  self-cal, rms=0.189623Jy  sigma=0.001305
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.0689% of the data.
!  The x-axis pixel size should ideally be below 0.1976 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.000582688 Jy
! Component: 100  -  total flux cleaned = 0.000872958 Jy
! Component: 150  -  total flux cleaned = 0.00107596 Jy
! Component: 200  -  total flux cleaned = 0.00120503 Jy
! Total flux subtracted in 200 components = 0.00120503 Jy
! Clean residual min=-0.002950 max=0.003441 Jy/beam
! Clean residual mean=0.000141 rms=0.000874 Jy/beam
! Combined flux in latest and established models = 0.896957 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 146 components and 0.896957 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.189567Jy  sigma=0.001304
! Fit after  self-cal, rms=0.189556Jy  sigma=0.001304
! Inverting map 
! Your choice of large map pixels excluded 0.0689% of the data.
!  The x-axis pixel size should ideally be below 0.1976 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.189556Jy  sigma=0.001304
! Fit after  self-cal, rms=0.189444Jy  sigma=0.001304
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.0689% of the data.
!  The x-axis pixel size should ideally be below 0.1976 milli-arcsec
! Estimated beam: bmin=2.162 mas, bmaj=3.443 mas, bpa=-9.906 degrees
! Estimated noise=677.235 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0012946 Jy
! Component: 100  -  total flux cleaned = 0.00212959 Jy
! Component: 150  -  total flux cleaned = 0.00268341 Jy
! Component: 200  -  total flux cleaned = 0.00297541 Jy
! Total flux subtracted in 200 components = 0.00297541 Jy
! Clean residual min=-0.003001 max=0.003927 Jy/beam
! Clean residual mean=0.000140 rms=0.000979 Jy/beam
! Combined flux in latest and established models = 0.899933 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 158 components and 0.899933 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.189420Jy  sigma=0.001304
! Fit after  self-cal, rms=0.189403Jy  sigma=0.001304
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.0689% of the data.
!  The x-axis pixel size should ideally be below 0.1976 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.00026905 Jy
! Component: 100  -  total flux cleaned = 0.000588721 Jy
! Component: 150  -  total flux cleaned = 0.000761323 Jy
! Component: 200  -  total flux cleaned = 0.000856272 Jy
! Total flux subtracted in 200 components = 0.000856272 Jy
! Clean residual min=-0.002979 max=0.003816 Jy/beam
! Clean residual mean=0.000113 rms=0.000968 Jy/beam
! Combined flux in latest and established models = 0.900789 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 168 components and 0.900789 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.189390Jy  sigma=0.001304
! Fit after  self-cal, rms=0.189382Jy  sigma=0.001304
! Inverting map 
! Your choice of large map pixels excluded 0.0689% of the data.
!  The x-axis pixel size should ideally be below 0.1976 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 0.0689% of the data.
!  The x-axis pixel size should ideally be below 0.1976 milli-arcsec
! Estimated beam: bmin=0.9793 mas, bmaj=1.782 mas, bpa=2.204 degrees
! Estimated noise=573.792 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9793 x 1.782 at 2.204 degrees (North through East)
! Clean map  min=-0.0030855  max=0.6262 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.189382Jy  sigma=0.001304
! Fit after  self-cal, rms=0.192468Jy  sigma=0.001214
! Inverting map and beam 
! Your choice of large map pixels excluded 0.0689% of the data.
!  The x-axis pixel size should ideally be below 0.1976 milli-arcsec
! Estimated beam: bmin=0.9794 mas, bmaj=1.782 mas, bpa=2.156 degrees
! Estimated noise=573.315 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000320668 Jy
! Component: 100  -  total flux cleaned = 0.000195536 Jy
! Component: 150  -  total flux cleaned = 0.000138359 Jy
! Component: 200  -  total flux cleaned = 8.32067e-05 Jy
! Total flux subtracted in 200 components = 8.32067e-05 Jy
! Clean residual min=-0.002684 max=0.003168 Jy/beam
! Clean residual mean=0.000043 rms=0.000785 Jy/beam
! Combined flux in latest and established models = 0.900872 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 174 components and 0.900872 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.192427Jy  sigma=0.001214
! Fit after  self-cal, rms=0.192422Jy  sigma=0.001214
! Inverting map 
! Your choice of large map pixels excluded 0.0689% of the data.
!  The x-axis pixel size should ideally be below 0.1976 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000111536 Jy
! Component: 100  -  total flux cleaned = 5.91913e-05 Jy
! Component: 150  -  total flux cleaned = 8.54786e-06 Jy
! Component: 200  -  total flux cleaned = -8.76568e-05 Jy
! Total flux subtracted in 200 components = -8.76568e-05 Jy
! Clean residual min=-0.002605 max=0.003078 Jy/beam
! Clean residual mean=0.000045 rms=0.000767 Jy/beam
! Combined flux in latest and established models = 0.900784 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 178 components and 0.900784 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.192394Jy  sigma=0.001213
! Fit after  self-cal, rms=0.192389Jy  sigma=0.001213
! Inverting map 
! Your choice of large map pixels excluded 0.0689% of the data.
!  The x-axis pixel size should ideally be below 0.1976 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.192389Jy  sigma=0.001213
! Fit after  self-cal, rms=0.192436Jy  sigma=0.001213
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 0.0689% of the data.
!  The x-axis pixel size should ideally be below 0.1976 milli-arcsec
! Estimated beam: bmin=0.6705 mas, bmaj=1.266 mas, bpa=2.079 degrees
! Estimated noise=1273.26 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.478865 Jy
! Component: 100  -  total flux cleaned = 0.593235 Jy
! Component: 150  -  total flux cleaned = 0.650018 Jy
! Component: 200  -  total flux cleaned = 0.688899 Jy
! Total flux subtracted in 200 components = 0.688899 Jy
! Clean residual min=-0.013228 max=0.021985 Jy/beam
! Clean residual mean=0.000373 rms=0.004629 Jy/beam
! Combined flux in latest and established models = 0.688899 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 26 model components to the UV plane model.
! The established model now contains 26 components and 0.688899 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 0.0689% of the data.
!  The x-axis pixel size should ideally be below 0.1976 milli-arcsec
! Estimated beam: bmin=0.9798 mas, bmaj=1.782 mas, bpa=2.191 degrees
! Estimated noise=573.152 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.0581512 Jy
! Component: 100  -  total flux cleaned = 0.0952668 Jy
! Component: 150  -  total flux cleaned = 0.121008 Jy
! Component: 200  -  total flux cleaned = 0.139601 Jy
! Total flux subtracted in 200 components = 0.139601 Jy
! Clean residual min=-0.005229 max=0.010579 Jy/beam
! Clean residual mean=0.001170 rms=0.003091 Jy/beam
! Combined flux in latest and established models = 0.828501 Jy
! Adding 64 model components to the UV plane model.
! The established model now contains 80 components and 0.828501 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.0689% of the data.
!  The x-axis pixel size should ideally be below 0.1976 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 0.0689% of the data.
!  The x-axis pixel size should ideally be below 0.1976 milli-arcsec
! Estimated beam: bmin=2.162 mas, bmaj=3.445 mas, bpa=-9.903 degrees
! Estimated noise=676.128 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0223001 Jy
! Component: 100  -  total flux cleaned = 0.0352463 Jy
! Component: 150  -  total flux cleaned = 0.0439521 Jy
! Component: 200  -  total flux cleaned = 0.0502042 Jy
! Total flux subtracted in 200 components = 0.0502042 Jy
! Clean residual min=-0.003324 max=0.005712 Jy/beam
! Clean residual mean=0.000864 rms=0.001872 Jy/beam
! Combined flux in latest and established models = 0.878705 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.00469173 Jy
! Component: 100  -  total flux cleaned = 0.00831229 Jy
! Component: 150  -  total flux cleaned = 0.0111619 Jy
! Component: 200  -  total flux cleaned = 0.0134192 Jy
! Total flux subtracted in 200 components = 0.0134192 Jy
! Clean residual min=-0.002893 max=0.003579 Jy/beam
! Clean residual mean=0.000370 rms=0.001180 Jy/beam
! Combined flux in latest and established models = 0.892124 Jy
! Adding 123 model components to the UV plane model.
! The established model now contains 190 components and 0.892124 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.0689% of the data.
!  The x-axis pixel size should ideally be below 0.1976 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 0.0689% of the data.
!  The x-axis pixel size should ideally be below 0.1976 milli-arcsec
! Estimated beam: bmin=0.9798 mas, bmaj=1.782 mas, bpa=2.191 degrees
! Estimated noise=573.152 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00116309 Jy
! Component: 100  -  total flux cleaned = 0.00216504 Jy
! Component: 150  -  total flux cleaned = 0.00262772 Jy
! Component: 200  -  total flux cleaned = 0.00290974 Jy
! Total flux subtracted in 200 components = 0.00290974 Jy
! Clean residual min=-0.002518 max=0.003005 Jy/beam
! Clean residual mean=0.000132 rms=0.000821 Jy/beam
! Combined flux in latest and established models = 0.895034 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 198 components and 0.895034 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.192558Jy  sigma=0.001214
! Fit after  self-cal, rms=0.192443Jy  sigma=0.001214
wmodel J0501-0159_X_1999_05_10_pus_map.mod
! Writing 198 model components to file: J0501-0159_X_1999_05_10_pus_map.mod
wobs J0501-0159_X_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J0501-0159_X_1999_05_10_pus_uvs.fits
wwins J0501-0159_X_1999_05_10_pus_map.win
! wwins: Wrote 5 windows to J0501-0159_X_1999_05_10_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 0.0689% of the data.
!  The x-axis pixel size should ideally be below 0.1976 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000514306 Jy
! Component: 100  -  total flux cleaned = 0.000872109 Jy
! Component: 150  -  total flux cleaned = 0.00121301 Jy
! Component: 200  -  total flux cleaned = 0.00133573 Jy
! Component: 250  -  total flux cleaned = 0.00145489 Jy
! Component: 300  -  total flux cleaned = 0.0015314 Jy
! Component: 350  -  total flux cleaned = 0.00156925 Jy
! Component: 400  -  total flux cleaned = 0.00164259 Jy
! Component: 450  -  total flux cleaned = 0.00167791 Jy
! Component: 500  -  total flux cleaned = 0.00171291 Jy
! Component: 550  -  total flux cleaned = 0.00174725 Jy
! Component: 600  -  total flux cleaned = 0.00178111 Jy
! Component: 650  -  total flux cleaned = 0.00184693 Jy
! Component: 700  -  total flux cleaned = 0.00194351 Jy
! Component: 750  -  total flux cleaned = 0.00194333 Jy
! Component: 800  -  total flux cleaned = 0.00206824 Jy
! Component: 850  -  total flux cleaned = 0.00206807 Jy
! Component: 900  -  total flux cleaned = 0.00218949 Jy
! Component: 950  -  total flux cleaned = 0.00221941 Jy
! Component: 1000  -  total flux cleaned = 0.00224921 Jy
! Total flux subtracted in 1024 components = 0.00230794 Jy
! Clean residual min=-0.001859 max=0.001621 Jy/beam
! Clean residual mean=0.000040 rms=0.000586 Jy/beam
! Combined flux in latest and established models = 0.897342 Jy
keep
! Adding 60 model components to the UV plane model.
! The established model now contains 257 components and 0.897342 Jy
![Exited script file: muppet]
wmap "J0501-0159_X_1999_05_10_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 0.0689% of the data.
!  The x-axis pixel size should ideally be below 0.1976 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9798 x 1.782 at 2.191 degrees (North through East)
! Clean map  min=-0.0020282  max=0.63012 Jy/beam
! Writing clean map to FITS file: J0501-0159_X_1999_05_10_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.630122 
invert
! Inverting map 
! Your choice of large map pixels excluded 0.0689% of the data.
!  The x-axis pixel size should ideally be below 0.1976 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000583741 
device "J0501-0159_X_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J0501-0159_X_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.277918 0.277918 0.555836 1.11167 2.22334 4.44668 8.89337 17.7867 35.5735 71.1469
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0017 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.63 
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.9798 x 1.782 at 2.191 degrees (North through East)
! Clean map  min=-0.0020282  max=0.63012 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0501-0159_X_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J0501-0159_X_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0501-0159_X_1999_05_10_pus_uvs.log closed on Mon Jan 14 12:34:40 2008