! Started logfile: J0457-2324_X_2001_10_29_pus_uvs.log on Mon Feb 25 16:08:03 2008
obs J0457-2324_X_2001_10_29_pus_uva.fits
! Reading UV FITS file: J0457-2324_X_2001_10_29_pus_uva.fits
! AN table 1: 85 integrations on 153 of 153 possible baselines.
! AN table 2: 123 integrations on 153 of 153 possible baselines.
! AN table 3: 10 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.0599928 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0457-2324
! 
! 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 1970 lines of history.
! 
! Reading 8004 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 = 256 
print "field_cell =",field_cell
! field_cell = 0.2 
print "taper_size =",taper_size
! taper_size = 70 
![@muppet J0457-2324_X_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 = 256x256 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 1016 telescope corrections were flagged in sub-array 1.
!  A total of 1936 telescope corrections were flagged in sub-array 2.
!  A total of 180 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1016 telescope corrections were flagged in sub-array 1.
!  A total of 1936 telescope corrections were flagged in sub-array 2.
!  A total of 180 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1016 telescope corrections were flagged in sub-array 1.
!  A total of 1936 telescope corrections were flagged in sub-array 2.
!  A total of 180 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1016 telescope corrections were flagged in sub-array 1.
!  A total of 2072 telescope corrections were flagged in sub-array 2.
!  A total of 180 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=2.041804Jy  sigma=0.016999
! Fit after  self-cal, rms=1.670488Jy  sigma=0.014518
! 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 0.119% of the data.
!  The x-axis pixel size should ideally be below 0.1988 milli-arcsec
! Estimated beam: bmin=0.6288 mas, bmaj=1.27 mas, bpa=9.015 degrees
! Estimated noise=2296.25 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.96079 Jy
! Component: 100  -  total flux cleaned = 2.39859 Jy
! Total flux subtracted in 100 components = 2.39859 Jy
! Clean residual min=-0.068419 max=0.153084 Jy/beam
! Clean residual mean=0.001963 rms=0.024142 Jy/beam
! Combined flux in latest and established models = 2.39859 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 2.39859 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.424352Jy  sigma=0.003518
! Fit after  self-cal, rms=0.424380Jy  sigma=0.003518
! Inverting map 
! Your choice of large map pixels excluded 0.119% of the data.
!  The x-axis pixel size should ideally be below 0.1988 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.174404 Jy
! Component: 100  -  total flux cleaned = 0.272437 Jy
! Total flux subtracted in 100 components = 0.272437 Jy
! Clean residual min=-0.061452 max=0.079524 Jy/beam
! Clean residual mean=0.001059 rms=0.015970 Jy/beam
! Combined flux in latest and established models = 2.67103 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 9 components and 2.67103 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.300112Jy  sigma=0.002283
! Fit after  self-cal, rms=0.300135Jy  sigma=0.002283
! Inverting map 
! Your choice of large map pixels excluded 0.119% of the data.
!  The x-axis pixel size should ideally be below 0.1988 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 0.119% of the data.
!  The x-axis pixel size should ideally be below 0.1988 milli-arcsec
! Estimated beam: bmin=0.814 mas, bmaj=2.182 mas, bpa=-7.647 degrees
! Estimated noise=997.121 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.105857 Jy
! Component: 100  -  total flux cleaned = 0.148212 Jy
! Component: 150  -  total flux cleaned = 0.160335 Jy
! Component: 200  -  total flux cleaned = 0.162148 Jy
! Total flux subtracted in 200 components = 0.162148 Jy
! Clean residual min=-0.038412 max=0.058599 Jy/beam
! Clean residual mean=0.002870 rms=0.014753 Jy/beam
! Combined flux in latest and established models = 2.83318 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 11 components and 2.83318 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.270550Jy  sigma=0.001898
! Fit after  self-cal, rms=0.270483Jy  sigma=0.001898
! Inverting map 
! Your choice of large map pixels excluded 0.119% of the data.
!  The x-axis pixel size should ideally be below 0.1988 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 39 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.04     KK        0.97     KP        1.00     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        0.95     NL        1.04     
!   OV        0.99     PT        0.99     SC        1.02     TS        1.00*    
!   WF        0.98     WZ        1.00*    
! 
!  A total of 180 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.91     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.99     MC        1.08     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.32     TS        1.00*    
!   WF        1.08     WZ        1.00     
! 
!  Telescope amplitude corrections in sub-array 3:
!   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 39 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.02     KK        1.01     KP        1.01     LA        0.96     
!   MA        1.00*    MC        1.00*    MK        0.94     NL        1.01     
!   OV        0.99     PT        0.97     SC        0.97     TS        1.00*    
!   WF        0.95     WZ        1.00*    
! 
!  A total of 180 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.92     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.00     MC        1.08     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.30     TS        1.00*    
!   WF        1.09     WZ        0.99     
! 
!  Telescope amplitude corrections in sub-array 3:
!   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 39 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.04     KK        0.99     KP        0.99     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        0.96     NL        1.04     
!   OV        0.97     PT        1.00     SC        1.00     TS        1.00*    
!   WF        1.00     WZ        1.00*    
! 
!  A total of 180 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.92     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.95     MC        1.06     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.30     TS        1.00*    
!   WF        1.12     WZ        1.00     
! 
!  Telescope amplitude corrections in sub-array 3:
!   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 39 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.07     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.06     KK        0.98     KP        1.01     LA        0.97     
!   MA        1.00*    MC        1.00*    MK        0.99     NL        1.06     
!   OV        0.96     PT        0.99     SC        1.03     TS        1.00*    
!   WF        0.99     WZ        1.00*    
! 
!  A total of 57 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.93     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.99     MC        1.07     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.40     TS        1.00*    
!   WF        1.16     WZ        0.96     
! 
!  Telescope amplitude corrections in sub-array 3:
!   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.270483Jy  sigma=0.001898
! Fit after  self-cal, rms=0.206345Jy  sigma=0.001429
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.117% of the data.
!  The x-axis pixel size should ideally be below 0.1988 milli-arcsec
! Estimated beam: bmin=0.8571 mas, bmaj=2.166 mas, bpa=-7.708 degrees
! Estimated noise=1023.34 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.00833283 Jy
! Component: 100  -  total flux cleaned = -0.00928556 Jy
! Component: 150  -  total flux cleaned = -0.00984306 Jy
! Component: 200  -  total flux cleaned = -0.0103402 Jy
! Total flux subtracted in 200 components = -0.0103402 Jy
! Clean residual min=-0.020634 max=0.026289 Jy/beam
! Clean residual mean=0.001945 rms=0.007535 Jy/beam
! Combined flux in latest and established models = 2.82284 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 15 components and 2.82284 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.205015Jy  sigma=0.001422
! Fit after  self-cal, rms=0.204898Jy  sigma=0.001422
! Inverting map 
! Your choice of large map pixels excluded 0.117% of the data.
!  The x-axis pixel size should ideally be below 0.1988 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.204898Jy  sigma=0.001422
! Fit after  self-cal, rms=0.186315Jy  sigma=0.001227
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.117% of the data.
!  The x-axis pixel size should ideally be below 0.1988 milli-arcsec
! Estimated beam: bmin=0.8592 mas, bmaj=2.166 mas, bpa=-7.731 degrees
! Estimated noise=1022.46 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00741348 Jy
! Component: 100  -  total flux cleaned = -0.00784489 Jy
! Component: 150  -  total flux cleaned = -0.00851442 Jy
! Component: 200  -  total flux cleaned = -0.00865511 Jy
! Total flux subtracted in 200 components = -0.00865511 Jy
! Clean residual min=-0.008121 max=0.009596 Jy/beam
! Clean residual mean=0.000803 rms=0.002684 Jy/beam
! Combined flux in latest and established models = 2.81418 Jy
selfcal
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 17 components and 2.81418 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.185575Jy  sigma=0.001223
! Fit after  self-cal, rms=0.185514Jy  sigma=0.001223
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.117% of the data.
!  The x-axis pixel size should ideally be below 0.1988 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.000195211 Jy
! Component: 100  -  total flux cleaned = 9.01052e-05 Jy
! Component: 150  -  total flux cleaned = -0.000214721 Jy
! Component: 200  -  total flux cleaned = -0.000403679 Jy
! Total flux subtracted in 200 components = -0.000403679 Jy
! Clean residual min=-0.007730 max=0.009773 Jy/beam
! Clean residual mean=0.000816 rms=0.002637 Jy/beam
! Combined flux in latest and established models = 2.81378 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 18 components and 2.81378 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.185285Jy  sigma=0.001222
! Fit after  self-cal, rms=0.185259Jy  sigma=0.001222
! Inverting map 
! Your choice of large map pixels excluded 0.117% of the data.
!  The x-axis pixel size should ideally be below 0.1988 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.185259Jy  sigma=0.001222
! Fit after  self-cal, rms=0.184901Jy  sigma=0.001219
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.117% of the data.
!  The x-axis pixel size should ideally be below 0.1988 milli-arcsec
! Estimated beam: bmin=0.8603 mas, bmaj=2.162 mas, bpa=-7.684 degrees
! Estimated noise=1022.26 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00390733 Jy
! Component: 100  -  total flux cleaned = -0.0045468 Jy
! Component: 150  -  total flux cleaned = -0.00493564 Jy
! Component: 200  -  total flux cleaned = -0.00504742 Jy
! Total flux subtracted in 200 components = -0.00504742 Jy
! Clean residual min=-0.007196 max=0.008159 Jy/beam
! Clean residual mean=0.000721 rms=0.002269 Jy/beam
! Combined flux in latest and established models = 2.80873 Jy
selfcal
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 18 components and 2.80873 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.184522Jy  sigma=0.001217
! Fit after  self-cal, rms=0.184492Jy  sigma=0.001216
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.117% of the data.
!  The x-axis pixel size should ideally be below 0.1988 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.000166638 Jy
! Component: 100  -  total flux cleaned = 8.54173e-05 Jy
! Component: 150  -  total flux cleaned = -0.000162122 Jy
! Component: 200  -  total flux cleaned = -0.000384164 Jy
! Total flux subtracted in 200 components = -0.000384164 Jy
! Clean residual min=-0.006845 max=0.008194 Jy/beam
! Clean residual mean=0.000733 rms=0.002229 Jy/beam
! Combined flux in latest and established models = 2.80834 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 18 components and 2.80834 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.184343Jy  sigma=0.001216
! Fit after  self-cal, rms=0.184323Jy  sigma=0.001216
! Inverting map 
! Your choice of large map pixels excluded 0.117% of the data.
!  The x-axis pixel size should ideally be below 0.1988 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.184323Jy  sigma=0.001216
! Fit after  self-cal, rms=0.184120Jy  sigma=0.001214
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.117% of the data.
!  The x-axis pixel size should ideally be below 0.1988 milli-arcsec
! Estimated beam: bmin=2.41 mas, bmaj=4.906 mas, bpa=4.136 degrees
! Estimated noise=1286.82 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00100169 Jy
! Component: 100  -  total flux cleaned = -0.001002 Jy
! Component: 150  -  total flux cleaned = -0.000999 Jy
! Component: 200  -  total flux cleaned = -0.000995751 Jy
! Total flux subtracted in 200 components = -0.000995751 Jy
! Clean residual min=-0.006252 max=0.007125 Jy/beam
! Clean residual mean=0.001257 rms=0.002706 Jy/beam
! Combined flux in latest and established models = 2.80735 Jy
selfcal
! Performing phase self-cal
! Adding 3 model components to the UV plane model.
! The established model now contains 19 components and 2.80735 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.184061Jy  sigma=0.001214
! Fit after  self-cal, rms=0.183986Jy  sigma=0.001213
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.117% of the data.
!  The x-axis pixel size should ideally be below 0.1988 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.000138866 Jy
! Component: 100  -  total flux cleaned = 0.000135402 Jy
! Component: 150  -  total flux cleaned = 0.000131575 Jy
! Component: 200  -  total flux cleaned = 0.000128367 Jy
! Total flux subtracted in 200 components = 0.000128367 Jy
! Clean residual min=-0.006240 max=0.006985 Jy/beam
! Clean residual mean=0.001247 rms=0.002686 Jy/beam
! Combined flux in latest and established models = 2.80748 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 20 components and 2.80748 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.183997Jy  sigma=0.001213
! Fit after  self-cal, rms=0.183929Jy  sigma=0.001213
! Inverting map 
! Your choice of large map pixels excluded 0.117% of the data.
!  The x-axis pixel size should ideally be below 0.1988 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 0.117% of the data.
!  The x-axis pixel size should ideally be below 0.1988 milli-arcsec
! Estimated beam: bmin=0.8609 mas, bmaj=2.159 mas, bpa=-7.652 degrees
! Estimated noise=1022.08 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8609 x 2.159 at -7.652 degrees (North through East)
! Clean map  min=-0.0061455  max=2.6273 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.183929Jy  sigma=0.001213
! Fit after  self-cal, rms=0.165749Jy  sigma=0.001069
! Inverting map and beam 
! Your choice of large map pixels excluded 0.117% of the data.
!  The x-axis pixel size should ideally be below 0.1988 milli-arcsec
! Estimated beam: bmin=0.8611 mas, bmaj=2.159 mas, bpa=-7.641 degrees
! Estimated noise=1022.04 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00159446 Jy
! Component: 100  -  total flux cleaned = -0.00195085 Jy
! Component: 150  -  total flux cleaned = -0.00203291 Jy
! Component: 200  -  total flux cleaned = -0.00210269 Jy
! Total flux subtracted in 200 components = -0.00210269 Jy
! Clean residual min=-0.005725 max=0.006897 Jy/beam
! Clean residual mean=0.000600 rms=0.001856 Jy/beam
! Combined flux in latest and established models = 2.80537 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 20 components and 2.80537 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.165597Jy  sigma=0.001068
! Fit after  self-cal, rms=0.165584Jy  sigma=0.001068
! Inverting map 
! Your choice of large map pixels excluded 0.117% of the data.
!  The x-axis pixel size should ideally be below 0.1988 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -6.26591e-05 Jy
! Component: 100  -  total flux cleaned = -0.000192177 Jy
! Component: 150  -  total flux cleaned = -0.000301393 Jy
! Component: 200  -  total flux cleaned = -0.000398945 Jy
! Total flux subtracted in 200 components = -0.000398945 Jy
! Clean residual min=-0.005548 max=0.006814 Jy/beam
! Clean residual mean=0.000612 rms=0.001843 Jy/beam
! Combined flux in latest and established models = 2.80498 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 22 components and 2.80498 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.165497Jy  sigma=0.001068
! Fit after  self-cal, rms=0.165488Jy  sigma=0.001068
! Inverting map 
! Your choice of large map pixels excluded 0.117% of the data.
!  The x-axis pixel size should ideally be below 0.1988 milli-arcsec
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.165488Jy  sigma=0.001068
! Fit after  self-cal, rms=0.165397Jy  sigma=0.001067
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 0.117% of the data.
!  The x-axis pixel size should ideally be below 0.1988 milli-arcsec
! Estimated beam: bmin=0.6706 mas, bmaj=1.222 mas, bpa=9.111 degrees
! Estimated noise=2428.8 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.01523 Jy
! Component: 100  -  total flux cleaned = 2.45977 Jy
! Component: 150  -  total flux cleaned = 2.61698 Jy
! Component: 200  -  total flux cleaned = 2.70039 Jy
! Total flux subtracted in 200 components = 2.70039 Jy
! Clean residual min=-0.021407 max=0.043763 Jy/beam
! Clean residual mean=0.000483 rms=0.006374 Jy/beam
! Combined flux in latest and established models = 2.70038 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 13 model components to the UV plane model.
! The established model now contains 13 components and 2.70038 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 0.117% of the data.
!  The x-axis pixel size should ideally be below 0.1988 milli-arcsec
! Estimated beam: bmin=0.8614 mas, bmaj=2.157 mas, bpa=-7.627 degrees
! Estimated noise=1021.89 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.056732 Jy
! Component: 100  -  total flux cleaned = 0.0816625 Jy
! Component: 150  -  total flux cleaned = 0.0933678 Jy
! Component: 200  -  total flux cleaned = 0.0988791 Jy
! Total flux subtracted in 200 components = 0.0988791 Jy
! Clean residual min=-0.006019 max=0.008813 Jy/beam
! Clean residual mean=0.000714 rms=0.001992 Jy/beam
! Combined flux in latest and established models = 2.79926 Jy
! Adding 12 model components to the UV plane model.
! The established model now contains 15 components and 2.79926 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.117% of the data.
!  The x-axis pixel size should ideally be below 0.1988 milli-arcsec
! Added new window around map position (1.2, -1.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00809597 Jy
! Component: 100  -  total flux cleaned = 0.00792374 Jy
! Component: 150  -  total flux cleaned = 0.00758751 Jy
! Component: 200  -  total flux cleaned = 0.00758355 Jy
! Total flux subtracted in 200 components = 0.00758355 Jy
! Clean residual min=-0.005227 max=0.006647 Jy/beam
! Clean residual mean=0.000464 rms=0.001521 Jy/beam
! Combined flux in latest and established models = 2.80685 Jy
! Adding 13 model components to the UV plane model.
! The established model now contains 28 components and 2.80685 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.117% of the data.
!  The x-axis pixel size should ideally be below 0.1988 milli-arcsec
! Added new window around map position (-3.4, -1.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00489445 Jy
! Component: 100  -  total flux cleaned = 0.00542587 Jy
! Component: 150  -  total flux cleaned = 0.00591438 Jy
! Component: 200  -  total flux cleaned = 0.0062505 Jy
! Total flux subtracted in 200 components = 0.0062505 Jy
! Clean residual min=-0.004982 max=0.004169 Jy/beam
! Clean residual mean=0.000271 rms=0.001255 Jy/beam
! Combined flux in latest and established models = 2.8131 Jy
! Adding 14 model components to the UV plane model.
! The established model now contains 38 components and 2.8131 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.117% of the data.
!  The x-axis pixel size should ideally be below 0.1988 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 0.117% of the data.
!  The x-axis pixel size should ideally be below 0.1988 milli-arcsec
! Estimated beam: bmin=2.411 mas, bmaj=4.904 mas, bpa=4.183 degrees
! Estimated noise=1285.72 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0017029 Jy
! Component: 100  -  total flux cleaned = 0.00176546 Jy
! Component: 150  -  total flux cleaned = 0.00186514 Jy
! Component: 200  -  total flux cleaned = 0.00190922 Jy
! Total flux subtracted in 200 components = 0.00190922 Jy
! Clean residual min=-0.003959 max=0.004827 Jy/beam
! Clean residual mean=0.000456 rms=0.001574 Jy/beam
! Combined flux in latest and established models = 2.81501 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 = -5.29781e-07 Jy
! Component: 100  -  total flux cleaned = 3.81252e-05 Jy
! Component: 150  -  total flux cleaned = 3.7053e-05 Jy
! Component: 200  -  total flux cleaned = 3.71249e-05 Jy
! Total flux subtracted in 200 components = 3.71249e-05 Jy
! Clean residual min=-0.003908 max=0.004825 Jy/beam
! Clean residual mean=0.000459 rms=0.001542 Jy/beam
! Combined flux in latest and established models = 2.81504 Jy
! Adding 23 model components to the UV plane model.
! The established model now contains 61 components and 2.81504 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.117% of the data.
!  The x-axis pixel size should ideally be below 0.1988 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 0.117% of the data.
!  The x-axis pixel size should ideally be below 0.1988 milli-arcsec
! Estimated beam: bmin=0.8614 mas, bmaj=2.157 mas, bpa=-7.627 degrees
! Estimated noise=1021.89 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000807741 Jy
! Component: 100  -  total flux cleaned = -0.00110734 Jy
! Component: 150  -  total flux cleaned = -0.00110545 Jy
! Component: 200  -  total flux cleaned = -0.0010185 Jy
! Total flux subtracted in 200 components = -0.0010185 Jy
! Clean residual min=-0.004948 max=0.004464 Jy/beam
! Clean residual mean=0.000249 rms=0.001214 Jy/beam
! Combined flux in latest and established models = 2.81403 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 73 components and 2.81402 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.164354Jy  sigma=0.001064
! Fit after  self-cal, rms=0.164228Jy  sigma=0.001063
wmodel J0457-2324_X_2001_10_29_pus_map.mod
! Writing 73 model components to file: J0457-2324_X_2001_10_29_pus_map.mod
wobs J0457-2324_X_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J0457-2324_X_2001_10_29_pus_uvs.fits
wwins J0457-2324_X_2001_10_29_pus_map.win
! wwins: Wrote 3 windows to J0457-2324_X_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 
! Your choice of large map pixels excluded 0.117% of the data.
!  The x-axis pixel size should ideally be below 0.1988 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.00124977 Jy
! Component: 100  -  total flux cleaned = -0.00168897 Jy
! Component: 150  -  total flux cleaned = -0.00117864 Jy
! Component: 200  -  total flux cleaned = -0.000814063 Jy
! Component: 250  -  total flux cleaned = -0.000410463 Jy
! Component: 300  -  total flux cleaned = -0.000134546 Jy
! Component: 350  -  total flux cleaned = 0.000130859 Jy
! Component: 400  -  total flux cleaned = 0.000387577 Jy
! Component: 450  -  total flux cleaned = 0.000736208 Jy
! Component: 500  -  total flux cleaned = 0.000979321 Jy
! Component: 550  -  total flux cleaned = 0.00135934 Jy
! Component: 600  -  total flux cleaned = 0.00159116 Jy
! Component: 650  -  total flux cleaned = 0.00186411 Jy
! Component: 700  -  total flux cleaned = 0.00213183 Jy
! Component: 750  -  total flux cleaned = 0.00243814 Jy
! Component: 800  -  total flux cleaned = 0.00269627 Jy
! Component: 850  -  total flux cleaned = 0.00299202 Jy
! Component: 900  -  total flux cleaned = 0.0031582 Jy
! Component: 950  -  total flux cleaned = 0.00332233 Jy
! Component: 1000  -  total flux cleaned = 0.00356424 Jy
! Total flux subtracted in 1024 components = 0.00360412 Jy
! Clean residual min=-0.002657 max=0.002030 Jy/beam
! Clean residual mean=0.000167 rms=0.000753 Jy/beam
! Combined flux in latest and established models = 2.81763 Jy
keep
! Adding 49 model components to the UV plane model.
! The established model now contains 122 components and 2.81763 Jy
![Exited script file: muppet]
wmap "J0457-2324_X_2001_10_29_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 0.117% of the data.
!  The x-axis pixel size should ideally be below 0.1988 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8614 x 2.157 at -7.627 degrees (North through East)
! Clean map  min=-0.003766  max=2.6297 Jy/beam
! Writing clean map to FITS file: J0457-2324_X_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 2.62966 
invert
! Inverting map 
! Your choice of large map pixels excluded 0.117% of the data.
!  The x-axis pixel size should ideally be below 0.1988 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000749207 
device "J0457-2324_X_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J0457-2324_X_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.0854721 0.0854721 0.170944 0.341888 0.683777 1.36755 2.73511 5.47021 10.9404 21.8809 43.7617 87.5234
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0022 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.629 
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.8614 x 2.157 at -7.627 degrees (North through East)
! Clean map  min=-0.003766  max=2.6297 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0457-2324_X_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J0457-2324_X_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0457-2324_X_2001_10_29_pus_uvs.log closed on Mon Feb 25 16:08:08 2008