! Started logfile: J2246-1206_S_2001_10_29_pus_uvs.log on Wed Feb 27 15:33:22 2008
obs J2246-1206_S_2001_10_29_pus_uva.fits
! Reading UV FITS file: J2246-1206_S_2001_10_29_pus_uva.fits
! AN table 1: 57 integrations on 153 of 153 possible baselines.
! AN table 2: 13 integrations on 153 of 153 possible baselines.
! AN table 3: 103 integrations on 153 of 153 possible baselines.
! AN table 4: 51 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.0600782 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2246-1206
! 
! 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.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2604 lines of history.
! 
! Reading 8236 visibilities.
select I
! Polarization I is unavailable.
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
print "field_size =",field_size
! field_size = 512 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
![@muppet J2246-1206_S_2001_10_29_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 996 telescope corrections were flagged in sub-array 1.
!  A total of 212 telescope corrections were flagged in sub-array 2.
!  A total of 1269 telescope corrections were flagged in sub-array 3.
!  A total of 864 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 996 telescope corrections were flagged in sub-array 1.
!  A total of 234 telescope corrections were flagged in sub-array 2.
!  A total of 1269 telescope corrections were flagged in sub-array 3.
!  A total of 864 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 996 telescope corrections were flagged in sub-array 1.
!  A total of 234 telescope corrections were flagged in sub-array 2.
!  A total of 1269 telescope corrections were flagged in sub-array 3.
!  A total of 864 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 996 telescope corrections were flagged in sub-array 1.
!  A total of 234 telescope corrections were flagged in sub-array 2.
!  A total of 1269 telescope corrections were flagged in sub-array 3.
!  A total of 918 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.273803Jy  sigma=0.010526
! Fit after  self-cal, rms=1.067818Jy  sigma=0.008665
! 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=1.995 mas, bmaj=5.15 mas, bpa=-1.051 degrees
! Estimated noise=1834.35 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.23109 Jy
! Component: 100  -  total flux cleaned = 1.64221 Jy
! Total flux subtracted in 100 components = 1.64221 Jy
! Clean residual min=-0.100793 max=0.185329 Jy/beam
! Clean residual mean=0.001578 rms=0.026082 Jy/beam
! Combined flux in latest and established models = 1.64221 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 1.64221 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.627943Jy  sigma=0.004613
! Fit after  self-cal, rms=0.626726Jy  sigma=0.004600
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.209072 Jy
! Component: 100  -  total flux cleaned = 0.322417 Jy
! Total flux subtracted in 100 components = 0.322417 Jy
! Clean residual min=-0.056895 max=0.084542 Jy/beam
! Clean residual mean=0.001011 rms=0.016304 Jy/beam
! Combined flux in latest and established models = 1.96463 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 16 components and 1.96463 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.487060Jy  sigma=0.003164
! Fit after  self-cal, rms=0.486239Jy  sigma=0.003151
! 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.953 mas, bmaj=7.843 mas, bpa=-4.677 degrees
! Estimated noise=948.638 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.144161 Jy
! Component: 100  -  total flux cleaned = 0.209773 Jy
! Component: 150  -  total flux cleaned = 0.242355 Jy
! Component: 200  -  total flux cleaned = 0.259334 Jy
! Total flux subtracted in 200 components = 0.259334 Jy
! Clean residual min=-0.024853 max=0.058180 Jy/beam
! Clean residual mean=0.004868 rms=0.010655 Jy/beam
! Combined flux in latest and established models = 2.22396 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 37 components and 2.22396 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.446081Jy  sigma=0.002690
! Fit after  self-cal, rms=0.445911Jy  sigma=0.002687
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.82     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.09     MC        3.05     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        0.17     
! 
!  A total of 75 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.09     KK        1.07     KP        0.94     LA        0.99     
!   MA        1.00*    MC        1.00*    MK        1.00     NL        0.94     
!   OV        1.02     PT        0.89     SC        1.05     TS        1.08     
!   WF        1.09     WZ        1.00*    
! 
!  A total of 54 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.04     KK        1.02     KP        0.99     LA        0.97     
!   MA        1.00*    MC        1.00*    MK        1.02     NL        1.06     
!   OV        1.03     PT        0.98     SC        1.04     TS        1.06     
!   WF        1.02     WZ        1.00*    
! 
!  A total of 54 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.12     KK        1.02     KP        1.01     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        0.98     NL        1.06     
!   OV        1.02     PT        1.01     SC        1.02     TS        1.08     
!   WF        0.90     WZ        1.00*    
! 
!  A total of 54 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.01     KK        0.99     KP        1.01     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        1.01     NL        1.09     
!   OV        1.01     PT        1.01     SC        1.03     TS        1.14     
!   WF        1.02     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Fit before self-cal, rms=0.445911Jy  sigma=0.002687
! Fit after  self-cal, rms=0.269538Jy  sigma=0.002403
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.973 mas, bmaj=9.626 mas, bpa=-6.327 degrees
! Estimated noise=967.04 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 (6, 8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0347155 Jy
! Component: 100  -  total flux cleaned = 0.0411906 Jy
! Component: 150  -  total flux cleaned = 0.0444449 Jy
! Component: 200  -  total flux cleaned = 0.0455155 Jy
! Total flux subtracted in 200 components = 0.0455155 Jy
! Clean residual min=-0.013012 max=0.019690 Jy/beam
! Clean residual mean=0.000950 rms=0.004775 Jy/beam
! Combined flux in latest and established models = 2.26947 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 52 components and 2.26947 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.263827Jy  sigma=0.002356
! Fit after  self-cal, rms=0.263148Jy  sigma=0.002349
! 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.263148Jy  sigma=0.002349
! Fit after  self-cal, rms=0.253365Jy  sigma=0.002286
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.974 mas, bmaj=9.596 mas, bpa=-6.294 degrees
! Estimated noise=968.427 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0149406 Jy
! Component: 100  -  total flux cleaned = 0.0186578 Jy
! Component: 150  -  total flux cleaned = 0.02156 Jy
! Component: 200  -  total flux cleaned = 0.0221601 Jy
! Total flux subtracted in 200 components = 0.0221601 Jy
! Clean residual min=-0.011347 max=0.015286 Jy/beam
! Clean residual mean=0.000238 rms=0.003478 Jy/beam
! Combined flux in latest and established models = 2.29163 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 65 components and 2.29163 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.251501Jy  sigma=0.002272
! Fit after  self-cal, rms=0.251210Jy  sigma=0.002270
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.0037683 Jy
! Component: 100  -  total flux cleaned = 0.00496759 Jy
! Component: 150  -  total flux cleaned = 0.00570488 Jy
! Component: 200  -  total flux cleaned = 0.00549166 Jy
! Total flux subtracted in 200 components = 0.00549166 Jy
! Clean residual min=-0.012233 max=0.014500 Jy/beam
! Clean residual mean=0.000106 rms=0.003291 Jy/beam
! Combined flux in latest and established models = 2.29713 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 80 components and 2.29713 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.250546Jy  sigma=0.002265
! Fit after  self-cal, rms=0.250440Jy  sigma=0.002265
! Inverting map 
! Added new window around map position (-3, 32).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0124907 Jy
! Component: 100  -  total flux cleaned = 0.016914 Jy
! Component: 150  -  total flux cleaned = 0.0171486 Jy
! Component: 200  -  total flux cleaned = 0.016483 Jy
! Total flux subtracted in 200 components = 0.016483 Jy
! Clean residual min=-0.011498 max=0.009148 Jy/beam
! Clean residual mean=-0.000240 rms=0.002886 Jy/beam
! Combined flux in latest and established models = 2.31361 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 101 components and 2.31361 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.249648Jy  sigma=0.002259
! Fit after  self-cal, rms=0.249596Jy  sigma=0.002258
! 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.249596Jy  sigma=0.002258
! Fit after  self-cal, rms=0.250026Jy  sigma=0.002255
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.972 mas, bmaj=9.578 mas, bpa=-6.291 degrees
! Estimated noise=967.919 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00729651 Jy
! Component: 100  -  total flux cleaned = 0.00780334 Jy
! Component: 150  -  total flux cleaned = 0.00802724 Jy
! Component: 200  -  total flux cleaned = 0.00802425 Jy
! Total flux subtracted in 200 components = 0.00802425 Jy
! Clean residual min=-0.007733 max=0.008293 Jy/beam
! Clean residual mean=0.000011 rms=0.002205 Jy/beam
! Combined flux in latest and established models = 2.32163 Jy
selfcal
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 116 components and 2.32163 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.249483Jy  sigma=0.002251
! Fit after  self-cal, rms=0.249411Jy  sigma=0.002251
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.00219626 Jy
! Component: 100  -  total flux cleaned = 0.00276239 Jy
! Component: 150  -  total flux cleaned = 0.00259811 Jy
! Component: 200  -  total flux cleaned = 0.00244758 Jy
! Total flux subtracted in 200 components = 0.00244758 Jy
! Clean residual min=-0.007450 max=0.007166 Jy/beam
! Clean residual mean=-0.000047 rms=0.002109 Jy/beam
! Combined flux in latest and established models = 2.32408 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 123 components and 2.32408 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.249147Jy  sigma=0.002249
! Fit after  self-cal, rms=0.249117Jy  sigma=0.002249
! 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.249117Jy  sigma=0.002249
! Fit after  self-cal, rms=0.249872Jy  sigma=0.002248
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.868 mas, bmaj=14.93 mas, bpa=4.866 degrees
! Estimated noise=1252.29 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00668974 Jy
! Component: 100  -  total flux cleaned = 0.00575233 Jy
! Component: 150  -  total flux cleaned = 0.00528209 Jy
! Component: 200  -  total flux cleaned = 0.00519019 Jy
! Total flux subtracted in 200 components = 0.00519019 Jy
! Clean residual min=-0.005573 max=0.007556 Jy/beam
! Clean residual mean=0.000031 rms=0.002413 Jy/beam
! Combined flux in latest and established models = 2.32927 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 135 components and 2.32927 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.249705Jy  sigma=0.002247
! Fit after  self-cal, rms=0.249620Jy  sigma=0.002246
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.00160284 Jy
! Component: 100  -  total flux cleaned = 0.00160338 Jy
! Component: 150  -  total flux cleaned = 0.00158682 Jy
! Component: 200  -  total flux cleaned = 0.00143772 Jy
! Total flux subtracted in 200 components = 0.00143772 Jy
! Clean residual min=-0.005762 max=0.006725 Jy/beam
! Clean residual mean=-0.000044 rms=0.002384 Jy/beam
! Combined flux in latest and established models = 2.33071 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 152 components and 2.33071 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.249547Jy  sigma=0.002246
! Fit after  self-cal, rms=0.249499Jy  sigma=0.002245
! 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.97 mas, bmaj=9.571 mas, bpa=-6.294 degrees
! Estimated noise=967.749 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.97 x 9.571 at -6.294 degrees (North through East)
! Clean map  min=-0.0071689  max=1.795 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.249499Jy  sigma=0.002245
! Fit after  self-cal, rms=0.165453Jy  sigma=0.001244
! Inverting map and beam 
! Estimated beam: bmin=2.975 mas, bmaj=9.568 mas, bpa=-6.304 degrees
! Estimated noise=968.759 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0032653 Jy
! Component: 100  -  total flux cleaned = 0.00278364 Jy
! Component: 150  -  total flux cleaned = 0.00250951 Jy
! Component: 200  -  total flux cleaned = 0.00213475 Jy
! Total flux subtracted in 200 components = 0.00213475 Jy
! Clean residual min=-0.005664 max=0.005978 Jy/beam
! Clean residual mean=-0.000024 rms=0.001577 Jy/beam
! Combined flux in latest and established models = 2.33284 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 164 components and 2.33284 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.165144Jy  sigma=0.001242
! Fit after  self-cal, rms=0.165102Jy  sigma=0.001241
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00145534 Jy
! Component: 100  -  total flux cleaned = 0.00122417 Jy
! Component: 150  -  total flux cleaned = 0.00100591 Jy
! Component: 200  -  total flux cleaned = 0.000902877 Jy
! Total flux subtracted in 200 components = 0.000902877 Jy
! Clean residual min=-0.005487 max=0.005685 Jy/beam
! Clean residual mean=-0.000046 rms=0.001529 Jy/beam
! Combined flux in latest and established models = 2.33375 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 175 components and 2.33375 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.164933Jy  sigma=0.001240
! Fit after  self-cal, rms=0.164916Jy  sigma=0.001240
! 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.164916Jy  sigma=0.001240
! Fit after  self-cal, rms=0.166151Jy  sigma=0.001239
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.037 mas, bmaj=5.897 mas, bpa=-3.281 degrees
! Estimated noise=2171.7 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.26109 Jy
! Component: 100  -  total flux cleaned = 1.6833 Jy
! Component: 150  -  total flux cleaned = 1.89127 Jy
! Component: 200  -  total flux cleaned = 2.00438 Jy
! Total flux subtracted in 200 components = 2.00438 Jy
! Clean residual min=-0.030702 max=0.059946 Jy/beam
! Clean residual mean=0.000777 rms=0.010041 Jy/beam
! Combined flux in latest and established models = 2.00438 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 20 model components to the UV plane model.
! The established model now contains 20 components and 2.00438 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.976 mas, bmaj=9.566 mas, bpa=-6.301 degrees
! Estimated noise=968.922 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.138459 Jy
! Component: 100  -  total flux cleaned = 0.207453 Jy
! Component: 150  -  total flux cleaned = 0.245948 Jy
! Component: 200  -  total flux cleaned = 0.270229 Jy
! Total flux subtracted in 200 components = 0.270229 Jy
! Clean residual min=-0.009231 max=0.014855 Jy/beam
! Clean residual mean=0.001446 rms=0.003839 Jy/beam
! Combined flux in latest and established models = 2.27461 Jy
! Adding 55 model components to the UV plane model.
! The established model now contains 69 components and 2.27461 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.868 mas, bmaj=14.94 mas, bpa=4.839 degrees
! Estimated noise=1252.49 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0247652 Jy
! Component: 100  -  total flux cleaned = 0.037863 Jy
! Component: 150  -  total flux cleaned = 0.0458482 Jy
! Component: 200  -  total flux cleaned = 0.0510208 Jy
! Total flux subtracted in 200 components = 0.0510208 Jy
! Clean residual min=-0.006109 max=0.007068 Jy/beam
! Clean residual mean=0.000427 rms=0.001978 Jy/beam
! Combined flux in latest and established models = 2.32563 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.00340728 Jy
! Component: 100  -  total flux cleaned = 0.00450083 Jy
! Component: 150  -  total flux cleaned = 0.00533013 Jy
! Component: 200  -  total flux cleaned = 0.00603626 Jy
! Total flux subtracted in 200 components = 0.00603626 Jy
! Clean residual min=-0.005583 max=0.006041 Jy/beam
! Clean residual mean=0.000125 rms=0.001770 Jy/beam
! Combined flux in latest and established models = 2.33167 Jy
! Adding 76 model components to the UV plane model.
! The established model now contains 137 components and 2.33167 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.976 mas, bmaj=9.566 mas, bpa=-6.301 degrees
! Estimated noise=968.922 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000477484 Jy
! Component: 100  -  total flux cleaned = 0.00104726 Jy
! Component: 150  -  total flux cleaned = 0.00105489 Jy
! Component: 200  -  total flux cleaned = 0.00136743 Jy
! Total flux subtracted in 200 components = 0.00136743 Jy
! Clean residual min=-0.006357 max=0.005933 Jy/beam
! Clean residual mean=0.000033 rms=0.001569 Jy/beam
! Combined flux in latest and established models = 2.33303 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 159 components and 2.33303 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.166608Jy  sigma=0.001242
! Fit after  self-cal, rms=0.166446Jy  sigma=0.001241
wmodel J2246-1206_S_2001_10_29_pus_map.mod
! Writing 159 model components to file: J2246-1206_S_2001_10_29_pus_map.mod
wobs J2246-1206_S_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J2246-1206_S_2001_10_29_pus_uvs.fits
wwins J2246-1206_S_2001_10_29_pus_map.win
! wwins: Wrote 3 windows to J2246-1206_S_2001_10_29_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.000407406 Jy
! Component: 100  -  total flux cleaned = 0.000994844 Jy
! Component: 150  -  total flux cleaned = 0.0015269 Jy
! Component: 200  -  total flux cleaned = 0.00152682 Jy
! Component: 250  -  total flux cleaned = 0.00168323 Jy
! Component: 300  -  total flux cleaned = 0.00198169 Jy
! Component: 350  -  total flux cleaned = 0.00219738 Jy
! Component: 400  -  total flux cleaned = 0.0024071 Jy
! Component: 450  -  total flux cleaned = 0.00240903 Jy
! Component: 500  -  total flux cleaned = 0.00234521 Jy
! Component: 550  -  total flux cleaned = 0.00234521 Jy
! Component: 600  -  total flux cleaned = 0.0024694 Jy
! Component: 650  -  total flux cleaned = 0.0024693 Jy
! Component: 700  -  total flux cleaned = 0.00258972 Jy
! Component: 750  -  total flux cleaned = 0.00282322 Jy
! Component: 800  -  total flux cleaned = 0.00287877 Jy
! Component: 850  -  total flux cleaned = 0.00282232 Jy
! Component: 900  -  total flux cleaned = 0.00293373 Jy
! Component: 950  -  total flux cleaned = 0.00304297 Jy
! Component: 1000  -  total flux cleaned = 0.00298946 Jy
! Component: 1050  -  total flux cleaned = 0.00304376 Jy
! Component: 1100  -  total flux cleaned = 0.00304484 Jy
! Component: 1150  -  total flux cleaned = 0.00319924 Jy
! Component: 1200  -  total flux cleaned = 0.00319868 Jy
! Component: 1250  -  total flux cleaned = 0.00319872 Jy
! Component: 1300  -  total flux cleaned = 0.00324799 Jy
! Component: 1350  -  total flux cleaned = 0.00334509 Jy
! Component: 1400  -  total flux cleaned = 0.00329644 Jy
! Component: 1450  -  total flux cleaned = 0.0033926 Jy
! Component: 1500  -  total flux cleaned = 0.00343953 Jy
! Component: 1550  -  total flux cleaned = 0.0034864 Jy
! Component: 1600  -  total flux cleaned = 0.00357796 Jy
! Component: 1650  -  total flux cleaned = 0.00362327 Jy
! Component: 1700  -  total flux cleaned = 0.00366782 Jy
! Component: 1750  -  total flux cleaned = 0.00357893 Jy
! Component: 1800  -  total flux cleaned = 0.00357915 Jy
! Component: 1850  -  total flux cleaned = 0.00357883 Jy
! Component: 1900  -  total flux cleaned = 0.00353581 Jy
! Component: 1950  -  total flux cleaned = 0.00353596 Jy
! Component: 2000  -  total flux cleaned = 0.00357815 Jy
! Total flux subtracted in 2048 components = 0.00345272 Jy
! Clean residual min=-0.002102 max=0.002442 Jy/beam
! Clean residual mean=-0.000004 rms=0.000841 Jy/beam
! Combined flux in latest and established models = 2.33649 Jy
keep
! Adding 143 model components to the UV plane model.
! The established model now contains 302 components and 2.33649 Jy
![Exited script file: muppet]
wmap "J2246-1206_S_2001_10_29_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.976 x 9.566 at -6.301 degrees (North through East)
! Clean map  min=-0.0054354  max=1.7957 Jy/beam
! Writing clean map to FITS file: J2246-1206_S_2001_10_29_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.7957 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000836199 
device "J2246-1206_S_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J2246-1206_S_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.1397 0.1397 0.279401 0.558802 1.1176 2.23521 4.47042 8.94083 17.8817 35.7633 71.5266
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0025 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.795 
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.976 x 9.566 at -6.301 degrees (North through East)
! Clean map  min=-0.0054354  max=1.7957 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2246-1206_S_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J2246-1206_S_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2246-1206_S_2001_10_29_pus_uvs.log closed on Wed Feb 27 15:33:30 2008