! Started logfile: J0831+0429_X_2001_07_05_pus_uvs.log on Wed Jul  4 20:17:23 2007
obs J0831+0429_X_2001_07_05_pus_uva.fits
! Reading UV FITS file: J0831+0429_X_2001_07_05_pus_uva.fits
! AN table 1: 124 integrations on 171 of 171 possible baselines.
! AN table 2: 88 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.0682997 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0831+0429
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! 
! 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 2370 lines of history.
! 
! Reading 9904 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 
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 2028 telescope corrections were flagged in sub-array 1.
!  A total of 1134 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 2028 telescope corrections were flagged in sub-array 1.
!  A total of 1134 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 2028 telescope corrections were flagged in sub-array 1.
!  A total of 1134 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 2028 telescope corrections were flagged in sub-array 1.
!  A total of 1134 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=1.229389Jy  sigma=0.010672
! Fit after  self-cal, rms=0.421775Jy  sigma=0.002059
! 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.34% of the data.
!  The y-axis pixel size should ideally be below 0.1805 milli-arcsec
! Estimated beam: bmin=0.7991 mas, bmaj=1.154 mas, bpa=3.483 degrees
! Estimated noise=1987.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.65426 Jy
! Component: 100  -  total flux cleaned = 0.830779 Jy
! Total flux subtracted in 100 components = 0.830779 Jy
! Clean residual min=-0.029592 max=0.078660 Jy/beam
! Clean residual mean=0.001626 rms=0.011938 Jy/beam
! Combined flux in latest and established models = 0.830779 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.830779 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.394508Jy  sigma=0.001840
! Fit after  self-cal, rms=0.394086Jy  sigma=0.001835
! Inverting map 
! Your choice of large map pixels excluded 2.34% of the data.
!  The y-axis pixel size should ideally be below 0.1805 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0863204 Jy
! Component: 100  -  total flux cleaned = 0.129519 Jy
! Total flux subtracted in 100 components = 0.129519 Jy
! Clean residual min=-0.015269 max=0.030687 Jy/beam
! Clean residual mean=0.000913 rms=0.006007 Jy/beam
! Combined flux in latest and established models = 0.960298 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 8 components and 0.960298 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.375119Jy  sigma=0.001417
! Fit after  self-cal, rms=0.374883Jy  sigma=0.001414
! Inverting map 
! Your choice of large map pixels excluded 2.34% of the data.
!  The y-axis pixel size should ideally be below 0.1805 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.34% of the data.
!  The y-axis pixel size should ideally be below 0.1805 milli-arcsec
! Estimated beam: bmin=0.9746 mas, bmaj=1.355 mas, bpa=-4.815 degrees
! Estimated noise=839.876 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.029063 Jy
! Component: 100  -  total flux cleaned = 0.0417006 Jy
! Component: 150  -  total flux cleaned = 0.0481558 Jy
! Component: 200  -  total flux cleaned = 0.049001 Jy
! Total flux subtracted in 200 components = 0.049001 Jy
! Clean residual min=-0.019176 max=0.029572 Jy/beam
! Clean residual mean=0.000852 rms=0.006389 Jy/beam
! Combined flux in latest and established models = 1.0093 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 16 components and 1.0093 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.373071Jy  sigma=0.001367
! Fit after  self-cal, rms=0.373048Jy  sigma=0.001367
! Inverting map 
! Your choice of large map pixels excluded 2.34% of the data.
!  The y-axis pixel size should ideally be below 0.1805 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 228 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        0.95     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MC        0.92     MK        1.00*    NL        1.00*    
!   NY        1.11     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.01     
! 
!  A total of 72 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.98     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        0.88     KK        1.00*    KP        1.03     
!   LA        0.97     MC        1.00*    MK        1.02     NL        1.08     
!   NY        1.00*    OV        1.03     PT        1.01     SC        1.02     
!   TS        1.00*    WF        1.14     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 228 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        0.93     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MC        0.98     MK        1.00*    NL        1.00*    
!   NY        1.23     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        0.97     
! 
!  A total of 72 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.97     GC        0.96     GG        1.00*    
!   HH        1.00*    HN        0.87     KK        1.00*    KP        1.03     
!   LA        0.97     MC        1.00*    MK        1.01     NL        1.04     
!   NY        1.00*    OV        1.03     PT        0.98     SC        0.98     
!   TS        1.00*    WF        1.10     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 228 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.02     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MC        0.95     MK        1.00*    NL        1.00*    
!   NY        1.19     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        0.97     
! 
!  A total of 72 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        0.96     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.87     KK        1.00*    KP        1.07     
!   LA        0.98     MC        1.00*    MK        1.02     NL        1.07     
!   NY        1.00*    OV        1.06     PT        0.99     SC        0.99     
!   TS        1.00*    WF        1.11     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 228 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.16     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MC        0.89     MK        1.00*    NL        1.00*    
!   NY        1.11     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.02     
! 
!  A total of 72 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.95     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.89     KK        1.00*    KP        1.03     
!   LA        0.96     MC        1.00*    MK        1.06     NL        1.07     
!   NY        1.00*    OV        1.03     PT        0.99     SC        1.05     
!   TS        1.00*    WF        1.10     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.373048Jy  sigma=0.001367
! Fit after  self-cal, rms=0.403688Jy  sigma=0.001278
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 1.17% of the data.
!  The y-axis pixel size should ideally be below 0.1805 milli-arcsec
! Estimated beam: bmin=0.9661 mas, bmaj=1.736 mas, bpa=-4.234 degrees
! Estimated noise=855.343 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 (5.4, 2.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0240978 Jy
! Component: 100  -  total flux cleaned = 0.0362625 Jy
! Component: 150  -  total flux cleaned = 0.0436003 Jy
! Component: 200  -  total flux cleaned = 0.0488308 Jy
! Total flux subtracted in 200 components = 0.0488308 Jy
! Clean residual min=-0.005490 max=0.008620 Jy/beam
! Clean residual mean=0.000453 rms=0.002175 Jy/beam
! Combined flux in latest and established models = 1.05813 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 40 components and 1.05813 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.402161Jy  sigma=0.001240
! Fit after  self-cal, rms=0.402345Jy  sigma=0.001238
! Inverting map 
! Your choice of large map pixels excluded 1.17% of the data.
!  The y-axis pixel size should ideally be below 0.1805 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.402345Jy  sigma=0.001238
! Fit after  self-cal, rms=0.401356Jy  sigma=0.001236
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.17% of the data.
!  The y-axis pixel size should ideally be below 0.1805 milli-arcsec
! Estimated beam: bmin=0.967 mas, bmaj=1.733 mas, bpa=-4.156 degrees
! Estimated noise=854.164 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00682949 Jy
! Component: 100  -  total flux cleaned = 0.00974499 Jy
! Component: 150  -  total flux cleaned = 0.0114765 Jy
! Component: 200  -  total flux cleaned = 0.0126425 Jy
! Total flux subtracted in 200 components = 0.0126425 Jy
! Clean residual min=-0.005410 max=0.006547 Jy/beam
! Clean residual mean=0.000388 rms=0.001696 Jy/beam
! Combined flux in latest and established models = 1.07077 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 56 components and 1.07077 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.401181Jy  sigma=0.001233
! Fit after  self-cal, rms=0.401200Jy  sigma=0.001233
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.17% of the data.
!  The y-axis pixel size should ideally be below 0.1805 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.00167148 Jy
! Component: 100  -  total flux cleaned = 0.00244615 Jy
! Component: 150  -  total flux cleaned = 0.00285967 Jy
! Component: 200  -  total flux cleaned = 0.00311706 Jy
! Total flux subtracted in 200 components = 0.00311706 Jy
! Clean residual min=-0.005407 max=0.006302 Jy/beam
! Clean residual mean=0.000371 rms=0.001642 Jy/beam
! Combined flux in latest and established models = 1.07389 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 66 components and 1.07389 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.401144Jy  sigma=0.001232
! Fit after  self-cal, rms=0.401144Jy  sigma=0.001232
! Inverting map 
! Your choice of large map pixels excluded 1.17% of the data.
!  The y-axis pixel size should ideally be below 0.1805 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.401144Jy  sigma=0.001232
! Fit after  self-cal, rms=0.401547Jy  sigma=0.001232
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.17% of the data.
!  The y-axis pixel size should ideally be below 0.1805 milli-arcsec
! Estimated beam: bmin=0.9671 mas, bmaj=1.732 mas, bpa=-4.153 degrees
! Estimated noise=855.014 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00270054 Jy
! Component: 100  -  total flux cleaned = 0.0034157 Jy
! Component: 150  -  total flux cleaned = 0.00378661 Jy
! Component: 200  -  total flux cleaned = 0.00378614 Jy
! Total flux subtracted in 200 components = 0.00378614 Jy
! Clean residual min=-0.004999 max=0.006172 Jy/beam
! Clean residual mean=0.000377 rms=0.001560 Jy/beam
! Combined flux in latest and established models = 1.07768 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 72 components and 1.07768 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.401473Jy  sigma=0.001231
! Fit after  self-cal, rms=0.401479Jy  sigma=0.001231
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.17% of the data.
!  The y-axis pixel size should ideally be below 0.1805 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.00040843 Jy
! Component: 100  -  total flux cleaned = 0.000632781 Jy
! Component: 150  -  total flux cleaned = 0.000684882 Jy
! Component: 200  -  total flux cleaned = 0.00068507 Jy
! Total flux subtracted in 200 components = 0.00068507 Jy
! Clean residual min=-0.005034 max=0.006071 Jy/beam
! Clean residual mean=0.000373 rms=0.001541 Jy/beam
! Combined flux in latest and established models = 1.07836 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 73 components and 1.07836 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.401448Jy  sigma=0.001231
! Fit after  self-cal, rms=0.401447Jy  sigma=0.001231
! Inverting map 
! Your choice of large map pixels excluded 1.17% of the data.
!  The y-axis pixel size should ideally be below 0.1805 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.401447Jy  sigma=0.001231
! Fit after  self-cal, rms=0.401574Jy  sigma=0.001230
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.17% of the data.
!  The y-axis pixel size should ideally be below 0.1805 milli-arcsec
! Estimated beam: bmin=2.184 mas, bmaj=3.075 mas, bpa=-7.185 degrees
! Estimated noise=1030.91 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00114391 Jy
! Component: 100  -  total flux cleaned = 0.000915393 Jy
! Component: 150  -  total flux cleaned = 0.000795381 Jy
! Component: 200  -  total flux cleaned = 0.000740358 Jy
! Total flux subtracted in 200 components = 0.000740358 Jy
! Clean residual min=-0.005437 max=0.008721 Jy/beam
! Clean residual mean=0.000814 rms=0.002085 Jy/beam
! Combined flux in latest and established models = 1.0791 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 83 components and 1.0791 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.401541Jy  sigma=0.001230
! Fit after  self-cal, rms=0.401566Jy  sigma=0.001230
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.17% of the data.
!  The y-axis pixel size should ideally be below 0.1805 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 = -9.53688e-05 Jy
! Component: 100  -  total flux cleaned = -3.27594e-05 Jy
! Component: 150  -  total flux cleaned = -3.31448e-05 Jy
! Component: 200  -  total flux cleaned = -0.000110604 Jy
! Total flux subtracted in 200 components = -0.000110604 Jy
! Clean residual min=-0.005378 max=0.008689 Jy/beam
! Clean residual mean=0.000815 rms=0.002068 Jy/beam
! Combined flux in latest and established models = 1.07899 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 87 components and 1.07899 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.401543Jy  sigma=0.001230
! Fit after  self-cal, rms=0.401560Jy  sigma=0.001230
! Inverting map 
! Your choice of large map pixels excluded 1.17% of the data.
!  The y-axis pixel size should ideally be below 0.1805 milli-arcsec
! Added new window around map position (-2.6, 12.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00497618 Jy
! Component: 100  -  total flux cleaned = 0.00409991 Jy
! Component: 150  -  total flux cleaned = 0.00315748 Jy
! Component: 200  -  total flux cleaned = 0.00234375 Jy
! Total flux subtracted in 200 components = 0.00234375 Jy
! Clean residual min=-0.004488 max=0.006245 Jy/beam
! Clean residual mean=0.000793 rms=0.001719 Jy/beam
! Combined flux in latest and established models = 1.08133 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 112 components and 1.08133 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.401597Jy  sigma=0.001228
! Fit after  self-cal, rms=0.401595Jy  sigma=0.001227
! Inverting map 
! Your choice of large map pixels excluded 1.17% of the data.
!  The y-axis pixel size should ideally be below 0.1805 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.17% of the data.
!  The y-axis pixel size should ideally be below 0.1805 milli-arcsec
! Estimated beam: bmin=0.9672 mas, bmaj=1.73 mas, bpa=-4.146 degrees
! Estimated noise=855.705 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9672 x 1.73 at -4.146 degrees (North through East)
! Clean map  min=-0.0038511  max=0.8737 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.401595Jy  sigma=0.001227
! Fit after  self-cal, rms=0.383444Jy  sigma=0.001118
! Inverting map and beam 
! Your choice of large map pixels excluded 1.17% of the data.
!  The y-axis pixel size should ideally be below 0.1805 milli-arcsec
! Estimated beam: bmin=0.9657 mas, bmaj=1.731 mas, bpa=-4.144 degrees
! Estimated noise=855.531 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000630875 Jy
! Component: 100  -  total flux cleaned = 0.000386435 Jy
! Component: 150  -  total flux cleaned = 0.000168517 Jy
! Component: 200  -  total flux cleaned = -0.0001352 Jy
! Total flux subtracted in 200 components = -0.0001352 Jy
! Clean residual min=-0.003447 max=0.004165 Jy/beam
! Clean residual mean=0.000246 rms=0.001186 Jy/beam
! Combined flux in latest and established models = 1.0812 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 137 components and 1.0812 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.383348Jy  sigma=0.001117
! Fit after  self-cal, rms=0.383346Jy  sigma=0.001117
! Inverting map 
! Your choice of large map pixels excluded 1.17% of the data.
!  The y-axis pixel size should ideally be below 0.1805 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -7.93079e-05 Jy
! Component: 100  -  total flux cleaned = -0.000348719 Jy
! Component: 150  -  total flux cleaned = -0.000602793 Jy
! Component: 200  -  total flux cleaned = -0.000843853 Jy
! Total flux subtracted in 200 components = -0.000843853 Jy
! Clean residual min=-0.003249 max=0.004030 Jy/beam
! Clean residual mean=0.000253 rms=0.001115 Jy/beam
! Combined flux in latest and established models = 1.08036 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 147 components and 1.08036 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.383295Jy  sigma=0.001116
! Fit after  self-cal, rms=0.383299Jy  sigma=0.001116
! Inverting map 
! Your choice of large map pixels excluded 1.17% of the data.
!  The y-axis pixel size should ideally be below 0.1805 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.383299Jy  sigma=0.001116
! Fit after  self-cal, rms=0.379534Jy  sigma=0.001116
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.17% of the data.
!  The y-axis pixel size should ideally be below 0.1805 milli-arcsec
! Estimated beam: bmin=0.8043 mas, bmaj=1.214 mas, bpa=2.203 degrees
! Estimated noise=2083.88 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.66109 Jy
! Component: 100  -  total flux cleaned = 0.844648 Jy
! Component: 150  -  total flux cleaned = 0.929984 Jy
! Component: 200  -  total flux cleaned = 0.972744 Jy
! Total flux subtracted in 200 components = 0.972744 Jy
! Clean residual min=-0.012946 max=0.029116 Jy/beam
! Clean residual mean=0.000665 rms=0.004993 Jy/beam
! Combined flux in latest and established models = 0.972744 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.972744 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 1.17% of the data.
!  The y-axis pixel size should ideally be below 0.1805 milli-arcsec
! Estimated beam: bmin=0.9653 mas, bmaj=1.731 mas, bpa=-4.166 degrees
! Estimated noise=855.367 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)
! Added new window around map position (1.2, 0.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0303647 Jy
! Component: 100  -  total flux cleaned = 0.0505274 Jy
! Component: 150  -  total flux cleaned = 0.0650368 Jy
! Component: 200  -  total flux cleaned = 0.0757765 Jy
! Total flux subtracted in 200 components = 0.0757765 Jy
! Clean residual min=-0.005062 max=0.008495 Jy/beam
! Clean residual mean=0.000394 rms=0.002006 Jy/beam
! Combined flux in latest and established models = 1.04852 Jy
! Adding 28 model components to the UV plane model.
! The established model now contains 33 components and 1.04852 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.17% of the data.
!  The y-axis pixel size should ideally be below 0.1805 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.17% of the data.
!  The y-axis pixel size should ideally be below 0.1805 milli-arcsec
! Estimated beam: bmin=2.182 mas, bmaj=3.077 mas, bpa=-7.22 degrees
! Estimated noise=1031.61 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0122091 Jy
! Component: 100  -  total flux cleaned = 0.0198517 Jy
! Component: 150  -  total flux cleaned = 0.0218629 Jy
! Component: 200  -  total flux cleaned = 0.0229316 Jy
! Total flux subtracted in 200 components = 0.0229316 Jy
! Clean residual min=-0.004290 max=0.005001 Jy/beam
! Clean residual mean=0.000609 rms=0.001535 Jy/beam
! Combined flux in latest and established models = 1.07145 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.000710775 Jy
! Component: 100  -  total flux cleaned = 0.00128829 Jy
! Component: 150  -  total flux cleaned = 0.00177622 Jy
! Component: 200  -  total flux cleaned = 0.00219093 Jy
! Total flux subtracted in 200 components = 0.00219093 Jy
! Clean residual min=-0.003739 max=0.004365 Jy/beam
! Clean residual mean=0.000601 rms=0.001339 Jy/beam
! Combined flux in latest and established models = 1.07364 Jy
! Adding 56 model components to the UV plane model.
! The established model now contains 83 components and 1.07364 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.17% of the data.
!  The y-axis pixel size should ideally be below 0.1805 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 1.17% of the data.
!  The y-axis pixel size should ideally be below 0.1805 milli-arcsec
! Estimated beam: bmin=0.9653 mas, bmaj=1.731 mas, bpa=-4.166 degrees
! Estimated noise=855.367 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00103408 Jy
! Component: 100  -  total flux cleaned = 0.00147102 Jy
! Component: 150  -  total flux cleaned = 0.00171668 Jy
! Component: 200  -  total flux cleaned = 0.0021852 Jy
! Total flux subtracted in 200 components = 0.0021852 Jy
! Clean residual min=-0.003584 max=0.004150 Jy/beam
! Clean residual mean=0.000267 rms=0.001101 Jy/beam
! Combined flux in latest and established models = 1.07583 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 106 components and 1.07583 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.379480Jy  sigma=0.001116
! Fit after  self-cal, rms=0.379340Jy  sigma=0.001115
wmodel J0831+0429_X_2001_07_05_pus_map.mod
! Writing 106 model components to file: J0831+0429_X_2001_07_05_pus_map.mod
wobs J0831+0429_X_2001_07_05_pus_uvs.fits
! Writing UV FITS file: J0831+0429_X_2001_07_05_pus_uvs.fits
wwins J0831+0429_X_2001_07_05_pus_map.win
! wwins: Wrote 4 windows to J0831+0429_X_2001_07_05_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.17% of the data.
!  The y-axis pixel size should ideally be below 0.1805 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00173133 Jy
! Component: 100  -  total flux cleaned = 0.0027938 Jy
! Component: 150  -  total flux cleaned = 0.00386205 Jy
! Component: 200  -  total flux cleaned = 0.00488327 Jy
! Component: 250  -  total flux cleaned = 0.00580681 Jy
! Component: 300  -  total flux cleaned = 0.00674482 Jy
! Component: 350  -  total flux cleaned = 0.00754679 Jy
! Component: 400  -  total flux cleaned = 0.0082716 Jy
! Component: 450  -  total flux cleaned = 0.00906464 Jy
! Component: 500  -  total flux cleaned = 0.0097421 Jy
! Component: 550  -  total flux cleaned = 0.0104861 Jy
! Component: 600  -  total flux cleaned = 0.0112089 Jy
! Component: 650  -  total flux cleaned = 0.0118713 Jy
! Component: 700  -  total flux cleaned = 0.0125183 Jy
! Component: 750  -  total flux cleaned = 0.0131499 Jy
! Component: 800  -  total flux cleaned = 0.0137289 Jy
! Component: 850  -  total flux cleaned = 0.0142962 Jy
! Component: 900  -  total flux cleaned = 0.0148161 Jy
! Component: 950  -  total flux cleaned = 0.0154353 Jy
! Component: 1000  -  total flux cleaned = 0.016043 Jy
! Total flux subtracted in 1024 components = 0.0163249 Jy
! Clean residual min=-0.002074 max=0.002182 Jy/beam
! Clean residual mean=0.000182 rms=0.000689 Jy/beam
! Combined flux in latest and established models = 1.09215 Jy
keep
! Adding 63 model components to the UV plane model.
! The established model now contains 166 components and 1.09215 Jy
wmap "J0831+0429_X_2001_07_05_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 1.17% of the data.
!  The y-axis pixel size should ideally be below 0.1805 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9653 x 1.731 at -4.166 degrees (North through East)
! Clean map  min=-0.0042052  max=0.8753 Jy/beam
! Writing clean map to FITS file: J0831+0429_X_2001_07_05_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.875295 
invert
! Inverting map 
! Your choice of large map pixels excluded 1.17% of the data.
!  The y-axis pixel size should ideally be below 0.1805 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000689625 
device "J0831+0429_X_2001_07_05_pus\_map.eps/VPS"
! Attempting to open device: 'J0831+0429_X_2001_07_05_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.236363 0.236363 0.472726 0.945453 1.89091 3.78181 7.56362 15.1272 30.2545 60.509
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.002 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.875 
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.9653 x 1.731 at -4.166 degrees (North through East)
! Clean map  min=-0.0042052  max=0.8753 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0831+0429_X_2001_07_05_pus\_map.gif/vgif"
! Attempting to open device: 'J0831+0429_X_2001_07_05_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0831+0429_X_2001_07_05_pus_uvs.log closed on Wed Jul  4 20:18:19 2007