! Started logfile: J0530+1331_X_2000_05_22_pus_uvs.log on Mon Nov 12 16:18:05 2007
obs J0530+1331_X_2000_05_22_pus_uva.fits
! Reading UV FITS file: J0530+1331_X_2000_05_22_pus_uva.fits
! AN table 1: 167 integrations on 190 of 190 possible baselines.
! AN table 2: 147 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.122293 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0530+1331
! 
! 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 1884 lines of history.
! 
! Reading 29184 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 J0530+1331_X_2000_05_22_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 2540 telescope corrections were flagged in sub-array 1.
!  A total of 2042 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 2541 telescope corrections were flagged in sub-array 1.
!  A total of 2042 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 2541 telescope corrections were flagged in sub-array 1.
!  A total of 2042 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 2541 telescope corrections were flagged in sub-array 1.
!  A total of 2042 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=2.293042Jy  sigma=0.027717
! Fit after  self-cal, rms=1.917242Jy  sigma=0.022913
! 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 4.32% of the data.
!  The x-axis pixel size should ideally be below 0.1628 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1802 milli-arcsec
! Estimated beam: bmin=0.6033 mas, bmaj=1.139 mas, bpa=-9.816 degrees
! Estimated noise=861.541 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 = 2.10894 Jy
! Component: 100  -  total flux cleaned = 2.62185 Jy
! Total flux subtracted in 100 components = 2.62185 Jy
! Clean residual min=-0.056211 max=0.214826 Jy/beam
! Clean residual mean=0.001377 rms=0.022246 Jy/beam
! Combined flux in latest and established models = 2.62185 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 2.62185 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.706840Jy  sigma=0.006897
! Fit after  self-cal, rms=0.705827Jy  sigma=0.006891
! Inverting map 
! Your choice of large map pixels excluded 4.32% of the data.
!  The x-axis pixel size should ideally be below 0.1628 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1802 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.236604 Jy
! Component: 100  -  total flux cleaned = 0.37567 Jy
! Total flux subtracted in 100 components = 0.37567 Jy
! Clean residual min=-0.049052 max=0.166530 Jy/beam
! Clean residual mean=0.000644 rms=0.015164 Jy/beam
! Combined flux in latest and established models = 2.99752 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 21 components and 2.99752 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.605149Jy  sigma=0.004665
! Fit after  self-cal, rms=0.603794Jy  sigma=0.004650
! Inverting map 
! Your choice of large map pixels excluded 4.32% of the data.
!  The x-axis pixel size should ideally be below 0.1628 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1802 milli-arcsec
! Added new window around map position (1, 1.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.143403 Jy
! Component: 100  -  total flux cleaned = 0.228286 Jy
! Total flux subtracted in 100 components = 0.228286 Jy
! Clean residual min=-0.040305 max=0.094399 Jy/beam
! Clean residual mean=0.000224 rms=0.011460 Jy/beam
! Combined flux in latest and established models = 3.2258 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 34 components and 3.2258 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.567448Jy  sigma=0.003665
! Fit after  self-cal, rms=0.561228Jy  sigma=0.003568
! Inverting map 
! Your choice of large map pixels excluded 4.32% of the data.
!  The x-axis pixel size should ideally be below 0.1628 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1802 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0788718 Jy
! Component: 100  -  total flux cleaned = 0.132943 Jy
! Total flux subtracted in 100 components = 0.132943 Jy
! Clean residual min=-0.037580 max=0.061543 Jy/beam
! Clean residual mean=-0.000031 rms=0.009592 Jy/beam
! Combined flux in latest and established models = 3.35875 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 45 components and 3.35875 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.550300Jy  sigma=0.003168
! Fit after  self-cal, rms=0.548566Jy  sigma=0.003141
! Inverting map 
! Your choice of large map pixels excluded 4.32% of the data.
!  The x-axis pixel size should ideally be below 0.1628 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1802 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 4.32% of the data.
!  The x-axis pixel size should ideally be below 0.1628 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1802 milli-arcsec
! Estimated beam: bmin=0.7222 mas, bmaj=1.468 mas, bpa=-11.49 degrees
! Estimated noise=391.396 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.0660808 Jy
! Component: 100  -  total flux cleaned = 0.100777 Jy
! Component: 150  -  total flux cleaned = 0.122833 Jy
! Component: 200  -  total flux cleaned = 0.137235 Jy
! Total flux subtracted in 200 components = 0.137235 Jy
! Clean residual min=-0.034697 max=0.051241 Jy/beam
! Clean residual mean=-0.001842 rms=0.009121 Jy/beam
! Combined flux in latest and established models = 3.49598 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 55 components and 3.49598 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.543267Jy  sigma=0.002898
! Fit after  self-cal, rms=0.542028Jy  sigma=0.002873
! Inverting map 
! Your choice of large map pixels excluded 4.32% of the data.
!  The x-axis pixel size should ideally be below 0.1628 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1802 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        0.95     FD        0.96     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        0.98     KP        1.02     
!   MA        1.00*    MC        1.32     MK        0.98     NL        0.97     
!   NY        1.12     OV        0.96     PT        0.99     SC        1.04     
!   TS        1.00*    WF        1.01     WZ        1.10     LA        0.98     
! 
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.99     GC        0.99     GG        1.00*    
!   HH        0.88     HN        1.09     KK        0.99     KP        1.04     
!   MA        1.00     MC        1.12     MK        0.98     NL        0.99     
!   NY        1.12     OV        0.98     PT        1.02     SC        1.00*    
!   TS        0.98     WF        1.08     WZ        0.99     LA        1.03     
! 
! 
! Correcting IF 2.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.00     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        0.96     KP        0.97     
!   MA        1.00*    MC        1.33     MK        0.98     NL        0.99     
!   NY        1.13     OV        0.99     PT        0.96     SC        1.04     
!   TS        1.00*    WF        1.00     WZ        1.11     LA        0.94     
! 
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.03     GC        1.02     GG        1.00*    
!   HH        0.89     HN        1.08     KK        1.01     KP        0.99     
!   MA        1.11     MC        1.15     MK        0.97     NL        1.02     
!   NY        1.10     OV        1.01     PT        0.99     SC        1.00*    
!   TS        0.98     WF        1.08     WZ        0.98     LA        0.99     
! 
! 
! Correcting IF 3.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.98     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        0.93     KP        1.01     
!   MA        1.00*    MC        1.32     MK        0.99     NL        0.96     
!   NY        1.12     OV        0.95     PT        0.98     SC        1.05     
!   TS        1.00*    WF        1.03     WZ        1.12     LA        0.98     
! 
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.01     GC        0.99     GG        1.00*    
!   HH        0.83     HN        1.08     KK        0.95     KP        1.03     
!   MA        1.12     MC        1.09     MK        0.98     NL        0.99     
!   NY        1.10     OV        0.98     PT        1.01     SC        1.00*    
!   TS        0.94     WF        1.10     WZ        1.02     LA        1.03     
! 
! 
! Correcting IF 4.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.96     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        0.95     KP        1.00     
!   MA        1.00*    MC        1.33     MK        1.02     NL        0.96     
!   NY        1.12     OV        0.95     PT        0.98     SC        1.05     
!   TS        1.00*    WF        0.95     WZ        1.11     LA        0.94     
! 
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.00     GC        1.00     GG        1.00*    
!   HH        0.84     HN        1.08     KK        0.98     KP        1.02     
!   MA        1.07     MC        1.12     MK        1.02     NL        0.99     
!   NY        1.07     OV        0.97     PT        1.01     SC        1.00*    
!   TS        0.94     WF        1.03     WZ        1.02     LA        0.99     
! 
! 
! Fit before self-cal, rms=0.542028Jy  sigma=0.002873
! Fit after  self-cal, rms=0.551577Jy  sigma=0.001996
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 4.34% of the data.
!  The x-axis pixel size should ideally be below 0.1628 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1802 milli-arcsec
! Estimated beam: bmin=0.7255 mas, bmaj=1.496 mas, bpa=-10.89 degrees
! Estimated noise=391.339 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.00845536 Jy
! Component: 100  -  total flux cleaned = -0.0125423 Jy
! Component: 150  -  total flux cleaned = -0.0157134 Jy
! Component: 200  -  total flux cleaned = -0.0167328 Jy
! Total flux subtracted in 200 components = -0.0167328 Jy
! Clean residual min=-0.014100 max=0.023636 Jy/beam
! Clean residual mean=-0.000018 rms=0.004084 Jy/beam
! Combined flux in latest and established models = 3.47925 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 60 components and 3.47925 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.549025Jy  sigma=0.001933
! Fit after  self-cal, rms=0.549314Jy  sigma=0.001927
! Inverting map 
! Your choice of large map pixels excluded 4.34% of the data.
!  The x-axis pixel size should ideally be below 0.1628 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1802 milli-arcsec
! Added new window around map position (1, 3.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0204008 Jy
! Component: 100  -  total flux cleaned = 0.0238427 Jy
! Component: 150  -  total flux cleaned = 0.0252805 Jy
! Component: 200  -  total flux cleaned = 0.0265442 Jy
! Total flux subtracted in 200 components = 0.0265442 Jy
! Clean residual min=-0.013306 max=0.013212 Jy/beam
! Clean residual mean=-0.000246 rms=0.003299 Jy/beam
! Combined flux in latest and established models = 3.50579 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 72 components and 3.50579 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.548302Jy  sigma=0.001885
! Fit after  self-cal, rms=0.548195Jy  sigma=0.001881
! Inverting map 
! Your choice of large map pixels excluded 4.34% of the data.
!  The x-axis pixel size should ideally be below 0.1628 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1802 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.548195Jy  sigma=0.001881
! Fit after  self-cal, rms=0.536297Jy  sigma=0.001754
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.34% of the data.
!  The x-axis pixel size should ideally be below 0.1628 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1802 milli-arcsec
! Estimated beam: bmin=0.7257 mas, bmaj=1.496 mas, bpa=-10.88 degrees
! Estimated noise=390.242 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00287982 Jy
! Component: 100  -  total flux cleaned = -0.00286986 Jy
! Component: 150  -  total flux cleaned = -0.0021097 Jy
! Component: 200  -  total flux cleaned = -0.00143305 Jy
! Total flux subtracted in 200 components = -0.00143305 Jy
! Clean residual min=-0.009004 max=0.010437 Jy/beam
! Clean residual mean=-0.000158 rms=0.002303 Jy/beam
! Combined flux in latest and established models = 3.50436 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 78 components and 3.50436 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.535550Jy  sigma=0.001725
! Fit after  self-cal, rms=0.535585Jy  sigma=0.001724
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.34% of the data.
!  The x-axis pixel size should ideally be below 0.1628 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1802 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.4, 3.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00533858 Jy
! Component: 100  -  total flux cleaned = 0.00594878 Jy
! Component: 150  -  total flux cleaned = 0.00621075 Jy
! Component: 200  -  total flux cleaned = 0.0066923 Jy
! Total flux subtracted in 200 components = 0.0066923 Jy
! Clean residual min=-0.008579 max=0.008155 Jy/beam
! Clean residual mean=-0.000212 rms=0.002017 Jy/beam
! Combined flux in latest and established models = 3.51105 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 84 components and 3.51105 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.535206Jy  sigma=0.001710
! Fit after  self-cal, rms=0.535200Jy  sigma=0.001709
! Inverting map 
! Your choice of large map pixels excluded 4.34% of the data.
!  The x-axis pixel size should ideally be below 0.1628 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1802 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.535200Jy  sigma=0.001709
! Fit after  self-cal, rms=0.529203Jy  sigma=0.001699
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.34% of the data.
!  The x-axis pixel size should ideally be below 0.1628 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1802 milli-arcsec
! Estimated beam: bmin=0.7258 mas, bmaj=1.496 mas, bpa=-10.87 degrees
! Estimated noise=389.772 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000533958 Jy
! Component: 100  -  total flux cleaned = 7.04829e-06 Jy
! Component: 150  -  total flux cleaned = 0.000947119 Jy
! Component: 200  -  total flux cleaned = 0.00155307 Jy
! Total flux subtracted in 200 components = 0.00155307 Jy
! Clean residual min=-0.007968 max=0.006334 Jy/beam
! Clean residual mean=-0.000077 rms=0.001671 Jy/beam
! Combined flux in latest and established models = 3.5126 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 90 components and 3.5126 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.528929Jy  sigma=0.001689
! Fit after  self-cal, rms=0.528954Jy  sigma=0.001689
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.34% of the data.
!  The x-axis pixel size should ideally be below 0.1628 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1802 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.00148404 Jy
! Component: 100  -  total flux cleaned = 0.0018537 Jy
! Component: 150  -  total flux cleaned = 0.00235769 Jy
! Component: 200  -  total flux cleaned = 0.002674 Jy
! Total flux subtracted in 200 components = 0.002674 Jy
! Clean residual min=-0.007482 max=0.005600 Jy/beam
! Clean residual mean=-0.000099 rms=0.001578 Jy/beam
! Combined flux in latest and established models = 3.51528 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 97 components and 3.51528 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.528829Jy  sigma=0.001684
! Fit after  self-cal, rms=0.528841Jy  sigma=0.001684
! Inverting map 
! Your choice of large map pixels excluded 4.34% of the data.
!  The x-axis pixel size should ideally be below 0.1628 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1802 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.528841Jy  sigma=0.001684
! Fit after  self-cal, rms=0.529976Jy  sigma=0.001683
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.34% of the data.
!  The x-axis pixel size should ideally be below 0.1628 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1802 milli-arcsec
! Estimated beam: bmin=2.254 mas, bmaj=2.814 mas, bpa=-14.91 degrees
! Estimated noise=528.35 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000126189 Jy
! Component: 100  -  total flux cleaned = 0.000451705 Jy
! Component: 150  -  total flux cleaned = 0.000219711 Jy
! Component: 200  -  total flux cleaned = -0.000173156 Jy
! Total flux subtracted in 200 components = -0.000173156 Jy
! Clean residual min=-0.006222 max=0.007296 Jy/beam
! Clean residual mean=-0.000198 rms=0.002423 Jy/beam
! Combined flux in latest and established models = 3.51511 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 112 components and 3.51511 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.529941Jy  sigma=0.001681
! Fit after  self-cal, rms=0.529956Jy  sigma=0.001680
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.34% of the data.
!  The x-axis pixel size should ideally be below 0.1628 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1802 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.00180483 Jy
! Component: 100  -  total flux cleaned = 0.001715 Jy
! Component: 150  -  total flux cleaned = 0.00149685 Jy
! Component: 200  -  total flux cleaned = 0.00130165 Jy
! Total flux subtracted in 200 components = 0.00130165 Jy
! Clean residual min=-0.005697 max=0.006698 Jy/beam
! Clean residual mean=-0.000226 rms=0.002267 Jy/beam
! Combined flux in latest and established models = 3.51641 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 124 components and 3.51641 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.529957Jy  sigma=0.001680
! Fit after  self-cal, rms=0.529962Jy  sigma=0.001680
! Inverting map 
! Your choice of large map pixels excluded 4.34% of the data.
!  The x-axis pixel size should ideally be below 0.1628 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1802 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 4.34% of the data.
!  The x-axis pixel size should ideally be below 0.1628 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1802 milli-arcsec
! Estimated beam: bmin=0.726 mas, bmaj=1.497 mas, bpa=-10.86 degrees
! Estimated noise=389.487 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.726 x 1.497 at -10.86 degrees (North through East)
! Clean map  min=-0.005737  max=2.749 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.529962Jy  sigma=0.001680
! Fit after  self-cal, rms=1.529691Jy  sigma=0.001487
! Inverting map and beam 
! Your choice of large map pixels excluded 4.34% of the data.
!  The x-axis pixel size should ideally be below 0.1628 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1802 milli-arcsec
! Estimated beam: bmin=0.726 mas, bmaj=1.498 mas, bpa=-10.92 degrees
! Estimated noise=389.131 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00391884 Jy
! Component: 100  -  total flux cleaned = -0.00424233 Jy
! Component: 150  -  total flux cleaned = -0.00396982 Jy
! Component: 200  -  total flux cleaned = -0.00371759 Jy
! Total flux subtracted in 200 components = -0.00371759 Jy
! Clean residual min=-0.005378 max=0.003443 Jy/beam
! Clean residual mean=-0.000148 rms=0.001043 Jy/beam
! Combined flux in latest and established models = 3.51269 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 130 components and 3.51269 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.529637Jy  sigma=0.001483
! Fit after  self-cal, rms=1.529667Jy  sigma=0.001482
! Inverting map 
! Your choice of large map pixels excluded 4.34% of the data.
!  The x-axis pixel size should ideally be below 0.1628 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1802 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000233013 Jy
! Component: 100  -  total flux cleaned = 0.000568618 Jy
! Component: 150  -  total flux cleaned = 0.000672847 Jy
! Component: 200  -  total flux cleaned = 0.0008687 Jy
! Total flux subtracted in 200 components = 0.0008687 Jy
! Clean residual min=-0.004960 max=0.003361 Jy/beam
! Clean residual mean=-0.000156 rms=0.001013 Jy/beam
! Combined flux in latest and established models = 3.51356 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 131 components and 3.51356 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.529637Jy  sigma=0.001481
! Fit after  self-cal, rms=1.529655Jy  sigma=0.001480
! Inverting map 
! Your choice of large map pixels excluded 4.34% of the data.
!  The x-axis pixel size should ideally be below 0.1628 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1802 milli-arcsec
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.529655Jy  sigma=0.001480
! Fit after  self-cal, rms=1.541956Jy  sigma=0.001480
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 4.34% of the data.
!  The x-axis pixel size should ideally be below 0.1628 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1802 milli-arcsec
! Estimated beam: bmin=0.6106 mas, bmaj=1.155 mas, bpa=-9.413 degrees
! Estimated noise=863.94 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.11742 Jy
! Component: 100  -  total flux cleaned = 2.62113 Jy
! Component: 150  -  total flux cleaned = 2.86867 Jy
! Component: 200  -  total flux cleaned = 3.02201 Jy
! Total flux subtracted in 200 components = 3.02201 Jy
! Clean residual min=-0.019751 max=0.080867 Jy/beam
! Clean residual mean=0.000871 rms=0.008759 Jy/beam
! Combined flux in latest and established models = 3.02201 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 3.02201 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 4.34% of the data.
!  The x-axis pixel size should ideally be below 0.1628 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1802 milli-arcsec
! Estimated beam: bmin=0.7261 mas, bmaj=1.499 mas, bpa=-10.91 degrees
! Estimated noise=388.916 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.162385 Jy
! Component: 100  -  total flux cleaned = 0.253896 Jy
! Component: 150  -  total flux cleaned = 0.313031 Jy
! Component: 200  -  total flux cleaned = 0.355504 Jy
! Total flux subtracted in 200 components = 0.355504 Jy
! Clean residual min=-0.008817 max=0.024137 Jy/beam
! Clean residual mean=0.000981 rms=0.004951 Jy/beam
! Combined flux in latest and established models = 3.37752 Jy
! Adding 55 model components to the UV plane model.
! The established model now contains 60 components and 3.37752 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.34% of the data.
!  The x-axis pixel size should ideally be below 0.1628 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1802 milli-arcsec
! Added new window around map position (0.6, -0.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.031189 Jy
! Component: 100  -  total flux cleaned = 0.0544412 Jy
! Component: 150  -  total flux cleaned = 0.0720709 Jy
! Component: 200  -  total flux cleaned = 0.0856171 Jy
! Total flux subtracted in 200 components = 0.0856171 Jy
! Clean residual min=-0.004816 max=0.007915 Jy/beam
! Clean residual mean=0.000274 rms=0.001928 Jy/beam
! Combined flux in latest and established models = 3.46313 Jy
! Adding 51 model components to the UV plane model.
! The established model now contains 95 components and 3.46313 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.34% of the data.
!  The x-axis pixel size should ideally be below 0.1628 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1802 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 4.34% of the data.
!  The x-axis pixel size should ideally be below 0.1628 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1802 milli-arcsec
! Estimated beam: bmin=2.254 mas, bmaj=2.816 mas, bpa=-14.89 degrees
! Estimated noise=527.265 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0206484 Jy
! Component: 100  -  total flux cleaned = 0.0315372 Jy
! Component: 150  -  total flux cleaned = 0.0380023 Jy
! Component: 200  -  total flux cleaned = 0.0420088 Jy
! Total flux subtracted in 200 components = 0.0420088 Jy
! Clean residual min=-0.004153 max=0.003540 Jy/beam
! Clean residual mean=-0.000204 rms=0.001361 Jy/beam
! Combined flux in latest and established models = 3.50514 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.00253851 Jy
! Component: 100  -  total flux cleaned = 0.00312743 Jy
! Component: 150  -  total flux cleaned = 0.00360756 Jy
! Component: 200  -  total flux cleaned = 0.00380837 Jy
! Total flux subtracted in 200 components = 0.00380837 Jy
! Clean residual min=-0.003669 max=0.003078 Jy/beam
! Clean residual mean=-0.000295 rms=0.001245 Jy/beam
! Combined flux in latest and established models = 3.50895 Jy
! Adding 83 model components to the UV plane model.
! The established model now contains 154 components and 3.50895 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.34% of the data.
!  The x-axis pixel size should ideally be below 0.1628 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1802 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 4.34% of the data.
!  The x-axis pixel size should ideally be below 0.1628 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1802 milli-arcsec
! Estimated beam: bmin=0.7261 mas, bmaj=1.499 mas, bpa=-10.91 degrees
! Estimated noise=388.916 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00159008 Jy
! Component: 100  -  total flux cleaned = -0.00160547 Jy
! Component: 150  -  total flux cleaned = -0.00108636 Jy
! Component: 200  -  total flux cleaned = -0.00085147 Jy
! Total flux subtracted in 200 components = -0.00085147 Jy
! Clean residual min=-0.003308 max=0.003483 Jy/beam
! Clean residual mean=-0.000097 rms=0.000963 Jy/beam
! Combined flux in latest and established models = 3.5081 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 163 components and 3.5081 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.542302Jy  sigma=0.001504
! Fit after  self-cal, rms=1.542375Jy  sigma=0.001502
wmodel J0530+1331_X_2000_05_22_pus_map.mod
! Writing 163 model components to file: J0530+1331_X_2000_05_22_pus_map.mod
wobs J0530+1331_X_2000_05_22_pus_uvs.fits
! Writing UV FITS file: J0530+1331_X_2000_05_22_pus_uvs.fits
wwins J0530+1331_X_2000_05_22_pus_map.win
! wwins: Wrote 5 windows to J0530+1331_X_2000_05_22_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 4.34% of the data.
!  The x-axis pixel size should ideally be below 0.1628 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1802 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000366829 Jy
! Component: 100  -  total flux cleaned = 0.000535175 Jy
! Component: 150  -  total flux cleaned = 0.000374427 Jy
! Component: 200  -  total flux cleaned = 0.000217674 Jy
! Component: 250  -  total flux cleaned = 1.5091e-05 Jy
! Component: 300  -  total flux cleaned = 0.000114195 Jy
! Component: 350  -  total flux cleaned = 0.000305474 Jy
! Component: 400  -  total flux cleaned = 0.000305193 Jy
! Component: 450  -  total flux cleaned = 0.00035158 Jy
! Component: 500  -  total flux cleaned = 0.000216834 Jy
! Component: 550  -  total flux cleaned = 0.000172289 Jy
! Component: 600  -  total flux cleaned = -1.09343e-06 Jy
! Component: 650  -  total flux cleaned = -4.34946e-05 Jy
! Component: 700  -  total flux cleaned = -8.61884e-05 Jy
! Component: 750  -  total flux cleaned = -0.000295072 Jy
! Component: 800  -  total flux cleaned = -0.000418235 Jy
! Component: 850  -  total flux cleaned = -0.00058095 Jy
! Component: 900  -  total flux cleaned = -0.000701681 Jy
! Component: 950  -  total flux cleaned = -0.000781221 Jy
! Component: 1000  -  total flux cleaned = -0.000899194 Jy
! Total flux subtracted in 1024 components = -0.00101663 Jy
! Clean residual min=-0.001962 max=0.002580 Jy/beam
! Clean residual mean=-0.000086 rms=0.000780 Jy/beam
! Combined flux in latest and established models = 3.50708 Jy
keep
! Adding 80 model components to the UV plane model.
! The established model now contains 238 components and 3.50708 Jy
![Exited script file: muppet]
wmap "J0530+1331_X_2000_05_22_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 4.34% of the data.
!  The x-axis pixel size should ideally be below 0.1628 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1802 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7261 x 1.499 at -10.91 degrees (North through East)
! Clean map  min=-0.0027028  max=2.7572 Jy/beam
! Writing clean map to FITS file: J0530+1331_X_2000_05_22_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 2.7572 
invert
! Inverting map 
! Your choice of large map pixels excluded 4.34% of the data.
!  The x-axis pixel size should ideally be below 0.1628 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1802 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000780354 
device "J0530+1331_X_2000_05_22_pus\_map.eps/VPS"
! Attempting to open device: 'J0530+1331_X_2000_05_22_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.0849072 0.0849072 0.169814 0.339629 0.679257 1.35851 2.71703 5.43406 10.8681 21.7362 43.4725 86.9449
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0023 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.757 
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.7261 x 1.499 at -10.91 degrees (North through East)
! Clean map  min=-0.0027028  max=2.7572 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0530+1331_X_2000_05_22_pus\_map.gif/vgif"
! Attempting to open device: 'J0530+1331_X_2000_05_22_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0530+1331_X_2000_05_22_pus_uvs.log closed on Mon Nov 12 16:18:18 2007