! Started logfile: J0746+2549_S_2003_09_17_pus_uvs.log on Mon May 21 21:06:37 2007
obs J0746+2549_S_2003_09_17_pus_uva.fits
! Reading UV FITS file: J0746+2549_S_2003_09_17_pus_uva.fits
! AN table 1: 76 integrations on 120 of 120 possible baselines.
! AN table 2: 248 integrations on 120 of 120 possible baselines.
! AN table 3: 64 integrations on 120 of 120 possible baselines.
! AN table 4: 229 integrations on 120 of 120 possible baselines.
! AN table 5: 146 integrations on 120 of 120 possible baselines.
! AN table 6: 17 integrations on 120 of 120 possible baselines.
! AN table 7: 89 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.127465 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0746+2549
! 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.
! 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 53168 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 974 telescope corrections were flagged in sub-array 1.
!  A total of 2224 telescope corrections were flagged in sub-array 2.
!  A total of 635 telescope corrections were flagged in sub-array 3.
!  A total of 3089 telescope corrections were flagged in sub-array 4.
!  A total of 1931 telescope corrections were flagged in sub-array 5.
!  A total of 272 telescope corrections were flagged in sub-array 6.
!  A total of 1221 telescope corrections were flagged in sub-array 7.
! 
! Correcting IF 2.
!  A total of 974 telescope corrections were flagged in sub-array 1.
!  A total of 2224 telescope corrections were flagged in sub-array 2.
!  A total of 635 telescope corrections were flagged in sub-array 3.
!  A total of 3089 telescope corrections were flagged in sub-array 4.
!  A total of 1931 telescope corrections were flagged in sub-array 5.
!  A total of 272 telescope corrections were flagged in sub-array 6.
!  A total of 1221 telescope corrections were flagged in sub-array 7.
! 
! Correcting IF 3.
!  A total of 974 telescope corrections were flagged in sub-array 1.
!  A total of 2224 telescope corrections were flagged in sub-array 2.
!  A total of 635 telescope corrections were flagged in sub-array 3.
!  A total of 3089 telescope corrections were flagged in sub-array 4.
!  A total of 1931 telescope corrections were flagged in sub-array 5.
!  A total of 272 telescope corrections were flagged in sub-array 6.
!  A total of 1221 telescope corrections were flagged in sub-array 7.
! 
! Correcting IF 4.
!  A total of 974 telescope corrections were flagged in sub-array 1.
!  A total of 2224 telescope corrections were flagged in sub-array 2.
!  A total of 635 telescope corrections were flagged in sub-array 3.
!  A total of 3089 telescope corrections were flagged in sub-array 4.
!  A total of 1931 telescope corrections were flagged in sub-array 5.
!  A total of 272 telescope corrections were flagged in sub-array 6.
!  A total of 1221 telescope corrections were flagged in sub-array 7.
! 
! Fit before self-cal, rms=0.935991Jy  sigma=0.005549
! Fit after  self-cal, rms=0.590255Jy  sigma=0.003462
! 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.018 mas, bmaj=3.529 mas, bpa=-14.55 degrees
! Estimated noise=1033.91 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.374301 Jy
! Component: 100  -  total flux cleaned = 0.458085 Jy
! Total flux subtracted in 100 components = 0.458085 Jy
! Clean residual min=-0.009294 max=0.029548 Jy/beam
! Clean residual mean=0.000123 rms=0.002971 Jy/beam
! Combined flux in latest and established models = 0.458085 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.458085 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.302056Jy  sigma=0.001311
! Fit after  self-cal, rms=0.302017Jy  sigma=0.001311
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0317613 Jy
! Component: 100  -  total flux cleaned = 0.0505868 Jy
! Total flux subtracted in 100 components = 0.0505868 Jy
! Clean residual min=-0.007006 max=0.010046 Jy/beam
! Clean residual mean=0.000075 rms=0.002067 Jy/beam
! Combined flux in latest and established models = 0.508672 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 15 components and 0.508672 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.297959Jy  sigma=0.001260
! Fit after  self-cal, rms=0.297758Jy  sigma=0.001260
! 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.359 mas, bmaj=4.317 mas, bpa=-15.15 degrees
! Estimated noise=517.588 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.0178696 Jy
! Component: 100  -  total flux cleaned = 0.0276086 Jy
! Component: 150  -  total flux cleaned = 0.033363 Jy
! Component: 200  -  total flux cleaned = 0.0368509 Jy
! Total flux subtracted in 200 components = 0.0368509 Jy
! Clean residual min=-0.005153 max=0.006881 Jy/beam
! Clean residual mean=0.000332 rms=0.001453 Jy/beam
! Combined flux in latest and established models = 0.545523 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 40 components and 0.545523 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.296901Jy  sigma=0.001248
! Fit after  self-cal, rms=0.296727Jy  sigma=0.001248
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00*    GC        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        1.07     
!   ON        0.93     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.06     KK        1.00*    WZ        0.99     WF        1.00*    
! 
!  A total of 105 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.01     GC        1.01     HN        0.92     KP        0.94     
!   LA        1.00     MK        0.99     NL        1.00     NY        1.01     
!   ON        0.99     OV        1.08     PT        1.01     SC        1.02     
!   TS        1.00*    KK        1.00     WZ        1.13     WF        0.92     
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.99     GC        0.99     HN        1.00*    KP        0.92     
!   LA        0.95     MK        0.95     NL        1.14     NY        1.00*    
!   ON        1.00*    OV        0.91     PT        1.00     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 141 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.02     GC        1.00*    HN        0.95     KP        1.00*    
!   LA        1.00     MK        1.00*    NL        1.00     NY        1.00     
!   ON        0.96     OV        1.00*    PT        0.98     SC        0.98     
!   TS        1.00     KK        1.00*    WZ        1.11     WF        1.03     
! 
!  A total of 18 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        1.00*    GC        1.30     HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        1.08     
!   ON        1.04     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        0.98     KK        1.00*    WZ        1.02     WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 6:
!   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*    
! 
!  A total of 87 telescope corrections were flagged in sub-array 7.
!  Telescope amplitude corrections in sub-array 7:
!   FD        1.00*    GC        1.00*    HN        0.90     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.01     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        1.01     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.03     
! 
! 
! Correcting IF 2.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00*    GC        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        0.97     
!   ON        0.95     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.10     KK        1.00*    WZ        0.96     WF        1.00*    
! 
!  A total of 105 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.01     GC        0.99     HN        1.03     KP        1.05     
!   LA        0.99     MK        1.07     NL        1.04     NY        1.03     
!   ON        0.99     OV        0.98     PT        0.98     SC        1.07     
!   TS        1.00*    KK        0.99     WZ        1.10     WF        0.98     
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.97     GC        0.97     HN        1.00*    KP        1.00     
!   LA        0.97     MK        0.97     NL        1.16     NY        1.00*    
!   ON        1.00*    OV        0.93     PT        0.94     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 141 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.98     GC        1.00*    HN        1.05     KP        1.00*    
!   LA        1.04     MK        1.00*    NL        1.01     NY        1.02     
!   ON        1.08     OV        1.00*    PT        1.01     SC        1.02     
!   TS        0.94     KK        1.00*    WZ        1.12     WF        1.07     
! 
!  A total of 18 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        1.00*    GC        1.27     HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        1.06     
!   ON        1.01     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        0.98     KK        1.00*    WZ        1.00     WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 6:
!   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*    
! 
!  A total of 87 telescope corrections were flagged in sub-array 7.
!  Telescope amplitude corrections in sub-array 7:
!   FD        1.00*    GC        1.00*    HN        1.01     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        0.99     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        1.00     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.02     
! 
! 
! Correcting IF 3.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00*    GC        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        1.10     
!   ON        0.92     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        0.97     KK        1.00*    WZ        0.98     WF        1.00*    
! 
!  A total of 105 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.97     GC        1.00     HN        0.98     KP        1.02     
!   LA        0.96     MK        1.01     NL        0.99     NY        0.95     
!   ON        0.98     OV        0.99     PT        1.01     SC        1.04     
!   TS        1.00*    KK        0.99     WZ        1.09     WF        1.02     
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.95     GC        1.01     HN        1.00*    KP        1.00     
!   LA        0.93     MK        0.96     NL        1.08     NY        1.00*    
!   ON        1.00*    OV        0.90     PT        0.97     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 141 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00     GC        1.00*    HN        1.01     KP        1.00*    
!   LA        0.98     MK        1.00*    NL        1.00     NY        0.93     
!   ON        0.96     OV        1.00*    PT        1.03     SC        1.08     
!   TS        1.03     KK        1.00*    WZ        1.13     WF        0.96     
! 
!  A total of 18 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        1.00*    GC        1.39     HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        0.99     
!   ON        0.92     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        0.99     KK        1.00*    WZ        1.00     WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 6:
!   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*    
! 
!  A total of 87 telescope corrections were flagged in sub-array 7.
!  Telescope amplitude corrections in sub-array 7:
!   FD        1.00*    GC        1.00*    HN        1.06     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        0.98     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        1.07     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        0.88     
! 
! 
! Correcting IF 4.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00*    GC        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        0.94     
!   ON        0.96     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.06     KK        1.00*    WZ        0.99     WF        1.00*    
! 
!  A total of 105 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.96     GC        1.01     HN        0.86     KP        1.03     
!   LA        0.99     MK        0.95     NL        1.00     NY        0.95     
!   ON        0.97     OV        1.00     PT        0.96     SC        0.97     
!   TS        1.00*    KK        1.07     WZ        1.08     WF        0.99     
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.97     GC        1.00     HN        1.00*    KP        0.98     
!   LA        0.96     MK        0.88     NL        1.10     NY        1.00*    
!   ON        1.00*    OV        0.89     PT        0.94     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 141 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.99     GC        1.00*    HN        0.93     KP        1.00*    
!   LA        1.00     MK        1.00*    NL        1.00     NY        0.95     
!   ON        1.06     OV        1.00*    PT        0.97     SC        0.99     
!   TS        1.02     KK        1.00*    WZ        1.12     WF        0.95     
! 
!  A total of 18 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        1.00*    GC        1.28     HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        1.00     
!   ON        0.97     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        0.98     KK        1.00*    WZ        1.03     WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 6:
!   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*    
! 
!  A total of 87 telescope corrections were flagged in sub-array 7.
!  Telescope amplitude corrections in sub-array 7:
!   FD        1.00*    GC        1.00*    HN        0.95     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.03     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        1.00     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        0.95     
! 
! 
! Fit before self-cal, rms=0.296727Jy  sigma=0.001248
! Fit after  self-cal, rms=0.293793Jy  sigma=0.001234
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.386 mas, bmaj=4.371 mas, bpa=-15.37 degrees
! Estimated noise=521.137 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.00338966 Jy
! Component: 100  -  total flux cleaned = -0.00408086 Jy
! Component: 150  -  total flux cleaned = -0.00440541 Jy
! Component: 200  -  total flux cleaned = -0.00461421 Jy
! Total flux subtracted in 200 components = -0.00461421 Jy
! Clean residual min=-0.002805 max=0.003201 Jy/beam
! Clean residual mean=0.000163 rms=0.000755 Jy/beam
! Combined flux in latest and established models = 0.540909 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 45 components and 0.540909 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.293704Jy  sigma=0.001233
! Fit after  self-cal, rms=0.293870Jy  sigma=0.001233
! 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.293870Jy  sigma=0.001233
! Fit after  self-cal, rms=0.294776Jy  sigma=0.001233
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.393 mas, bmaj=4.377 mas, bpa=-15.38 degrees
! Estimated noise=520.701 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00253186 Jy
! Component: 100  -  total flux cleaned = -0.0029007 Jy
! Component: 150  -  total flux cleaned = -0.0030931 Jy
! Component: 200  -  total flux cleaned = -0.0032077 Jy
! Total flux subtracted in 200 components = -0.0032077 Jy
! Clean residual min=-0.002615 max=0.002994 Jy/beam
! Clean residual mean=0.000167 rms=0.000715 Jy/beam
! Combined flux in latest and established models = 0.537701 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 45 components and 0.537701 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.294728Jy  sigma=0.001232
! Fit after  self-cal, rms=0.294781Jy  sigma=0.001232
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 = -8.66437e-05 Jy
! Component: 100  -  total flux cleaned = -0.000180354 Jy
! Component: 150  -  total flux cleaned = -0.000308152 Jy
! Component: 200  -  total flux cleaned = -0.000384057 Jy
! Total flux subtracted in 200 components = -0.000384057 Jy
! Clean residual min=-0.002579 max=0.003004 Jy/beam
! Clean residual mean=0.000169 rms=0.000708 Jy/beam
! Combined flux in latest and established models = 0.537317 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 46 components and 0.537317 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.294764Jy  sigma=0.001232
! Fit after  self-cal, rms=0.294777Jy  sigma=0.001232
! Inverting map 
! Added new window around map position (-29, 29.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00259317 Jy
! Component: 100  -  total flux cleaned = 0.00324508 Jy
! Component: 150  -  total flux cleaned = 0.00369311 Jy
! Component: 200  -  total flux cleaned = 0.0038595 Jy
! Total flux subtracted in 200 components = 0.0038595 Jy
! Clean residual min=-0.002423 max=0.002595 Jy/beam
! Clean residual mean=0.000140 rms=0.000672 Jy/beam
! Combined flux in latest and established models = 0.541177 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 58 components and 0.541177 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.294741Jy  sigma=0.001232
! Fit after  self-cal, rms=0.294735Jy  sigma=0.001232
! 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.294735Jy  sigma=0.001232
! Fit after  self-cal, rms=0.295599Jy  sigma=0.001232
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.398 mas, bmaj=4.384 mas, bpa=-15.36 degrees
! Estimated noise=520.574 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00123543 Jy
! Component: 100  -  total flux cleaned = -0.00141278 Jy
! Component: 150  -  total flux cleaned = -0.00145949 Jy
! Component: 200  -  total flux cleaned = -0.00141452 Jy
! Total flux subtracted in 200 components = -0.00141452 Jy
! Clean residual min=-0.002247 max=0.002567 Jy/beam
! Clean residual mean=0.000134 rms=0.000644 Jy/beam
! Combined flux in latest and established models = 0.539762 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 61 components and 0.539762 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.295572Jy  sigma=0.001232
! Fit after  self-cal, rms=0.295590Jy  sigma=0.001232
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.000270651 Jy
! Component: 100  -  total flux cleaned = 0.000308703 Jy
! Component: 150  -  total flux cleaned = 0.000344515 Jy
! Component: 200  -  total flux cleaned = 0.000414049 Jy
! Total flux subtracted in 200 components = 0.000414049 Jy
! Clean residual min=-0.002246 max=0.002546 Jy/beam
! Clean residual mean=0.000131 rms=0.000638 Jy/beam
! Combined flux in latest and established models = 0.540176 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 64 components and 0.540176 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.295578Jy  sigma=0.001232
! Fit after  self-cal, rms=0.295584Jy  sigma=0.001232
! 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.295584Jy  sigma=0.001232
! Fit after  self-cal, rms=0.296022Jy  sigma=0.001232
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.273 mas, bmaj=9.878 mas, bpa=-5.084 degrees
! Estimated noise=754.957 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000513337 Jy
! Component: 100  -  total flux cleaned = 0.000666696 Jy
! Component: 150  -  total flux cleaned = 0.000821617 Jy
! Component: 200  -  total flux cleaned = 0.000895175 Jy
! Total flux subtracted in 200 components = 0.000895176 Jy
! Clean residual min=-0.002551 max=0.003751 Jy/beam
! Clean residual mean=0.000367 rms=0.000916 Jy/beam
! Combined flux in latest and established models = 0.541071 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 72 components and 0.541071 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.296021Jy  sigma=0.001232
! Fit after  self-cal, rms=0.296022Jy  sigma=0.001232
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 = 9.82399e-05 Jy
! Component: 100  -  total flux cleaned = 0.000202471 Jy
! Component: 150  -  total flux cleaned = 0.000269208 Jy
! Component: 200  -  total flux cleaned = 0.000345689 Jy
! Total flux subtracted in 200 components = 0.000345689 Jy
! Clean residual min=-0.002571 max=0.003732 Jy/beam
! Clean residual mean=0.000361 rms=0.000907 Jy/beam
! Combined flux in latest and established models = 0.541417 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 76 components and 0.541417 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.296028Jy  sigma=0.001232
! Fit after  self-cal, rms=0.296032Jy  sigma=0.001232
! 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.401 mas, bmaj=4.39 mas, bpa=-15.35 degrees
! Estimated noise=520.376 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.401 x 4.39 at -15.35 degrees (North through East)
! Clean map  min=-0.0021318  max=0.49076 Jy/beam
if(peak(flux) > thresh)
  selfcal true, true
  clean clean_niter,clean_gain
  selfcal
  flux_cutoff = imstat(rms) * dynam
  repeat
    if (peak(flux) > flux_cutoff) peakwin win_mult
    clean clean_niter,clean_gain
    flux_cutoff = imstat(rms) * dynam
    selfcal
    new_peak = peak(flux)
    until(new_peak<=flux_cutoff)
  selfcal true, true
  end if
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.044 mas, bmaj=3.634 mas, bpa=-14.52 degrees
! Estimated noise=1068.14 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.378682 Jy
! Component: 100  -  total flux cleaned = 0.461951 Jy
! Component: 150  -  total flux cleaned = 0.49035 Jy
! Component: 200  -  total flux cleaned = 0.504467 Jy
! Total flux subtracted in 200 components = 0.504467 Jy
! Clean residual min=-0.005949 max=0.007263 Jy/beam
! Clean residual mean=0.000059 rms=0.001432 Jy/beam
! Combined flux in latest and established models = 0.504467 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 16 model components to the UV plane model.
! The established model now contains 16 components and 0.504467 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.401 mas, bmaj=4.39 mas, bpa=-15.35 degrees
! Estimated noise=520.376 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.0121533 Jy
! Component: 100  -  total flux cleaned = 0.0187731 Jy
! Component: 150  -  total flux cleaned = 0.0231595 Jy
! Component: 200  -  total flux cleaned = 0.0262481 Jy
! Total flux subtracted in 200 components = 0.0262481 Jy
! Clean residual min=-0.002317 max=0.003352 Jy/beam
! Clean residual mean=0.000193 rms=0.000673 Jy/beam
! Combined flux in latest and established models = 0.530715 Jy
! Adding 41 model components to the UV plane model.
! The established model now contains 52 components and 0.530715 Jy
! Inverting map 
! Added new window around map position (2.5, 5.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00316158 Jy
! Component: 100  -  total flux cleaned = 0.0049238 Jy
! Component: 150  -  total flux cleaned = 0.00624156 Jy
! Component: 200  -  total flux cleaned = 0.00730519 Jy
! Total flux subtracted in 200 components = 0.00730519 Jy
! Clean residual min=-0.002371 max=0.002318 Jy/beam
! Clean residual mean=0.000136 rms=0.000595 Jy/beam
! Combined flux in latest and established models = 0.53802 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 77 components and 0.53802 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.273 mas, bmaj=9.878 mas, bpa=-5.084 degrees
! Estimated noise=754.957 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00266809 Jy
! Component: 100  -  total flux cleaned = 0.0042414 Jy
! Component: 150  -  total flux cleaned = 0.00526023 Jy
! Component: 200  -  total flux cleaned = 0.00593737 Jy
! Total flux subtracted in 200 components = 0.00593737 Jy
! Clean residual min=-0.002701 max=0.003208 Jy/beam
! Clean residual mean=0.000300 rms=0.000807 Jy/beam
! Combined flux in latest and established models = 0.543958 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.000203477 Jy
! Component: 100  -  total flux cleaned = 0.000311259 Jy
! Component: 150  -  total flux cleaned = 0.000408849 Jy
! Component: 200  -  total flux cleaned = 0.0004696 Jy
! Total flux subtracted in 200 components = 0.0004696 Jy
! Clean residual min=-0.002685 max=0.003189 Jy/beam
! Clean residual mean=0.000289 rms=0.000807 Jy/beam
! Combined flux in latest and established models = 0.544427 Jy
! Adding 22 model components to the UV plane model.
! The established model now contains 96 components and 0.544427 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.401 mas, bmaj=4.39 mas, bpa=-15.35 degrees
! Estimated noise=520.376 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000815225 Jy
! Component: 100  -  total flux cleaned = -0.000897789 Jy
! Component: 150  -  total flux cleaned = -0.000825659 Jy
! Component: 200  -  total flux cleaned = -0.000728045 Jy
! Total flux subtracted in 200 components = -0.000728045 Jy
! Clean residual min=-0.002370 max=0.002360 Jy/beam
! Clean residual mean=0.000093 rms=0.000579 Jy/beam
! Combined flux in latest and established models = 0.543699 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 110 components and 0.543699 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.295975Jy  sigma=0.001231
! Fit after  self-cal, rms=0.296008Jy  sigma=0.001231
wmodel J0746+2549_S_2003_09_17_pus_map.mod
! Writing 110 model components to file: J0746+2549_S_2003_09_17_pus_map.mod
wobs J0746+2549_S_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J0746+2549_S_2003_09_17_pus_uvs.fits
wwins J0746+2549_S_2003_09_17_pus_map.win
! wwins: Wrote 3 windows to J0746+2549_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 = -3.93558e-05 Jy
! Component: 100  -  total flux cleaned = -8.24628e-05 Jy
! Component: 150  -  total flux cleaned = -4.44208e-05 Jy
! Component: 200  -  total flux cleaned = 2.82333e-05 Jy
! Component: 250  -  total flux cleaned = 0.000169685 Jy
! Component: 300  -  total flux cleaned = 0.00051452 Jy
! Component: 350  -  total flux cleaned = 0.000816889 Jy
! Component: 400  -  total flux cleaned = 0.00107979 Jy
! Component: 450  -  total flux cleaned = 0.00133798 Jy
! Component: 500  -  total flux cleaned = 0.00162394 Jy
! Component: 550  -  total flux cleaned = 0.00193624 Jy
! Component: 600  -  total flux cleaned = 0.00218203 Jy
! Component: 650  -  total flux cleaned = 0.00248495 Jy
! Component: 700  -  total flux cleaned = 0.00272335 Jy
! Component: 750  -  total flux cleaned = 0.00289976 Jy
! Component: 800  -  total flux cleaned = 0.00304505 Jy
! Component: 850  -  total flux cleaned = 0.0032744 Jy
! Component: 900  -  total flux cleaned = 0.00341567 Jy
! Component: 950  -  total flux cleaned = 0.00355556 Jy
! Component: 1000  -  total flux cleaned = 0.00374942 Jy
! Component: 1050  -  total flux cleaned = 0.00388614 Jy
! Component: 1100  -  total flux cleaned = 0.00399488 Jy
! Component: 1150  -  total flux cleaned = 0.00412941 Jy
! Component: 1200  -  total flux cleaned = 0.00428916 Jy
! Component: 1250  -  total flux cleaned = 0.00436837 Jy
! Component: 1300  -  total flux cleaned = 0.00449913 Jy
! Component: 1350  -  total flux cleaned = 0.00468022 Jy
! Component: 1400  -  total flux cleaned = 0.00478266 Jy
! Component: 1450  -  total flux cleaned = 0.0049098 Jy
! Component: 1500  -  total flux cleaned = 0.0050859 Jy
! Component: 1550  -  total flux cleaned = 0.00513584 Jy
! Component: 1600  -  total flux cleaned = 0.00528412 Jy
! Component: 1650  -  total flux cleaned = 0.00535759 Jy
! Component: 1700  -  total flux cleaned = 0.00545511 Jy
! Component: 1750  -  total flux cleaned = 0.00552775 Jy
! Component: 1800  -  total flux cleaned = 0.0056236 Jy
! Component: 1850  -  total flux cleaned = 0.00571853 Jy
! Component: 1900  -  total flux cleaned = 0.00583631 Jy
! Component: 1950  -  total flux cleaned = 0.00588304 Jy
! Component: 2000  -  total flux cleaned = 0.00597594 Jy
! Total flux subtracted in 2048 components = 0.00604532 Jy
! Clean residual min=-0.001151 max=0.001554 Jy/beam
! Clean residual mean=0.000048 rms=0.000431 Jy/beam
! Combined flux in latest and established models = 0.549744 Jy
keep
! Adding 140 model components to the UV plane model.
! The established model now contains 250 components and 0.549745 Jy
wmap "J0746+2549_S_2003_09_17_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.401 x 4.39 at -15.35 degrees (North through East)
! Clean map  min=-0.0022608  max=0.49129 Jy/beam
! Writing clean map to FITS file: J0746+2549_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 0.491289 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000431044 
device "J0746+2549_S_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J0746+2549_S_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.263212 0.263212 0.526424 1.05285 2.1057 4.21139 8.42279 16.8456 33.6912 67.3823
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0012 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.491 
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.401 x 4.39 at -15.35 degrees (North through East)
! Clean map  min=-0.0022608  max=0.49129 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0746+2549_S_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J0746+2549_S_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0746+2549_S_2003_09_17_pus_uvs.log closed on Mon May 21 21:09:18 2007