! Started logfile: J2246-1206_S_2003_09_17_pus_uvs.log on Mon May 21 23:12:00 2007
obs J2246-1206_S_2003_09_17_pus_uva.fits
! Reading UV FITS file: J2246-1206_S_2003_09_17_pus_uva.fits
! AN table 1: 15 integrations on 120 of 120 possible baselines.
! AN table 2: 134 integrations on 120 of 120 possible baselines.
! AN table 3: 123 integrations on 120 of 120 possible baselines.
! AN table 4: 112 integrations on 120 of 120 possible baselines.
! AN table 5: 131 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.108188 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2246-1206
! 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 26744 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 207 telescope corrections were flagged in sub-array 1.
!  A total of 1327 telescope corrections were flagged in sub-array 2.
!  A total of 1634 telescope corrections were flagged in sub-array 3.
!  A total of 1141 telescope corrections were flagged in sub-array 4.
!  A total of 1578 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 207 telescope corrections were flagged in sub-array 1.
!  A total of 1327 telescope corrections were flagged in sub-array 2.
!  A total of 1634 telescope corrections were flagged in sub-array 3.
!  A total of 1141 telescope corrections were flagged in sub-array 4.
!  A total of 1578 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 207 telescope corrections were flagged in sub-array 1.
!  A total of 1327 telescope corrections were flagged in sub-array 2.
!  A total of 1634 telescope corrections were flagged in sub-array 3.
!  A total of 1141 telescope corrections were flagged in sub-array 4.
!  A total of 1578 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 207 telescope corrections were flagged in sub-array 1.
!  A total of 1327 telescope corrections were flagged in sub-array 2.
!  A total of 1634 telescope corrections were flagged in sub-array 3.
!  A total of 1141 telescope corrections were flagged in sub-array 4.
!  A total of 1578 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=1.463347Jy  sigma=0.010091
! Fit after  self-cal, rms=0.925725Jy  sigma=0.006291
! 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.5 mas, bmaj=7.206 mas, bpa=2.255 degrees
! Estimated noise=1213.94 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.27055 Jy
! Component: 100  -  total flux cleaned = 1.61627 Jy
! Total flux subtracted in 100 components = 1.61627 Jy
! Clean residual min=-0.039363 max=0.149816 Jy/beam
! Clean residual mean=0.000707 rms=0.015470 Jy/beam
! Combined flux in latest and established models = 1.61627 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 1.61627 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.469762Jy  sigma=0.003144
! Fit after  self-cal, rms=0.469377Jy  sigma=0.003142
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.164507 Jy
! Component: 100  -  total flux cleaned = 0.263834 Jy
! Total flux subtracted in 100 components = 0.263834 Jy
! Clean residual min=-0.036147 max=0.073736 Jy/beam
! Clean residual mean=0.000448 rms=0.009980 Jy/beam
! Combined flux in latest and established models = 1.8801 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 28 components and 1.8801 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.343222Jy  sigma=0.002237
! Fit after  self-cal, rms=0.342611Jy  sigma=0.002234
! Inverting map 
! Added new window around map position (5.5, 8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0792565 Jy
! Component: 100  -  total flux cleaned = 0.136152 Jy
! Total flux subtracted in 100 components = 0.136152 Jy
! Clean residual min=-0.031587 max=0.038217 Jy/beam
! Clean residual mean=0.000292 rms=0.008010 Jy/beam
! Combined flux in latest and established models = 2.01625 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 46 components and 2.01625 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.299240Jy  sigma=0.001916
! Fit after  self-cal, rms=0.298520Jy  sigma=0.001910
! 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=3.33 mas, bmaj=9.743 mas, bpa=-2.4 degrees
! Estimated noise=651.306 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.0919563 Jy
! Component: 100  -  total flux cleaned = 0.145531 Jy
! Component: 150  -  total flux cleaned = 0.178405 Jy
! Component: 200  -  total flux cleaned = 0.199166 Jy
! Total flux subtracted in 200 components = 0.199166 Jy
! Clean residual min=-0.016859 max=0.026293 Jy/beam
! Clean residual mean=0.001134 rms=0.005682 Jy/beam
! Combined flux in latest and established models = 2.21542 Jy
! Performing phase self-cal
! Adding 56 model components to the UV plane model.
! The established model now contains 97 components and 2.21542 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.268285Jy  sigma=0.001681
! Fit after  self-cal, rms=0.267288Jy  sigma=0.001674
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 33 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 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.00     GC        1.00*    HN        0.92     KP        0.97     
!   LA        1.00     MK        1.00*    NL        1.02     NY        1.00*    
!   ON        1.00*    OV        1.04     PT        1.01     SC        0.98     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        0.98     
! 
!  A total of 240 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.96     GC        1.00*    HN        1.00*    KP        0.93     
!   LA        0.96     MK        1.03     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.95     PT        0.96     SC        1.00*    
!   TS        1.00*    KK        0.98     WZ        1.00*    WF        1.00*    
! 
!  A total of 84 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.01     GC        1.00     HN        1.00*    KP        0.96     
!   LA        1.02     MK        1.02     NL        0.98     NY        1.00*    
!   ON        1.00*    OV        1.01     PT        0.95     SC        1.00*    
!   TS        1.02     KK        1.35     WZ        1.00*    WF        1.00*    
! 
!  A total of 72 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        1.00     GC        1.00*    HN        0.95     KP        0.95     
!   LA        0.96     MK        1.00*    NL        1.00     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        0.97     SC        0.94     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00     
! 
! 
! Correcting IF 2.
!  A total of 33 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 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.97     GC        1.00*    HN        1.00     KP        1.06     
!   LA        1.01     MK        1.00*    NL        1.05     NY        1.00*    
!   ON        1.00*    OV        0.97     PT        0.99     SC        1.04     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00     
! 
!  A total of 240 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.94     GC        1.00*    HN        1.00*    KP        1.02     
!   LA        0.98     MK        1.07     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.94     PT        0.95     SC        1.00*    
!   TS        1.00*    KK        0.95     WZ        1.00*    WF        1.00*    
! 
!  A total of 84 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.98     GC        0.99     HN        1.00*    KP        1.01     
!   LA        1.00     MK        1.04     NL        1.05     NY        1.00*    
!   ON        1.00*    OV        0.95     PT        0.96     SC        1.00*    
!   TS        0.98     KK        0.99     WZ        1.00*    WF        1.00*    
! 
!  A total of 72 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        1.01     GC        1.00*    HN        1.01     KP        1.03     
!   LA        0.98     MK        1.00*    NL        1.04     NY        1.00*    
!   ON        1.00*    OV        0.97     PT        0.96     SC        0.99     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.01     
! 
! 
! Correcting IF 3.
!  A total of 33 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 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.98     GC        1.00*    HN        1.01     KP        1.05     
!   LA        0.97     MK        1.00*    NL        0.99     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        1.03     SC        1.05     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        0.96     
! 
!  A total of 240 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.94     GC        1.00*    HN        1.00*    KP        1.00     
!   LA        0.94     MK        1.05     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.92     PT        0.98     SC        1.00*    
!   TS        1.00*    KK        0.96     WZ        1.00*    WF        1.00*    
! 
!  A total of 84 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.97     GC        1.04     HN        1.00*    KP        1.01     
!   LA        0.96     MK        1.02     NL        0.99     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        1.00     SC        1.00*    
!   TS        1.01     KK        0.99     WZ        1.00*    WF        1.00*    
! 
!  A total of 72 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.99     GC        1.00*    HN        1.02     KP        1.02     
!   LA        0.94     MK        1.00*    NL        0.98     NY        1.00*    
!   ON        1.00*    OV        0.95     PT        0.99     SC        1.01     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.01     
! 
! 
! Correcting IF 4.
!  A total of 33 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 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.98     GC        1.00*    HN        1.24     KP        1.06     
!   LA        1.01     MK        1.00*    NL        1.02     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        0.98     SC        1.02     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00     
! 
!  A total of 240 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.94     GC        1.00*    HN        1.00*    KP        1.01     
!   LA        0.97     MK        1.00     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.90     PT        0.94     SC        1.00*    
!   TS        1.00*    KK        1.03     WZ        1.00*    WF        1.00*    
! 
!  A total of 84 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.96     GC        1.05     HN        1.00*    KP        1.02     
!   LA        1.00     MK        0.96     NL        1.03     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.94     SC        1.00*    
!   TS        1.00     KK        1.05     WZ        1.00*    WF        1.00*    
! 
!  A total of 72 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.97     GC        1.00*    HN        0.96     KP        1.03     
!   LA        0.98     MK        1.00*    NL        1.01     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     
! 
! 
! Fit before self-cal, rms=0.267288Jy  sigma=0.001674
! Fit after  self-cal, rms=0.248007Jy  sigma=0.001472
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.342 mas, bmaj=10.16 mas, bpa=-1.637 degrees
! Estimated noise=674.239 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.00132587 Jy
! Component: 100  -  total flux cleaned = -0.0012474 Jy
! Component: 150  -  total flux cleaned = -0.00144282 Jy
! Component: 200  -  total flux cleaned = -0.00144346 Jy
! Total flux subtracted in 200 components = -0.00144346 Jy
! Clean residual min=-0.010805 max=0.011848 Jy/beam
! Clean residual mean=0.000333 rms=0.003143 Jy/beam
! Combined flux in latest and established models = 2.21397 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 112 components and 2.21397 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.247516Jy  sigma=0.001468
! Fit after  self-cal, rms=0.247519Jy  sigma=0.001467
! 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.247519Jy  sigma=0.001467
! Fit after  self-cal, rms=0.236449Jy  sigma=0.001378
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.341 mas, bmaj=10.16 mas, bpa=-1.62 degrees
! Estimated noise=674.879 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0016183 Jy
! Component: 100  -  total flux cleaned = 0.00200106 Jy
! Component: 150  -  total flux cleaned = 0.00229603 Jy
! Component: 200  -  total flux cleaned = 0.00243032 Jy
! Total flux subtracted in 200 components = 0.00243032 Jy
! Clean residual min=-0.005753 max=0.012540 Jy/beam
! Clean residual mean=0.000182 rms=0.001969 Jy/beam
! Combined flux in latest and established models = 2.2164 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 123 components and 2.2164 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.236186Jy  sigma=0.001376
! Fit after  self-cal, rms=0.236199Jy  sigma=0.001376
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 (12, 3.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0109816 Jy
! Component: 100  -  total flux cleaned = 0.0121508 Jy
! Component: 150  -  total flux cleaned = 0.0123487 Jy
! Component: 200  -  total flux cleaned = 0.0123492 Jy
! Total flux subtracted in 200 components = 0.0123492 Jy
! Clean residual min=-0.005464 max=0.005934 Jy/beam
! Clean residual mean=0.000001 rms=0.001542 Jy/beam
! Combined flux in latest and established models = 2.22875 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 145 components and 2.22875 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.235647Jy  sigma=0.001371
! Fit after  self-cal, rms=0.235583Jy  sigma=0.001371
! 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.235583Jy  sigma=0.001371
! Fit after  self-cal, rms=0.235335Jy  sigma=0.001357
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.341 mas, bmaj=10.16 mas, bpa=-1.639 degrees
! Estimated noise=675.296 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00327961 Jy
! Component: 100  -  total flux cleaned = 0.00471549 Jy
! Component: 150  -  total flux cleaned = 0.00531849 Jy
! Component: 200  -  total flux cleaned = 0.00584382 Jy
! Total flux subtracted in 200 components = 0.00584382 Jy
! Clean residual min=-0.004663 max=0.004622 Jy/beam
! Clean residual mean=0.000049 rms=0.001282 Jy/beam
! Combined flux in latest and established models = 2.2346 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 156 components and 2.2346 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.235085Jy  sigma=0.001355
! Fit after  self-cal, rms=0.235075Jy  sigma=0.001355
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.00136113 Jy
! Component: 100  -  total flux cleaned = 0.00184352 Jy
! Component: 150  -  total flux cleaned = 0.00216454 Jy
! Component: 200  -  total flux cleaned = 0.00245241 Jy
! Total flux subtracted in 200 components = 0.00245241 Jy
! Clean residual min=-0.004938 max=0.004549 Jy/beam
! Clean residual mean=0.000013 rms=0.001240 Jy/beam
! Combined flux in latest and established models = 2.23705 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 162 components and 2.23705 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.234968Jy  sigma=0.001354
! Fit after  self-cal, rms=0.234963Jy  sigma=0.001354
! 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.234963Jy  sigma=0.001354
! Fit after  self-cal, rms=0.235111Jy  sigma=0.001353
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.649 mas, bmaj=14.84 mas, bpa=-8.447 degrees
! Estimated noise=829.257 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00394215 Jy
! Component: 100  -  total flux cleaned = 0.00459596 Jy
! Component: 150  -  total flux cleaned = 0.00514219 Jy
! Component: 200  -  total flux cleaned = 0.00536307 Jy
! Total flux subtracted in 200 components = 0.00536307 Jy
! Clean residual min=-0.003832 max=0.003676 Jy/beam
! Clean residual mean=-0.000024 rms=0.001175 Jy/beam
! Combined flux in latest and established models = 2.24241 Jy
selfcal
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 186 components and 2.24241 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.235044Jy  sigma=0.001353
! Fit after  self-cal, rms=0.235040Jy  sigma=0.001353
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.00079528 Jy
! Component: 100  -  total flux cleaned = 0.00117495 Jy
! Component: 150  -  total flux cleaned = 0.00133559 Jy
! Component: 200  -  total flux cleaned = 0.00138273 Jy
! Total flux subtracted in 200 components = 0.00138273 Jy
! Clean residual min=-0.003910 max=0.003222 Jy/beam
! Clean residual mean=-0.000065 rms=0.001182 Jy/beam
! Combined flux in latest and established models = 2.24379 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 194 components and 2.24379 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.235009Jy  sigma=0.001353
! Fit after  self-cal, rms=0.235006Jy  sigma=0.001353
! 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=3.343 mas, bmaj=10.16 mas, bpa=-1.65 degrees
! Estimated noise=675.905 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.343 x 10.16 at -1.65 degrees (North through East)
! Clean map  min=-0.0044568  max=1.7398 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.235006Jy  sigma=0.001353
! Fit after  self-cal, rms=0.186977Jy  sigma=0.001073
! Inverting map and beam 
! Estimated beam: bmin=3.343 mas, bmaj=10.16 mas, bpa=-1.639 degrees
! Estimated noise=675.299 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000584987 Jy
! Component: 100  -  total flux cleaned = 0.00058862 Jy
! Component: 150  -  total flux cleaned = 0.000587575 Jy
! Component: 200  -  total flux cleaned = 0.000655402 Jy
! Total flux subtracted in 200 components = 0.000655402 Jy
! Clean residual min=-0.003814 max=0.003305 Jy/beam
! Clean residual mean=-0.000077 rms=0.000976 Jy/beam
! Combined flux in latest and established models = 2.24445 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 202 components and 2.24445 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.186913Jy  sigma=0.001073
! Fit after  self-cal, rms=0.186911Jy  sigma=0.001073
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000316514 Jy
! Component: 100  -  total flux cleaned = 0.00031973 Jy
! Component: 150  -  total flux cleaned = 0.000380151 Jy
! Component: 200  -  total flux cleaned = 0.000380585 Jy
! Total flux subtracted in 200 components = 0.000380585 Jy
! Clean residual min=-0.003810 max=0.003296 Jy/beam
! Clean residual mean=-0.000082 rms=0.000968 Jy/beam
! Combined flux in latest and established models = 2.24483 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 209 components and 2.24483 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.186874Jy  sigma=0.001073
! Fit after  self-cal, rms=0.186873Jy  sigma=0.001073
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.186873Jy  sigma=0.001073
! Fit after  self-cal, rms=0.186847Jy  sigma=0.001072
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.562 mas, bmaj=7.465 mas, bpa=-0.07607 degrees
! Estimated noise=1230.43 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.26856 Jy
! Component: 100  -  total flux cleaned = 1.62248 Jy
! Component: 150  -  total flux cleaned = 1.79213 Jy
! Component: 200  -  total flux cleaned = 1.89546 Jy
! Total flux subtracted in 200 components = 1.89546 Jy
! Clean residual min=-0.019862 max=0.057361 Jy/beam
! Clean residual mean=0.000280 rms=0.007196 Jy/beam
! Combined flux in latest and established models = 1.89546 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 25 model components to the UV plane model.
! The established model now contains 25 components and 1.89546 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.345 mas, bmaj=10.16 mas, bpa=-1.654 degrees
! Estimated noise=675.286 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.136748 Jy
! Component: 100  -  total flux cleaned = 0.211021 Jy
! Component: 150  -  total flux cleaned = 0.255389 Jy
! Component: 200  -  total flux cleaned = 0.284241 Jy
! Total flux subtracted in 200 components = 0.284241 Jy
! Clean residual min=-0.007625 max=0.018177 Jy/beam
! Clean residual mean=0.000866 rms=0.003568 Jy/beam
! Combined flux in latest and established models = 2.1797 Jy
! Adding 71 model components to the UV plane model.
! The established model now contains 94 components and 2.1797 Jy
! Inverting map 
! Added new window around map position (5, -3.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0197088 Jy
! Component: 100  -  total flux cleaned = 0.0327602 Jy
! Component: 150  -  total flux cleaned = 0.0419379 Jy
! Component: 200  -  total flux cleaned = 0.0484835 Jy
! Total flux subtracted in 200 components = 0.0484835 Jy
! Clean residual min=-0.004906 max=0.004215 Jy/beam
! Clean residual mean=0.000158 rms=0.001250 Jy/beam
! Combined flux in latest and established models = 2.22819 Jy
! Adding 50 model components to the UV plane model.
! The established model now contains 137 components and 2.22819 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.647 mas, bmaj=14.83 mas, bpa=-8.464 degrees
! Estimated noise=828.434 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00693509 Jy
! Component: 100  -  total flux cleaned = 0.0103737 Jy
! Component: 150  -  total flux cleaned = 0.0112958 Jy
! Component: 200  -  total flux cleaned = 0.0118435 Jy
! Total flux subtracted in 200 components = 0.0118435 Jy
! Clean residual min=-0.003033 max=0.002348 Jy/beam
! Clean residual mean=-0.000047 rms=0.000955 Jy/beam
! Combined flux in latest and established models = 2.24003 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.000506295 Jy
! Component: 100  -  total flux cleaned = 0.000770226 Jy
! Component: 150  -  total flux cleaned = 0.000991652 Jy
! Component: 200  -  total flux cleaned = 0.00114361 Jy
! Total flux subtracted in 200 components = 0.00114361 Jy
! Clean residual min=-0.002812 max=0.002418 Jy/beam
! Clean residual mean=-0.000080 rms=0.000897 Jy/beam
! Combined flux in latest and established models = 2.24117 Jy
! Adding 57 model components to the UV plane model.
! The established model now contains 180 components and 2.24117 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.345 mas, bmaj=10.16 mas, bpa=-1.654 degrees
! Estimated noise=675.286 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000582955 Jy
! Component: 100  -  total flux cleaned = -0.000245272 Jy
! Component: 150  -  total flux cleaned = -0.000140918 Jy
! Component: 200  -  total flux cleaned = -0.000314697 Jy
! Total flux subtracted in 200 components = -0.000314697 Jy
! Clean residual min=-0.004954 max=0.003280 Jy/beam
! Clean residual mean=-0.000034 rms=0.000905 Jy/beam
! Combined flux in latest and established models = 2.24086 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 199 components and 2.24086 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.186845Jy  sigma=0.001073
! Fit after  self-cal, rms=0.186803Jy  sigma=0.001072
wmodel J2246-1206_S_2003_09_17_pus_map.mod
! Writing 199 model components to file: J2246-1206_S_2003_09_17_pus_map.mod
wobs J2246-1206_S_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J2246-1206_S_2003_09_17_pus_uvs.fits
wwins J2246-1206_S_2003_09_17_pus_map.win
! wwins: Wrote 4 windows to J2246-1206_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.000969988 Jy
! Component: 100  -  total flux cleaned = -0.000967953 Jy
! Component: 150  -  total flux cleaned = -0.000966032 Jy
! Component: 200  -  total flux cleaned = -0.000857931 Jy
! Component: 250  -  total flux cleaned = -0.000958257 Jy
! Component: 300  -  total flux cleaned = -0.00105495 Jy
! Component: 350  -  total flux cleaned = -0.00129013 Jy
! Component: 400  -  total flux cleaned = -0.00142776 Jy
! Component: 450  -  total flux cleaned = -0.00164954 Jy
! Component: 500  -  total flux cleaned = -0.00169223 Jy
! Component: 550  -  total flux cleaned = -0.00164963 Jy
! Component: 600  -  total flux cleaned = -0.00169189 Jy
! Component: 650  -  total flux cleaned = -0.00156973 Jy
! Component: 700  -  total flux cleaned = -0.00157018 Jy
! Component: 750  -  total flux cleaned = -0.00153071 Jy
! Component: 800  -  total flux cleaned = -0.00149167 Jy
! Component: 850  -  total flux cleaned = -0.0014533 Jy
! Component: 900  -  total flux cleaned = -0.00141594 Jy
! Component: 950  -  total flux cleaned = -0.00145372 Jy
! Component: 1000  -  total flux cleaned = -0.00149021 Jy
! Component: 1050  -  total flux cleaned = -0.00149036 Jy
! Component: 1100  -  total flux cleaned = -0.00149058 Jy
! Component: 1150  -  total flux cleaned = -0.00152545 Jy
! Component: 1200  -  total flux cleaned = -0.00155982 Jy
! Component: 1250  -  total flux cleaned = -0.00152556 Jy
! Component: 1300  -  total flux cleaned = -0.0015587 Jy
! Component: 1350  -  total flux cleaned = -0.00149241 Jy
! Component: 1400  -  total flux cleaned = -0.00149264 Jy
! Component: 1450  -  total flux cleaned = -0.0015251 Jy
! Component: 1500  -  total flux cleaned = -0.00152473 Jy
! Component: 1550  -  total flux cleaned = -0.00149299 Jy
! Component: 1600  -  total flux cleaned = -0.00146161 Jy
! Component: 1650  -  total flux cleaned = -0.00146177 Jy
! Component: 1700  -  total flux cleaned = -0.00143121 Jy
! Component: 1750  -  total flux cleaned = -0.00140098 Jy
! Component: 1800  -  total flux cleaned = -0.00143135 Jy
! Component: 1850  -  total flux cleaned = -0.00137156 Jy
! Component: 1900  -  total flux cleaned = -0.00134193 Jy
! Component: 1950  -  total flux cleaned = -0.00131271 Jy
! Component: 2000  -  total flux cleaned = -0.00131274 Jy
! Total flux subtracted in 2048 components = -0.00131269 Jy
! Clean residual min=-0.001516 max=0.001960 Jy/beam
! Clean residual mean=-0.000019 rms=0.000601 Jy/beam
! Combined flux in latest and established models = 2.23955 Jy
keep
! Adding 121 model components to the UV plane model.
! The established model now contains 320 components and 2.23955 Jy
wmap "J2246-1206_S_2003_09_17_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.345 x 10.16 at -1.654 degrees (North through East)
! Clean map  min=-0.0027069  max=1.7474 Jy/beam
! Writing clean map to FITS file: J2246-1206_S_2003_09_17_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.74742 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000600584 
device "J2246-1206_S_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J2246-1206_S_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.103109 0.103109 0.206218 0.412436 0.824871 1.64974 3.29949 6.59897 13.1979 26.3959 52.7918
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0018 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.747 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.345 x 10.16 at -1.654 degrees (North through East)
! Clean map  min=-0.0027069  max=1.7474 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2246-1206_S_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J2246-1206_S_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2246-1206_S_2003_09_17_pus_uvs.log closed on Mon May 21 23:16:11 2007