! Started logfile: J2331-1556_X_1999_05_10_pus_uvs.log on Tue Jan 15 17:18:55 2008
obs J2331-1556_X_1999_05_10_pus_uva.fits
! Reading UV FITS file: J2331-1556_X_1999_05_10_pus_uva.fits
! AN table 1: 166 integrations on 153 of 153 possible baselines.
! AN table 2: 76 integrations on 153 of 153 possible baselines.
! AN table 3: 83 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.179306 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2331-1556
! 
! 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 35664 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.2 
print "taper_size =",taper_size
! taper_size = 70 
![@muppet J2331-1556_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 = 512x512 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 1956 telescope corrections were flagged in sub-array 1.
!  A total of 921 telescope corrections were flagged in sub-array 2.
!  A total of 726 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1881 telescope corrections were flagged in sub-array 1.
!  A total of 921 telescope corrections were flagged in sub-array 2.
!  A total of 726 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1881 telescope corrections were flagged in sub-array 1.
!  A total of 921 telescope corrections were flagged in sub-array 2.
!  A total of 727 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1956 telescope corrections were flagged in sub-array 1.
!  A total of 921 telescope corrections were flagged in sub-array 2.
!  A total of 727 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.586559Jy  sigma=0.004716
! Fit after  self-cal, rms=0.448726Jy  sigma=0.003271
! 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 3.22% of the data.
!  The x-axis pixel size should ideally be below 0.1672 milli-arcsec
! Estimated beam: bmin=0.5698 mas, bmaj=1.428 mas, bpa=-5.143 degrees
! Estimated noise=851.786 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.563904 Jy
! Component: 100  -  total flux cleaned = 0.764467 Jy
! Total flux subtracted in 100 components = 0.764467 Jy
! Clean residual min=-0.037453 max=0.093784 Jy/beam
! Clean residual mean=0.001084 rms=0.009951 Jy/beam
! Combined flux in latest and established models = 0.764468 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.764468 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.290516Jy  sigma=0.002380
! Fit after  self-cal, rms=0.289768Jy  sigma=0.002375
! Inverting map 
! Your choice of large map pixels excluded 3.22% of the data.
!  The x-axis pixel size should ideally be below 0.1672 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.105402 Jy
! Component: 100  -  total flux cleaned = 0.161148 Jy
! Total flux subtracted in 100 components = 0.161148 Jy
! Clean residual min=-0.023910 max=0.069972 Jy/beam
! Clean residual mean=0.000537 rms=0.006062 Jy/beam
! Combined flux in latest and established models = 0.925615 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 10 components and 0.925615 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.249480Jy  sigma=0.001744
! Fit after  self-cal, rms=0.249310Jy  sigma=0.001742
! Inverting map 
! Your choice of large map pixels excluded 3.22% of the data.
!  The x-axis pixel size should ideally be below 0.1672 milli-arcsec
! Added new window around map position (1.8, 0.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.060768 Jy
! Component: 100  -  total flux cleaned = 0.0901484 Jy
! Total flux subtracted in 100 components = 0.0901484 Jy
! Clean residual min=-0.023228 max=0.034169 Jy/beam
! Clean residual mean=0.000245 rms=0.004239 Jy/beam
! Combined flux in latest and established models = 1.01576 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 21 components and 1.01576 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.233755Jy  sigma=0.001498
! Fit after  self-cal, rms=0.231638Jy  sigma=0.001471
! Inverting map 
! Your choice of large map pixels excluded 3.22% of the data.
!  The x-axis pixel size should ideally be below 0.1672 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0282243 Jy
! Component: 100  -  total flux cleaned = 0.0459331 Jy
! Total flux subtracted in 100 components = 0.0459331 Jy
! Clean residual min=-0.016749 max=0.018377 Jy/beam
! Clean residual mean=0.000094 rms=0.003280 Jy/beam
! Combined flux in latest and established models = 1.0617 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 30 components and 1.0617 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.228008Jy  sigma=0.001396
! Fit after  self-cal, rms=0.227569Jy  sigma=0.001391
! Inverting map 
! Your choice of large map pixels excluded 3.22% of the data.
!  The x-axis pixel size should ideally be below 0.1672 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 3.22% of the data.
!  The x-axis pixel size should ideally be below 0.1672 milli-arcsec
! Estimated beam: bmin=0.6614 mas, bmaj=1.543 mas, bpa=-4.257 degrees
! Estimated noise=451.284 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.0232972 Jy
! Component: 100  -  total flux cleaned = 0.0366221 Jy
! Component: 150  -  total flux cleaned = 0.0418872 Jy
! Component: 200  -  total flux cleaned = 0.0449466 Jy
! Total flux subtracted in 200 components = 0.0449466 Jy
! Clean residual min=-0.015922 max=0.015672 Jy/beam
! Clean residual mean=-0.000419 rms=0.003896 Jy/beam
! Combined flux in latest and established models = 1.10664 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 45 components and 1.10664 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.225751Jy  sigma=0.001347
! Fit after  self-cal, rms=0.225462Jy  sigma=0.001343
! Inverting map 
! Your choice of large map pixels excluded 3.22% of the data.
!  The x-axis pixel size should ideally be below 0.1672 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.02     GC        1.00*    HH        0.87     
!   HN        1.02     KK        0.91     KP        1.25     LA        1.00*    
!   MC        1.15     MK        0.98     NL        1.10     NY        1.00*    
!   ON        1.12     OV        1.00     PT        1.00*    SC        1.04     
!   WF        1.00*    WZ        1.14     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.95     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        0.92     KP        0.98     LA        1.02     
!   MC        1.00*    MK        0.98     NL        1.08     NY        1.00*    
!   ON        1.00*    OV        0.96     PT        1.01     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.94     GC        1.00*    HH        1.00*    
!   HN        0.99     KK        0.98     KP        0.98     LA        0.96     
!   MC        1.00*    MK        0.99     NL        1.03     NY        1.00*    
!   ON        1.00*    OV        0.97     PT        1.02     SC        1.05     
!   WF        1.06     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.02     GC        1.00*    HH        0.89     
!   HN        1.01     KK        0.96     KP        1.15     LA        1.00*    
!   MC        1.12     MK        0.92     NL        1.09     NY        1.00*    
!   ON        1.13     OV        1.07     PT        1.00*    SC        1.04     
!   WF        1.03     WZ        1.17     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.96     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        0.94     KP        1.00     LA        1.04     
!   MC        1.00*    MK        0.98     NL        1.02     NY        1.00*    
!   ON        1.00*    OV        0.96     PT        0.92     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.93     GC        1.00*    HH        1.00*    
!   HN        0.97     KK        1.00     KP        1.00     LA        0.97     
!   MC        1.00*    MK        0.98     NL        1.00     NY        1.00*    
!   ON        1.00*    OV        0.94     PT        0.94     SC        1.05     
!   WF        1.09     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.05     GC        1.00*    HH        0.92     
!   HN        1.04     KK        0.95     KP        1.26     LA        1.00*    
!   MC        1.17     MK        1.00     NL        1.09     NY        1.00*    
!   ON        1.13     OV        1.15     PT        1.00*    SC        1.06     
!   WF        1.03     WZ        1.19     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.99     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.01     KP        1.02     LA        1.02     
!   MC        1.00*    MK        0.98     NL        1.05     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        0.94     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.97     GC        1.00*    HH        1.00*    
!   HN        1.02     KK        1.07     KP        1.02     LA        0.97     
!   MC        1.00*    MK        0.99     NL        0.99     NY        1.00*    
!   ON        1.00*    OV        0.97     PT        0.96     SC        1.06     
!   WF        1.13     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.03     GC        1.00*    HH        1.04     
!   HN        1.04     KK        0.99     KP        1.17     LA        1.00*    
!   MC        1.10     MK        1.05     NL        1.11     NY        1.00*    
!   ON        1.20     OV        1.11     PT        1.00*    SC        1.02     
!   WF        1.04     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.98     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        0.98     KP        1.01     LA        1.05     
!   MC        1.00*    MK        0.99     NL        1.05     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.96     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.95     GC        1.00*    HH        1.00*    
!   HN        1.01     KK        1.05     KP        0.99     LA        0.98     
!   MC        1.00*    MK        1.01     NL        1.01     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        0.97     SC        1.05     
!   WF        1.12     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.225462Jy  sigma=0.001343
! Fit after  self-cal, rms=0.230266Jy  sigma=0.001224
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 3.24% of the data.
!  The x-axis pixel size should ideally be below 0.1672 milli-arcsec
! Estimated beam: bmin=0.6782 mas, bmaj=1.536 mas, bpa=-3.8 degrees
! Estimated noise=461.957 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 (1.2, -0.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0046849 Jy
! Component: 100  -  total flux cleaned = 0.00424131 Jy
! Component: 150  -  total flux cleaned = 0.00406879 Jy
! Component: 200  -  total flux cleaned = 0.00406243 Jy
! Total flux subtracted in 200 components = 0.00406243 Jy
! Clean residual min=-0.007101 max=0.006257 Jy/beam
! Clean residual mean=0.000091 rms=0.001435 Jy/beam
! Combined flux in latest and established models = 1.11071 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 62 components and 1.11071 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.229770Jy  sigma=0.001219
! Fit after  self-cal, rms=0.229685Jy  sigma=0.001219
! Inverting map 
! Your choice of large map pixels excluded 3.24% of the data.
!  The x-axis pixel size should ideally be below 0.1672 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.229685Jy  sigma=0.001219
! Fit after  self-cal, rms=0.228943Jy  sigma=0.001218
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.24% of the data.
!  The x-axis pixel size should ideally be below 0.1672 milli-arcsec
! Estimated beam: bmin=0.679 mas, bmaj=1.538 mas, bpa=-3.82 degrees
! Estimated noise=461.866 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00207812 Jy
! Component: 100  -  total flux cleaned = 0.00191268 Jy
! Component: 150  -  total flux cleaned = 0.00177055 Jy
! Component: 200  -  total flux cleaned = 0.00165518 Jy
! Total flux subtracted in 200 components = 0.00165518 Jy
! Clean residual min=-0.006663 max=0.005666 Jy/beam
! Clean residual mean=0.000105 rms=0.001287 Jy/beam
! Combined flux in latest and established models = 1.11236 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 64 components and 1.11236 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.228683Jy  sigma=0.001216
! Fit after  self-cal, rms=0.228607Jy  sigma=0.001215
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.24% of the data.
!  The x-axis pixel size should ideally be below 0.1672 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.000705603 Jy
! Component: 100  -  total flux cleaned = 0.000813906 Jy
! Component: 150  -  total flux cleaned = 0.000813699 Jy
! Component: 200  -  total flux cleaned = 0.000719717 Jy
! Total flux subtracted in 200 components = 0.000719717 Jy
! Clean residual min=-0.006532 max=0.005656 Jy/beam
! Clean residual mean=0.000099 rms=0.001247 Jy/beam
! Combined flux in latest and established models = 1.11308 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 66 components and 1.11308 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.228471Jy  sigma=0.001215
! Fit after  self-cal, rms=0.228445Jy  sigma=0.001214
! Inverting map 
! Your choice of large map pixels excluded 3.24% of the data.
!  The x-axis pixel size should ideally be below 0.1672 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.228445Jy  sigma=0.001214
! Fit after  self-cal, rms=0.228212Jy  sigma=0.001214
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.24% of the data.
!  The x-axis pixel size should ideally be below 0.1672 milli-arcsec
! Estimated beam: bmin=0.68 mas, bmaj=1.542 mas, bpa=-3.854 degrees
! Estimated noise=461.886 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000436925 Jy
! Component: 100  -  total flux cleaned = 0.000544686 Jy
! Component: 150  -  total flux cleaned = 0.000544267 Jy
! Component: 200  -  total flux cleaned = 0.000459137 Jy
! Total flux subtracted in 200 components = 0.000459137 Jy
! Clean residual min=-0.005955 max=0.005282 Jy/beam
! Clean residual mean=0.000108 rms=0.001176 Jy/beam
! Combined flux in latest and established models = 1.11354 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 67 components and 1.11354 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.228078Jy  sigma=0.001213
! Fit after  self-cal, rms=0.228027Jy  sigma=0.001213
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.24% of the data.
!  The x-axis pixel size should ideally be below 0.1672 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.000404487 Jy
! Component: 100  -  total flux cleaned = 0.00040869 Jy
! Component: 150  -  total flux cleaned = 0.000409541 Jy
! Component: 200  -  total flux cleaned = 0.000264854 Jy
! Total flux subtracted in 200 components = 0.000264854 Jy
! Clean residual min=-0.005845 max=0.005336 Jy/beam
! Clean residual mean=0.000105 rms=0.001154 Jy/beam
! Combined flux in latest and established models = 1.1138 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 69 components and 1.1138 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227952Jy  sigma=0.001212
! Fit after  self-cal, rms=0.227934Jy  sigma=0.001212
! Inverting map 
! Your choice of large map pixels excluded 3.24% of the data.
!  The x-axis pixel size should ideally be below 0.1672 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.227934Jy  sigma=0.001212
! Fit after  self-cal, rms=0.228048Jy  sigma=0.001212
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.24% of the data.
!  The x-axis pixel size should ideally be below 0.1672 milli-arcsec
! Estimated beam: bmin=2.271 mas, bmaj=3.756 mas, bpa=-0.2553 degrees
! Estimated noise=587.264 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000302667 Jy
! Component: 100  -  total flux cleaned = -0.000586681 Jy
! Component: 150  -  total flux cleaned = -0.000806868 Jy
! Component: 200  -  total flux cleaned = -0.000950307 Jy
! Total flux subtracted in 200 components = -0.000950307 Jy
! Clean residual min=-0.004753 max=0.009130 Jy/beam
! Clean residual mean=0.000280 rms=0.002025 Jy/beam
! Combined flux in latest and established models = 1.11285 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 84 components and 1.11285 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.228032Jy  sigma=0.001212
! Fit after  self-cal, rms=0.228008Jy  sigma=0.001212
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.24% of the data.
!  The x-axis pixel size should ideally be below 0.1672 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 (15.4, 3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00905521 Jy
! Component: 100  -  total flux cleaned = 0.0142064 Jy
! Component: 150  -  total flux cleaned = 0.018017 Jy
! Component: 200  -  total flux cleaned = 0.0210579 Jy
! Total flux subtracted in 200 components = 0.0210579 Jy
! Clean residual min=-0.004106 max=0.004839 Jy/beam
! Clean residual mean=-0.000066 rms=0.001266 Jy/beam
! Combined flux in latest and established models = 1.13391 Jy
! Performing phase self-cal
! Adding 67 model components to the UV plane model.
! The established model now contains 151 components and 1.13391 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227817Jy  sigma=0.001209
! Fit after  self-cal, rms=0.227783Jy  sigma=0.001209
! Inverting map 
! Your choice of large map pixels excluded 3.24% of the data.
!  The x-axis pixel size should ideally be below 0.1672 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 3.24% of the data.
!  The x-axis pixel size should ideally be below 0.1672 milli-arcsec
! Estimated beam: bmin=0.6807 mas, bmaj=1.546 mas, bpa=-3.898 degrees
! Estimated noise=461.971 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6807 x 1.546 at -3.898 degrees (North through East)
! Clean map  min=-0.0041137  max=0.74071 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.227783Jy  sigma=0.001209
! Fit after  self-cal, rms=0.222285Jy  sigma=0.001104
! Inverting map and beam 
! Your choice of large map pixels excluded 3.24% of the data.
!  The x-axis pixel size should ideally be below 0.1672 milli-arcsec
! Estimated beam: bmin=0.6804 mas, bmaj=1.546 mas, bpa=-3.919 degrees
! Estimated noise=461.374 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00358361 Jy
! Component: 100  -  total flux cleaned = 0.00576842 Jy
! Component: 150  -  total flux cleaned = 0.00763371 Jy
! Component: 200  -  total flux cleaned = 0.00887391 Jy
! Total flux subtracted in 200 components = 0.00887391 Jy
! Clean residual min=-0.004729 max=0.003254 Jy/beam
! Clean residual mean=-0.000071 rms=0.000773 Jy/beam
! Combined flux in latest and established models = 1.14279 Jy
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 183 components and 1.14279 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222164Jy  sigma=0.001103
! Fit after  self-cal, rms=0.222147Jy  sigma=0.001102
! Inverting map 
! Your choice of large map pixels excluded 3.24% of the data.
!  The x-axis pixel size should ideally be below 0.1672 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00115184 Jy
! Component: 100  -  total flux cleaned = 0.00175363 Jy
! Component: 150  -  total flux cleaned = 0.00210091 Jy
! Component: 200  -  total flux cleaned = 0.00236677 Jy
! Total flux subtracted in 200 components = 0.00236677 Jy
! Clean residual min=-0.004612 max=0.003296 Jy/beam
! Clean residual mean=-0.000089 rms=0.000752 Jy/beam
! Combined flux in latest and established models = 1.14515 Jy
! Performing phase self-cal
! Adding 47 model components to the UV plane model.
! The established model now contains 195 components and 1.14515 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222069Jy  sigma=0.001102
! Fit after  self-cal, rms=0.222057Jy  sigma=0.001102
! Inverting map 
! Your choice of large map pixels excluded 3.24% of the data.
!  The x-axis pixel size should ideally be below 0.1672 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.222057Jy  sigma=0.001102
! Fit after  self-cal, rms=0.222554Jy  sigma=0.001102
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 3.24% of the data.
!  The x-axis pixel size should ideally be below 0.1672 milli-arcsec
! Estimated beam: bmin=0.5832 mas, bmaj=1.432 mas, bpa=-4.918 degrees
! Estimated noise=876.691 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.569521 Jy
! Component: 100  -  total flux cleaned = 0.767402 Jy
! Component: 150  -  total flux cleaned = 0.877424 Jy
! Component: 200  -  total flux cleaned = 0.945557 Jy
! Total flux subtracted in 200 components = 0.945557 Jy
! Clean residual min=-0.012996 max=0.035794 Jy/beam
! Clean residual mean=0.000580 rms=0.004296 Jy/beam
! Combined flux in latest and established models = 0.945557 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 13 model components to the UV plane model.
! The established model now contains 13 components and 0.945557 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 3.24% of the data.
!  The x-axis pixel size should ideally be below 0.1672 milli-arcsec
! Estimated beam: bmin=0.6806 mas, bmaj=1.55 mas, bpa=-3.968 degrees
! Estimated noise=461.336 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.0622724 Jy
! Component: 100  -  total flux cleaned = 0.0988262 Jy
! Component: 150  -  total flux cleaned = 0.121707 Jy
! Component: 200  -  total flux cleaned = 0.136404 Jy
! Total flux subtracted in 200 components = 0.136404 Jy
! Clean residual min=-0.004163 max=0.007810 Jy/beam
! Clean residual mean=0.000389 rms=0.001490 Jy/beam
! Combined flux in latest and established models = 1.08196 Jy
! Adding 34 model components to the UV plane model.
! The established model now contains 39 components and 1.08196 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.24% of the data.
!  The x-axis pixel size should ideally be below 0.1672 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00964188 Jy
! Component: 100  -  total flux cleaned = 0.0165719 Jy
! Component: 150  -  total flux cleaned = 0.0223855 Jy
! Component: 200  -  total flux cleaned = 0.0274271 Jy
! Total flux subtracted in 200 components = 0.0274271 Jy
! Clean residual min=-0.003490 max=0.004366 Jy/beam
! Clean residual mean=0.000190 rms=0.001028 Jy/beam
! Combined flux in latest and established models = 1.10939 Jy
! Adding 40 model components to the UV plane model.
! The established model now contains 69 components and 1.10939 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.24% of the data.
!  The x-axis pixel size should ideally be below 0.1672 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 3.24% of the data.
!  The x-axis pixel size should ideally be below 0.1672 milli-arcsec
! Estimated beam: bmin=2.271 mas, bmaj=3.759 mas, bpa=-0.2798 degrees
! Estimated noise=586.331 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0079351 Jy
! Component: 100  -  total flux cleaned = 0.0139004 Jy
! Component: 150  -  total flux cleaned = 0.0187018 Jy
! Component: 200  -  total flux cleaned = 0.022606 Jy
! Total flux subtracted in 200 components = 0.022606 Jy
! Clean residual min=-0.003521 max=0.004277 Jy/beam
! Clean residual mean=0.000081 rms=0.001241 Jy/beam
! Combined flux in latest and established models = 1.13199 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.0032078 Jy
! Component: 100  -  total flux cleaned = 0.0058632 Jy
! Component: 150  -  total flux cleaned = 0.00808385 Jy
! Component: 200  -  total flux cleaned = 0.00995512 Jy
! Total flux subtracted in 200 components = 0.00995512 Jy
! Clean residual min=-0.003401 max=0.004290 Jy/beam
! Clean residual mean=-0.000089 rms=0.001068 Jy/beam
! Combined flux in latest and established models = 1.14195 Jy
! Adding 109 model components to the UV plane model.
! The established model now contains 167 components and 1.14195 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.24% of the data.
!  The x-axis pixel size should ideally be below 0.1672 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 3.24% of the data.
!  The x-axis pixel size should ideally be below 0.1672 milli-arcsec
! Estimated beam: bmin=0.6806 mas, bmaj=1.55 mas, bpa=-3.968 degrees
! Estimated noise=461.336 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000294216 Jy
! Component: 100  -  total flux cleaned = 0.00165079 Jy
! Component: 150  -  total flux cleaned = 0.00233094 Jy
! Component: 200  -  total flux cleaned = 0.00267634 Jy
! Total flux subtracted in 200 components = 0.00267634 Jy
! Clean residual min=-0.002863 max=0.002956 Jy/beam
! Clean residual mean=-0.000058 rms=0.000716 Jy/beam
! Combined flux in latest and established models = 1.14463 Jy
selfcal
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 193 components and 1.14463 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222603Jy  sigma=0.001102
! Fit after  self-cal, rms=0.222489Jy  sigma=0.001102
wmodel J2331-1556_X_1999_05_10_pus_map.mod
! Writing 193 model components to file: J2331-1556_X_1999_05_10_pus_map.mod
wobs J2331-1556_X_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J2331-1556_X_1999_05_10_pus_uvs.fits
wwins J2331-1556_X_1999_05_10_pus_map.win
! wwins: Wrote 4 windows to J2331-1556_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 3.24% of the data.
!  The x-axis pixel size should ideally be below 0.1672 milli-arcsec
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00026156 Jy
! Component: 100  -  total flux cleaned = 0.000607845 Jy
! Component: 150  -  total flux cleaned = 0.000841386 Jy
! Component: 200  -  total flux cleaned = 0.000975526 Jy
! Component: 250  -  total flux cleaned = 0.000974933 Jy
! Component: 300  -  total flux cleaned = 0.000851395 Jy
! Component: 350  -  total flux cleaned = 0.00073321 Jy
! Component: 400  -  total flux cleaned = 0.000657544 Jy
! Component: 450  -  total flux cleaned = 0.000545897 Jy
! Component: 500  -  total flux cleaned = 0.000509112 Jy
! Component: 550  -  total flux cleaned = 0.000473397 Jy
! Component: 600  -  total flux cleaned = 0.000438889 Jy
! Component: 650  -  total flux cleaned = 0.00037113 Jy
! Component: 700  -  total flux cleaned = 0.000271777 Jy
! Component: 750  -  total flux cleaned = 0.000141191 Jy
! Component: 800  -  total flux cleaned = -5.11483e-05 Jy
! Component: 850  -  total flux cleaned = -0.000271312 Jy
! Component: 900  -  total flux cleaned = -0.000363884 Jy
! Component: 950  -  total flux cleaned = -0.000455737 Jy
! Component: 1000  -  total flux cleaned = -0.000666919 Jy
! Component: 1050  -  total flux cleaned = -0.00075622 Jy
! Component: 1100  -  total flux cleaned = -0.000844403 Jy
! Component: 1150  -  total flux cleaned = -0.00101796 Jy
! Component: 1200  -  total flux cleaned = -0.00110354 Jy
! Component: 1250  -  total flux cleaned = -0.00116013 Jy
! Component: 1300  -  total flux cleaned = -0.001188 Jy
! Component: 1350  -  total flux cleaned = -0.00124327 Jy
! Component: 1400  -  total flux cleaned = -0.00129837 Jy
! Component: 1450  -  total flux cleaned = -0.00143383 Jy
! Component: 1500  -  total flux cleaned = -0.00151409 Jy
! Component: 1550  -  total flux cleaned = -0.00159336 Jy
! Component: 1600  -  total flux cleaned = -0.00159311 Jy
! Component: 1650  -  total flux cleaned = -0.0016454 Jy
! Component: 1700  -  total flux cleaned = -0.0017225 Jy
! Component: 1750  -  total flux cleaned = -0.00172248 Jy
! Component: 1800  -  total flux cleaned = -0.00184892 Jy
! Component: 1850  -  total flux cleaned = -0.00187409 Jy
! Component: 1900  -  total flux cleaned = -0.00197371 Jy
! Component: 1950  -  total flux cleaned = -0.00207264 Jy
! Component: 2000  -  total flux cleaned = -0.00212156 Jy
! Total flux subtracted in 2048 components = -0.00219442 Jy
! Clean residual min=-0.001412 max=0.001249 Jy/beam
! Clean residual mean=-0.000046 rms=0.000447 Jy/beam
! Combined flux in latest and established models = 1.14243 Jy
keep
! Adding 158 model components to the UV plane model.
! The established model now contains 349 components and 1.14243 Jy
![Exited script file: muppet]
wmap "J2331-1556_X_1999_05_10_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 3.24% of the data.
!  The x-axis pixel size should ideally be below 0.1672 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6806 x 1.55 at -3.968 degrees (North through East)
! Clean map  min=-0.0022723  max=0.74068 Jy/beam
! Writing clean map to FITS file: J2331-1556_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.740683 
invert
! Inverting map 
! Your choice of large map pixels excluded 3.24% of the data.
!  The x-axis pixel size should ideally be below 0.1672 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000445218 
device "J2331-1556_X_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J2331-1556_X_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.180327 0.180327 0.360655 0.721309 1.44262 2.88524 5.77047 11.5409 23.0819 46.1638 92.3276
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0013 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.74 
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.6806 x 1.55 at -3.968 degrees (North through East)
! Clean map  min=-0.0022723  max=0.74068 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2331-1556_X_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J2331-1556_X_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2331-1556_X_1999_05_10_pus_uvs.log closed on Tue Jan 15 17:19:11 2008