! Started logfile: J0231+1322_X_2001_10_29_pus_uvs.log on Mon Feb 25 16:06:40 2008
obs J0231+1322_X_2001_10_29_pus_uva.fits
! Reading UV FITS file: J0231+1322_X_2001_10_29_pus_uva.fits
! AN table 1: 260 integrations on 153 of 153 possible baselines.
! AN table 2: 56 integrations on 153 of 153 possible baselines.
! AN table 3: 200 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.101865 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0231+1322
! 
! 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 1970 lines of history.
! 
! Reading 32168 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 J0231+1322_X_2001_10_29_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 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 3741 telescope corrections were flagged in sub-array 1.
!  A total of 893 telescope corrections were flagged in sub-array 2.
!  A total of 2095 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 3741 telescope corrections were flagged in sub-array 1.
!  A total of 893 telescope corrections were flagged in sub-array 2.
!  A total of 2095 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 3741 telescope corrections were flagged in sub-array 1.
!  A total of 893 telescope corrections were flagged in sub-array 2.
!  A total of 2095 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 3741 telescope corrections were flagged in sub-array 1.
!  A total of 893 telescope corrections were flagged in sub-array 2.
!  A total of 2095 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.577061Jy  sigma=0.004614
! Fit after  self-cal, rms=0.336422Jy  sigma=0.002493
! 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 2.21% of the data.
!  The x-axis pixel size should ideally be below 0.1754 milli-arcsec
! Estimated beam: bmin=0.5274 mas, bmaj=1.001 mas, bpa=-5.029 degrees
! Estimated noise=1344.12 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.742446 Jy
! Component: 100  -  total flux cleaned = 0.961194 Jy
! Total flux subtracted in 100 components = 0.961194 Jy
! Clean residual min=-0.034752 max=0.098176 Jy/beam
! Clean residual mean=0.000175 rms=0.013456 Jy/beam
! Combined flux in latest and established models = 0.961194 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.961194 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.330260Jy  sigma=0.002478
! Fit after  self-cal, rms=0.329407Jy  sigma=0.002473
! Inverting map 
! Your choice of large map pixels excluded 2.21% of the data.
!  The x-axis pixel size should ideally be below 0.1754 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.108228 Jy
! Component: 100  -  total flux cleaned = 0.167659 Jy
! Total flux subtracted in 100 components = 0.167659 Jy
! Clean residual min=-0.022432 max=0.048380 Jy/beam
! Clean residual mean=-0.000206 rms=0.007808 Jy/beam
! Combined flux in latest and established models = 1.12885 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 10 components and 1.12885 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.262933Jy  sigma=0.001757
! Fit after  self-cal, rms=0.262338Jy  sigma=0.001753
! Inverting map 
! Your choice of large map pixels excluded 2.21% of the data.
!  The x-axis pixel size should ideally be below 0.1754 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 2.21% of the data.
!  The x-axis pixel size should ideally be below 0.1754 milli-arcsec
! Estimated beam: bmin=0.8068 mas, bmaj=1.741 mas, bpa=-12.47 degrees
! Estimated noise=480.449 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.0703166 Jy
! Component: 100  -  total flux cleaned = 0.102471 Jy
! Component: 150  -  total flux cleaned = 0.118132 Jy
! Component: 200  -  total flux cleaned = 0.124449 Jy
! Total flux subtracted in 200 components = 0.124449 Jy
! Clean residual min=-0.031930 max=0.055913 Jy/beam
! Clean residual mean=-0.002050 rms=0.012543 Jy/beam
! Combined flux in latest and established models = 1.2533 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 19 components and 1.2533 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.242452Jy  sigma=0.001573
! Fit after  self-cal, rms=0.242388Jy  sigma=0.001573
! Inverting map 
! Your choice of large map pixels excluded 2.21% of the data.
!  The x-axis pixel size should ideally be below 0.1754 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 408 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.17     
!   HN        1.03     KK        1.00*    KP        1.00*    LA        1.06     
!   MA        0.87     MC        0.89     MK        1.00*    NL        1.01     
!   OV        1.00*    PT        1.08     SC        0.94     TS        1.00*    
!   WF        1.00     WZ        0.83     
! 
!  A total of 75 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.99     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.93     MC        0.90     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.01     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.09     KK        0.98     KP        1.01     LA        0.99     
!   MA        1.00*    MC        1.00*    MK        0.97     NL        1.03     
!   OV        1.00     PT        1.00     SC        1.00*    TS        1.06     
!   WF        1.08     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 408 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.21     
!   HN        1.03     KK        1.00*    KP        1.00*    LA        1.04     
!   MA        0.86     MC        0.89     MK        1.00*    NL        0.97     
!   OV        1.00*    PT        1.07     SC        0.90     TS        1.00*    
!   WF        0.96     WZ        0.78     
! 
!  A total of 75 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.97     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.96     MC        0.89     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.01     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.08     KK        1.02     KP        1.02     LA        0.96     
!   MA        1.00*    MC        1.00*    MK        0.96     NL        0.99     
!   OV        1.00     PT        0.98     SC        1.00*    TS        1.05     
!   WF        1.07     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 408 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.14     
!   HN        1.04     KK        1.00*    KP        1.00*    LA        1.07     
!   MA        0.81     MC        0.85     MK        1.00*    NL        1.02     
!   OV        1.00*    PT        1.09     SC        0.92     TS        1.00*    
!   WF        1.02     WZ        0.82     
! 
!  A total of 75 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.08     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.90     MC        0.87     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        0.99     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.09     KK        0.98     KP        1.01     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        0.99     NL        1.03     
!   OV        0.99     PT        1.01     SC        1.00*    TS        1.02     
!   WF        1.12     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 408 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.24     
!   HN        1.06     KK        1.00*    KP        1.00*    LA        1.05     
!   MA        0.84     MC        0.86     MK        1.00*    NL        1.03     
!   OV        1.00*    PT        1.09     SC        0.95     TS        1.00*    
!   WF        1.01     WZ        0.79     
! 
!  A total of 75 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.09     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.88     MC        0.89     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        0.98     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.12     KK        0.98     KP        1.03     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        1.02     NL        1.05     
!   OV        0.97     PT        1.01     SC        1.00*    TS        1.06     
!   WF        1.10     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.242388Jy  sigma=0.001573
! Fit after  self-cal, rms=0.192102Jy  sigma=0.001273
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2.35% of the data.
!  The x-axis pixel size should ideally be below 0.1754 milli-arcsec
! Estimated beam: bmin=0.7684 mas, bmaj=1.784 mas, bpa=-12.22 degrees
! Estimated noise=487.349 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.6, 2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0232495 Jy
! Component: 100  -  total flux cleaned = 0.0307605 Jy
! Component: 150  -  total flux cleaned = 0.0334945 Jy
! Component: 200  -  total flux cleaned = 0.0351397 Jy
! Total flux subtracted in 200 components = 0.0351397 Jy
! Clean residual min=-0.007631 max=0.008127 Jy/beam
! Clean residual mean=0.000941 rms=0.002430 Jy/beam
! Combined flux in latest and established models = 1.28844 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 37 components and 1.28844 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188651Jy  sigma=0.001243
! Fit after  self-cal, rms=0.188461Jy  sigma=0.001240
! Inverting map 
! Your choice of large map pixels excluded 2.35% of the data.
!  The x-axis pixel size should ideally be below 0.1754 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.188461Jy  sigma=0.001240
! Fit after  self-cal, rms=0.187423Jy  sigma=0.001237
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.35% of the data.
!  The x-axis pixel size should ideally be below 0.1754 milli-arcsec
! Estimated beam: bmin=0.7672 mas, bmaj=1.782 mas, bpa=-12.2 degrees
! Estimated noise=487.26 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00806613 Jy
! Component: 100  -  total flux cleaned = 0.00964697 Jy
! Component: 150  -  total flux cleaned = 0.0102963 Jy
! Component: 200  -  total flux cleaned = 0.0102996 Jy
! Total flux subtracted in 200 components = 0.0102996 Jy
! Clean residual min=-0.005954 max=0.006569 Jy/beam
! Clean residual mean=0.000706 rms=0.001871 Jy/beam
! Combined flux in latest and established models = 1.29874 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 42 components and 1.29874 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.186584Jy  sigma=0.001230
! Fit after  self-cal, rms=0.186504Jy  sigma=0.001229
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.35% of the data.
!  The x-axis pixel size should ideally be below 0.1754 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.00158952 Jy
! Component: 100  -  total flux cleaned = 0.00158959 Jy
! Component: 150  -  total flux cleaned = 0.00159341 Jy
! Component: 200  -  total flux cleaned = 0.0015964 Jy
! Total flux subtracted in 200 components = 0.0015964 Jy
! Clean residual min=-0.005403 max=0.006474 Jy/beam
! Clean residual mean=0.000661 rms=0.001750 Jy/beam
! Combined flux in latest and established models = 1.30034 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 45 components and 1.30034 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.186168Jy  sigma=0.001227
! Fit after  self-cal, rms=0.186154Jy  sigma=0.001226
! Inverting map 
! Your choice of large map pixels excluded 2.35% of the data.
!  The x-axis pixel size should ideally be below 0.1754 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.186154Jy  sigma=0.001226
! Fit after  self-cal, rms=0.185729Jy  sigma=0.001225
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.35% of the data.
!  The x-axis pixel size should ideally be below 0.1754 milli-arcsec
! Estimated beam: bmin=0.7659 mas, bmaj=1.781 mas, bpa=-12.09 degrees
! Estimated noise=487.113 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00141874 Jy
! Component: 100  -  total flux cleaned = 0.00141675 Jy
! Component: 150  -  total flux cleaned = 0.00142744 Jy
! Component: 200  -  total flux cleaned = 0.00129957 Jy
! Total flux subtracted in 200 components = 0.00129957 Jy
! Clean residual min=-0.005064 max=0.005811 Jy/beam
! Clean residual mean=0.000646 rms=0.001583 Jy/beam
! Combined flux in latest and established models = 1.30164 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 51 components and 1.30164 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.185465Jy  sigma=0.001223
! Fit after  self-cal, rms=0.185446Jy  sigma=0.001223
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.35% of the data.
!  The x-axis pixel size should ideally be below 0.1754 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.000344369 Jy
! Component: 100  -  total flux cleaned = 0.000222634 Jy
! Component: 150  -  total flux cleaned = 0.000221091 Jy
! Component: 200  -  total flux cleaned = 0.000122682 Jy
! Total flux subtracted in 200 components = 0.000122682 Jy
! Clean residual min=-0.004879 max=0.005749 Jy/beam
! Clean residual mean=0.000643 rms=0.001511 Jy/beam
! Combined flux in latest and established models = 1.30176 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 56 components and 1.30176 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.185305Jy  sigma=0.001222
! Fit after  self-cal, rms=0.185295Jy  sigma=0.001221
! Inverting map 
! Your choice of large map pixels excluded 2.35% of the data.
!  The x-axis pixel size should ideally be below 0.1754 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.185295Jy  sigma=0.001221
! Fit after  self-cal, rms=0.185181Jy  sigma=0.001221
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.35% of the data.
!  The x-axis pixel size should ideally be below 0.1754 milli-arcsec
! Estimated beam: bmin=2.609 mas, bmaj=3.434 mas, bpa=-54.08 degrees
! Estimated noise=596.897 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000630849 Jy
! Component: 100  -  total flux cleaned = 0.000635903 Jy
! Component: 150  -  total flux cleaned = 0.000691269 Jy
! Component: 200  -  total flux cleaned = 0.000646762 Jy
! Total flux subtracted in 200 components = 0.000646762 Jy
! Clean residual min=-0.005019 max=0.006453 Jy/beam
! Clean residual mean=0.001214 rms=0.002037 Jy/beam
! Combined flux in latest and established models = 1.30241 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 60 components and 1.30241 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.185128Jy  sigma=0.001221
! Fit after  self-cal, rms=0.185125Jy  sigma=0.001221
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.35% of the data.
!  The x-axis pixel size should ideally be below 0.1754 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.00029801 Jy
! Component: 100  -  total flux cleaned = 0.000253696 Jy
! Component: 150  -  total flux cleaned = 0.000209646 Jy
! Component: 200  -  total flux cleaned = 0.000130518 Jy
! Total flux subtracted in 200 components = 0.000130518 Jy
! Clean residual min=-0.004936 max=0.006383 Jy/beam
! Clean residual mean=0.001207 rms=0.002021 Jy/beam
! Combined flux in latest and established models = 1.30254 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 66 components and 1.30254 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.185105Jy  sigma=0.001221
! Fit after  self-cal, rms=0.185104Jy  sigma=0.001221
! Inverting map 
! Your choice of large map pixels excluded 2.35% of the data.
!  The x-axis pixel size should ideally be below 0.1754 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 2.35% of the data.
!  The x-axis pixel size should ideally be below 0.1754 milli-arcsec
! Estimated beam: bmin=0.7653 mas, bmaj=1.782 mas, bpa=-12 degrees
! Estimated noise=487.098 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7653 x 1.782 at -12 degrees (North through East)
! Clean map  min=-0.0047869  max=1.0446 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.185104Jy  sigma=0.001221
! Fit after  self-cal, rms=0.175065Jy  sigma=0.001111
! Inverting map and beam 
! Your choice of large map pixels excluded 2.35% of the data.
!  The x-axis pixel size should ideally be below 0.1754 milli-arcsec
! Estimated beam: bmin=0.7653 mas, bmaj=1.782 mas, bpa=-11.97 degrees
! Estimated noise=486.951 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000735023 Jy
! Component: 100  -  total flux cleaned = -0.000728558 Jy
! Component: 150  -  total flux cleaned = -0.0010129 Jy
! Component: 200  -  total flux cleaned = -0.00126627 Jy
! Total flux subtracted in 200 components = -0.00126627 Jy
! Clean residual min=-0.004193 max=0.004710 Jy/beam
! Clean residual mean=0.000497 rms=0.001308 Jy/beam
! Combined flux in latest and established models = 1.30127 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 69 components and 1.30127 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.174947Jy  sigma=0.001110
! Fit after  self-cal, rms=0.174941Jy  sigma=0.001110
! Inverting map 
! Your choice of large map pixels excluded 2.35% of the data.
!  The x-axis pixel size should ideally be below 0.1754 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000125951 Jy
! Component: 100  -  total flux cleaned = -3.17673e-05 Jy
! Component: 150  -  total flux cleaned = -0.00024928 Jy
! Component: 200  -  total flux cleaned = -0.000315711 Jy
! Total flux subtracted in 200 components = -0.000315711 Jy
! Clean residual min=-0.004038 max=0.004683 Jy/beam
! Clean residual mean=0.000506 rms=0.001278 Jy/beam
! Combined flux in latest and established models = 1.30095 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 75 components and 1.30095 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.174874Jy  sigma=0.001109
! Fit after  self-cal, rms=0.174869Jy  sigma=0.001109
! Inverting map 
! Your choice of large map pixels excluded 2.35% of the data.
!  The x-axis pixel size should ideally be below 0.1754 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.174869Jy  sigma=0.001109
! Fit after  self-cal, rms=0.174930Jy  sigma=0.001109
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 2.35% of the data.
!  The x-axis pixel size should ideally be below 0.1754 milli-arcsec
! Estimated beam: bmin=0.5176 mas, bmaj=1.02 mas, bpa=-5.772 degrees
! Estimated noise=1357.16 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.717649 Jy
! Component: 100  -  total flux cleaned = 0.947455 Jy
! Component: 150  -  total flux cleaned = 1.06299 Jy
! Component: 200  -  total flux cleaned = 1.12697 Jy
! Total flux subtracted in 200 components = 1.12697 Jy
! Clean residual min=-0.014319 max=0.032807 Jy/beam
! Clean residual mean=0.000449 rms=0.005336 Jy/beam
! Combined flux in latest and established models = 1.12697 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 10 model components to the UV plane model.
! The established model now contains 10 components and 1.12697 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 2.35% of the data.
!  The x-axis pixel size should ideally be below 0.1754 milli-arcsec
! Estimated beam: bmin=0.7648 mas, bmaj=1.783 mas, bpa=-11.88 degrees
! Estimated noise=487.09 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.0688453 Jy
! Component: 100  -  total flux cleaned = 0.105089 Jy
! Component: 150  -  total flux cleaned = 0.12703 Jy
! Component: 200  -  total flux cleaned = 0.141064 Jy
! Total flux subtracted in 200 components = 0.141064 Jy
! Clean residual min=-0.003590 max=0.009172 Jy/beam
! Clean residual mean=0.001409 rms=0.002283 Jy/beam
! Combined flux in latest and established models = 1.26803 Jy
! Adding 48 model components to the UV plane model.
! The established model now contains 49 components and 1.26803 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.35% of the data.
!  The x-axis pixel size should ideally be below 0.1754 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 2.35% of the data.
!  The x-axis pixel size should ideally be below 0.1754 milli-arcsec
! Estimated beam: bmin=2.61 mas, bmaj=3.434 mas, bpa=-54.08 degrees
! Estimated noise=596.372 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0146521 Jy
! Component: 100  -  total flux cleaned = 0.0221765 Jy
! Component: 150  -  total flux cleaned = 0.0264423 Jy
! Component: 200  -  total flux cleaned = 0.0288977 Jy
! Total flux subtracted in 200 components = 0.0288977 Jy
! Clean residual min=-0.003922 max=0.006106 Jy/beam
! Clean residual mean=0.001205 rms=0.001690 Jy/beam
! Combined flux in latest and established models = 1.29693 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.00146551 Jy
! Component: 100  -  total flux cleaned = 0.0020015 Jy
! Component: 150  -  total flux cleaned = 0.00221043 Jy
! Component: 200  -  total flux cleaned = 0.00236987 Jy
! Total flux subtracted in 200 components = 0.00236987 Jy
! Clean residual min=-0.003969 max=0.006008 Jy/beam
! Clean residual mean=0.001069 rms=0.001654 Jy/beam
! Combined flux in latest and established models = 1.2993 Jy
! Adding 35 model components to the UV plane model.
! The established model now contains 76 components and 1.2993 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.35% of the data.
!  The x-axis pixel size should ideally be below 0.1754 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 2.35% of the data.
!  The x-axis pixel size should ideally be below 0.1754 milli-arcsec
! Estimated beam: bmin=0.7648 mas, bmaj=1.783 mas, bpa=-11.88 degrees
! Estimated noise=487.09 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000536865 Jy
! Component: 100  -  total flux cleaned = -0.000917762 Jy
! Component: 150  -  total flux cleaned = -0.00123658 Jy
! Component: 200  -  total flux cleaned = -0.0014219 Jy
! Total flux subtracted in 200 components = -0.0014219 Jy
! Clean residual min=-0.003223 max=0.004484 Jy/beam
! Clean residual mean=0.000564 rms=0.001189 Jy/beam
! Combined flux in latest and established models = 1.29788 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 84 components and 1.29788 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.174842Jy  sigma=0.001110
! Fit after  self-cal, rms=0.174732Jy  sigma=0.001109
wmodel J0231+1322_X_2001_10_29_pus_map.mod
! Writing 84 model components to file: J0231+1322_X_2001_10_29_pus_map.mod
wobs J0231+1322_X_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J0231+1322_X_2001_10_29_pus_uvs.fits
wwins J0231+1322_X_2001_10_29_pus_map.win
! wwins: Wrote 2 windows to J0231+1322_X_2001_10_29_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! Your choice of large map pixels excluded 2.35% of the data.
!  The x-axis pixel size should ideally be below 0.1754 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00184366 Jy
! Component: 100  -  total flux cleaned = 0.00349414 Jy
! Component: 150  -  total flux cleaned = 0.00501518 Jy
! Component: 200  -  total flux cleaned = 0.00632766 Jy
! Component: 250  -  total flux cleaned = 0.00751405 Jy
! Component: 300  -  total flux cleaned = 0.00859497 Jy
! Component: 350  -  total flux cleaned = 0.00958046 Jy
! Component: 400  -  total flux cleaned = 0.0103876 Jy
! Component: 450  -  total flux cleaned = 0.011212 Jy
! Component: 500  -  total flux cleaned = 0.0120103 Jy
! Component: 550  -  total flux cleaned = 0.0126566 Jy
! Component: 600  -  total flux cleaned = 0.0131608 Jy
! Component: 650  -  total flux cleaned = 0.0135306 Jy
! Component: 700  -  total flux cleaned = 0.0139724 Jy
! Component: 750  -  total flux cleaned = 0.0143258 Jy
! Component: 800  -  total flux cleaned = 0.0147104 Jy
! Component: 850  -  total flux cleaned = 0.0150115 Jy
! Component: 900  -  total flux cleaned = 0.0153802 Jy
! Component: 950  -  total flux cleaned = 0.015669 Jy
! Component: 1000  -  total flux cleaned = 0.0159519 Jy
! Total flux subtracted in 1024 components = 0.015987 Jy
! Clean residual min=-0.001738 max=0.001926 Jy/beam
! Clean residual mean=0.000193 rms=0.000677 Jy/beam
! Combined flux in latest and established models = 1.31387 Jy
keep
! Adding 71 model components to the UV plane model.
! The established model now contains 154 components and 1.31387 Jy
![Exited script file: muppet]
wmap "J0231+1322_X_2001_10_29_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 2.35% of the data.
!  The x-axis pixel size should ideally be below 0.1754 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7648 x 1.783 at -11.88 degrees (North through East)
! Clean map  min=-0.0023404  max=1.0365 Jy/beam
! Writing clean map to FITS file: J0231+1322_X_2001_10_29_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.03653 
invert
! Inverting map 
! Your choice of large map pixels excluded 2.35% of the data.
!  The x-axis pixel size should ideally be below 0.1754 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000673953 
device "J0231+1322_X_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J0231+1322_X_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.19506 0.19506 0.390119 0.780238 1.56048 3.12095 6.24191 12.4838 24.9676 49.9353 99.8705
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.002 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.036 
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.7648 x 1.783 at -11.88 degrees (North through East)
! Clean map  min=-0.0023404  max=1.0365 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0231+1322_X_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J0231+1322_X_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0231+1322_X_2001_10_29_pus_uvs.log closed on Mon Feb 25 16:06:53 2008