! Started logfile: J1448+7601_X_2001_04_09_pus_uvs.log on Mon Oct  1 14:43:42 2007
obs J1448+7601_X_2001_04_09_pus_uva.fits
! Reading UV FITS file: J1448+7601_X_2001_04_09_pus_uva.fits
! AN table 1: 189 integrations on 190 of 190 possible baselines.
! AN table 2: 229 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.263926 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1448+7601
! 
! 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 1926 lines of history.
! 
! Reading 83844 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 J1448+7601_X_2001_04_09_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 2165 telescope corrections were flagged in sub-array 1.
!  A total of 2195 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 2165 telescope corrections were flagged in sub-array 1.
!  A total of 2195 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 2165 telescope corrections were flagged in sub-array 1.
!  A total of 2195 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 2165 telescope corrections were flagged in sub-array 1.
!  A total of 2195 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=0.850033Jy  sigma=0.008839
! Fit after  self-cal, rms=0.811042Jy  sigma=0.008430
! 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 1.16% of the data.
!  The x-axis pixel size should ideally be below 0.1666 milli-arcsec
! Estimated beam: bmin=0.5485 mas, bmaj=0.6425 mas, bpa=-85.86 degrees
! Estimated noise=572.794 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.146118 Jy
! Component: 100  -  total flux cleaned = 0.204915 Jy
! Total flux subtracted in 100 components = 0.204915 Jy
! Clean residual min=-0.011859 max=0.050016 Jy/beam
! Clean residual mean=0.000186 rms=0.003669 Jy/beam
! Combined flux in latest and established models = 0.204915 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.204915 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.157204Jy  sigma=0.001507
! Fit after  self-cal, rms=0.155825Jy  sigma=0.001493
! Inverting map 
! Your choice of large map pixels excluded 1.16% of the data.
!  The x-axis pixel size should ideally be below 0.1666 milli-arcsec
! Added new window around map position (-0.6, -0.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0495416 Jy
! Component: 100  -  total flux cleaned = 0.0751654 Jy
! Total flux subtracted in 100 components = 0.0751654 Jy
! Clean residual min=-0.007640 max=0.020801 Jy/beam
! Clean residual mean=0.000033 rms=0.001881 Jy/beam
! Combined flux in latest and established models = 0.28008 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 11 components and 0.28008 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.139879Jy  sigma=0.001287
! Fit after  self-cal, rms=0.138597Jy  sigma=0.001274
! Inverting map 
! Your choice of large map pixels excluded 1.16% of the data.
!  The x-axis pixel size should ideally be below 0.1666 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0186981 Jy
! Component: 100  -  total flux cleaned = 0.0238249 Jy
! Total flux subtracted in 100 components = 0.0238249 Jy
! Clean residual min=-0.006705 max=0.012633 Jy/beam
! Clean residual mean=-0.000015 rms=0.001392 Jy/beam
! Combined flux in latest and established models = 0.303905 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 12 components and 0.303905 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.136906Jy  sigma=0.001255
! Fit after  self-cal, rms=0.136614Jy  sigma=0.001252
! Inverting map 
! Your choice of large map pixels excluded 1.16% of the data.
!  The x-axis pixel size should ideally be below 0.1666 milli-arcsec
! Added new window around map position (1, 0.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00830295 Jy
! Component: 100  -  total flux cleaned = 0.00778393 Jy
! Total flux subtracted in 100 components = 0.00778393 Jy
! Clean residual min=-0.005634 max=0.005953 Jy/beam
! Clean residual mean=-0.000031 rms=0.001188 Jy/beam
! Combined flux in latest and established models = 0.311689 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 17 components and 0.311689 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.136161Jy  sigma=0.001248
! Fit after  self-cal, rms=0.136108Jy  sigma=0.001247
! Inverting map 
! Your choice of large map pixels excluded 1.16% of the data.
!  The x-axis pixel size should ideally be below 0.1666 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 1.16% of the data.
!  The x-axis pixel size should ideally be below 0.1666 milli-arcsec
! Estimated beam: bmin=0.7425 mas, bmaj=0.8425 mas, bpa=85.61 degrees
! Estimated noise=238.534 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.00513951 Jy
! Component: 100  -  total flux cleaned = -0.00644686 Jy
! Component: 150  -  total flux cleaned = -0.00666134 Jy
! Component: 200  -  total flux cleaned = -0.00704411 Jy
! Total flux subtracted in 200 components = -0.00704411 Jy
! Clean residual min=-0.002788 max=0.002162 Jy/beam
! Clean residual mean=-0.000054 rms=0.000594 Jy/beam
! Combined flux in latest and established models = 0.304645 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 23 components and 0.304645 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.135867Jy  sigma=0.001244
! Fit after  self-cal, rms=0.135850Jy  sigma=0.001244
! Inverting map 
! Your choice of large map pixels excluded 1.16% of the data.
!  The x-axis pixel size should ideally be below 0.1666 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.00*    KP        1.03     
!   LA        1.01     MA        1.00*    MC        1.00*    MK        0.99     
!   NL        1.02     NY        1.00*    OV        0.98     PT        1.01     
!   SC        1.01     TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.01     GC        0.87     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.02     KP        1.01     
!   LA        1.01     MA        1.00*    MC        0.99     MK        0.97     
!   NL        1.03     NY        0.95     OV        1.00     PT        1.02     
!   SC        0.99     TS        0.79     WF        1.00*    WZ        1.09     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.00     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.95     KK        1.00*    KP        1.01     
!   LA        1.02     MA        1.00*    MC        1.00*    MK        1.04     
!   NL        0.99     NY        1.00*    OV        0.98     PT        1.02     
!   SC        1.03     TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.01     GC        0.91     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.05     KP        1.03     
!   LA        1.01     MA        1.00*    MC        0.90     MK        0.99     
!   NL        0.97     NY        0.97     OV        1.00     PT        1.01     
!   SC        0.99     TS        0.80     WF        1.00*    WZ        1.02     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.02     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.00*    KP        0.93     
!   LA        1.03     MA        1.00*    MC        1.00*    MK        0.99     
!   NL        1.00     NY        1.00*    OV        0.96     PT        0.98     
!   SC        1.01     TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.02     GC        1.08     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        0.99     KP        0.92     
!   LA        1.03     MA        1.00*    MC        0.97     MK        0.97     
!   NL        0.98     NY        0.93     OV        0.98     PT        0.98     
!   SC        1.01     TS        0.83     WF        1.00*    WZ        1.10     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.01     KK        1.00*    KP        1.16     
!   LA        1.01     MA        1.00*    MC        1.00*    MK        1.04     
!   NL        0.99     NY        1.00*    OV        0.95     PT        1.02     
!   SC        1.02     TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.01     GC        1.10     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        0.96     KP        1.13     
!   LA        1.02     MA        1.00*    MC        0.95     MK        0.98     
!   NL        1.00     NY        0.93     OV        0.97     PT        1.04     
!   SC        1.00     TS        0.81     WF        1.00*    WZ        1.00     
! 
! 
! Fit before self-cal, rms=0.135850Jy  sigma=0.001244
! Fit after  self-cal, rms=0.133610Jy  sigma=0.001233
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 1.16% of the data.
!  The x-axis pixel size should ideally be below 0.1666 milli-arcsec
! Estimated beam: bmin=0.7306 mas, bmaj=0.8242 mas, bpa=78.81 degrees
! Estimated noise=234.49 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.000920466 Jy
! Component: 100  -  total flux cleaned = 0.0011575 Jy
! Component: 150  -  total flux cleaned = 0.00128697 Jy
! Component: 200  -  total flux cleaned = 0.00128347 Jy
! Total flux subtracted in 200 components = 0.00128347 Jy
! Clean residual min=-0.001906 max=0.001609 Jy/beam
! Clean residual mean=-0.000000 rms=0.000360 Jy/beam
! Combined flux in latest and established models = 0.305928 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 27 components and 0.305928 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.133525Jy  sigma=0.001232
! Fit after  self-cal, rms=0.133560Jy  sigma=0.001232
! Inverting map 
! Your choice of large map pixels excluded 1.16% of the data.
!  The x-axis pixel size should ideally be below 0.1666 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.133560Jy  sigma=0.001232
! Fit after  self-cal, rms=0.133371Jy  sigma=0.001232
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.16% of the data.
!  The x-axis pixel size should ideally be below 0.1666 milli-arcsec
! Estimated beam: bmin=0.7301 mas, bmaj=0.8237 mas, bpa=78.24 degrees
! Estimated noise=234.156 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000232706 Jy
! Component: 100  -  total flux cleaned = 0.000334563 Jy
! Component: 150  -  total flux cleaned = 0.000380282 Jy
! Component: 200  -  total flux cleaned = 0.000421087 Jy
! Total flux subtracted in 200 components = 0.000421087 Jy
! Clean residual min=-0.001607 max=0.001488 Jy/beam
! Clean residual mean=0.000006 rms=0.000341 Jy/beam
! Combined flux in latest and established models = 0.30635 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 29 components and 0.30635 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.133338Jy  sigma=0.001231
! Fit after  self-cal, rms=0.133338Jy  sigma=0.001231
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.16% of the data.
!  The x-axis pixel size should ideally be below 0.1666 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 = -3.99941e-05 Jy
! Component: 100  -  total flux cleaned = -3.87934e-05 Jy
! Component: 150  -  total flux cleaned = -5.89435e-06 Jy
! Component: 200  -  total flux cleaned = -5.26634e-06 Jy
! Total flux subtracted in 200 components = -5.26634e-06 Jy
! Clean residual min=-0.001389 max=0.001474 Jy/beam
! Clean residual mean=0.000006 rms=0.000333 Jy/beam
! Combined flux in latest and established models = 0.306344 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 30 components and 0.306344 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.133318Jy  sigma=0.001231
! Fit after  self-cal, rms=0.133316Jy  sigma=0.001231
! Inverting map 
! Your choice of large map pixels excluded 1.16% of the data.
!  The x-axis pixel size should ideally be below 0.1666 milli-arcsec
! Added new window around map position (3.4, 1.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00135517 Jy
! Component: 100  -  total flux cleaned = 0.0014257 Jy
! Component: 150  -  total flux cleaned = 0.001515 Jy
! Component: 200  -  total flux cleaned = 0.00151522 Jy
! Total flux subtracted in 200 components = 0.00151522 Jy
! Clean residual min=-0.001318 max=0.001159 Jy/beam
! Clean residual mean=-0.000002 rms=0.000318 Jy/beam
! Combined flux in latest and established models = 0.307859 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 39 components and 0.30786 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.133297Jy  sigma=0.001231
! Fit after  self-cal, rms=0.133295Jy  sigma=0.001231
! Inverting map 
! Your choice of large map pixels excluded 1.16% of the data.
!  The x-axis pixel size should ideally be below 0.1666 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.133295Jy  sigma=0.001231
! Fit after  self-cal, rms=0.133063Jy  sigma=0.001231
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.16% of the data.
!  The x-axis pixel size should ideally be below 0.1666 milli-arcsec
! Estimated beam: bmin=0.7291 mas, bmaj=0.8235 mas, bpa=77.68 degrees
! Estimated noise=233.792 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00035792 Jy
! Component: 100  -  total flux cleaned = 0.000536295 Jy
! Component: 150  -  total flux cleaned = 0.000641647 Jy
! Component: 200  -  total flux cleaned = 0.000714769 Jy
! Total flux subtracted in 200 components = 0.000714769 Jy
! Clean residual min=-0.001232 max=0.001152 Jy/beam
! Clean residual mean=-0.000001 rms=0.000311 Jy/beam
! Combined flux in latest and established models = 0.308574 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 41 components and 0.308574 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.133050Jy  sigma=0.001230
! Fit after  self-cal, rms=0.133049Jy  sigma=0.001230
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.16% of the data.
!  The x-axis pixel size should ideally be below 0.1666 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 = 7.17406e-05 Jy
! Component: 100  -  total flux cleaned = 0.00013933 Jy
! Component: 150  -  total flux cleaned = 0.000203999 Jy
! Component: 200  -  total flux cleaned = 0.000224619 Jy
! Total flux subtracted in 200 components = 0.000224619 Jy
! Clean residual min=-0.001232 max=0.001137 Jy/beam
! Clean residual mean=-0.000002 rms=0.000307 Jy/beam
! Combined flux in latest and established models = 0.308799 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 46 components and 0.308799 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.133041Jy  sigma=0.001230
! Fit after  self-cal, rms=0.133040Jy  sigma=0.001230
! Inverting map 
! Your choice of large map pixels excluded 1.16% of the data.
!  The x-axis pixel size should ideally be below 0.1666 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.133040Jy  sigma=0.001230
! Fit after  self-cal, rms=0.132870Jy  sigma=0.001230
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.16% of the data.
!  The x-axis pixel size should ideally be below 0.1666 milli-arcsec
! Estimated beam: bmin=2.294 mas, bmaj=2.761 mas, bpa=30.63 degrees
! Estimated noise=325.416 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000490744 Jy
! Component: 100  -  total flux cleaned = 0.000448425 Jy
! Component: 150  -  total flux cleaned = 0.000418354 Jy
! Component: 200  -  total flux cleaned = 0.000376711 Jy
! Total flux subtracted in 200 components = 0.000376711 Jy
! Clean residual min=-0.001063 max=0.001129 Jy/beam
! Clean residual mean=-0.000003 rms=0.000351 Jy/beam
! Combined flux in latest and established models = 0.309176 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 56 components and 0.309176 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.132869Jy  sigma=0.001230
! Fit after  self-cal, rms=0.132867Jy  sigma=0.001230
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.16% of the data.
!  The x-axis pixel size should ideally be below 0.1666 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 = 4.87096e-05 Jy
! Component: 100  -  total flux cleaned = 2.04307e-05 Jy
! Component: 150  -  total flux cleaned = -2.19146e-06 Jy
! Component: 200  -  total flux cleaned = -2.1174e-05 Jy
! Total flux subtracted in 200 components = -2.1174e-05 Jy
! Clean residual min=-0.001038 max=0.001135 Jy/beam
! Clean residual mean=-0.000002 rms=0.000349 Jy/beam
! Combined flux in latest and established models = 0.309155 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 60 components and 0.309155 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.132868Jy  sigma=0.001230
! Fit after  self-cal, rms=0.132868Jy  sigma=0.001230
! Inverting map 
! Your choice of large map pixels excluded 1.16% of the data.
!  The x-axis pixel size should ideally be below 0.1666 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 1.16% of the data.
!  The x-axis pixel size should ideally be below 0.1666 milli-arcsec
! Estimated beam: bmin=0.7285 mas, bmaj=0.8234 mas, bpa=77.47 degrees
! Estimated noise=233.548 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7285 x 0.8234 at 77.47 degrees (North through East)
! Clean map  min=-0.00094927  max=0.18924 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
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 1.16% of the data.
!  The x-axis pixel size should ideally be below 0.1666 milli-arcsec
! Estimated beam: bmin=0.5457 mas, bmaj=0.6242 mas, bpa=85.65 degrees
! Estimated noise=543.768 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.14564 Jy
! Component: 100  -  total flux cleaned = 0.215063 Jy
! Component: 150  -  total flux cleaned = 0.251359 Jy
! Component: 200  -  total flux cleaned = 0.27146 Jy
! Total flux subtracted in 200 components = 0.271461 Jy
! Clean residual min=-0.004316 max=0.010264 Jy/beam
! Clean residual mean=0.000069 rms=0.001203 Jy/beam
! Combined flux in latest and established models = 0.27146 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 0.27146 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 1.16% of the data.
!  The x-axis pixel size should ideally be below 0.1666 milli-arcsec
! Estimated beam: bmin=0.7285 mas, bmaj=0.8234 mas, bpa=77.47 degrees
! Estimated noise=233.548 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.017127 Jy
! Component: 100  -  total flux cleaned = 0.0258136 Jy
! Component: 150  -  total flux cleaned = 0.0307318 Jy
! Component: 200  -  total flux cleaned = 0.0335116 Jy
! Total flux subtracted in 200 components = 0.0335116 Jy
! Clean residual min=-0.001783 max=0.001970 Jy/beam
! Clean residual mean=0.000022 rms=0.000387 Jy/beam
! Combined flux in latest and established models = 0.304972 Jy
! Adding 25 model components to the UV plane model.
! The established model now contains 27 components and 0.304972 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.16% of the data.
!  The x-axis pixel size should ideally be below 0.1666 milli-arcsec
! Added new window around map position (1.4, 1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00106198 Jy
! Component: 100  -  total flux cleaned = 0.0018351 Jy
! Component: 150  -  total flux cleaned = 0.00248512 Jy
! Component: 200  -  total flux cleaned = 0.00298467 Jy
! Total flux subtracted in 200 components = 0.00298467 Jy
! Clean residual min=-0.001595 max=0.001262 Jy/beam
! Clean residual mean=0.000005 rms=0.000322 Jy/beam
! Combined flux in latest and established models = 0.307957 Jy
! Adding 20 model components to the UV plane model.
! The established model now contains 34 components and 0.307957 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.16% of the data.
!  The x-axis pixel size should ideally be below 0.1666 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 1.16% of the data.
!  The x-axis pixel size should ideally be below 0.1666 milli-arcsec
! Estimated beam: bmin=2.294 mas, bmaj=2.761 mas, bpa=30.63 degrees
! Estimated noise=325.416 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0010464 Jy
! Component: 100  -  total flux cleaned = 0.00143336 Jy
! Component: 150  -  total flux cleaned = 0.00147424 Jy
! Component: 200  -  total flux cleaned = 0.00149082 Jy
! Total flux subtracted in 200 components = 0.00149082 Jy
! Clean residual min=-0.001078 max=0.001155 Jy/beam
! Clean residual mean=-0.000008 rms=0.000351 Jy/beam
! Combined flux in latest and established models = 0.309448 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 = -7.03783e-06 Jy
! Component: 100  -  total flux cleaned = -1.99205e-05 Jy
! Component: 150  -  total flux cleaned = -2.57447e-05 Jy
! Component: 200  -  total flux cleaned = -2.00764e-05 Jy
! Total flux subtracted in 200 components = -2.00764e-05 Jy
! Clean residual min=-0.001068 max=0.001155 Jy/beam
! Clean residual mean=-0.000008 rms=0.000350 Jy/beam
! Combined flux in latest and established models = 0.309427 Jy
! Adding 24 model components to the UV plane model.
! The established model now contains 53 components and 0.309427 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.16% of the data.
!  The x-axis pixel size should ideally be below 0.1666 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 1.16% of the data.
!  The x-axis pixel size should ideally be below 0.1666 milli-arcsec
! Estimated beam: bmin=0.7285 mas, bmaj=0.8234 mas, bpa=77.47 degrees
! Estimated noise=233.548 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000151306 Jy
! Component: 100  -  total flux cleaned = -0.00014965 Jy
! Component: 150  -  total flux cleaned = -0.000117759 Jy
! Component: 200  -  total flux cleaned = -3.09481e-05 Jy
! Total flux subtracted in 200 components = -3.09481e-05 Jy
! Clean residual min=-0.001249 max=0.001121 Jy/beam
! Clean residual mean=-0.000003 rms=0.000306 Jy/beam
! Combined flux in latest and established models = 0.309397 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 60 components and 0.309397 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.132846Jy  sigma=0.001230
! Fit after  self-cal, rms=0.132841Jy  sigma=0.001230
wmodel J1448+7601_X_2001_04_09_pus_map.mod
! Writing 60 model components to file: J1448+7601_X_2001_04_09_pus_map.mod
wobs J1448+7601_X_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J1448+7601_X_2001_04_09_pus_uvs.fits
wwins J1448+7601_X_2001_04_09_pus_map.win
! wwins: Wrote 5 windows to J1448+7601_X_2001_04_09_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 1.16% of the data.
!  The x-axis pixel size should ideally be below 0.1666 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000165592 Jy
! Component: 100  -  total flux cleaned = -0.000185931 Jy
! Component: 150  -  total flux cleaned = -0.00024564 Jy
! Component: 200  -  total flux cleaned = -0.000321873 Jy
! Component: 250  -  total flux cleaned = -0.000358195 Jy
! Component: 300  -  total flux cleaned = -0.000322175 Jy
! Component: 350  -  total flux cleaned = -0.000304753 Jy
! Component: 400  -  total flux cleaned = -0.000304537 Jy
! Component: 450  -  total flux cleaned = -0.000287756 Jy
! Component: 500  -  total flux cleaned = -0.00025535 Jy
! Component: 550  -  total flux cleaned = -0.000303337 Jy
! Component: 600  -  total flux cleaned = -0.00033465 Jy
! Component: 650  -  total flux cleaned = -0.000349949 Jy
! Component: 700  -  total flux cleaned = -0.000365074 Jy
! Component: 750  -  total flux cleaned = -0.000335334 Jy
! Component: 800  -  total flux cleaned = -0.000335499 Jy
! Component: 850  -  total flux cleaned = -0.000335562 Jy
! Component: 900  -  total flux cleaned = -0.000364252 Jy
! Component: 950  -  total flux cleaned = -0.000378203 Jy
! Component: 1000  -  total flux cleaned = -0.00033637 Jy
! Total flux subtracted in 1024 components = -0.000378039 Jy
! Clean residual min=-0.000693 max=0.000879 Jy/beam
! Clean residual mean=0.000004 rms=0.000257 Jy/beam
! Combined flux in latest and established models = 0.309019 Jy
keep
! Adding 67 model components to the UV plane model.
! The established model now contains 127 components and 0.309019 Jy
![Exited script file: muppet]
wmap "J1448+7601_X_2001_04_09_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 1.16% of the data.
!  The x-axis pixel size should ideally be below 0.1666 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7285 x 0.8234 at 77.47 degrees (North through East)
! Clean map  min=-0.001009  max=0.1889 Jy/beam
! Writing clean map to FITS file: J1448+7601_X_2001_04_09_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.188896 
invert
! Inverting map 
! Your choice of large map pixels excluded 1.16% of the data.
!  The x-axis pixel size should ideally be below 0.1666 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000256806 
device "J1448+7601_X_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J1448+7601_X_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.407852 0.407852 0.815705 1.63141 3.26282 6.52564 13.0513 26.1025 52.2051
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0007 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.188 
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.7285 x 0.8234 at 77.47 degrees (North through East)
! Clean map  min=-0.001009  max=0.1889 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1448+7601_X_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J1448+7601_X_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1448+7601_X_2001_04_09_pus_uvs.log closed on Mon Oct  1 14:44:01 2007