! Started logfile: J0530+1331_X_2001_10_29_pus_uvs.log on Mon Feb 25 16:08:17 2008
obs J0530+1331_X_2001_10_29_pus_uva.fits
! Reading UV FITS file: J0530+1331_X_2001_10_29_pus_uva.fits
! AN table 1: 92 integrations on 153 of 153 possible baselines.
! AN table 2: 196 integrations on 153 of 153 possible baselines.
! AN table 3: 57 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.104064 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 1970 lines of history.
! 
! Reading 21972 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_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 1131 telescope corrections were flagged in sub-array 1.
!  A total of 2976 telescope corrections were flagged in sub-array 2.
!  A total of 521 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1131 telescope corrections were flagged in sub-array 1.
!  A total of 2976 telescope corrections were flagged in sub-array 2.
!  A total of 521 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1131 telescope corrections were flagged in sub-array 1.
!  A total of 2976 telescope corrections were flagged in sub-array 2.
!  A total of 521 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1131 telescope corrections were flagged in sub-array 1.
!  A total of 2976 telescope corrections were flagged in sub-array 2.
!  A total of 521 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.542482Jy  sigma=0.015387
! Fit after  self-cal, rms=1.087815Jy  sigma=0.010433
! 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.5% of the data.
!  The x-axis pixel size should ideally be below 0.1539 milli-arcsec
! Estimated beam: bmin=0.5485 mas, bmaj=1.189 mas, bpa=-3.785 degrees
! Estimated noise=1197.89 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 = 1.48069 Jy
! Component: 100  -  total flux cleaned = 1.86016 Jy
! Total flux subtracted in 100 components = 1.86016 Jy
! Clean residual min=-0.037655 max=0.167552 Jy/beam
! Clean residual mean=0.002452 rms=0.016632 Jy/beam
! Combined flux in latest and established models = 1.86016 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 1.86016 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.442610Jy  sigma=0.004184
! Fit after  self-cal, rms=0.441613Jy  sigma=0.004179
! Inverting map 
! Your choice of large map pixels excluded 2.5% of the data.
!  The x-axis pixel size should ideally be below 0.1539 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.187152 Jy
! Component: 100  -  total flux cleaned = 0.287635 Jy
! Total flux subtracted in 100 components = 0.287635 Jy
! Clean residual min=-0.033649 max=0.090574 Jy/beam
! Clean residual mean=0.001381 rms=0.010621 Jy/beam
! Combined flux in latest and established models = 2.1478 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 9 components and 2.1478 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.326296Jy  sigma=0.002855
! Fit after  self-cal, rms=0.324701Jy  sigma=0.002845
! Inverting map 
! Your choice of large map pixels excluded 2.5% of the data.
!  The x-axis pixel size should ideally be below 0.1539 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.0845796 Jy
! Component: 100  -  total flux cleaned = 0.135078 Jy
! Total flux subtracted in 100 components = 0.135078 Jy
! Clean residual min=-0.028915 max=0.051621 Jy/beam
! Clean residual mean=0.000860 rms=0.008572 Jy/beam
! Combined flux in latest and established models = 2.28288 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 20 components and 2.28288 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.288182Jy  sigma=0.002395
! Fit after  self-cal, rms=0.285202Jy  sigma=0.002371
! Inverting map 
! Your choice of large map pixels excluded 2.5% of the data.
!  The x-axis pixel size should ideally be below 0.1539 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.5% of the data.
!  The x-axis pixel size should ideally be below 0.1539 milli-arcsec
! Estimated beam: bmin=0.6991 mas, bmaj=1.868 mas, bpa=-6.512 degrees
! Estimated noise=552.176 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.0855242 Jy
! Component: 100  -  total flux cleaned = 0.136243 Jy
! Component: 150  -  total flux cleaned = 0.169737 Jy
! Component: 200  -  total flux cleaned = 0.192257 Jy
! Total flux subtracted in 200 components = 0.192257 Jy
! Clean residual min=-0.025855 max=0.030376 Jy/beam
! Clean residual mean=0.000499 rms=0.009207 Jy/beam
! Combined flux in latest and established models = 2.47513 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 42 components and 2.47513 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.263517Jy  sigma=0.002021
! Fit after  self-cal, rms=0.261589Jy  sigma=0.002001
! Inverting map 
! Your choice of large map pixels excluded 2.5% of the data.
!  The x-axis pixel size should ideally be below 0.1539 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 69 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.00*    GG        1.00*    HH        1.01     
!   HN        1.00     KK        0.98     KP        1.00     LA        0.98     
!   MA        0.96     MC        1.02     MK        0.97     NL        1.05     
!   OV        1.00     PT        1.00     SC        1.02     TS        0.97     
!   WF        0.97     WZ        0.97     
! 
!  A total of 162 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.00*    GG        1.00*    HH        1.06     
!   HN        1.05     KK        0.98     KP        1.00     LA        0.99     
!   MA        1.01     MC        0.92     MK        0.96     NL        1.09     
!   OV        0.99     PT        1.00*    SC        1.00     TS        1.00*    
!   WF        1.02     WZ        0.98     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.01     KK        0.98     KP        0.98     LA        0.97     
!   MA        1.00*    MC        1.00*    MK        1.00     NL        0.99     
!   OV        0.95     PT        1.00     SC        1.00     TS        1.00*    
!   WF        0.99     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 69 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.00*    GG        1.00*    HH        0.99     
!   HN        1.00     KK        1.03     KP        1.02     LA        0.96     
!   MA        0.97     MC        1.02     MK        0.97     NL        1.01     
!   OV        1.00     PT        0.97     SC        0.97     TS        0.97     
!   WF        0.96     WZ        0.97     
! 
!  A total of 162 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.05     
!   HN        1.04     KK        1.03     KP        1.01     LA        0.97     
!   MA        1.01     MC        0.93     MK        0.96     NL        1.05     
!   OV        0.99     PT        1.00*    SC        0.95     TS        1.00*    
!   WF        0.99     WZ        0.98     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.01     KK        1.04     KP        0.99     LA        0.94     
!   MA        1.00*    MC        1.00*    MK        1.00     NL        0.96     
!   OV        0.96     PT        0.98     SC        0.97     TS        1.00*    
!   WF        0.97     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 69 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.00*    GG        1.00*    HH        0.93     
!   HN        1.00     KK        0.98     KP        1.01     LA        1.00     
!   MA        0.96     MC        0.99     MK        0.99     NL        1.05     
!   OV        0.98     PT        1.00     SC        1.00     TS        0.94     
!   WF        1.01     WZ        0.97     
! 
!  A total of 162 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.00*    GG        1.00*    HH        1.13     
!   HN        1.06     KK        0.97     KP        1.00     LA        1.02     
!   MA        0.98     MC        0.88     MK        0.97     NL        1.10     
!   OV        0.99     PT        1.00*    SC        0.98     TS        1.00*    
!   WF        1.03     WZ        0.97     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.02     KK        1.00     KP        0.98     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        1.02     NL        1.00     
!   OV        0.94     PT        1.01     SC        0.99     TS        1.00*    
!   WF        1.02     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 69 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        1.00*    GG        1.00*    HH        0.92     
!   HN        1.03     KK        0.99     KP        1.03     LA        0.97     
!   MA        0.98     MC        1.02     MK        1.04     NL        1.07     
!   OV        0.97     PT        1.00     SC        1.05     TS        0.96     
!   WF        1.00     WZ        0.92     
! 
!  A total of 162 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.00*    GG        1.00*    HH        1.07     
!   HN        1.08     KK        0.99     KP        1.02     LA        0.99     
!   MA        1.05     MC        0.89     MK        1.01     NL        1.12     
!   OV        0.97     PT        1.00*    SC        1.03     TS        1.00*    
!   WF        1.05     WZ        0.89     
! 
!  A total of 3 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.04     KK        1.01     KP        1.00     LA        0.95     
!   MA        1.00*    MC        1.00*    MK        1.05     NL        1.01     
!   OV        0.93     PT        1.01     SC        1.03     TS        1.00*    
!   WF        1.02     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.261589Jy  sigma=0.002001
! Fit after  self-cal, rms=0.231868Jy  sigma=0.001720
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2.61% of the data.
!  The x-axis pixel size should ideally be below 0.1539 milli-arcsec
! Estimated beam: bmin=0.6905 mas, bmaj=1.914 mas, bpa=-6.506 degrees
! Estimated noise=556.148 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.8, 3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0289282 Jy
! Component: 100  -  total flux cleaned = 0.044743 Jy
! Component: 150  -  total flux cleaned = 0.04839 Jy
! Component: 200  -  total flux cleaned = 0.0509067 Jy
! Total flux subtracted in 200 components = 0.0509067 Jy
! Clean residual min=-0.016261 max=0.013603 Jy/beam
! Clean residual mean=0.000664 rms=0.004204 Jy/beam
! Combined flux in latest and established models = 2.52604 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 61 components and 2.52604 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227202Jy  sigma=0.001676
! Fit after  self-cal, rms=0.227159Jy  sigma=0.001672
! Inverting map 
! Your choice of large map pixels excluded 2.61% of the data.
!  The x-axis pixel size should ideally be below 0.1539 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.227159Jy  sigma=0.001672
! Fit after  self-cal, rms=0.205908Jy  sigma=0.001540
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.61% of the data.
!  The x-axis pixel size should ideally be below 0.1539 milli-arcsec
! Estimated beam: bmin=0.69 mas, bmaj=1.912 mas, bpa=-6.492 degrees
! Estimated noise=557.145 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0133013 Jy
! Component: 100  -  total flux cleaned = 0.0190995 Jy
! Component: 150  -  total flux cleaned = 0.0201585 Jy
! Component: 200  -  total flux cleaned = 0.0206284 Jy
! Total flux subtracted in 200 components = 0.0206284 Jy
! Clean residual min=-0.006812 max=0.013879 Jy/beam
! Clean residual mean=0.000423 rms=0.001927 Jy/beam
! Combined flux in latest and established models = 2.54667 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 71 components and 2.54667 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.204854Jy  sigma=0.001529
! Fit after  self-cal, rms=0.204863Jy  sigma=0.001527
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.61% of the data.
!  The x-axis pixel size should ideally be below 0.1539 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.2, 4.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0103857 Jy
! Component: 100  -  total flux cleaned = 0.0124776 Jy
! Component: 150  -  total flux cleaned = 0.012663 Jy
! Component: 200  -  total flux cleaned = 0.012838 Jy
! Total flux subtracted in 200 components = 0.012838 Jy
! Clean residual min=-0.005982 max=0.005655 Jy/beam
! Clean residual mean=0.000165 rms=0.001491 Jy/beam
! Combined flux in latest and established models = 2.55951 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 83 components and 2.55951 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.204041Jy  sigma=0.001519
! Fit after  self-cal, rms=0.203928Jy  sigma=0.001518
! Inverting map 
! Your choice of large map pixels excluded 2.61% of the data.
!  The x-axis pixel size should ideally be below 0.1539 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.203928Jy  sigma=0.001518
! Fit after  self-cal, rms=0.203811Jy  sigma=0.001515
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.61% of the data.
!  The x-axis pixel size should ideally be below 0.1539 milli-arcsec
! Estimated beam: bmin=0.6899 mas, bmaj=1.912 mas, bpa=-6.487 degrees
! Estimated noise=557.367 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00704256 Jy
! Component: 100  -  total flux cleaned = 0.00980046 Jy
! Component: 150  -  total flux cleaned = 0.0107728 Jy
! Component: 200  -  total flux cleaned = 0.0114865 Jy
! Total flux subtracted in 200 components = 0.0114865 Jy
! Clean residual min=-0.004771 max=0.004467 Jy/beam
! Clean residual mean=-0.000046 rms=0.001225 Jy/beam
! Combined flux in latest and established models = 2.57099 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 91 components and 2.57099 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.203479Jy  sigma=0.001512
! Fit after  self-cal, rms=0.203446Jy  sigma=0.001511
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.61% of the data.
!  The x-axis pixel size should ideally be below 0.1539 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.00158597 Jy
! Component: 100  -  total flux cleaned = 0.00239041 Jy
! Component: 150  -  total flux cleaned = 0.002513 Jy
! Component: 200  -  total flux cleaned = 0.00262473 Jy
! Total flux subtracted in 200 components = 0.00262473 Jy
! Clean residual min=-0.004486 max=0.004193 Jy/beam
! Clean residual mean=-0.000099 rms=0.001140 Jy/beam
! Combined flux in latest and established models = 2.57362 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 99 components and 2.57362 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.203309Jy  sigma=0.001510
! Fit after  self-cal, rms=0.203287Jy  sigma=0.001510
! Inverting map 
! Your choice of large map pixels excluded 2.61% of the data.
!  The x-axis pixel size should ideally be below 0.1539 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.203287Jy  sigma=0.001510
! Fit after  self-cal, rms=0.203293Jy  sigma=0.001509
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.61% of the data.
!  The x-axis pixel size should ideally be below 0.1539 milli-arcsec
! Estimated beam: bmin=2.084 mas, bmaj=3.119 mas, bpa=-11.47 degrees
! Estimated noise=765.539 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00172414 Jy
! Component: 100  -  total flux cleaned = 0.00249665 Jy
! Component: 150  -  total flux cleaned = 0.00269052 Jy
! Component: 200  -  total flux cleaned = 0.00284434 Jy
! Total flux subtracted in 200 components = 0.00284434 Jy
! Clean residual min=-0.004075 max=0.003546 Jy/beam
! Clean residual mean=-0.000361 rms=0.001369 Jy/beam
! Combined flux in latest and established models = 2.57646 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 108 components and 2.57646 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.203242Jy  sigma=0.001509
! Fit after  self-cal, rms=0.203223Jy  sigma=0.001509
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.61% of the data.
!  The x-axis pixel size should ideally be below 0.1539 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.000139624 Jy
! Component: 100  -  total flux cleaned = 0.000732061 Jy
! Component: 150  -  total flux cleaned = 0.000867746 Jy
! Component: 200  -  total flux cleaned = 0.000921859 Jy
! Total flux subtracted in 200 components = 0.000921859 Jy
! Clean residual min=-0.003892 max=0.003359 Jy/beam
! Clean residual mean=-0.000408 rms=0.001320 Jy/beam
! Combined flux in latest and established models = 2.57739 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 111 components and 2.57739 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.203230Jy  sigma=0.001509
! Fit after  self-cal, rms=0.203212Jy  sigma=0.001508
! Inverting map 
! Your choice of large map pixels excluded 2.61% of the data.
!  The x-axis pixel size should ideally be below 0.1539 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.61% of the data.
!  The x-axis pixel size should ideally be below 0.1539 milli-arcsec
! Estimated beam: bmin=0.6898 mas, bmaj=1.912 mas, bpa=-6.479 degrees
! Estimated noise=557.469 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6898 x 1.912 at -6.479 degrees (North through East)
! Clean map  min=-0.0030727  max=1.9684 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.203212Jy  sigma=0.001508
! Fit after  self-cal, rms=0.297593Jy  sigma=0.001266
! Inverting map and beam 
! Your choice of large map pixels excluded 2.61% of the data.
!  The x-axis pixel size should ideally be below 0.1539 milli-arcsec
! Estimated beam: bmin=0.6905 mas, bmaj=1.912 mas, bpa=-6.464 degrees
! Estimated noise=558.033 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00149591 Jy
! Component: 100  -  total flux cleaned = 0.00170663 Jy
! Component: 150  -  total flux cleaned = 0.00198568 Jy
! Component: 200  -  total flux cleaned = 0.00206968 Jy
! Total flux subtracted in 200 components = 0.00206968 Jy
! Clean residual min=-0.003340 max=0.004128 Jy/beam
! Clean residual mean=0.000026 rms=0.000917 Jy/beam
! Combined flux in latest and established models = 2.57946 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 121 components and 2.57946 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.297434Jy  sigma=0.001265
! Fit after  self-cal, rms=0.297428Jy  sigma=0.001265
! Inverting map 
! Your choice of large map pixels excluded 2.61% of the data.
!  The x-axis pixel size should ideally be below 0.1539 milli-arcsec
! Added new window around map position (4.8, 9).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00375826 Jy
! Component: 100  -  total flux cleaned = 0.00481756 Jy
! Component: 150  -  total flux cleaned = 0.00515494 Jy
! Component: 200  -  total flux cleaned = 0.00547435 Jy
! Total flux subtracted in 200 components = 0.00547436 Jy
! Clean residual min=-0.003074 max=0.002838 Jy/beam
! Clean residual mean=-0.000065 rms=0.000811 Jy/beam
! Combined flux in latest and established models = 2.58493 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 136 components and 2.58493 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.297267Jy  sigma=0.001264
! Fit after  self-cal, rms=0.297267Jy  sigma=0.001264
! Inverting map 
! Your choice of large map pixels excluded 2.61% of the data.
!  The x-axis pixel size should ideally be below 0.1539 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.297267Jy  sigma=0.001264
! Fit after  self-cal, rms=0.301536Jy  sigma=0.001264
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.61% of the data.
!  The x-axis pixel size should ideally be below 0.1539 milli-arcsec
! Estimated beam: bmin=0.5473 mas, bmaj=1.194 mas, bpa=-4.037 degrees
! Estimated noise=1184.31 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.47934 Jy
! Component: 100  -  total flux cleaned = 1.8689 Jy
! Component: 150  -  total flux cleaned = 2.06764 Jy
! Component: 200  -  total flux cleaned = 2.18907 Jy
! Total flux subtracted in 200 components = 2.18907 Jy
! Clean residual min=-0.014531 max=0.063582 Jy/beam
! Clean residual mean=0.001555 rms=0.007075 Jy/beam
! Combined flux in latest and established models = 2.18907 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 2.18907 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 2.61% of the data.
!  The x-axis pixel size should ideally be below 0.1539 milli-arcsec
! Estimated beam: bmin=0.6904 mas, bmaj=1.913 mas, bpa=-6.457 degrees
! Estimated noise=558.218 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.122662 Jy
! Component: 100  -  total flux cleaned = 0.193624 Jy
! Component: 150  -  total flux cleaned = 0.241774 Jy
! Component: 200  -  total flux cleaned = 0.276891 Jy
! Total flux subtracted in 200 components = 0.276891 Jy
! Clean residual min=-0.007076 max=0.019914 Jy/beam
! Clean residual mean=0.002238 rms=0.004202 Jy/beam
! Combined flux in latest and established models = 2.46596 Jy
! Adding 57 model components to the UV plane model.
! The established model now contains 60 components and 2.46596 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.61% of the data.
!  The x-axis pixel size should ideally be below 0.1539 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0258896 Jy
! Component: 100  -  total flux cleaned = 0.0451437 Jy
! Component: 150  -  total flux cleaned = 0.0595905 Jy
! Component: 200  -  total flux cleaned = 0.0706903 Jy
! Total flux subtracted in 200 components = 0.0706903 Jy
! Clean residual min=-0.004076 max=0.007226 Jy/beam
! Clean residual mean=0.000895 rms=0.001686 Jy/beam
! Combined flux in latest and established models = 2.53665 Jy
! Adding 53 model components to the UV plane model.
! The established model now contains 92 components and 2.53665 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.61% of the data.
!  The x-axis pixel size should ideally be below 0.1539 milli-arcsec
! Added new window around map position (0.8, -0.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00884597 Jy
! Component: 100  -  total flux cleaned = 0.0158275 Jy
! Component: 150  -  total flux cleaned = 0.0215542 Jy
! Component: 200  -  total flux cleaned = 0.0263219 Jy
! Total flux subtracted in 200 components = 0.0263219 Jy
! Clean residual min=-0.003169 max=0.003944 Jy/beam
! Clean residual mean=0.000397 rms=0.001031 Jy/beam
! Combined flux in latest and established models = 2.56298 Jy
! Adding 47 model components to the UV plane model.
! The established model now contains 117 components and 2.56298 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.61% of the data.
!  The x-axis pixel size should ideally be below 0.1539 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.61% of the data.
!  The x-axis pixel size should ideally be below 0.1539 milli-arcsec
! Estimated beam: bmin=2.085 mas, bmaj=3.12 mas, bpa=-11.41 degrees
! Estimated noise=765.571 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0074628 Jy
! Component: 100  -  total flux cleaned = 0.012111 Jy
! Component: 150  -  total flux cleaned = 0.0152764 Jy
! Component: 200  -  total flux cleaned = 0.0175294 Jy
! Total flux subtracted in 200 components = 0.0175294 Jy
! Clean residual min=-0.002071 max=0.002579 Jy/beam
! Clean residual mean=0.000192 rms=0.000901 Jy/beam
! Combined flux in latest and established models = 2.58051 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.00163928 Jy
! Component: 100  -  total flux cleaned = 0.00284461 Jy
! Component: 150  -  total flux cleaned = 0.00374325 Jy
! Component: 200  -  total flux cleaned = 0.00441989 Jy
! Total flux subtracted in 200 components = 0.00441989 Jy
! Clean residual min=-0.001994 max=0.002387 Jy/beam
! Clean residual mean=-0.000023 rms=0.000833 Jy/beam
! Combined flux in latest and established models = 2.58493 Jy
! Adding 70 model components to the UV plane model.
! The established model now contains 175 components and 2.58492 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.61% of the data.
!  The x-axis pixel size should ideally be below 0.1539 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 2.61% of the data.
!  The x-axis pixel size should ideally be below 0.1539 milli-arcsec
! Estimated beam: bmin=0.6904 mas, bmaj=1.913 mas, bpa=-6.457 degrees
! Estimated noise=558.218 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.23744e-05 Jy
! Component: 100  -  total flux cleaned = -7.61129e-05 Jy
! Component: 150  -  total flux cleaned = -0.000154693 Jy
! Component: 200  -  total flux cleaned = -0.000151706 Jy
! Total flux subtracted in 200 components = -0.000151706 Jy
! Clean residual min=-0.002737 max=0.002585 Jy/beam
! Clean residual mean=0.000006 rms=0.000755 Jy/beam
! Combined flux in latest and established models = 2.58477 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 190 components and 2.58477 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.301238Jy  sigma=0.001263
! Fit after  self-cal, rms=0.301157Jy  sigma=0.001262
wmodel J0530+1331_X_2001_10_29_pus_map.mod
! Writing 190 model components to file: J0530+1331_X_2001_10_29_pus_map.mod
wobs J0530+1331_X_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J0530+1331_X_2001_10_29_pus_uvs.fits
wwins J0530+1331_X_2001_10_29_pus_map.win
! wwins: Wrote 6 windows to J0530+1331_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.61% of the data.
!  The x-axis pixel size should ideally be below 0.1539 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000307993 Jy
! Component: 100  -  total flux cleaned = 0.000397337 Jy
! Component: 150  -  total flux cleaned = 0.000564554 Jy
! Component: 200  -  total flux cleaned = 0.000645796 Jy
! Component: 250  -  total flux cleaned = 0.000762728 Jy
! Component: 300  -  total flux cleaned = 0.000837989 Jy
! Component: 350  -  total flux cleaned = 0.000837639 Jy
! Component: 400  -  total flux cleaned = 0.000909004 Jy
! Component: 450  -  total flux cleaned = 0.000943734 Jy
! Component: 500  -  total flux cleaned = 0.000977958 Jy
! Component: 550  -  total flux cleaned = 0.00104496 Jy
! Component: 600  -  total flux cleaned = 0.00107796 Jy
! Component: 650  -  total flux cleaned = 0.00114282 Jy
! Component: 700  -  total flux cleaned = 0.00123856 Jy
! Component: 750  -  total flux cleaned = 0.00130144 Jy
! Component: 800  -  total flux cleaned = 0.00142555 Jy
! Component: 850  -  total flux cleaned = 0.00148652 Jy
! Component: 900  -  total flux cleaned = 0.00154662 Jy
! Component: 950  -  total flux cleaned = 0.00160593 Jy
! Component: 1000  -  total flux cleaned = 0.00163529 Jy
! Total flux subtracted in 1024 components = 0.0016353 Jy
! Clean residual min=-0.001628 max=0.002316 Jy/beam
! Clean residual mean=-0.000008 rms=0.000600 Jy/beam
! Combined flux in latest and established models = 2.58641 Jy
keep
! Adding 65 model components to the UV plane model.
! The established model now contains 255 components and 2.58641 Jy
![Exited script file: muppet]
wmap "J0530+1331_X_2001_10_29_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 2.61% of the data.
!  The x-axis pixel size should ideally be below 0.1539 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6904 x 1.913 at -6.457 degrees (North through East)
! Clean map  min=-0.0018639  max=1.9722 Jy/beam
! Writing clean map to FITS file: J0530+1331_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.97218 
invert
! Inverting map 
! Your choice of large map pixels excluded 2.61% of the data.
!  The x-axis pixel size should ideally be below 0.1539 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000599728 
device "J0530+1331_X_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J0530+1331_X_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.0912282 0.0912282 0.182456 0.364913 0.729826 1.45965 2.9193 5.83861 11.6772 23.3544 46.7088 93.4177
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0017 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.972 
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.6904 x 1.913 at -6.457 degrees (North through East)
! Clean map  min=-0.0018639  max=1.9722 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0530+1331_X_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J0530+1331_X_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0530+1331_X_2001_10_29_pus_uvs.log closed on Mon Feb 25 16:08:36 2008