! Started logfile: J1500+4751_S_2003_09_17_pus_uvs.log on Wed May 23 16:51:35 2007
obs J1500+4751_S_2003_09_17_pus_uva.fits
! Reading UV FITS file: J1500+4751_S_2003_09_17_pus_uva.fits
! AN table 1: 28 integrations on 120 of 120 possible baselines.
! AN table 2: 168 integrations on 120 of 120 possible baselines.
! AN table 3: 121 integrations on 120 of 120 possible baselines.
! AN table 4: 24 integrations on 120 of 120 possible baselines.
! AN table 5: 123 integrations on 120 of 120 possible baselines.
! AN table 6: 46 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.171176 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1500+4751
! 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 1736 lines of history.
! 
! Reading 41904 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 409 telescope corrections were flagged in sub-array 1.
!  A total of 1192 telescope corrections were flagged in sub-array 2.
!  A total of 1362 telescope corrections were flagged in sub-array 3.
!  A total of 384 telescope corrections were flagged in sub-array 4.
!  A total of 1700 telescope corrections were flagged in sub-array 5.
!  A total of 487 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 2.
!  A total of 388 telescope corrections were flagged in sub-array 1.
!  A total of 1192 telescope corrections were flagged in sub-array 2.
!  A total of 1362 telescope corrections were flagged in sub-array 3.
!  A total of 384 telescope corrections were flagged in sub-array 4.
!  A total of 1699 telescope corrections were flagged in sub-array 5.
!  A total of 487 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 3.
!  A total of 397 telescope corrections were flagged in sub-array 1.
!  A total of 1192 telescope corrections were flagged in sub-array 2.
!  A total of 1362 telescope corrections were flagged in sub-array 3.
!  A total of 384 telescope corrections were flagged in sub-array 4.
!  A total of 1699 telescope corrections were flagged in sub-array 5.
!  A total of 487 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 4.
!  A total of 400 telescope corrections were flagged in sub-array 1.
!  A total of 1192 telescope corrections were flagged in sub-array 2.
!  A total of 1362 telescope corrections were flagged in sub-array 3.
!  A total of 384 telescope corrections were flagged in sub-array 4.
!  A total of 1699 telescope corrections were flagged in sub-array 5.
!  A total of 487 telescope corrections were flagged in sub-array 6.
! 
! Fit before self-cal, rms=0.971391Jy  sigma=0.005651
! Fit after  self-cal, rms=0.802420Jy  sigma=0.004668
! 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.014 mas, bmaj=3.262 mas, bpa=21.27 degrees
! Estimated noise=1311.62 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.188732 Jy
! Component: 100  -  total flux cleaned = 0.239777 Jy
! Total flux subtracted in 100 components = 0.239777 Jy
! Clean residual min=-0.011990 max=0.025030 Jy/beam
! Clean residual mean=0.000009 rms=0.003315 Jy/beam
! Combined flux in latest and established models = 0.239777 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 0.239777 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.294459Jy  sigma=0.001412
! Fit after  self-cal, rms=0.294353Jy  sigma=0.001411
! Inverting map 
! Added new window around map position (6, 1.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0280986 Jy
! Component: 100  -  total flux cleaned = 0.0462264 Jy
! Total flux subtracted in 100 components = 0.0462264 Jy
! Clean residual min=-0.010821 max=0.013368 Jy/beam
! Clean residual mean=-0.000016 rms=0.002802 Jy/beam
! Combined flux in latest and established models = 0.286003 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 20 components and 0.286003 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.291017Jy  sigma=0.001378
! Fit after  self-cal, rms=0.290796Jy  sigma=0.001377
! 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.393 mas, bmaj=3.673 mas, bpa=22.4 degrees
! Estimated noise=612.527 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.0205176 Jy
! Component: 100  -  total flux cleaned = 0.0322773 Jy
! Component: 150  -  total flux cleaned = 0.0397579 Jy
! Component: 200  -  total flux cleaned = 0.0445754 Jy
! Total flux subtracted in 200 components = 0.0445754 Jy
! Clean residual min=-0.005260 max=0.009549 Jy/beam
! Clean residual mean=0.000252 rms=0.002016 Jy/beam
! Combined flux in latest and established models = 0.330579 Jy
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 53 components and 0.330579 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.289650Jy  sigma=0.001363
! Fit after  self-cal, rms=0.289428Jy  sigma=0.001362
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 39 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   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 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.03     GC        1.10     HN        1.00*    KP        0.94     
!   LA        0.99     MK        0.95     NL        0.99     NY        0.99     
!   ON        0.90     OV        3.16     PT        0.98     SC        1.00*    
!   TS        1.02     KK        0.96     WZ        1.10     WF        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.91     GC        1.00*    HN        0.93     KP        0.85     
!   LA        0.97     MK        1.00*    NL        0.98     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        0.93     SC        1.06     
!   TS        0.90     KK        1.00*    WZ        1.00*    WF        0.89     
! 
!  Telescope amplitude corrections in sub-array 4:
!   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 12 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.95     GC        1.00*    HN        1.22     KP        0.92     
!   LA        0.95     MK        0.94     NL        1.04     NY        1.00*    
!   ON        1.00*    OV        0.91     PT        0.91     SC        1.08     
!   TS        1.00*    KK        0.94     WZ        1.00*    WF        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   FD        1.14     GC        1.00*    HN        0.96     KP        0.88     
!   LA        0.92     MK        1.00*    NL        1.00     NY        1.00*    
!   ON        1.00*    OV        0.89     PT        0.96     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   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 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.94     GC        1.01     HN        1.00*    KP        1.07     
!   LA        0.99     MK        1.09     NL        1.08     NY        1.03     
!   ON        1.36     OV        1.02     PT        0.97     SC        1.00*    
!   TS        0.98     KK        0.97     WZ        1.05     WF        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.90     GC        1.00*    HN        0.98     KP        0.95     
!   LA        0.94     MK        1.00*    NL        1.05     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        0.92     SC        1.15     
!   TS        1.12     KK        1.00*    WZ        1.00*    WF        0.89     
! 
!  Telescope amplitude corrections in sub-array 4:
!   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 12 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.95     GC        1.00*    HN        1.01     KP        1.00     
!   LA        0.95     MK        1.07     NL        1.11     NY        1.00*    
!   ON        1.00*    OV        0.88     PT        0.94     SC        1.25     
!   TS        1.00*    KK        0.97     WZ        1.00*    WF        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   FD        1.10     GC        1.00*    HN        1.02     KP        1.01     
!   LA        0.92     MK        1.00*    NL        1.02     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.91     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 51 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   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 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.97     GC        1.13     HN        1.00*    KP        1.04     
!   LA        0.96     MK        1.03     NL        0.98     NY        0.99     
!   ON        0.89     OV        0.90     PT        0.99     SC        1.00*    
!   TS        1.06     KK        0.95     WZ        1.06     WF        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.92     GC        1.00*    HN        0.96     KP        0.97     
!   LA        0.95     MK        1.00*    NL        0.99     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        0.92     SC        1.11     
!   TS        0.98     KK        1.00*    WZ        1.00*    WF        0.84     
! 
!  Telescope amplitude corrections in sub-array 4:
!   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 12 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.90     GC        1.00*    HN        1.17     KP        0.99     
!   LA        0.91     MK        1.00     NL        0.97     NY        1.00*    
!   ON        1.00*    OV        1.01     PT        0.97     SC        1.17     
!   TS        1.00*    KK        0.96     WZ        1.00*    WF        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   FD        1.07     GC        1.00*    HN        1.06     KP        1.04     
!   LA        0.88     MK        1.00*    NL        0.99     NY        1.00*    
!   ON        1.00*    OV        1.01     PT        0.96     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 48 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   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 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.90     GC        1.10     HN        1.00*    KP        1.05     
!   LA        0.99     MK        0.92     NL        1.03     NY        0.97     
!   ON        0.92     OV        1.35     PT        0.93     SC        1.00*    
!   TS        1.00     KK        1.03     WZ        1.08     WF        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.92     GC        1.00*    HN        0.91     KP        0.97     
!   LA        0.98     MK        1.00*    NL        0.97     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        0.90     SC        1.04     
!   TS        0.88     KK        1.00*    WZ        1.00*    WF        0.97     
! 
!  Telescope amplitude corrections in sub-array 4:
!   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 12 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.99     GC        1.00*    HN        0.53     KP        1.04     
!   LA        1.00     MK        0.91     NL        1.00     NY        1.00*    
!   ON        1.00*    OV        0.91     PT        0.88     SC        1.05     
!   TS        1.00*    KK        1.15     WZ        1.00*    WF        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   FD        0.99     GC        1.00*    HN        0.92     KP        0.98     
!   LA        0.97     MK        1.00*    NL        1.00     NY        1.00*    
!   ON        1.00*    OV        1.13     PT        0.92     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Fit before self-cal, rms=0.289428Jy  sigma=0.001362
! Fit after  self-cal, rms=0.324747Jy  sigma=0.001344
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.416 mas, bmaj=3.681 mas, bpa=22.71 degrees
! Estimated noise=616.614 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.00226687 Jy
! Component: 100  -  total flux cleaned = 0.00238398 Jy
! Component: 150  -  total flux cleaned = 0.00238458 Jy
! Component: 200  -  total flux cleaned = 0.00232265 Jy
! Total flux subtracted in 200 components = 0.00232265 Jy
! Clean residual min=-0.003812 max=0.004684 Jy/beam
! Clean residual mean=-0.000026 rms=0.000996 Jy/beam
! Combined flux in latest and established models = 0.332901 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 64 components and 0.332901 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.324678Jy  sigma=0.001343
! Fit after  self-cal, rms=0.325448Jy  sigma=0.001342
! 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.325448Jy  sigma=0.001342
! Fit after  self-cal, rms=0.333723Jy  sigma=0.001342
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.423 mas, bmaj=3.683 mas, bpa=22.8 degrees
! Estimated noise=618.229 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00100154 Jy
! Component: 100  -  total flux cleaned = 0.00102133 Jy
! Component: 150  -  total flux cleaned = 0.000906709 Jy
! Component: 200  -  total flux cleaned = 0.00075936 Jy
! Total flux subtracted in 200 components = 0.00075936 Jy
! Clean residual min=-0.003189 max=0.004543 Jy/beam
! Clean residual mean=0.000012 rms=0.000956 Jy/beam
! Combined flux in latest and established models = 0.333661 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 64 components and 0.333661 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.333688Jy  sigma=0.001341
! Fit after  self-cal, rms=0.333778Jy  sigma=0.001341
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 (7.5, 53.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0040427 Jy
! Component: 100  -  total flux cleaned = 0.00450584 Jy
! Component: 150  -  total flux cleaned = 0.00450719 Jy
! Component: 200  -  total flux cleaned = 0.00450769 Jy
! Total flux subtracted in 200 components = 0.00450769 Jy
! Clean residual min=-0.003285 max=0.004068 Jy/beam
! Clean residual mean=-0.000013 rms=0.000903 Jy/beam
! Combined flux in latest and established models = 0.338168 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 89 components and 0.338168 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.333696Jy  sigma=0.001341
! Fit after  self-cal, rms=0.333692Jy  sigma=0.001341
! Inverting map 
! Added new window around map position (15, 19.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00410602 Jy
! Component: 100  -  total flux cleaned = 0.00600193 Jy
! Component: 150  -  total flux cleaned = 0.00679545 Jy
! Component: 200  -  total flux cleaned = 0.00710707 Jy
! Total flux subtracted in 200 components = 0.00710707 Jy
! Clean residual min=-0.003480 max=0.003301 Jy/beam
! Clean residual mean=-0.000066 rms=0.000829 Jy/beam
! Combined flux in latest and established models = 0.345275 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 105 components and 0.345275 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.333619Jy  sigma=0.001340
! Fit after  self-cal, rms=0.333613Jy  sigma=0.001340
! 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.333613Jy  sigma=0.001340
! Fit after  self-cal, rms=0.338668Jy  sigma=0.001340
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.426 mas, bmaj=3.691 mas, bpa=22.92 degrees
! Estimated noise=619.934 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00249138 Jy
! Component: 100  -  total flux cleaned = 0.0035323 Jy
! Component: 150  -  total flux cleaned = 0.00379534 Jy
! Component: 200  -  total flux cleaned = 0.00403505 Jy
! Total flux subtracted in 200 components = 0.00403505 Jy
! Clean residual min=-0.003473 max=0.003230 Jy/beam
! Clean residual mean=-0.000038 rms=0.000833 Jy/beam
! Combined flux in latest and established models = 0.34931 Jy
selfcal
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 112 components and 0.34931 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.338625Jy  sigma=0.001340
! Fit after  self-cal, rms=0.338674Jy  sigma=0.001340
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.000817865 Jy
! Component: 100  -  total flux cleaned = 0.00104971 Jy
! Component: 150  -  total flux cleaned = 0.00115629 Jy
! Component: 200  -  total flux cleaned = 0.00115582 Jy
! Total flux subtracted in 200 components = 0.00115582 Jy
! Clean residual min=-0.003461 max=0.003288 Jy/beam
! Clean residual mean=-0.000046 rms=0.000833 Jy/beam
! Combined flux in latest and established models = 0.350466 Jy
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 115 components and 0.350466 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.338648Jy  sigma=0.001340
! Fit after  self-cal, rms=0.338648Jy  sigma=0.001340
! 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.338648Jy  sigma=0.001340
! Fit after  self-cal, rms=0.338672Jy  sigma=0.001340
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.799 mas, bmaj=11.75 mas, bpa=35.75 degrees
! Estimated noise=859.536 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00259148 Jy
! Component: 100  -  total flux cleaned = 0.00307166 Jy
! Component: 150  -  total flux cleaned = 0.00343158 Jy
! Component: 200  -  total flux cleaned = 0.00354017 Jy
! Total flux subtracted in 200 components = 0.00354017 Jy
! Clean residual min=-0.003516 max=0.003353 Jy/beam
! Clean residual mean=-0.000123 rms=0.001115 Jy/beam
! Combined flux in latest and established models = 0.354006 Jy
selfcal
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 122 components and 0.354006 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.338672Jy  sigma=0.001340
! Fit after  self-cal, rms=0.338668Jy  sigma=0.001340
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.000381657 Jy
! Component: 100  -  total flux cleaned = 0.000649076 Jy
! Component: 150  -  total flux cleaned = 0.000679902 Jy
! Component: 200  -  total flux cleaned = 0.000762716 Jy
! Total flux subtracted in 200 components = 0.000762716 Jy
! Clean residual min=-0.003617 max=0.003281 Jy/beam
! Clean residual mean=-0.000139 rms=0.001130 Jy/beam
! Combined flux in latest and established models = 0.354769 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 125 components and 0.354769 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.338669Jy  sigma=0.001340
! Fit after  self-cal, rms=0.338677Jy  sigma=0.001340
! 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.428 mas, bmaj=3.697 mas, bpa=22.95 degrees
! Estimated noise=620.765 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.428 x 3.697 at 22.95 degrees (North through East)
! Clean map  min=-0.0034073  max=0.24168 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.051 mas, bmaj=3.279 mas, bpa=21.53 degrees
! Estimated noise=1302.93 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.185688 Jy
! Component: 100  -  total flux cleaned = 0.2364 Jy
! Component: 150  -  total flux cleaned = 0.265591 Jy
! Component: 200  -  total flux cleaned = 0.284957 Jy
! Total flux subtracted in 200 components = 0.284957 Jy
! Clean residual min=-0.008472 max=0.011913 Jy/beam
! Clean residual mean=0.000026 rms=0.002406 Jy/beam
! Combined flux in latest and established models = 0.284957 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 15 model components to the UV plane model.
! The established model now contains 15 components and 0.284956 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.428 mas, bmaj=3.697 mas, bpa=22.95 degrees
! Estimated noise=620.765 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.0212774 Jy
! Component: 100  -  total flux cleaned = 0.0337345 Jy
! Component: 150  -  total flux cleaned = 0.0422387 Jy
! Component: 200  -  total flux cleaned = 0.0485133 Jy
! Total flux subtracted in 200 components = 0.0485133 Jy
! Clean residual min=-0.003439 max=0.005195 Jy/beam
! Clean residual mean=0.000147 rms=0.001137 Jy/beam
! Combined flux in latest and established models = 0.33347 Jy
! Adding 44 model components to the UV plane model.
! The established model now contains 57 components and 0.33347 Jy
! Inverting map 
! Added new window around map position (9.5, 3.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00548755 Jy
! Component: 100  -  total flux cleaned = 0.00934333 Jy
! Component: 150  -  total flux cleaned = 0.0124113 Jy
! Component: 200  -  total flux cleaned = 0.0141387 Jy
! Total flux subtracted in 200 components = 0.0141387 Jy
! Clean residual min=-0.003226 max=0.003540 Jy/beam
! Clean residual mean=0.000010 rms=0.000861 Jy/beam
! Combined flux in latest and established models = 0.347609 Jy
! Adding 46 model components to the UV plane model.
! The established model now contains 91 components and 0.347608 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=8.799 mas, bmaj=11.75 mas, bpa=35.75 degrees
! Estimated noise=859.536 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00332759 Jy
! Component: 100  -  total flux cleaned = 0.00515679 Jy
! Component: 150  -  total flux cleaned = 0.00574482 Jy
! Component: 200  -  total flux cleaned = 0.00616935 Jy
! Total flux subtracted in 200 components = 0.00616935 Jy
! Clean residual min=-0.003613 max=0.003258 Jy/beam
! Clean residual mean=-0.000112 rms=0.001113 Jy/beam
! Combined flux in latest and established models = 0.353778 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.000147078 Jy
! Component: 100  -  total flux cleaned = 0.000245934 Jy
! Component: 150  -  total flux cleaned = 0.000275767 Jy
! Component: 200  -  total flux cleaned = 0.000332839 Jy
! Total flux subtracted in 200 components = 0.000332839 Jy
! Clean residual min=-0.003616 max=0.003175 Jy/beam
! Clean residual mean=-0.000119 rms=0.001107 Jy/beam
! Combined flux in latest and established models = 0.354111 Jy
! Adding 27 model components to the UV plane model.
! The established model now contains 113 components and 0.354111 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.428 mas, bmaj=3.697 mas, bpa=22.95 degrees
! Estimated noise=620.765 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00126222 Jy
! Component: 100  -  total flux cleaned = -0.00117536 Jy
! Component: 150  -  total flux cleaned = -0.00110172 Jy
! Component: 200  -  total flux cleaned = -0.00103294 Jy
! Total flux subtracted in 200 components = -0.00103294 Jy
! Clean residual min=-0.003318 max=0.003039 Jy/beam
! Clean residual mean=-0.000041 rms=0.000815 Jy/beam
! Combined flux in latest and established models = 0.353078 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 129 components and 0.353078 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.338640Jy  sigma=0.001339
! Fit after  self-cal, rms=0.338625Jy  sigma=0.001339
wmodel J1500+4751_S_2003_09_17_pus_map.mod
! Writing 129 model components to file: J1500+4751_S_2003_09_17_pus_map.mod
wobs J1500+4751_S_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J1500+4751_S_2003_09_17_pus_uvs.fits
wwins J1500+4751_S_2003_09_17_pus_map.win
! wwins: Wrote 5 windows to J1500+4751_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.000623844 Jy
! Component: 100  -  total flux cleaned = -0.00100829 Jy
! Component: 150  -  total flux cleaned = -0.00152508 Jy
! Component: 200  -  total flux cleaned = -0.00201932 Jy
! Component: 250  -  total flux cleaned = -0.00244929 Jy
! Component: 300  -  total flux cleaned = -0.00281801 Jy
! Component: 350  -  total flux cleaned = -0.00313218 Jy
! Component: 400  -  total flux cleaned = -0.00326261 Jy
! Component: 450  -  total flux cleaned = -0.00326239 Jy
! Component: 500  -  total flux cleaned = -0.00326258 Jy
! Component: 550  -  total flux cleaned = -0.00326322 Jy
! Component: 600  -  total flux cleaned = -0.00318251 Jy
! Component: 650  -  total flux cleaned = -0.00318266 Jy
! Component: 700  -  total flux cleaned = -0.00302488 Jy
! Component: 750  -  total flux cleaned = -0.00294768 Jy
! Component: 800  -  total flux cleaned = -0.00302435 Jy
! Component: 850  -  total flux cleaned = -0.00291058 Jy
! Component: 900  -  total flux cleaned = -0.00287278 Jy
! Component: 950  -  total flux cleaned = -0.00279865 Jy
! Component: 1000  -  total flux cleaned = -0.0027985 Jy
! Component: 1050  -  total flux cleaned = -0.00272562 Jy
! Component: 1100  -  total flux cleaned = -0.00268947 Jy
! Component: 1150  -  total flux cleaned = -0.00265331 Jy
! Component: 1200  -  total flux cleaned = -0.00251186 Jy
! Component: 1250  -  total flux cleaned = -0.00240712 Jy
! Component: 1300  -  total flux cleaned = -0.00226827 Jy
! Component: 1350  -  total flux cleaned = -0.00219997 Jy
! Component: 1400  -  total flux cleaned = -0.00216597 Jy
! Component: 1450  -  total flux cleaned = -0.00199708 Jy
! Component: 1500  -  total flux cleaned = -0.00193033 Jy
! Component: 1550  -  total flux cleaned = -0.00196316 Jy
! Component: 1600  -  total flux cleaned = -0.00179741 Jy
! Component: 1650  -  total flux cleaned = -0.00169938 Jy
! Component: 1700  -  total flux cleaned = -0.00169922 Jy
! Component: 1750  -  total flux cleaned = -0.00153799 Jy
! Component: 1800  -  total flux cleaned = -0.00153807 Jy
! Component: 1850  -  total flux cleaned = -0.00147447 Jy
! Component: 1900  -  total flux cleaned = -0.00137962 Jy
! Component: 1950  -  total flux cleaned = -0.00131716 Jy
! Component: 2000  -  total flux cleaned = -0.0012549 Jy
! Total flux subtracted in 2048 components = -0.00122399 Jy
! Clean residual min=-0.002056 max=0.001761 Jy/beam
! Clean residual mean=-0.000016 rms=0.000594 Jy/beam
! Combined flux in latest and established models = 0.351854 Jy
keep
! Adding 145 model components to the UV plane model.
! The established model now contains 274 components and 0.351854 Jy
wmap "J1500+4751_S_2003_09_17_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.428 x 3.697 at 22.95 degrees (North through East)
! Clean map  min=-0.0026337  max=0.242 Jy/beam
! Writing clean map to FITS file: J1500+4751_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.241995 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000594566 
device "J1500+4751_S_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J1500+4751_S_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.73708 0.73708 1.47416 2.94832 5.89664 11.7933 23.5865 47.1731 94.3462
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0017 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.241 
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.428 x 3.697 at 22.95 degrees (North through East)
! Clean map  min=-0.0026337  max=0.242 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1500+4751_S_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J1500+4751_S_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1500+4751_S_2003_09_17_pus_uvs.log closed on Wed May 23 16:53:35 2007