! Started logfile: J0241-0815_X_2001_04_09_pus_uvs.log on Tue Oct  2 11:18:46 2007
obs J0241-0815_X_2001_04_09_pus_uva.fits
! Reading UV FITS file: J0241-0815_X_2001_04_09_pus_uva.fits
! AN table 1: 270 integrations on 190 of 190 possible baselines.
! AN table 2: 47 integrations on 190 of 190 possible baselines.
! AN table 3: 55 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.118506 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0241-0815
! 
! 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  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1926 lines of history.
! 
! Reading 33504 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.2 
print "taper_size =",taper_size
! taper_size = 70 
![@muppet J0241-0815_X_2001_04_09_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.200x0.200 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 3571 telescope corrections were flagged in sub-array 1.
!  A total of 680 telescope corrections were flagged in sub-array 2.
!  A total of 737 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 3570 telescope corrections were flagged in sub-array 1.
!  A total of 680 telescope corrections were flagged in sub-array 2.
!  A total of 737 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 3571 telescope corrections were flagged in sub-array 1.
!  A total of 681 telescope corrections were flagged in sub-array 2.
!  A total of 737 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 3571 telescope corrections were flagged in sub-array 1.
!  A total of 680 telescope corrections were flagged in sub-array 2.
!  A total of 737 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.742607Jy  sigma=0.007363
! Fit after  self-cal, rms=0.578382Jy  sigma=0.005914
! 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 
! Your choice of large map pixels excluded 1.26% of the data.
!  The x-axis pixel size should ideally be below 0.1918 milli-arcsec
! Estimated beam: bmin=0.5799 mas, bmaj=1.881 mas, bpa=-3.982 degrees
! Estimated noise=955.335 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.366097 Jy
! Component: 100  -  total flux cleaned = 0.510322 Jy
! Total flux subtracted in 100 components = 0.510322 Jy
! Clean residual min=-0.025096 max=0.067140 Jy/beam
! Clean residual mean=0.001193 rms=0.009325 Jy/beam
! Combined flux in latest and established models = 0.510322 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.510322 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.286216Jy  sigma=0.002862
! Fit after  self-cal, rms=0.285480Jy  sigma=0.002855
! Inverting map 
! Your choice of large map pixels excluded 1.26% of the data.
!  The x-axis pixel size should ideally be below 0.1918 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0751986 Jy
! Component: 100  -  total flux cleaned = 0.11595 Jy
! Total flux subtracted in 100 components = 0.11595 Jy
! Clean residual min=-0.021028 max=0.056829 Jy/beam
! Clean residual mean=0.001040 rms=0.007849 Jy/beam
! Combined flux in latest and established models = 0.626272 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 17 components and 0.626272 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.259351Jy  sigma=0.002459
! Fit after  self-cal, rms=0.259097Jy  sigma=0.002457
! Inverting map 
! Your choice of large map pixels excluded 1.26% of the data.
!  The x-axis pixel size should ideally be below 0.1918 milli-arcsec
! Added new window around map position (4.4, 1.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0584453 Jy
! Component: 100  -  total flux cleaned = 0.0945236 Jy
! Total flux subtracted in 100 components = 0.0945236 Jy
! Clean residual min=-0.018439 max=0.048712 Jy/beam
! Clean residual mean=0.000865 rms=0.006701 Jy/beam
! Combined flux in latest and established models = 0.720796 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 28 components and 0.720796 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.233142Jy  sigma=0.002123
! Fit after  self-cal, rms=0.230474Jy  sigma=0.002097
! Inverting map 
! Your choice of large map pixels excluded 1.26% of the data.
!  The x-axis pixel size should ideally be below 0.1918 milli-arcsec
! Added new window around map position (5.4, 1.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.045735 Jy
! Component: 100  -  total flux cleaned = 0.0748282 Jy
! Total flux subtracted in 100 components = 0.0748282 Jy
! Clean residual min=-0.016495 max=0.042702 Jy/beam
! Clean residual mean=0.000726 rms=0.005781 Jy/beam
! Combined flux in latest and established models = 0.795624 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 36 components and 0.795624 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.213848Jy  sigma=0.001868
! Fit after  self-cal, rms=0.212515Jy  sigma=0.001850
! Inverting map 
! Your choice of large map pixels excluded 1.26% of the data.
!  The x-axis pixel size should ideally be below 0.1918 milli-arcsec
! Added new window around map position (-2.8, -1.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0373277 Jy
! Component: 100  -  total flux cleaned = 0.0614802 Jy
! Total flux subtracted in 100 components = 0.0614802 Jy
! Clean residual min=-0.015719 max=0.029164 Jy/beam
! Clean residual mean=0.000617 rms=0.005172 Jy/beam
! Combined flux in latest and established models = 0.857104 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 45 components and 0.857104 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.203086Jy  sigma=0.001712
! Fit after  self-cal, rms=0.202502Jy  sigma=0.001704
! Inverting map 
! Your choice of large map pixels excluded 1.26% of the data.
!  The x-axis pixel size should ideally be below 0.1918 milli-arcsec
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 
! Your choice of large map pixels excluded 1.26% of the data.
!  The x-axis pixel size should ideally be below 0.1918 milli-arcsec
! Estimated beam: bmin=0.6878 mas, bmaj=2.527 mas, bpa=-4.339 degrees
! Estimated noise=381.152 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.0398504 Jy
! Component: 100  -  total flux cleaned = 0.0676876 Jy
! Component: 150  -  total flux cleaned = 0.0889617 Jy
! Component: 200  -  total flux cleaned = 0.105558 Jy
! Total flux subtracted in 200 components = 0.105558 Jy
! Clean residual min=-0.017630 max=0.037638 Jy/beam
! Clean residual mean=0.002091 rms=0.007332 Jy/beam
! Combined flux in latest and established models = 0.962662 Jy
! Performing phase self-cal
! Adding 60 model components to the UV plane model.
! The established model now contains 83 components and 0.962662 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.193222Jy  sigma=0.001548
! Fit after  self-cal, rms=0.192790Jy  sigma=0.001540
! Inverting map 
! Your choice of large map pixels excluded 1.26% of the data.
!  The x-axis pixel size should ideally be below 0.1918 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.03     GC        0.89     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.01     KP        1.11     
!   LA        0.92     MA        1.00*    MC        1.00*    MK        1.03     
!   NL        1.11     NY        1.00*    OV        1.05     PT        0.95     
!   SC        1.00*    TS        0.98     WF        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.91     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.04     KK        1.00*    KP        0.98     
!   LA        1.05     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.09     NY        1.00*    OV        1.01     PT        0.98     
!   SC        1.02     TS        1.00*    WF        0.98     WZ        1.00*    
! 
!  A total of 54 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.85     FD        0.89     GC        1.73     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.25     KP        0.79     
!   LA        0.92     MA        1.00*    MC        1.00*    MK        0.99     
!   NL        1.05     NY        1.00*    OV        1.05     PT        0.98     
!   SC        1.00     TS        1.00*    WF        0.91     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.05     GC        0.89     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00     KP        1.10     
!   LA        0.92     MA        1.00*    MC        1.00*    MK        1.08     
!   NL        1.06     NY        1.00*    OV        1.06     PT        0.95     
!   SC        1.00*    TS        0.97     WF        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.92     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.04     KK        1.00*    KP        0.99     
!   LA        1.07     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.02     NY        1.00*    OV        0.99     PT        0.98     
!   SC        1.06     TS        1.00*    WF        0.95     WZ        1.00*    
! 
!  A total of 54 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.84     FD        0.89     GC        1.76     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        0.82     KP        0.79     
!   LA        0.92     MA        1.00*    MC        1.00*    MK        0.96     
!   NL        1.03     NY        1.00*    OV        1.06     PT        0.99     
!   SC        1.04     TS        1.00*    WF        0.93     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        1.05     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.04     KP        0.98     
!   LA        0.94     MA        1.00*    MC        1.00*    MK        1.02     
!   NL        1.06     NY        1.00*    OV        1.02     PT        0.91     
!   SC        1.00*    TS        0.95     WF        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.92     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.06     KK        1.00*    KP        0.88     
!   LA        1.07     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.01     NY        1.00*    OV        0.94     PT        0.93     
!   SC        1.02     TS        1.00*    WF        1.00     WZ        1.00*    
! 
!  A total of 54 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.83     FD        0.89     GC        2.05     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        0.94     KP        0.69     
!   LA        0.93     MA        1.00*    MC        1.00*    MK        0.94     
!   NL        1.04     NY        1.00*    OV        1.05     PT        0.94     
!   SC        1.03     TS        1.00*    WF        0.98     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.92     FD        1.05     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.07     KP        1.22     
!   LA        0.92     MA        1.00*    MC        1.00*    MK        1.06     
!   NL        1.05     NY        1.00*    OV        0.99     PT        0.95     
!   SC        1.00*    TS        0.92     WF        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.91     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.05     KK        1.00*    KP        1.06     
!   LA        1.05     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.03     NY        1.00*    OV        0.97     PT        0.96     
!   SC        1.01     TS        1.00*    WF        0.95     WZ        1.00*    
! 
!  A total of 54 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.85     FD        0.88     GC        1.99     GG        1.00*    
!   HH        1.00*    HN        1.03     KK        0.92     KP        0.85     
!   LA        0.91     MA        1.00*    MC        1.00*    MK        0.97     
!   NL        1.03     NY        1.00*    OV        0.95     PT        0.99     
!   SC        1.07     TS        1.00*    WF        0.94     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.192790Jy  sigma=0.001540
! Fit after  self-cal, rms=0.186122Jy  sigma=0.001375
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 1.27% of the data.
!  The x-axis pixel size should ideally be below 0.1918 milli-arcsec
! Estimated beam: bmin=0.6842 mas, bmaj=2.592 mas, bpa=-4.279 degrees
! Estimated noise=375.871 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.6, -3.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0237407 Jy
! Component: 100  -  total flux cleaned = 0.0356742 Jy
! Component: 150  -  total flux cleaned = 0.0441069 Jy
! Component: 200  -  total flux cleaned = 0.0506921 Jy
! Total flux subtracted in 200 components = 0.0506921 Jy
! Clean residual min=-0.010437 max=0.012223 Jy/beam
! Clean residual mean=0.000445 rms=0.003138 Jy/beam
! Combined flux in latest and established models = 1.01335 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 117 components and 1.01335 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.182914Jy  sigma=0.001328
! Fit after  self-cal, rms=0.183053Jy  sigma=0.001324
! Inverting map 
! Your choice of large map pixels excluded 1.27% of the data.
!  The x-axis pixel size should ideally be below 0.1918 milli-arcsec
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.183053Jy  sigma=0.001324
! Fit after  self-cal, rms=0.181175Jy  sigma=0.001318
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.27% of the data.
!  The x-axis pixel size should ideally be below 0.1918 milli-arcsec
! Estimated beam: bmin=0.6858 mas, bmaj=2.591 mas, bpa=-4.308 degrees
! Estimated noise=374.247 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00970055 Jy
! Component: 100  -  total flux cleaned = 0.0159563 Jy
! Component: 150  -  total flux cleaned = 0.0201066 Jy
! Component: 200  -  total flux cleaned = 0.0225555 Jy
! Total flux subtracted in 200 components = 0.0225555 Jy
! Clean residual min=-0.009371 max=0.010065 Jy/beam
! Clean residual mean=0.000473 rms=0.002646 Jy/beam
! Combined flux in latest and established models = 1.03591 Jy
selfcal
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 138 components and 1.03591 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.180507Jy  sigma=0.001308
! Fit after  self-cal, rms=0.180446Jy  sigma=0.001307
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.27% of the data.
!  The x-axis pixel size should ideally be below 0.1918 milli-arcsec
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.00389186 Jy
! Component: 100  -  total flux cleaned = 0.00471294 Jy
! Component: 150  -  total flux cleaned = 0.00544232 Jy
! Component: 200  -  total flux cleaned = 0.00589728 Jy
! Total flux subtracted in 200 components = 0.00589728 Jy
! Clean residual min=-0.009252 max=0.009493 Jy/beam
! Clean residual mean=0.000422 rms=0.002545 Jy/beam
! Combined flux in latest and established models = 1.04181 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 154 components and 1.04181 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.180253Jy  sigma=0.001304
! Fit after  self-cal, rms=0.180241Jy  sigma=0.001304
! Inverting map 
! Your choice of large map pixels excluded 1.27% of the data.
!  The x-axis pixel size should ideally be below 0.1918 milli-arcsec
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.180241Jy  sigma=0.001304
! Fit after  self-cal, rms=0.179383Jy  sigma=0.001302
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.27% of the data.
!  The x-axis pixel size should ideally be below 0.1918 milli-arcsec
! Estimated beam: bmin=0.6858 mas, bmaj=2.593 mas, bpa=-4.303 degrees
! Estimated noise=373.606 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00457061 Jy
! Component: 100  -  total flux cleaned = 0.00694719 Jy
! Component: 150  -  total flux cleaned = 0.0079693 Jy
! Component: 200  -  total flux cleaned = 0.00900799 Jy
! Total flux subtracted in 200 components = 0.00900799 Jy
! Clean residual min=-0.008756 max=0.010377 Jy/beam
! Clean residual mean=0.000493 rms=0.002453 Jy/beam
! Combined flux in latest and established models = 1.05081 Jy
selfcal
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 163 components and 1.05081 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179200Jy  sigma=0.001299
! Fit after  self-cal, rms=0.179189Jy  sigma=0.001299
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.27% of the data.
!  The x-axis pixel size should ideally be below 0.1918 milli-arcsec
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.00174044 Jy
! Component: 100  -  total flux cleaned = 0.00239117 Jy
! Component: 150  -  total flux cleaned = 0.00282247 Jy
! Component: 200  -  total flux cleaned = 0.00323057 Jy
! Total flux subtracted in 200 components = 0.00323057 Jy
! Clean residual min=-0.008637 max=0.010123 Jy/beam
! Clean residual mean=0.000465 rms=0.002419 Jy/beam
! Combined flux in latest and established models = 1.05405 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 168 components and 1.05405 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179102Jy  sigma=0.001297
! Fit after  self-cal, rms=0.179099Jy  sigma=0.001297
! Inverting map 
! Your choice of large map pixels excluded 1.27% of the data.
!  The x-axis pixel size should ideally be below 0.1918 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 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.179099Jy  sigma=0.001297
! Fit after  self-cal, rms=0.178932Jy  sigma=0.001297
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.27% of the data.
!  The x-axis pixel size should ideally be below 0.1918 milli-arcsec
! Estimated beam: bmin=2.53 mas, bmaj=4.468 mas, bpa=19.06 degrees
! Estimated noise=477.8 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00692245 Jy
! Component: 100  -  total flux cleaned = 0.0110692 Jy
! Component: 150  -  total flux cleaned = 0.0128403 Jy
! Component: 200  -  total flux cleaned = 0.0135208 Jy
! Total flux subtracted in 200 components = 0.0135208 Jy
! Clean residual min=-0.013745 max=0.018145 Jy/beam
! Clean residual mean=0.000866 rms=0.004285 Jy/beam
! Combined flux in latest and established models = 1.06757 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 177 components and 1.06757 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.178968Jy  sigma=0.001297
! Fit after  self-cal, rms=0.178963Jy  sigma=0.001297
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.27% of the data.
!  The x-axis pixel size should ideally be below 0.1918 milli-arcsec
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.000963698 Jy
! Component: 100  -  total flux cleaned = 0.00150208 Jy
! Component: 150  -  total flux cleaned = 0.00174935 Jy
! Component: 200  -  total flux cleaned = 0.00198924 Jy
! Total flux subtracted in 200 components = 0.00198924 Jy
! Clean residual min=-0.013582 max=0.017988 Jy/beam
! Clean residual mean=0.000829 rms=0.004269 Jy/beam
! Combined flux in latest and established models = 1.06956 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 183 components and 1.06956 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179020Jy  sigma=0.001297
! Fit after  self-cal, rms=0.179028Jy  sigma=0.001297
! Inverting map 
! Your choice of large map pixels excluded 1.27% of the data.
!  The x-axis pixel size should ideally be below 0.1918 milli-arcsec
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 
! Your choice of large map pixels excluded 1.27% of the data.
!  The x-axis pixel size should ideally be below 0.1918 milli-arcsec
! Estimated beam: bmin=0.6864 mas, bmaj=2.594 mas, bpa=-4.313 degrees
! Estimated noise=373.731 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6864 x 2.594 at -4.313 degrees (North through East)
! Clean map  min=-0.0082221  max=0.48543 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 
! Your choice of large map pixels excluded 1.27% of the data.
!  The x-axis pixel size should ideally be below 0.1918 milli-arcsec
! Estimated beam: bmin=0.5802 mas, bmaj=1.957 mas, bpa=-4.528 degrees
! Estimated noise=942.554 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.360465 Jy
! Component: 100  -  total flux cleaned = 0.502602 Jy
! Component: 150  -  total flux cleaned = 0.586211 Jy
! Component: 200  -  total flux cleaned = 0.648981 Jy
! Total flux subtracted in 200 components = 0.648981 Jy
! Clean residual min=-0.015418 max=0.037104 Jy/beam
! Clean residual mean=0.000928 rms=0.006040 Jy/beam
! Combined flux in latest and established models = 0.648981 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 0.648981 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 1.27% of the data.
!  The x-axis pixel size should ideally be below 0.1918 milli-arcsec
! Estimated beam: bmin=0.6864 mas, bmaj=2.594 mas, bpa=-4.313 degrees
! Estimated noise=373.731 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.0868383 Jy
! Component: 100  -  total flux cleaned = 0.146603 Jy
! Component: 150  -  total flux cleaned = 0.191269 Jy
! Component: 200  -  total flux cleaned = 0.227102 Jy
! Total flux subtracted in 200 components = 0.227102 Jy
! Clean residual min=-0.017253 max=0.025609 Jy/beam
! Clean residual mean=0.002239 rms=0.007755 Jy/beam
! Combined flux in latest and established models = 0.876083 Jy
! Adding 66 model components to the UV plane model.
! The established model now contains 73 components and 0.876083 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.27% of the data.
!  The x-axis pixel size should ideally be below 0.1918 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.27% of the data.
!  The x-axis pixel size should ideally be below 0.1918 milli-arcsec
! Estimated beam: bmin=2.53 mas, bmaj=4.468 mas, bpa=19.06 degrees
! Estimated noise=477.8 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0536685 Jy
! Component: 100  -  total flux cleaned = 0.0902754 Jy
! Component: 150  -  total flux cleaned = 0.116276 Jy
! Component: 200  -  total flux cleaned = 0.135387 Jy
! Total flux subtracted in 200 components = 0.135387 Jy
! Clean residual min=-0.017561 max=0.015913 Jy/beam
! Clean residual mean=0.001955 rms=0.005528 Jy/beam
! Combined flux in latest and established models = 1.01147 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.014275 Jy
! Component: 100  -  total flux cleaned = 0.0250722 Jy
! Component: 150  -  total flux cleaned = 0.0333143 Jy
! Component: 200  -  total flux cleaned = 0.0396433 Jy
! Total flux subtracted in 200 components = 0.0396433 Jy
! Clean residual min=-0.014380 max=0.016902 Jy/beam
! Clean residual mean=0.001180 rms=0.004208 Jy/beam
! Combined flux in latest and established models = 1.05111 Jy
! Adding 81 model components to the UV plane model.
! The established model now contains 140 components and 1.05111 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.27% of the data.
!  The x-axis pixel size should ideally be below 0.1918 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 1.27% of the data.
!  The x-axis pixel size should ideally be below 0.1918 milli-arcsec
! Estimated beam: bmin=0.6864 mas, bmaj=2.594 mas, bpa=-4.313 degrees
! Estimated noise=373.731 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00240077 Jy
! Component: 100  -  total flux cleaned = -0.00239372 Jy
! Component: 150  -  total flux cleaned = -0.00205737 Jy
! Component: 200  -  total flux cleaned = -0.00118041 Jy
! Total flux subtracted in 200 components = -0.00118041 Jy
! Clean residual min=-0.010332 max=0.011142 Jy/beam
! Clean residual mean=0.000574 rms=0.002707 Jy/beam
! Combined flux in latest and established models = 1.04993 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 154 components and 1.04993 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.180317Jy  sigma=0.001318
! Fit after  self-cal, rms=0.179956Jy  sigma=0.001316
wmodel J0241-0815_X_2001_04_09_pus_map.mod
! Writing 154 model components to file: J0241-0815_X_2001_04_09_pus_map.mod
wobs J0241-0815_X_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J0241-0815_X_2001_04_09_pus_uvs.fits
wwins J0241-0815_X_2001_04_09_pus_map.win
! wwins: Wrote 5 windows to J0241-0815_X_2001_04_09_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! Your choice of large map pixels excluded 1.27% of the data.
!  The x-axis pixel size should ideally be below 0.1918 milli-arcsec
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00168257 Jy
! Component: 100  -  total flux cleaned = 0.00318517 Jy
! Component: 150  -  total flux cleaned = 0.00522077 Jy
! Component: 200  -  total flux cleaned = 0.00699341 Jy
! Component: 250  -  total flux cleaned = 0.00910051 Jy
! Component: 300  -  total flux cleaned = 0.0111084 Jy
! Component: 350  -  total flux cleaned = 0.0128971 Jy
! Component: 400  -  total flux cleaned = 0.014005 Jy
! Component: 450  -  total flux cleaned = 0.0149542 Jy
! Component: 500  -  total flux cleaned = 0.0162237 Jy
! Component: 550  -  total flux cleaned = 0.0175724 Jy
! Component: 600  -  total flux cleaned = 0.0189996 Jy
! Component: 650  -  total flux cleaned = 0.0202887 Jy
! Component: 700  -  total flux cleaned = 0.0218624 Jy
! Component: 750  -  total flux cleaned = 0.0230915 Jy
! Component: 800  -  total flux cleaned = 0.0244956 Jy
! Component: 850  -  total flux cleaned = 0.0260667 Jy
! Component: 900  -  total flux cleaned = 0.0274115 Jy
! Component: 950  -  total flux cleaned = 0.0286378 Jy
! Component: 1000  -  total flux cleaned = 0.0300259 Jy
! Component: 1050  -  total flux cleaned = 0.0313871 Jy
! Component: 1100  -  total flux cleaned = 0.0328105 Jy
! Component: 1150  -  total flux cleaned = 0.0342071 Jy
! Component: 1200  -  total flux cleaned = 0.0354939 Jy
! Component: 1250  -  total flux cleaned = 0.036843 Jy
! Component: 1300  -  total flux cleaned = 0.0381702 Jy
! Component: 1350  -  total flux cleaned = 0.0395555 Jy
! Component: 1400  -  total flux cleaned = 0.040837 Jy
! Component: 1450  -  total flux cleaned = 0.0420976 Jy
! Component: 1500  -  total flux cleaned = 0.0433376 Jy
! Component: 1550  -  total flux cleaned = 0.0446348 Jy
! Component: 1600  -  total flux cleaned = 0.0459115 Jy
! Component: 1650  -  total flux cleaned = 0.0470947 Jy
! Component: 1700  -  total flux cleaned = 0.048478 Jy
! Component: 1750  -  total flux cleaned = 0.0497687 Jy
! Component: 1800  -  total flux cleaned = 0.0509701 Jy
! Component: 1850  -  total flux cleaned = 0.0521539 Jy
! Component: 1900  -  total flux cleaned = 0.0531836 Jy
! Component: 1950  -  total flux cleaned = 0.0543357 Jy
! Component: 2000  -  total flux cleaned = 0.0556044 Jy
! Total flux subtracted in 2048 components = 0.0565928 Jy
! Clean residual min=-0.003274 max=0.003609 Jy/beam
! Clean residual mean=0.000258 rms=0.001303 Jy/beam
! Combined flux in latest and established models = 1.10653 Jy
keep
! Adding 141 model components to the UV plane model.
! The established model now contains 294 components and 1.10653 Jy
![Exited script file: muppet]
wmap "J0241-0815_X_2001_04_09_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 1.27% of the data.
!  The x-axis pixel size should ideally be below 0.1918 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6864 x 2.594 at -4.313 degrees (North through East)
! Clean map  min=-0.0053707  max=0.48573 Jy/beam
! Writing clean map to FITS file: J0241-0815_X_2001_04_09_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.485727 
invert
! Inverting map 
! Your choice of large map pixels excluded 1.27% of the data.
!  The x-axis pixel size should ideally be below 0.1918 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00130784 
device "J0241-0815_X_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J0241-0815_X_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.807763 0.807763 1.61553 3.23105 6.4621 12.9242 25.8484 51.6968
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0039 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.485 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6864 x 2.594 at -4.313 degrees (North through East)
! Clean map  min=-0.0053707  max=0.48573 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0241-0815_X_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J0241-0815_X_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0241-0815_X_2001_04_09_pus_uvs.log closed on Tue Oct  2 11:19:04 2007