! Started logfile: J1504+1029_S_2003_09_17_pus_uvs.log on Tue May 22 12:25:02 2007
obs J1504+1029_S_2003_09_17_pus_uva.fits
! Reading UV FITS file: J1504+1029_S_2003_09_17_pus_uva.fits
! AN table 1: 109 integrations on 120 of 120 possible baselines.
! AN table 2: 64 integrations on 120 of 120 possible baselines.
! AN table 3: 135 integrations on 120 of 120 possible baselines.
! AN table 4: 119 integrations on 120 of 120 possible baselines.
! AN table 5: 11 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.0927511 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1504+1029
! 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.
! 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.
! 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  2.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1732 lines of history.
! 
! Reading 19500 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 = 512 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
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 = 512x512 pixels with 0.500x0.500 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 1107 telescope corrections were flagged in sub-array 1.
!  A total of 815 telescope corrections were flagged in sub-array 2.
!  A total of 1778 telescope corrections were flagged in sub-array 3.
!  A total of 1322 telescope corrections were flagged in sub-array 4.
!  A total of 161 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 1107 telescope corrections were flagged in sub-array 1.
!  A total of 815 telescope corrections were flagged in sub-array 2.
!  A total of 1777 telescope corrections were flagged in sub-array 3.
!  A total of 1322 telescope corrections were flagged in sub-array 4.
!  A total of 161 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 1107 telescope corrections were flagged in sub-array 1.
!  A total of 815 telescope corrections were flagged in sub-array 2.
!  A total of 1778 telescope corrections were flagged in sub-array 3.
!  A total of 1322 telescope corrections were flagged in sub-array 4.
!  A total of 161 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 1107 telescope corrections were flagged in sub-array 1.
!  A total of 815 telescope corrections were flagged in sub-array 2.
!  A total of 1777 telescope corrections were flagged in sub-array 3.
!  A total of 1322 telescope corrections were flagged in sub-array 4.
!  A total of 161 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=1.551468Jy  sigma=0.010107
! Fit after  self-cal, rms=0.832046Jy  sigma=0.005688
! 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 
! Estimated beam: bmin=2.002 mas, bmaj=4.817 mas, bpa=-7.316 degrees
! Estimated noise=1261.39 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.20281 Jy
! Component: 100  -  total flux cleaned = 1.53258 Jy
! Total flux subtracted in 100 components = 1.53258 Jy
! Clean residual min=-0.058351 max=0.145277 Jy/beam
! Clean residual mean=0.000797 rms=0.015610 Jy/beam
! Combined flux in latest and established models = 1.53258 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 1.53258 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.499044Jy  sigma=0.003169
! Fit after  self-cal, rms=0.498594Jy  sigma=0.003168
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.164131 Jy
! Component: 100  -  total flux cleaned = 0.26219 Jy
! Total flux subtracted in 100 components = 0.26219 Jy
! Clean residual min=-0.041107 max=0.076486 Jy/beam
! Clean residual mean=0.000430 rms=0.011259 Jy/beam
! Combined flux in latest and established models = 1.79477 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 27 components and 1.79477 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.415887Jy  sigma=0.002413
! Fit after  self-cal, rms=0.415168Jy  sigma=0.002410
! Inverting map 
! Added new window around map position (3, -0.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0807835 Jy
! Component: 100  -  total flux cleaned = 0.136077 Jy
! Total flux subtracted in 100 components = 0.136077 Jy
! Clean residual min=-0.036524 max=0.052579 Jy/beam
! Clean residual mean=0.000244 rms=0.009803 Jy/beam
! Combined flux in latest and established models = 1.93085 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 35 components and 1.93085 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.391663Jy  sigma=0.002168
! Fit after  self-cal, rms=0.390802Jy  sigma=0.002163
! Inverting map 
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 
! Estimated beam: bmin=2.42 mas, bmaj=5.977 mas, bpa=-9.75 degrees
! Estimated noise=791.38 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.0695913 Jy
! Component: 100  -  total flux cleaned = 0.114327 Jy
! Component: 150  -  total flux cleaned = 0.144236 Jy
! Component: 200  -  total flux cleaned = 0.16446 Jy
! Total flux subtracted in 200 components = 0.16446 Jy
! Clean residual min=-0.030285 max=0.049323 Jy/beam
! Clean residual mean=-0.001260 rms=0.010149 Jy/beam
! Combined flux in latest and established models = 2.09531 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 56 components and 2.09531 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.379780Jy  sigma=0.002023
! Fit after  self-cal, rms=0.378695Jy  sigma=0.002014
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.96     GC        1.04     HN        1.02     KP        0.94     
!   LA        0.95     MK        0.99     NL        1.02     NY        1.00     
!   ON        0.93     OV        1.25     PT        0.97     SC        0.95     
!   TS        0.97     KK        1.14     WZ        1.00     WF        1.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.00*    GC        1.00*    HN        0.91     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        0.75     NY        1.53     
!   ON        1.09     OV        1.00*    PT        1.00*    SC        0.96     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.02     
! 
!  A total of 177 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00*    GC        1.00*    HN        0.98     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        1.05     
!   ON        1.01     OV        1.00*    PT        1.00*    SC        1.02     
!   TS        1.33     KK        1.00*    WZ        1.01     WF        0.96     
! 
!  A total of 93 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.98     GC        0.99     HN        1.12     KP        0.85     
!   LA        0.96     MK        0.96     NL        1.00     NY        1.00*    
!   ON        1.00*    OV        0.93     PT        0.96     SC        1.00*    
!   TS        1.00     KK        0.94     WZ        1.00*    WF        1.01     
! 
!  A total of 15 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.96     GC        0.99     HN        1.05     KP        1.02     
!   LA        0.96     MK        1.02     NL        1.06     NY        1.00     
!   ON        0.89     OV        1.07     PT        0.95     SC        0.99     
!   TS        0.99     KK        1.13     WZ        1.02     WF        1.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.00*    GC        1.00*    HN        1.00     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        0.83     NY        1.51     
!   ON        1.00     OV        1.00*    PT        1.00*    SC        0.97     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.01     
! 
!  A total of 174 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00*    GC        1.00*    HN        1.06     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        1.12     
!   ON        1.00     OV        1.00*    PT        1.00*    SC        1.04     
!   TS        1.35     KK        1.00*    WZ        0.99     WF        0.99     
! 
!  A total of 93 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.97     GC        0.94     HN        1.10     KP        0.97     
!   LA        0.96     MK        1.02     NL        1.04     NY        1.00*    
!   ON        1.00*    OV        0.86     PT        0.95     SC        1.00*    
!   TS        0.99     KK        0.93     WZ        1.00*    WF        1.05     
! 
!  A total of 15 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.94     GC        1.04     HN        1.03     KP        1.00     
!   LA        0.93     MK        0.98     NL        1.00     NY        0.97     
!   ON        0.98     OV        1.10     PT        0.99     SC        0.99     
!   TS        0.99     KK        1.10     WZ        0.96     WF        1.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.00*    GC        1.00*    HN        1.01     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        0.77     NY        1.41     
!   ON        1.03     OV        1.00*    PT        1.00*    SC        1.02     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.03     
! 
!  A total of 177 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00*    GC        1.00*    HN        1.02     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        1.08     
!   ON        0.96     OV        1.00*    PT        1.00*    SC        1.05     
!   TS        1.37     KK        1.00*    WZ        1.00     WF        1.03     
! 
!  A total of 93 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.95     GC        1.01     HN        1.11     KP        0.98     
!   LA        0.94     MK        0.98     NL        0.98     NY        1.00*    
!   ON        1.00*    OV        0.88     PT        0.99     SC        1.00*    
!   TS        0.99     KK        0.92     WZ        1.00*    WF        1.06     
! 
!  A total of 15 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.94     GC        1.06     HN        1.07     KP        1.01     
!   LA        0.98     MK        0.93     NL        1.02     NY        0.95     
!   ON        0.92     OV        1.11     PT        0.94     SC        1.00     
!   TS        0.97     KK        1.15     WZ        0.97     WF        1.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.00*    GC        1.00*    HN        1.06     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        0.75     NY        1.46     
!   ON        1.02     OV        1.00*    PT        1.00*    SC        0.99     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00     
! 
!  A total of 174 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00*    GC        1.00*    HN        0.98     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        1.06     
!   ON        0.99     OV        1.00*    PT        1.00*    SC        1.03     
!   TS        1.30     KK        1.00*    WZ        1.02     WF        1.03     
! 
!  A total of 93 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.95     GC        1.01     HN        1.45     KP        0.97     
!   LA        0.98     MK        0.93     NL        1.01     NY        1.00*    
!   ON        1.00*    OV        0.80     PT        0.93     SC        1.00*    
!   TS        1.03     KK        0.98     WZ        1.00*    WF        1.03     
! 
!  A total of 15 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
! 
! Fit before self-cal, rms=0.378695Jy  sigma=0.002014
! Fit after  self-cal, rms=0.351371Jy  sigma=0.001629
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.451 mas, bmaj=6.376 mas, bpa=-8.626 degrees
! Estimated noise=799.585 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.00340146 Jy
! Component: 100  -  total flux cleaned = 0.00258402 Jy
! Component: 150  -  total flux cleaned = 0.00197264 Jy
! Component: 200  -  total flux cleaned = 0.0017157 Jy
! Total flux subtracted in 200 components = 0.0017157 Jy
! Clean residual min=-0.016934 max=0.018902 Jy/beam
! Clean residual mean=-0.000256 rms=0.004189 Jy/beam
! Combined flux in latest and established models = 2.09703 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 64 components and 2.09703 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.350408Jy  sigma=0.001623
! Fit after  self-cal, rms=0.351092Jy  sigma=0.001622
! Inverting map 
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.351092Jy  sigma=0.001622
! Fit after  self-cal, rms=0.342220Jy  sigma=0.001570
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.456 mas, bmaj=6.356 mas, bpa=-8.639 degrees
! Estimated noise=799.538 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00167328 Jy
! Component: 100  -  total flux cleaned = -0.00166382 Jy
! Component: 150  -  total flux cleaned = -0.00143098 Jy
! Component: 200  -  total flux cleaned = -0.00162152 Jy
! Total flux subtracted in 200 components = -0.00162152 Jy
! Clean residual min=-0.016244 max=0.016946 Jy/beam
! Clean residual mean=-0.000208 rms=0.003493 Jy/beam
! Combined flux in latest and established models = 2.09541 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 70 components and 2.09541 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.341727Jy  sigma=0.001567
! Fit after  self-cal, rms=0.341831Jy  sigma=0.001567
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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 (8.5, 1.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0167292 Jy
! Component: 100  -  total flux cleaned = 0.0222371 Jy
! Component: 150  -  total flux cleaned = 0.0228896 Jy
! Component: 200  -  total flux cleaned = 0.0231803 Jy
! Total flux subtracted in 200 components = 0.0231803 Jy
! Clean residual min=-0.015626 max=0.012209 Jy/beam
! Clean residual mean=-0.000390 rms=0.003105 Jy/beam
! Combined flux in latest and established models = 2.11859 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 89 components and 2.11859 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.340718Jy  sigma=0.001557
! Fit after  self-cal, rms=0.340632Jy  sigma=0.001556
! Inverting map 
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.340632Jy  sigma=0.001556
! Fit after  self-cal, rms=0.325156Jy  sigma=0.001485
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.456 mas, bmaj=6.348 mas, bpa=-8.676 degrees
! Estimated noise=799.5 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00647279 Jy
! Component: 100  -  total flux cleaned = 0.00743512 Jy
! Component: 150  -  total flux cleaned = 0.00801916 Jy
! Component: 200  -  total flux cleaned = 0.00834014 Jy
! Total flux subtracted in 200 components = 0.00834014 Jy
! Clean residual min=-0.006303 max=0.009333 Jy/beam
! Clean residual mean=-0.000101 rms=0.001807 Jy/beam
! Combined flux in latest and established models = 2.12693 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 109 components and 2.12693 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.324874Jy  sigma=0.001482
! Fit after  self-cal, rms=0.324876Jy  sigma=0.001481
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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, 32.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0076836 Jy
! Component: 100  -  total flux cleaned = 0.00997799 Jy
! Component: 150  -  total flux cleaned = 0.0104269 Jy
! Component: 200  -  total flux cleaned = 0.0104235 Jy
! Total flux subtracted in 200 components = 0.0104235 Jy
! Clean residual min=-0.006507 max=0.006223 Jy/beam
! Clean residual mean=-0.000182 rms=0.001645 Jy/beam
! Combined flux in latest and established models = 2.13735 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 127 components and 2.13735 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.324630Jy  sigma=0.001479
! Fit after  self-cal, rms=0.324611Jy  sigma=0.001479
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 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.324611Jy  sigma=0.001479
! Fit after  self-cal, rms=0.325307Jy  sigma=0.001478
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.508 mas, bmaj=11.81 mas, bpa=-19.65 degrees
! Estimated noise=1173.16 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00186396 Jy
! Component: 100  -  total flux cleaned = 0.00176756 Jy
! Component: 150  -  total flux cleaned = 0.00189225 Jy
! Component: 200  -  total flux cleaned = 0.0020014 Jy
! Total flux subtracted in 200 components = 0.0020014 Jy
! Clean residual min=-0.007444 max=0.007078 Jy/beam
! Clean residual mean=-0.000293 rms=0.002220 Jy/beam
! Combined flux in latest and established models = 2.13935 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 146 components and 2.13935 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.325377Jy  sigma=0.001477
! Fit after  self-cal, rms=0.325324Jy  sigma=0.001477
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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.00102919 Jy
! Component: 100  -  total flux cleaned = 0.000812937 Jy
! Component: 150  -  total flux cleaned = 0.000962654 Jy
! Component: 200  -  total flux cleaned = 0.00116123 Jy
! Total flux subtracted in 200 components = 0.00116123 Jy
! Clean residual min=-0.007506 max=0.006300 Jy/beam
! Clean residual mean=-0.000319 rms=0.002197 Jy/beam
! Combined flux in latest and established models = 2.14051 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 157 components and 2.14052 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.325354Jy  sigma=0.001477
! Fit after  self-cal, rms=0.325332Jy  sigma=0.001477
! Inverting map 
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 
! Estimated beam: bmin=2.458 mas, bmaj=6.348 mas, bpa=-8.69 degrees
! Estimated noise=800.289 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.458 x 6.348 at -8.69 degrees (North through East)
! Clean map  min=-0.0057825  max=1.6383 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.325332Jy  sigma=0.001477
! Fit after  self-cal, rms=0.328771Jy  sigma=0.001159
! Inverting map and beam 
! Estimated beam: bmin=2.459 mas, bmaj=6.349 mas, bpa=-8.714 degrees
! Estimated noise=798.495 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000142553 Jy
! Component: 100  -  total flux cleaned = 2.18884e-05 Jy
! Component: 150  -  total flux cleaned = -0.000421356 Jy
! Component: 200  -  total flux cleaned = -0.00061996 Jy
! Total flux subtracted in 200 components = -0.000619959 Jy
! Clean residual min=-0.004872 max=0.004956 Jy/beam
! Clean residual mean=-0.000099 rms=0.001202 Jy/beam
! Combined flux in latest and established models = 2.1399 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 168 components and 2.13989 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.328625Jy  sigma=0.001158
! Fit after  self-cal, rms=0.328638Jy  sigma=0.001158
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00019069 Jy
! Component: 100  -  total flux cleaned = 1.52931e-05 Jy
! Component: 150  -  total flux cleaned = 0.000100862 Jy
! Component: 200  -  total flux cleaned = -4.78684e-05 Jy
! Total flux subtracted in 200 components = -4.78684e-05 Jy
! Clean residual min=-0.004863 max=0.004661 Jy/beam
! Clean residual mean=-0.000100 rms=0.001176 Jy/beam
! Combined flux in latest and established models = 2.13985 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 179 components and 2.13985 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.328580Jy  sigma=0.001157
! Fit after  self-cal, rms=0.328587Jy  sigma=0.001157
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.328587Jy  sigma=0.001157
! Fit after  self-cal, rms=0.328989Jy  sigma=0.001157
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 
! Estimated beam: bmin=2.013 mas, bmaj=5.142 mas, bpa=-6.221 degrees
! Estimated noise=1243.4 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.2105 Jy
! Component: 100  -  total flux cleaned = 1.54395 Jy
! Component: 150  -  total flux cleaned = 1.70227 Jy
! Component: 200  -  total flux cleaned = 1.79394 Jy
! Total flux subtracted in 200 components = 1.79394 Jy
! Clean residual min=-0.015402 max=0.050410 Jy/beam
! Clean residual mean=0.000510 rms=0.006047 Jy/beam
! Combined flux in latest and established models = 1.79394 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 22 model components to the UV plane model.
! The established model now contains 22 components and 1.79394 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.46 mas, bmaj=6.352 mas, bpa=-8.746 degrees
! Estimated noise=798.787 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.110131 Jy
! Component: 100  -  total flux cleaned = 0.175803 Jy
! Component: 150  -  total flux cleaned = 0.219354 Jy
! Component: 200  -  total flux cleaned = 0.24964 Jy
! Total flux subtracted in 200 components = 0.24964 Jy
! Clean residual min=-0.006947 max=0.016776 Jy/beam
! Clean residual mean=0.000632 rms=0.003392 Jy/beam
! Combined flux in latest and established models = 2.04358 Jy
! Adding 76 model components to the UV plane model.
! The established model now contains 86 components and 2.04358 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0214969 Jy
! Component: 100  -  total flux cleaned = 0.0372067 Jy
! Component: 150  -  total flux cleaned = 0.0490429 Jy
! Component: 200  -  total flux cleaned = 0.0582461 Jy
! Total flux subtracted in 200 components = 0.0582461 Jy
! Clean residual min=-0.004467 max=0.006442 Jy/beam
! Clean residual mean=0.000203 rms=0.001614 Jy/beam
! Combined flux in latest and established models = 2.10182 Jy
! Adding 68 model components to the UV plane model.
! The established model now contains 143 components and 2.10182 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.503 mas, bmaj=11.81 mas, bpa=-19.71 degrees
! Estimated noise=1169.53 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0147163 Jy
! Component: 100  -  total flux cleaned = 0.0221259 Jy
! Component: 150  -  total flux cleaned = 0.0268303 Jy
! Component: 200  -  total flux cleaned = 0.0300924 Jy
! Total flux subtracted in 200 components = 0.0300924 Jy
! Clean residual min=-0.005587 max=0.006055 Jy/beam
! Clean residual mean=-0.000065 rms=0.001742 Jy/beam
! Combined flux in latest and established models = 2.13191 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.00171572 Jy
! Component: 100  -  total flux cleaned = 0.0026785 Jy
! Component: 150  -  total flux cleaned = 0.00348071 Jy
! Component: 200  -  total flux cleaned = 0.00390692 Jy
! Total flux subtracted in 200 components = 0.00390692 Jy
! Clean residual min=-0.005429 max=0.005269 Jy/beam
! Clean residual mean=-0.000149 rms=0.001624 Jy/beam
! Combined flux in latest and established models = 2.13582 Jy
! Adding 71 model components to the UV plane model.
! The established model now contains 194 components and 2.13582 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.46 mas, bmaj=6.352 mas, bpa=-8.746 degrees
! Estimated noise=798.787 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000376255 Jy
! Component: 100  -  total flux cleaned = 0.00026438 Jy
! Component: 150  -  total flux cleaned = 0.00026598 Jy
! Component: 200  -  total flux cleaned = -4.49798e-06 Jy
! Total flux subtracted in 200 components = -4.49798e-06 Jy
! Clean residual min=-0.005052 max=0.004386 Jy/beam
! Clean residual mean=-0.000048 rms=0.001119 Jy/beam
! Combined flux in latest and established models = 2.13582 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 210 components and 2.13582 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.328977Jy  sigma=0.001157
! Fit after  self-cal, rms=0.329177Jy  sigma=0.001156
wmodel J1504+1029_S_2003_09_17_pus_map.mod
! Writing 210 model components to file: J1504+1029_S_2003_09_17_pus_map.mod
wobs J1504+1029_S_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J1504+1029_S_2003_09_17_pus_uvs.fits
wwins J1504+1029_S_2003_09_17_pus_map.win
! wwins: Wrote 4 windows to J1504+1029_S_2003_09_17_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.00041225 Jy
! Component: 100  -  total flux cleaned = -0.000338735 Jy
! Component: 150  -  total flux cleaned = -0.000813317 Jy
! Component: 200  -  total flux cleaned = -0.000875601 Jy
! Component: 250  -  total flux cleaned = -0.000811479 Jy
! Component: 300  -  total flux cleaned = -0.000996769 Jy
! Component: 350  -  total flux cleaned = -0.00117561 Jy
! Component: 400  -  total flux cleaned = -0.00129162 Jy
! Component: 450  -  total flux cleaned = -0.0015183 Jy
! Component: 500  -  total flux cleaned = -0.00173974 Jy
! Component: 550  -  total flux cleaned = -0.00195689 Jy
! Component: 600  -  total flux cleaned = -0.00222256 Jy
! Component: 650  -  total flux cleaned = -0.00243038 Jy
! Component: 700  -  total flux cleaned = -0.00263442 Jy
! Component: 750  -  total flux cleaned = -0.00293425 Jy
! Component: 800  -  total flux cleaned = -0.0031309 Jy
! Component: 850  -  total flux cleaned = -0.00322839 Jy
! Component: 900  -  total flux cleaned = -0.00346744 Jy
! Component: 950  -  total flux cleaned = -0.00370252 Jy
! Component: 1000  -  total flux cleaned = -0.00393441 Jy
! Component: 1050  -  total flux cleaned = -0.00402557 Jy
! Component: 1100  -  total flux cleaned = -0.00425092 Jy
! Component: 1150  -  total flux cleaned = -0.0043396 Jy
! Component: 1200  -  total flux cleaned = -0.00442746 Jy
! Component: 1250  -  total flux cleaned = -0.00455826 Jy
! Component: 1300  -  total flux cleaned = -0.00477284 Jy
! Component: 1350  -  total flux cleaned = -0.00481531 Jy
! Component: 1400  -  total flux cleaned = -0.00502504 Jy
! Component: 1450  -  total flux cleaned = -0.00506607 Jy
! Component: 1500  -  total flux cleaned = -0.00514811 Jy
! Component: 1550  -  total flux cleaned = -0.00510763 Jy
! Component: 1600  -  total flux cleaned = -0.00526872 Jy
! Component: 1650  -  total flux cleaned = -0.00534854 Jy
! Component: 1700  -  total flux cleaned = -0.0054671 Jy
! Component: 1750  -  total flux cleaned = -0.00550659 Jy
! Component: 1800  -  total flux cleaned = -0.0057003 Jy
! Component: 1850  -  total flux cleaned = -0.00566187 Jy
! Component: 1900  -  total flux cleaned = -0.00573794 Jy
! Component: 1950  -  total flux cleaned = -0.00581389 Jy
! Component: 2000  -  total flux cleaned = -0.00592625 Jy
! Total flux subtracted in 2048 components = -0.00603736 Jy
! Clean residual min=-0.002214 max=0.001854 Jy/beam
! Clean residual mean=-0.000013 rms=0.000738 Jy/beam
! Combined flux in latest and established models = 2.12978 Jy
keep
! Adding 148 model components to the UV plane model.
! The established model now contains 357 components and 2.12978 Jy
wmap "J1504+1029_S_2003_09_17_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.46 x 6.352 at -8.746 degrees (North through East)
! Clean map  min=-0.0046161  max=1.6394 Jy/beam
! Writing clean map to FITS file: J1504+1029_S_2003_09_17_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.6394 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00073824 
device "J1504+1029_S_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J1504+1029_S_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.135094 0.135094 0.270187 0.540375 1.08075 2.1615 4.323 8.64599 17.292 34.584 69.1679
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0022 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.639 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.46 x 6.352 at -8.746 degrees (North through East)
! Clean map  min=-0.0046161  max=1.6394 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1504+1029_S_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J1504+1029_S_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1504+1029_S_2003_09_17_pus_uvs.log closed on Tue May 22 12:26:56 2007