! Started logfile: J0121+0422_X_1999_03_08_pus_uvs.log on Fri Jan  4 18:06:09 2008
obs J0121+0422_X_1999_03_08_pus_uva.fits
! Reading UV FITS file: J0121+0422_X_1999_03_08_pus_uva.fits
! AN table 1: 114 integrations on 190 of 190 possible baselines.
! AN table 2: 308 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0728735 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0121+0422
! 
! 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 2476 lines of history.
! 
! Reading 23372 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 J0121+0422_X_1999_03_08_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 2062 telescope corrections were flagged in sub-array 1.
!  A total of 5137 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 2062 telescope corrections were flagged in sub-array 1.
!  A total of 5136 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 2062 telescope corrections were flagged in sub-array 1.
!  A total of 5134 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 2062 telescope corrections were flagged in sub-array 1.
!  A total of 5134 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=0.392894Jy  sigma=0.003250
! Fit after  self-cal, rms=0.391002Jy  sigma=0.003235
! 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.36% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! Estimated beam: bmin=0.5949 mas, bmaj=1.409 mas, bpa=-6.013 degrees
! Estimated noise=1178.53 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.566287 Jy
! Component: 100  -  total flux cleaned = 0.759278 Jy
! Total flux subtracted in 100 components = 0.759278 Jy
! Clean residual min=-0.024789 max=0.091266 Jy/beam
! Clean residual mean=0.000665 rms=0.009358 Jy/beam
! Combined flux in latest and established models = 0.759278 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.759278 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.278815Jy  sigma=0.002204
! Fit after  self-cal, rms=0.278372Jy  sigma=0.002201
! Inverting map 
! Your choice of large map pixels excluded 1.36% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.103984 Jy
! Component: 100  -  total flux cleaned = 0.160808 Jy
! Total flux subtracted in 100 components = 0.160808 Jy
! Clean residual min=-0.011224 max=0.041849 Jy/beam
! Clean residual mean=0.000356 rms=0.004361 Jy/beam
! Combined flux in latest and established models = 0.920086 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 8 components and 0.920086 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.228746Jy  sigma=0.001433
! Fit after  self-cal, rms=0.228602Jy  sigma=0.001432
! Inverting map 
! Your choice of large map pixels excluded 1.36% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! Added new window around map position (0.8, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0416072 Jy
! Component: 100  -  total flux cleaned = 0.0677165 Jy
! Total flux subtracted in 100 components = 0.0677165 Jy
! Clean residual min=-0.007309 max=0.018657 Jy/beam
! Clean residual mean=0.000221 rms=0.002727 Jy/beam
! Combined flux in latest and established models = 0.987802 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 17 components and 0.987802 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.218276Jy  sigma=0.001237
! Fit after  self-cal, rms=0.218150Jy  sigma=0.001235
! Inverting map 
! Your choice of large map pixels excluded 1.36% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! Added new window around map position (-0.6, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0202285 Jy
! Component: 100  -  total flux cleaned = 0.034568 Jy
! Total flux subtracted in 100 components = 0.034568 Jy
! Clean residual min=-0.006488 max=0.008590 Jy/beam
! Clean residual mean=0.000153 rms=0.002090 Jy/beam
! Combined flux in latest and established models = 1.02237 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 22 components and 1.02237 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.215393Jy  sigma=0.001177
! Fit after  self-cal, rms=0.215383Jy  sigma=0.001177
! Inverting map 
! Your choice of large map pixels excluded 1.36% of the data.
!  The x-axis pixel size should ideally be below 0.1904 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.36% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! Estimated beam: bmin=0.6747 mas, bmaj=1.771 mas, bpa=-7.487 degrees
! Estimated noise=549.735 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.0174661 Jy
! Component: 100  -  total flux cleaned = 0.0284298 Jy
! Component: 150  -  total flux cleaned = 0.0358685 Jy
! Component: 200  -  total flux cleaned = 0.0410788 Jy
! Total flux subtracted in 200 components = 0.0410788 Jy
! Clean residual min=-0.003599 max=0.005578 Jy/beam
! Clean residual mean=0.000336 rms=0.001166 Jy/beam
! Combined flux in latest and established models = 1.06345 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 42 components and 1.06345 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.214080Jy  sigma=0.001144
! Fit after  self-cal, rms=0.214078Jy  sigma=0.001144
! Inverting map 
! Your choice of large map pixels excluded 1.36% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.01     GC        1.00*    GG        1.00*    
!   HN        1.00     KP        1.00*    LA        1.00*    NL        1.00     
!   OV        1.00*    PT        1.00*    SC        1.04     WF        0.99     
!   GN        1.00*    HH        1.00*    KK        1.00*    MC        1.03     
!   MK        1.00*    NY        1.00     ON        0.99     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.99     GC        1.01     GG        1.00*    
!   HN        1.00     KP        0.99     LA        0.99     NL        1.01     
!   OV        1.00     PT        0.99     SC        1.00     WF        1.00     
!   GN        1.00     HH        1.00*    KK        0.99     MC        1.00*    
!   MK        1.00     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.01     GC        1.00*    GG        1.00*    
!   HN        1.00     KP        1.00*    LA        1.00*    NL        1.00     
!   OV        1.00*    PT        1.00*    SC        0.99     WF        0.99     
!   GN        1.00*    HH        1.00*    KK        1.00*    MC        1.03     
!   MK        1.00*    NY        1.00     ON        0.99     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.99     GC        1.01     GG        1.00*    
!   HN        1.00     KP        0.99     LA        1.00     NL        1.01     
!   OV        1.00     PT        0.99     SC        1.00     WF        1.00     
!   GN        1.00     HH        1.00*    KK        0.99     MC        1.00*    
!   MK        1.00     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.01     GC        1.00*    GG        1.00*    
!   HN        1.00     KP        1.00*    LA        1.00*    NL        1.00     
!   OV        1.00*    PT        1.00*    SC        0.99     WF        0.99     
!   GN        1.00*    HH        1.00*    KK        1.00*    MC        1.05     
!   MK        1.00*    NY        1.00     ON        0.98     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.99     GC        1.01     GG        1.00*    
!   HN        1.00     KP        0.99     LA        1.00     NL        1.01     
!   OV        1.00     PT        0.99     SC        1.00     WF        1.00     
!   GN        1.00     HH        1.00*    KK        0.99     MC        1.00*    
!   MK        1.00     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.01     GC        1.00*    GG        1.00*    
!   HN        1.00     KP        1.00*    LA        1.00*    NL        1.00     
!   OV        1.00*    PT        1.00*    SC        0.99     WF        0.99     
!   GN        1.00*    HH        1.00*    KK        1.00*    MC        1.05     
!   MK        1.00*    NY        1.00     ON        0.99     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.99     GC        1.01     GG        1.00*    
!   HN        1.00     KP        0.99     LA        1.00     NL        1.01     
!   OV        1.00     PT        0.99     SC        1.01     WF        1.00     
!   GN        1.00     HH        1.00*    KK        0.99     MC        1.00*    
!   MK        1.00     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.214078Jy  sigma=0.001144
! Fit after  self-cal, rms=0.214400Jy  sigma=0.001141
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 1.36% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! Estimated beam: bmin=0.6753 mas, bmaj=1.775 mas, bpa=-7.561 degrees
! Estimated noise=547.584 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (1.6, -1.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00454442 Jy
! Component: 100  -  total flux cleaned = 0.00639283 Jy
! Component: 150  -  total flux cleaned = 0.00718732 Jy
! Component: 200  -  total flux cleaned = 0.00775674 Jy
! Total flux subtracted in 200 components = 0.00775674 Jy
! Clean residual min=-0.002214 max=0.003518 Jy/beam
! Clean residual mean=0.000189 rms=0.000764 Jy/beam
! Combined flux in latest and established models = 1.07121 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 55 components and 1.07121 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.214276Jy  sigma=0.001139
! Fit after  self-cal, rms=0.214265Jy  sigma=0.001139
! Inverting map 
! Your choice of large map pixels excluded 1.36% of the data.
!  The x-axis pixel size should ideally be below 0.1904 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.214265Jy  sigma=0.001139
! Fit after  self-cal, rms=0.215731Jy  sigma=0.001138
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.36% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! Estimated beam: bmin=0.6751 mas, bmaj=1.775 mas, bpa=-7.592 degrees
! Estimated noise=547.944 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00151691 Jy
! Component: 100  -  total flux cleaned = 0.00221446 Jy
! Component: 150  -  total flux cleaned = 0.00255447 Jy
! Component: 200  -  total flux cleaned = 0.00285358 Jy
! Total flux subtracted in 200 components = 0.00285358 Jy
! Clean residual min=-0.002182 max=0.003100 Jy/beam
! Clean residual mean=0.000153 rms=0.000702 Jy/beam
! Combined flux in latest and established models = 1.07406 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 66 components and 1.07406 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.215698Jy  sigma=0.001138
! Fit after  self-cal, rms=0.215699Jy  sigma=0.001138
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.36% of the data.
!  The x-axis pixel size should ideally be below 0.1904 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 (5.8, 0.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0030358 Jy
! Component: 100  -  total flux cleaned = 0.00434741 Jy
! Component: 150  -  total flux cleaned = 0.00507406 Jy
! Component: 200  -  total flux cleaned = 0.00560873 Jy
! Total flux subtracted in 200 components = 0.00560873 Jy
! Clean residual min=-0.002182 max=0.002457 Jy/beam
! Clean residual mean=0.000123 rms=0.000654 Jy/beam
! Combined flux in latest and established models = 1.07967 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 79 components and 1.07967 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.215565Jy  sigma=0.001137
! Fit after  self-cal, rms=0.215567Jy  sigma=0.001137
! Inverting map 
! Your choice of large map pixels excluded 1.36% of the data.
!  The x-axis pixel size should ideally be below 0.1904 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.215567Jy  sigma=0.001137
! Fit after  self-cal, rms=0.216466Jy  sigma=0.001137
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.36% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! Estimated beam: bmin=0.675 mas, bmaj=1.777 mas, bpa=-7.622 degrees
! Estimated noise=548.228 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00106143 Jy
! Component: 100  -  total flux cleaned = 0.00155335 Jy
! Component: 150  -  total flux cleaned = 0.00198462 Jy
! Component: 200  -  total flux cleaned = 0.00229675 Jy
! Total flux subtracted in 200 components = 0.00229675 Jy
! Clean residual min=-0.002041 max=0.002397 Jy/beam
! Clean residual mean=0.000112 rms=0.000646 Jy/beam
! Combined flux in latest and established models = 1.08196 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 89 components and 1.08196 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.216408Jy  sigma=0.001137
! Fit after  self-cal, rms=0.216416Jy  sigma=0.001137
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.36% of the data.
!  The x-axis pixel size should ideally be below 0.1904 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.000428495 Jy
! Component: 100  -  total flux cleaned = 0.000744339 Jy
! Component: 150  -  total flux cleaned = 0.000976249 Jy
! Component: 200  -  total flux cleaned = 0.00125686 Jy
! Total flux subtracted in 200 components = 0.00125686 Jy
! Clean residual min=-0.002114 max=0.002426 Jy/beam
! Clean residual mean=0.000104 rms=0.000641 Jy/beam
! Combined flux in latest and established models = 1.08322 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 96 components and 1.08322 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.216384Jy  sigma=0.001137
! Fit after  self-cal, rms=0.216386Jy  sigma=0.001137
! Inverting map 
! Your choice of large map pixels excluded 1.36% of the data.
!  The x-axis pixel size should ideally be below 0.1904 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.216386Jy  sigma=0.001137
! Fit after  self-cal, rms=0.216511Jy  sigma=0.001137
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.36% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! Estimated beam: bmin=1.867 mas, bmaj=2.729 mas, bpa=2.441 degrees
! Estimated noise=817.828 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00171711 Jy
! Component: 100  -  total flux cleaned = 0.00219258 Jy
! Component: 150  -  total flux cleaned = 0.002637 Jy
! Component: 200  -  total flux cleaned = 0.00285595 Jy
! Total flux subtracted in 200 components = 0.00285595 Jy
! Clean residual min=-0.002321 max=0.003490 Jy/beam
! Clean residual mean=0.000296 rms=0.000891 Jy/beam
! Combined flux in latest and established models = 1.08608 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 108 components and 1.08608 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.216493Jy  sigma=0.001137
! Fit after  self-cal, rms=0.216494Jy  sigma=0.001137
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.36% of the data.
!  The x-axis pixel size should ideally be below 0.1904 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.000492953 Jy
! Component: 100  -  total flux cleaned = 0.000629984 Jy
! Component: 150  -  total flux cleaned = 0.000753747 Jy
! Component: 200  -  total flux cleaned = 0.000865818 Jy
! Total flux subtracted in 200 components = 0.000865818 Jy
! Clean residual min=-0.002222 max=0.003394 Jy/beam
! Clean residual mean=0.000276 rms=0.000881 Jy/beam
! Combined flux in latest and established models = 1.08694 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 111 components and 1.08694 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.216482Jy  sigma=0.001137
! Fit after  self-cal, rms=0.216483Jy  sigma=0.001137
! Inverting map 
! Your choice of large map pixels excluded 1.36% of the data.
!  The x-axis pixel size should ideally be below 0.1904 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.36% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! Estimated beam: bmin=0.6749 mas, bmaj=1.777 mas, bpa=-7.646 degrees
! Estimated noise=548.321 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6749 x 1.777 at -7.646 degrees (North through East)
! Clean map  min=-0.0026277  max=0.78346 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.216483Jy  sigma=0.001137
! Fit after  self-cal, rms=0.218138Jy  sigma=0.001136
! Inverting map and beam 
! Your choice of large map pixels excluded 1.36% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! Estimated beam: bmin=0.6752 mas, bmaj=1.778 mas, bpa=-7.662 degrees
! Estimated noise=548.514 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00101714 Jy
! Component: 100  -  total flux cleaned = -0.00118962 Jy
! Component: 150  -  total flux cleaned = -0.00122646 Jy
! Component: 200  -  total flux cleaned = -0.0012281 Jy
! Total flux subtracted in 200 components = -0.0012281 Jy
! Clean residual min=-0.002013 max=0.002407 Jy/beam
! Clean residual mean=0.000095 rms=0.000642 Jy/beam
! Combined flux in latest and established models = 1.08572 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 123 components and 1.08571 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.218107Jy  sigma=0.001136
! Fit after  self-cal, rms=0.218107Jy  sigma=0.001136
! Inverting map 
! Your choice of large map pixels excluded 1.36% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000175009 Jy
! Component: 100  -  total flux cleaned = -0.000115384 Jy
! Component: 150  -  total flux cleaned = -3.17185e-05 Jy
! Component: 200  -  total flux cleaned = 2.10982e-05 Jy
! Total flux subtracted in 200 components = 2.10982e-05 Jy
! Clean residual min=-0.002035 max=0.002391 Jy/beam
! Clean residual mean=0.000095 rms=0.000639 Jy/beam
! Combined flux in latest and established models = 1.08574 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 125 components and 1.08574 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.218092Jy  sigma=0.001136
! Fit after  self-cal, rms=0.218093Jy  sigma=0.001136
! Inverting map 
! Your choice of large map pixels excluded 1.36% of the data.
!  The x-axis pixel size should ideally be below 0.1904 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.218093Jy  sigma=0.001136
! Fit after  self-cal, rms=0.218120Jy  sigma=0.001136
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.36% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! Estimated beam: bmin=0.5962 mas, bmaj=1.412 mas, bpa=-6.222 degrees
! Estimated noise=1180.88 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.567003 Jy
! Component: 100  -  total flux cleaned = 0.759881 Jy
! Component: 150  -  total flux cleaned = 0.862857 Jy
! Component: 200  -  total flux cleaned = 0.921994 Jy
! Total flux subtracted in 200 components = 0.921994 Jy
! Clean residual min=-0.011992 max=0.031237 Jy/beam
! Clean residual mean=0.000324 rms=0.004120 Jy/beam
! Combined flux in latest and established models = 0.921995 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.921995 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 1.36% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! Estimated beam: bmin=0.6751 mas, bmaj=1.778 mas, bpa=-7.678 degrees
! Estimated noise=548.504 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.0539534 Jy
! Component: 100  -  total flux cleaned = 0.0860729 Jy
! Component: 150  -  total flux cleaned = 0.106592 Jy
! Component: 200  -  total flux cleaned = 0.119924 Jy
! Total flux subtracted in 200 components = 0.119924 Jy
! Clean residual min=-0.003502 max=0.007150 Jy/beam
! Clean residual mean=0.000428 rms=0.001447 Jy/beam
! Combined flux in latest and established models = 1.04192 Jy
! Adding 26 model components to the UV plane model.
! The established model now contains 28 components and 1.04192 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.36% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00903605 Jy
! Component: 100  -  total flux cleaned = 0.0154609 Jy
! Component: 150  -  total flux cleaned = 0.0203268 Jy
! Component: 200  -  total flux cleaned = 0.0242654 Jy
! Total flux subtracted in 200 components = 0.0242654 Jy
! Clean residual min=-0.002289 max=0.003187 Jy/beam
! Clean residual mean=0.000232 rms=0.000812 Jy/beam
! Combined flux in latest and established models = 1.06618 Jy
! Adding 28 model components to the UV plane model.
! The established model now contains 48 components and 1.06618 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.36% of the data.
!  The x-axis pixel size should ideally be below 0.1904 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.36% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! Estimated beam: bmin=1.867 mas, bmaj=2.73 mas, bpa=2.411 degrees
! Estimated noise=817.737 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00681727 Jy
! Component: 100  -  total flux cleaned = 0.0108511 Jy
! Component: 150  -  total flux cleaned = 0.0136919 Jy
! Component: 200  -  total flux cleaned = 0.0157885 Jy
! Total flux subtracted in 200 components = 0.0157885 Jy
! Clean residual min=-0.002415 max=0.003261 Jy/beam
! Clean residual mean=0.000407 rms=0.000868 Jy/beam
! Combined flux in latest and established models = 1.08197 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.00158497 Jy
! Component: 100  -  total flux cleaned = 0.00229516 Jy
! Component: 150  -  total flux cleaned = 0.00289438 Jy
! Component: 200  -  total flux cleaned = 0.00319214 Jy
! Total flux subtracted in 200 components = 0.00319214 Jy
! Clean residual min=-0.002411 max=0.003381 Jy/beam
! Clean residual mean=0.000333 rms=0.000864 Jy/beam
! Combined flux in latest and established models = 1.08516 Jy
! Adding 47 model components to the UV plane model.
! The established model now contains 90 components and 1.08516 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.36% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 1.36% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! Estimated beam: bmin=0.6751 mas, bmaj=1.778 mas, bpa=-7.678 degrees
! Estimated noise=548.504 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000137072 Jy
! Component: 100  -  total flux cleaned = 0.000144987 Jy
! Component: 150  -  total flux cleaned = 0.000264005 Jy
! Component: 200  -  total flux cleaned = 0.000486793 Jy
! Total flux subtracted in 200 components = 0.000486793 Jy
! Clean residual min=-0.002446 max=0.002566 Jy/beam
! Clean residual mean=0.000092 rms=0.000676 Jy/beam
! Combined flux in latest and established models = 1.08565 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 103 components and 1.08565 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.218276Jy  sigma=0.001136
! Fit after  self-cal, rms=0.218269Jy  sigma=0.001136
wmodel J0121+0422_X_1999_03_08_pus_map.mod
! Writing 103 model components to file: J0121+0422_X_1999_03_08_pus_map.mod
wobs J0121+0422_X_1999_03_08_pus_uvs.fits
! Writing UV FITS file: J0121+0422_X_1999_03_08_pus_uvs.fits
wwins J0121+0422_X_1999_03_08_pus_map.win
! wwins: Wrote 5 windows to J0121+0422_X_1999_03_08_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.36% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00034561 Jy
! Component: 100  -  total flux cleaned = 0.000983793 Jy
! Component: 150  -  total flux cleaned = 0.00147874 Jy
! Component: 200  -  total flux cleaned = 0.00188122 Jy
! Component: 250  -  total flux cleaned = 0.00223564 Jy
! Component: 300  -  total flux cleaned = 0.00251267 Jy
! Component: 350  -  total flux cleaned = 0.00278263 Jy
! Component: 400  -  total flux cleaned = 0.00294729 Jy
! Component: 450  -  total flux cleaned = 0.00307688 Jy
! Component: 500  -  total flux cleaned = 0.00320397 Jy
! Component: 550  -  total flux cleaned = 0.00332935 Jy
! Component: 600  -  total flux cleaned = 0.00354521 Jy
! Component: 650  -  total flux cleaned = 0.00363618 Jy
! Component: 700  -  total flux cleaned = 0.00378601 Jy
! Component: 750  -  total flux cleaned = 0.00390441 Jy
! Component: 800  -  total flux cleaned = 0.0039921 Jy
! Component: 850  -  total flux cleaned = 0.00413659 Jy
! Component: 900  -  total flux cleaned = 0.00425114 Jy
! Component: 950  -  total flux cleaned = 0.0043362 Jy
! Component: 1000  -  total flux cleaned = 0.0044482 Jy
! Total flux subtracted in 1024 components = 0.00444819 Jy
! Clean residual min=-0.001669 max=0.001472 Jy/beam
! Clean residual mean=0.000066 rms=0.000560 Jy/beam
! Combined flux in latest and established models = 1.0901 Jy
keep
! Adding 74 model components to the UV plane model.
! The established model now contains 177 components and 1.0901 Jy
![Exited script file: muppet]
wmap "J0121+0422_X_1999_03_08_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 1.36% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6751 x 1.778 at -7.678 degrees (North through East)
! Clean map  min=-0.0022366  max=0.78424 Jy/beam
! Writing clean map to FITS file: J0121+0422_X_1999_03_08_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.784241 
invert
! Inverting map 
! Your choice of large map pixels excluded 1.36% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000560388 
device "J0121+0422_X_1999_03_08_pus\_map.eps/VPS"
! Attempting to open device: 'J0121+0422_X_1999_03_08_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.214368 0.214368 0.428737 0.857473 1.71495 3.42989 6.85979 13.7196 27.4391 54.8783
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0016 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.784 
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.6751 x 1.778 at -7.678 degrees (North through East)
! Clean map  min=-0.0022366  max=0.78424 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0121+0422_X_1999_03_08_pus\_map.gif/vgif"
! Attempting to open device: 'J0121+0422_X_1999_03_08_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0121+0422_X_1999_03_08_pus_uvs.log closed on Fri Jan  4 18:06:27 2008