! Started logfile: J2031+1219_S_1999_05_10_pus_uvs.log on Mon Jan 21 17:49:00 2008
obs J2031+1219_S_1999_05_10_pus_uva.fits
! Reading UV FITS file: J2031+1219_S_1999_05_10_pus_uva.fits
! AN table 1: 44 integrations on 153 of 153 possible baselines.
! AN table 2: 77 integrations on 153 of 153 possible baselines.
! AN table 3: 365 integrations on 153 of 153 possible baselines.
! AN table 4: 160 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.148981 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2031+1219
! 
! 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.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1998 lines of history.
! 
! Reading 58900 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 
![@muppet J2031+1219_S_1999_05_10_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 = 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 792 telescope corrections were flagged in sub-array 1.
!  A total of 739 telescope corrections were flagged in sub-array 2.
!  A total of 4466 telescope corrections were flagged in sub-array 3.
!  A total of 2108 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 792 telescope corrections were flagged in sub-array 1.
!  A total of 739 telescope corrections were flagged in sub-array 2.
!  A total of 4465 telescope corrections were flagged in sub-array 3.
!  A total of 2108 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 792 telescope corrections were flagged in sub-array 1.
!  A total of 739 telescope corrections were flagged in sub-array 2.
!  A total of 4465 telescope corrections were flagged in sub-array 3.
!  A total of 2108 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 792 telescope corrections were flagged in sub-array 1.
!  A total of 739 telescope corrections were flagged in sub-array 2.
!  A total of 4556 telescope corrections were flagged in sub-array 3.
!  A total of 2300 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.703411Jy  sigma=0.004654
! Fit after  self-cal, rms=0.485427Jy  sigma=0.003209
! 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.382 mas, bmaj=3.89 mas, bpa=-7 degrees
! Estimated noise=709.143 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.474361 Jy
! Component: 100  -  total flux cleaned = 0.598456 Jy
! Total flux subtracted in 100 components = 0.598456 Jy
! Clean residual min=-0.012644 max=0.051508 Jy/beam
! Clean residual mean=0.000170 rms=0.003978 Jy/beam
! Combined flux in latest and established models = 0.598456 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 0.598456 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.301340Jy  sigma=0.001629
! Fit after  self-cal, rms=0.301322Jy  sigma=0.001628
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0548057 Jy
! Component: 100  -  total flux cleaned = 0.0850567 Jy
! Total flux subtracted in 100 components = 0.0850567 Jy
! Clean residual min=-0.010642 max=0.016822 Jy/beam
! Clean residual mean=0.000099 rms=0.002460 Jy/beam
! Combined flux in latest and established models = 0.683512 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 22 components and 0.683512 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.290780Jy  sigma=0.001431
! Fit after  self-cal, rms=0.290691Jy  sigma=0.001430
! Inverting map 
! Added new window around map position (4, 5.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0199861 Jy
! Component: 100  -  total flux cleaned = 0.0335555 Jy
! Total flux subtracted in 100 components = 0.0335555 Jy
! Clean residual min=-0.009739 max=0.012458 Jy/beam
! Clean residual mean=0.000072 rms=0.002146 Jy/beam
! Combined flux in latest and established models = 0.717068 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 27 components and 0.717068 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.289564Jy  sigma=0.001401
! Fit after  self-cal, rms=0.289538Jy  sigma=0.001400
! 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.877 mas, bmaj=4.96 mas, bpa=-6.222 degrees
! Estimated noise=381.042 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.5, -4.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0150065 Jy
! Component: 100  -  total flux cleaned = 0.0229885 Jy
! Component: 150  -  total flux cleaned = 0.0278458 Jy
! Component: 200  -  total flux cleaned = 0.0290596 Jy
! Total flux subtracted in 200 components = 0.0290596 Jy
! Clean residual min=-0.005195 max=0.005934 Jy/beam
! Clean residual mean=0.000331 rms=0.001599 Jy/beam
! Combined flux in latest and established models = 0.746127 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 48 components and 0.746127 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.288923Jy  sigma=0.001387
! Fit after  self-cal, rms=0.288823Jy  sigma=0.001387
! Inverting map 
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        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.98     GC        1.00     HH        1.00*    
!   HN        0.99     KK        0.98     KP        0.95     LA        0.99     
!   MC        1.00*    MK        0.91     NL        0.98     NY        1.00*    
!   ON        1.00*    OV        1.02     PT        1.00     SC        1.05     
!   WF        1.03     WZ        1.00*    
! 
!  A total of 327 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.99     GC        1.03     HH        1.07     
!   HN        0.99     KK        1.00     KP        1.21     LA        0.99     
!   MC        1.87     MK        0.98     NL        0.97     NY        1.00     
!   ON        1.01     OV        1.02     PT        1.02     SC        1.00     
!   WF        0.96     WZ        1.04     
! 
!  A total of 114 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.01     GC        0.97     HH        0.90     
!   HN        1.00*    KK        0.96     KP        0.98     LA        1.00     
!   MC        2.39     MK        0.92     NL        1.00     NY        1.14     
!   ON        1.00     OV        1.03     PT        1.01     SC        1.00*    
!   WF        1.00*    WZ        1.07     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.02     GC        0.97     HH        1.00*    
!   HN        0.99     KK        0.98     KP        1.02     LA        0.93     
!   MC        1.00*    MK        0.81     NL        0.98     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        0.94     SC        1.06     
!   WF        1.02     WZ        1.00*    
! 
!  A total of 327 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.03     GC        1.01     HH        1.11     
!   HN        1.00     KK        0.98     KP        0.97     LA        0.96     
!   MC        1.17     MK        1.04     NL        0.98     NY        0.98     
!   ON        1.03     OV        1.00     PT        0.99     SC        1.02     
!   WF        0.96     WZ        1.05     
! 
!  A total of 114 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.03     GC        0.97     HH        0.99     
!   HN        1.00*    KK        0.92     KP        1.01     LA        0.97     
!   MC        0.95     MK        1.00     NL        1.07     NY        0.99     
!   ON        1.01     OV        0.99     PT        1.00     SC        1.00*    
!   WF        1.00*    WZ        0.99     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.00     GC        0.97     HH        1.00*    
!   HN        1.01     KK        0.97     KP        0.99     LA        0.91     
!   MC        1.00*    MK        0.90     NL        1.01     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        0.91     SC        1.12     
!   WF        1.05     WZ        1.00*    
! 
!  A total of 327 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00     GC        1.02     HH        1.14     
!   HN        1.01     KK        0.99     KP        1.01     LA        1.00     
!   MC        1.00     MK        0.98     NL        1.00     NY        1.07     
!   ON        1.05     OV        0.97     PT        0.95     SC        1.02     
!   WF        0.98     WZ        1.04     
! 
!  A total of 114 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.06     GC        0.97     HH        1.19     
!   HN        1.00*    KK        0.97     KP        1.00     LA        1.00     
!   MC        0.74     MK        0.95     NL        1.09     NY        1.00     
!   ON        1.24     OV        1.00     PT        0.99     SC        1.00*    
!   WF        1.00*    WZ        1.36     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.97     GC        0.99     HH        1.00*    
!   HN        1.01     KK        1.00     KP        1.01     LA        0.91     
!   MC        1.00*    MK        0.92     NL        1.02     NY        1.00*    
!   ON        1.00*    OV        0.95     PT        0.95     SC        1.16     
!   WF        1.02     WZ        1.00*    
! 
!  A total of 330 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        0.99     GC        1.03     HH        1.03     
!   HN        0.99     KK        1.00     KP        0.99     LA        1.00     
!   MC        1.00     MK        1.00     NL        1.01     NY        1.09     
!   ON        1.06     OV        0.94     PT        1.07     SC        1.03     
!   WF        0.98     WZ        1.00*    
! 
!  A total of 60 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.95     FD        1.01     GC        0.98     HH        1.14     
!   HN        1.00*    KK        0.93     KP        1.03     LA        1.03     
!   MC        1.06     MK        0.98     NL        1.10     NY        1.21     
!   ON        1.09     OV        0.98     PT        1.04     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.288823Jy  sigma=0.001387
! Fit after  self-cal, rms=0.300504Jy  sigma=0.001336
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.903 mas, bmaj=5.075 mas, bpa=-5.593 degrees
! Estimated noise=383.995 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.000503216 Jy
! Component: 100  -  total flux cleaned = -0.000792976 Jy
! Component: 150  -  total flux cleaned = -0.000801372 Jy
! Component: 200  -  total flux cleaned = -0.000895964 Jy
! Total flux subtracted in 200 components = -0.000895964 Jy
! Clean residual min=-0.003520 max=0.003507 Jy/beam
! Clean residual mean=0.000132 rms=0.000865 Jy/beam
! Combined flux in latest and established models = 0.745231 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 67 components and 0.745231 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.300367Jy  sigma=0.001335
! Fit after  self-cal, rms=0.302125Jy  sigma=0.001334
! 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.302125Jy  sigma=0.001334
! Fit after  self-cal, rms=0.328546Jy  sigma=0.001324
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.906 mas, bmaj=5.083 mas, bpa=-5.557 degrees
! Estimated noise=383.929 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 3.47859e-05 Jy
! Component: 100  -  total flux cleaned = -0.000573221 Jy
! Component: 150  -  total flux cleaned = -0.000776311 Jy
! Component: 200  -  total flux cleaned = -0.000836218 Jy
! Total flux subtracted in 200 components = -0.000836218 Jy
! Clean residual min=-0.002565 max=0.002888 Jy/beam
! Clean residual mean=0.000133 rms=0.000663 Jy/beam
! Combined flux in latest and established models = 0.744395 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 76 components and 0.744395 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.328476Jy  sigma=0.001324
! Fit after  self-cal, rms=0.329612Jy  sigma=0.001323
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 (-6.5, -20).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00268596 Jy
! Component: 100  -  total flux cleaned = 0.00346691 Jy
! Component: 150  -  total flux cleaned = 0.00370438 Jy
! Component: 200  -  total flux cleaned = 0.00385819 Jy
! Total flux subtracted in 200 components = 0.00385819 Jy
! Clean residual min=-0.002557 max=0.002732 Jy/beam
! Clean residual mean=0.000102 rms=0.000617 Jy/beam
! Combined flux in latest and established models = 0.748253 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 95 components and 0.748253 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.329562Jy  sigma=0.001323
! Fit after  self-cal, rms=0.329561Jy  sigma=0.001323
! Inverting map 
! Added new window around map position (3, -38).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00251704 Jy
! Component: 100  -  total flux cleaned = 0.00397759 Jy
! Component: 150  -  total flux cleaned = 0.00481877 Jy
! Component: 200  -  total flux cleaned = 0.00546839 Jy
! Total flux subtracted in 200 components = 0.00546839 Jy
! Clean residual min=-0.002461 max=0.002190 Jy/beam
! Clean residual mean=0.000052 rms=0.000585 Jy/beam
! Combined flux in latest and established models = 0.753722 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 110 components and 0.753722 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.329508Jy  sigma=0.001323
! Fit after  self-cal, rms=0.329496Jy  sigma=0.001323
! 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.329496Jy  sigma=0.001323
! Fit after  self-cal, rms=0.340062Jy  sigma=0.001322
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.907 mas, bmaj=5.092 mas, bpa=-5.598 degrees
! Estimated noise=383.709 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000429252 Jy
! Component: 100  -  total flux cleaned = 2.15608e-05 Jy
! Component: 150  -  total flux cleaned = 0.00027383 Jy
! Component: 200  -  total flux cleaned = 0.000556998 Jy
! Total flux subtracted in 200 components = 0.000556998 Jy
! Clean residual min=-0.002340 max=0.002150 Jy/beam
! Clean residual mean=0.000059 rms=0.000561 Jy/beam
! Combined flux in latest and established models = 0.754279 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 112 components and 0.754279 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.340030Jy  sigma=0.001322
! Fit after  self-cal, rms=0.340570Jy  sigma=0.001322
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.000189305 Jy
! Component: 100  -  total flux cleaned = 0.000534458 Jy
! Component: 150  -  total flux cleaned = 0.000854579 Jy
! Component: 200  -  total flux cleaned = 0.00104306 Jy
! Total flux subtracted in 200 components = 0.00104306 Jy
! Clean residual min=-0.002313 max=0.002156 Jy/beam
! Clean residual mean=0.000050 rms=0.000552 Jy/beam
! Combined flux in latest and established models = 0.755322 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 118 components and 0.755322 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.340549Jy  sigma=0.001322
! Fit after  self-cal, rms=0.340551Jy  sigma=0.001322
! 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.340551Jy  sigma=0.001322
! Fit after  self-cal, rms=0.343839Jy  sigma=0.001322
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.516 mas, bmaj=9.568 mas, bpa=-0.6603 degrees
! Estimated noise=488.421 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000337745 Jy
! Component: 100  -  total flux cleaned = 0.000896359 Jy
! Component: 150  -  total flux cleaned = 0.00134544 Jy
! Component: 200  -  total flux cleaned = 0.00170451 Jy
! Total flux subtracted in 200 components = 0.00170451 Jy
! Clean residual min=-0.002375 max=0.002274 Jy/beam
! Clean residual mean=0.000099 rms=0.000749 Jy/beam
! Combined flux in latest and established models = 0.757026 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 139 components and 0.757026 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.343826Jy  sigma=0.001322
! Fit after  self-cal, rms=0.344082Jy  sigma=0.001322
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 = 2.25932e-05 Jy
! Component: 100  -  total flux cleaned = 0.000250744 Jy
! Component: 150  -  total flux cleaned = 0.000460014 Jy
! Component: 200  -  total flux cleaned = 0.000574027 Jy
! Total flux subtracted in 200 components = 0.000574027 Jy
! Clean residual min=-0.002407 max=0.002235 Jy/beam
! Clean residual mean=0.000087 rms=0.000742 Jy/beam
! Combined flux in latest and established models = 0.7576 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 149 components and 0.7576 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.344078Jy  sigma=0.001322
! Fit after  self-cal, rms=0.344082Jy  sigma=0.001322
! 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.908 mas, bmaj=5.097 mas, bpa=-5.629 degrees
! Estimated noise=383.459 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.908 x 5.097 at -5.629 degrees (North through East)
! Clean map  min=-0.0021332  max=0.63232 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.344082Jy  sigma=0.001322
! Fit after  self-cal, rms=1.255827Jy  sigma=0.001189
! Inverting map and beam 
! Estimated beam: bmin=2.908 mas, bmaj=5.101 mas, bpa=-5.617 degrees
! Estimated noise=383.357 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00156969 Jy
! Component: 100  -  total flux cleaned = -0.00194908 Jy
! Component: 150  -  total flux cleaned = -0.00203251 Jy
! Component: 200  -  total flux cleaned = -0.00199443 Jy
! Total flux subtracted in 200 components = -0.00199443 Jy
! Clean residual min=-0.001929 max=0.002048 Jy/beam
! Clean residual mean=0.000055 rms=0.000494 Jy/beam
! Combined flux in latest and established models = 0.755606 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 163 components and 0.755606 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.255818Jy  sigma=0.001189
! Fit after  self-cal, rms=1.255847Jy  sigma=0.001189
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.3268e-05 Jy
! Component: 100  -  total flux cleaned = 4.88474e-05 Jy
! Component: 150  -  total flux cleaned = 4.90656e-05 Jy
! Component: 200  -  total flux cleaned = 4.96087e-05 Jy
! Total flux subtracted in 200 components = 4.96087e-05 Jy
! Clean residual min=-0.001891 max=0.002032 Jy/beam
! Clean residual mean=0.000054 rms=0.000490 Jy/beam
! Combined flux in latest and established models = 0.755656 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 171 components and 0.755656 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.255842Jy  sigma=0.001189
! Fit after  self-cal, rms=1.255843Jy  sigma=0.001189
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.255843Jy  sigma=0.001189
! Fit after  self-cal, rms=1.945350Jy  sigma=0.001189
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.41 mas, bmaj=4.007 mas, bpa=-7.333 degrees
! Estimated noise=714.38 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.477503 Jy
! Component: 100  -  total flux cleaned = 0.600307 Jy
! Component: 150  -  total flux cleaned = 0.653889 Jy
! Component: 200  -  total flux cleaned = 0.680018 Jy
! Total flux subtracted in 200 components = 0.680018 Jy
! Clean residual min=-0.005089 max=0.013061 Jy/beam
! Clean residual mean=0.000073 rms=0.001483 Jy/beam
! Combined flux in latest and established models = 0.680018 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 14 model components to the UV plane model.
! The established model now contains 14 components and 0.680018 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.909 mas, bmaj=5.104 mas, bpa=-5.648 degrees
! Estimated noise=383.258 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.0225075 Jy
! Component: 100  -  total flux cleaned = 0.0350943 Jy
! Component: 150  -  total flux cleaned = 0.0428871 Jy
! Component: 200  -  total flux cleaned = 0.048299 Jy
! Total flux subtracted in 200 components = 0.048299 Jy
! Clean residual min=-0.001961 max=0.003206 Jy/beam
! Clean residual mean=0.000304 rms=0.000699 Jy/beam
! Combined flux in latest and established models = 0.728317 Jy
! Adding 34 model components to the UV plane model.
! The established model now contains 42 components and 0.728317 Jy
! Inverting map 
! Added new window around map position (0.5, -15.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00408723 Jy
! Component: 100  -  total flux cleaned = 0.00734096 Jy
! Component: 150  -  total flux cleaned = 0.0101014 Jy
! Component: 200  -  total flux cleaned = 0.0125087 Jy
! Total flux subtracted in 200 components = 0.0125087 Jy
! Clean residual min=-0.001859 max=0.001974 Jy/beam
! Clean residual mean=0.000186 rms=0.000546 Jy/beam
! Combined flux in latest and established models = 0.740826 Jy
! Adding 35 model components to the UV plane model.
! The established model now contains 63 components and 0.740826 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.52 mas, bmaj=9.578 mas, bpa=-0.7023 degrees
! Estimated noise=487.578 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0032136 Jy
! Component: 100  -  total flux cleaned = 0.00557794 Jy
! Component: 150  -  total flux cleaned = 0.00740383 Jy
! Component: 200  -  total flux cleaned = 0.00884145 Jy
! Total flux subtracted in 200 components = 0.00884144 Jy
! Clean residual min=-0.001736 max=0.001945 Jy/beam
! Clean residual mean=0.000270 rms=0.000623 Jy/beam
! Combined flux in latest and established models = 0.749667 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.00115012 Jy
! Component: 100  -  total flux cleaned = 0.00207596 Jy
! Component: 150  -  total flux cleaned = 0.00282564 Jy
! Component: 200  -  total flux cleaned = 0.00343396 Jy
! Total flux subtracted in 200 components = 0.00343396 Jy
! Clean residual min=-0.001861 max=0.001968 Jy/beam
! Clean residual mean=0.000187 rms=0.000609 Jy/beam
! Combined flux in latest and established models = 0.753101 Jy
! Adding 97 model components to the UV plane model.
! The established model now contains 155 components and 0.753101 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.909 mas, bmaj=5.104 mas, bpa=-5.648 degrees
! Estimated noise=383.258 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.56726e-05 Jy
! Component: 100  -  total flux cleaned = 6.41422e-05 Jy
! Component: 150  -  total flux cleaned = 0.000154813 Jy
! Component: 200  -  total flux cleaned = 0.000197068 Jy
! Total flux subtracted in 200 components = 0.000197068 Jy
! Clean residual min=-0.001926 max=0.001952 Jy/beam
! Clean residual mean=0.000073 rms=0.000495 Jy/beam
! Combined flux in latest and established models = 0.753298 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 173 components and 0.753298 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.945362Jy  sigma=0.001189
! Fit after  self-cal, rms=1.945390Jy  sigma=0.001189
wmodel J2031+1219_S_1999_05_10_pus_map.mod
! Writing 173 model components to file: J2031+1219_S_1999_05_10_pus_map.mod
wobs J2031+1219_S_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J2031+1219_S_1999_05_10_pus_uvs.fits
wwins J2031+1219_S_1999_05_10_pus_map.win
! wwins: Wrote 6 windows to J2031+1219_S_1999_05_10_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.000280727 Jy
! Component: 100  -  total flux cleaned = 0.000540338 Jy
! Component: 150  -  total flux cleaned = 0.000822259 Jy
! Component: 200  -  total flux cleaned = 0.00103524 Jy
! Component: 250  -  total flux cleaned = 0.00130218 Jy
! Component: 300  -  total flux cleaned = 0.00150522 Jy
! Component: 350  -  total flux cleaned = 0.00170432 Jy
! Component: 400  -  total flux cleaned = 0.00192775 Jy
! Component: 450  -  total flux cleaned = 0.00211953 Jy
! Component: 500  -  total flux cleaned = 0.00222755 Jy
! Component: 550  -  total flux cleaned = 0.00244071 Jy
! Component: 600  -  total flux cleaned = 0.00254599 Jy
! Component: 650  -  total flux cleaned = 0.00272807 Jy
! Component: 700  -  total flux cleaned = 0.00293343 Jy
! Component: 750  -  total flux cleaned = 0.00308536 Jy
! Component: 800  -  total flux cleaned = 0.00316055 Jy
! Component: 850  -  total flux cleaned = 0.00330978 Jy
! Component: 900  -  total flux cleaned = 0.0034817 Jy
! Component: 950  -  total flux cleaned = 0.00355459 Jy
! Component: 1000  -  total flux cleaned = 0.00367518 Jy
! Component: 1050  -  total flux cleaned = 0.00386616 Jy
! Component: 1100  -  total flux cleaned = 0.00398423 Jy
! Component: 1150  -  total flux cleaned = 0.0040779 Jy
! Component: 1200  -  total flux cleaned = 0.00417093 Jy
! Component: 1250  -  total flux cleaned = 0.00424022 Jy
! Component: 1300  -  total flux cleaned = 0.00435459 Jy
! Component: 1350  -  total flux cleaned = 0.00442251 Jy
! Component: 1400  -  total flux cleaned = 0.0045126 Jy
! Component: 1450  -  total flux cleaned = 0.00460191 Jy
! Component: 1500  -  total flux cleaned = 0.00469062 Jy
! Component: 1550  -  total flux cleaned = 0.00480046 Jy
! Component: 1600  -  total flux cleaned = 0.00486594 Jy
! Component: 1650  -  total flux cleaned = 0.00499597 Jy
! Component: 1700  -  total flux cleaned = 0.00501761 Jy
! Component: 1750  -  total flux cleaned = 0.00514582 Jy
! Component: 1800  -  total flux cleaned = 0.00523098 Jy
! Component: 1850  -  total flux cleaned = 0.00533648 Jy
! Component: 1900  -  total flux cleaned = 0.00539926 Jy
! Component: 1950  -  total flux cleaned = 0.00548272 Jy
! Component: 2000  -  total flux cleaned = 0.0055861 Jy
! Total flux subtracted in 2048 components = 0.00560666 Jy
! Clean residual min=-0.001458 max=0.001370 Jy/beam
! Clean residual mean=0.000026 rms=0.000393 Jy/beam
! Combined flux in latest and established models = 0.758905 Jy
keep
! Adding 141 model components to the UV plane model.
! The established model now contains 314 components and 0.758905 Jy
![Exited script file: muppet]
wmap "J2031+1219_S_1999_05_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.909 x 5.104 at -5.648 degrees (North through East)
! Clean map  min=-0.0017301  max=0.63335 Jy/beam
! Writing clean map to FITS file: J2031+1219_S_1999_05_10_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.633353 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000391817 
device "J2031+1219_S_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J2031+1219_S_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.185592 0.185592 0.371184 0.742368 1.48474 2.96947 5.93894 11.8779 23.7558 47.5115 95.0231
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0011 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.633 
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.909 x 5.104 at -5.648 degrees (North through East)
! Clean map  min=-0.0017301  max=0.63335 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2031+1219_S_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J2031+1219_S_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2031+1219_S_1999_05_10_pus_uvs.log closed on Mon Jan 21 17:49:28 2008