! Started logfile: J0403-3605_X_2000_12_04_pus_uvs.log on Fri Oct 12 15:14:26 2007
obs J0403-3605_X_2000_12_04_pus_uva.fits
! Reading UV FITS file: J0403-3605_X_2000_12_04_pus_uva.fits
! AN table 1: 10 integrations on 190 of 190 possible baselines.
! AN table 2: 39 integrations on 190 of 190 possible baselines.
! AN table 3: 49 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0906552 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0403-3605
! 
! 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 2126 lines of history.
! 
! Reading 6752 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 J0403-3605_X_2000_12_04_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 200 telescope corrections were flagged in sub-array 1.
!  A total of 627 telescope corrections were flagged in sub-array 2.
!  A total of 638 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 200 telescope corrections were flagged in sub-array 1.
!  A total of 627 telescope corrections were flagged in sub-array 2.
!  A total of 638 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 200 telescope corrections were flagged in sub-array 1.
!  A total of 627 telescope corrections were flagged in sub-array 2.
!  A total of 638 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 200 telescope corrections were flagged in sub-array 1.
!  A total of 627 telescope corrections were flagged in sub-array 2.
!  A total of 638 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.672470Jy  sigma=0.005593
! Fit after  self-cal, rms=0.478298Jy  sigma=0.004024
! 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.769% of the data.
!  The x-axis pixel size should ideally be below 0.1919 milli-arcsec
! Estimated beam: bmin=0.6884 mas, bmaj=2.136 mas, bpa=2.676 degrees
! Estimated noise=1670.01 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.416258 Jy
! Component: 100  -  total flux cleaned = 0.519707 Jy
! Total flux subtracted in 100 components = 0.519707 Jy
! Clean residual min=-0.019277 max=0.042891 Jy/beam
! Clean residual mean=0.001503 rms=0.007545 Jy/beam
! Combined flux in latest and established models = 0.519707 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 0.519707 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.189184Jy  sigma=0.001629
! Fit after  self-cal, rms=0.189206Jy  sigma=0.001628
! Inverting map 
! Your choice of large map pixels excluded 0.769% of the data.
!  The x-axis pixel size should ideally be below 0.1919 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.769% of the data.
!  The x-axis pixel size should ideally be below 0.1919 milli-arcsec
! Estimated beam: bmin=0.9058 mas, bmaj=2.68 mas, bpa=0.7814 degrees
! Estimated noise=995.569 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.0742812 Jy
! Component: 100  -  total flux cleaned = 0.107691 Jy
! Component: 150  -  total flux cleaned = 0.12329 Jy
! Component: 200  -  total flux cleaned = 0.131176 Jy
! Total flux subtracted in 200 components = 0.131176 Jy
! Clean residual min=-0.009550 max=0.015375 Jy/beam
! Clean residual mean=0.000058 rms=0.003772 Jy/beam
! Combined flux in latest and established models = 0.650884 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 27 components and 0.650884 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.167001Jy  sigma=0.001323
! Fit after  self-cal, rms=0.166987Jy  sigma=0.001322
! Inverting map 
! Your choice of large map pixels excluded 0.769% of the data.
!  The x-axis pixel size should ideally be below 0.1919 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        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*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.97     KP        1.03     
!   LA        1.01     MA        1.00*    MC        1.00*    MK        0.97     
!   NL        1.00*    NY        1.00*    OV        0.97     PT        1.01     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.08     FD        0.94     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.20     KK        1.06     KP        0.98     
!   LA        1.00     MA        1.00*    MC        1.00*    MK        0.98     
!   NL        1.12     NY        1.00*    OV        0.96     PT        0.96     
!   SC        1.03     TS        1.00*    WF        0.99     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        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*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.02     KP        1.06     
!   LA        1.06     MA        1.00*    MC        1.00*    MK        0.94     
!   NL        1.00*    NY        1.00*    OV        1.00     PT        0.98     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.08     FD        0.97     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.20     KK        0.98     KP        0.96     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        1.04     
!   NL        1.09     NY        1.00*    OV        0.97     PT        0.97     
!   SC        1.02     TS        1.00*    WF        0.98     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        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*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.06     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.94     KP        1.03     
!   LA        1.06     MA        1.00*    MC        1.00*    MK        0.97     
!   NL        1.00*    NY        1.00*    OV        0.96     PT        0.95     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.18     KK        1.02     KP        0.97     
!   LA        1.00     MA        1.00*    MC        1.00*    MK        0.99     
!   NL        1.11     NY        1.00*    OV        0.92     PT        0.92     
!   SC        1.04     TS        1.00*    WF        1.00     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        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*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.06     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.92     KP        1.04     
!   LA        1.05     MA        1.00*    MC        1.00*    MK        0.92     
!   NL        1.00*    NY        1.00*    OV        0.98     PT        0.92     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.05     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.24     KK        1.02     KP        0.97     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        0.92     
!   NL        1.09     NY        1.00*    OV        0.97     PT        0.92     
!   SC        1.06     TS        1.00*    WF        1.00     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.166987Jy  sigma=0.001322
! Fit after  self-cal, rms=0.165480Jy  sigma=0.001266
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.742% of the data.
!  The x-axis pixel size should ideally be below 0.1919 milli-arcsec
! Estimated beam: bmin=0.9105 mas, bmaj=2.712 mas, bpa=0.6117 degrees
! Estimated noise=994.747 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.00171295 Jy
! Component: 100  -  total flux cleaned = -0.00159881 Jy
! Component: 150  -  total flux cleaned = -0.00159681 Jy
! Component: 200  -  total flux cleaned = -0.00159611 Jy
! Total flux subtracted in 200 components = -0.00159611 Jy
! Clean residual min=-0.005801 max=0.006519 Jy/beam
! Clean residual mean=-0.000235 rms=0.001997 Jy/beam
! Combined flux in latest and established models = 0.649288 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 35 components and 0.649288 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.165308Jy  sigma=0.001265
! Fit after  self-cal, rms=0.165507Jy  sigma=0.001265
! Inverting map 
! Your choice of large map pixels excluded 0.742% of the data.
!  The x-axis pixel size should ideally be below 0.1919 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.165507Jy  sigma=0.001265
! Fit after  self-cal, rms=0.165856Jy  sigma=0.001258
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.742% of the data.
!  The x-axis pixel size should ideally be below 0.1919 milli-arcsec
! Estimated beam: bmin=0.9107 mas, bmaj=2.714 mas, bpa=0.6622 degrees
! Estimated noise=995.511 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00103748 Jy
! Component: 100  -  total flux cleaned = -0.00114492 Jy
! Component: 150  -  total flux cleaned = -0.00114133 Jy
! Component: 200  -  total flux cleaned = -0.00113967 Jy
! Total flux subtracted in 200 components = -0.00113967 Jy
! Clean residual min=-0.004711 max=0.005451 Jy/beam
! Clean residual mean=-0.000057 rms=0.001581 Jy/beam
! Combined flux in latest and established models = 0.648148 Jy
selfcal
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 38 components and 0.648148 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.165715Jy  sigma=0.001258
! Fit after  self-cal, rms=0.165695Jy  sigma=0.001257
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.742% of the data.
!  The x-axis pixel size should ideally be below 0.1919 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.000139147 Jy
! Component: 100  -  total flux cleaned = 2.76913e-06 Jy
! Component: 150  -  total flux cleaned = -0.000130497 Jy
! Component: 200  -  total flux cleaned = -0.000194083 Jy
! Total flux subtracted in 200 components = -0.000194083 Jy
! Clean residual min=-0.004510 max=0.005015 Jy/beam
! Clean residual mean=-0.000047 rms=0.001541 Jy/beam
! Combined flux in latest and established models = 0.647954 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 40 components and 0.647954 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.165621Jy  sigma=0.001257
! Fit after  self-cal, rms=0.165604Jy  sigma=0.001257
! Inverting map 
! Your choice of large map pixels excluded 0.742% of the data.
!  The x-axis pixel size should ideally be below 0.1919 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.165604Jy  sigma=0.001257
! Fit after  self-cal, rms=0.166291Jy  sigma=0.001257
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.742% of the data.
!  The x-axis pixel size should ideally be below 0.1919 milli-arcsec
! Estimated beam: bmin=0.9112 mas, bmaj=2.719 mas, bpa=0.6358 degrees
! Estimated noise=996.3 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000734531 Jy
! Component: 100  -  total flux cleaned = -0.000817663 Jy
! Component: 150  -  total flux cleaned = -0.000820127 Jy
! Component: 200  -  total flux cleaned = -0.000822952 Jy
! Total flux subtracted in 200 components = -0.000822952 Jy
! Clean residual min=-0.004459 max=0.004901 Jy/beam
! Clean residual mean=-0.000011 rms=0.001487 Jy/beam
! Combined flux in latest and established models = 0.647131 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 40 components and 0.647131 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.166205Jy  sigma=0.001256
! Fit after  self-cal, rms=0.166206Jy  sigma=0.001256
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.742% of the data.
!  The x-axis pixel size should ideally be below 0.1919 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 = -1.67309e-05 Jy
! Component: 100  -  total flux cleaned = -7.98926e-05 Jy
! Component: 150  -  total flux cleaned = -0.000134412 Jy
! Component: 200  -  total flux cleaned = -0.000236459 Jy
! Total flux subtracted in 200 components = -0.000236459 Jy
! Clean residual min=-0.004323 max=0.004942 Jy/beam
! Clean residual mean=0.000001 rms=0.001461 Jy/beam
! Combined flux in latest and established models = 0.646895 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 40 components and 0.646895 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.166157Jy  sigma=0.001256
! Fit after  self-cal, rms=0.166146Jy  sigma=0.001256
! Inverting map 
! Your choice of large map pixels excluded 0.742% of the data.
!  The x-axis pixel size should ideally be below 0.1919 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.166146Jy  sigma=0.001256
! Fit after  self-cal, rms=0.166720Jy  sigma=0.001256
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.742% of the data.
!  The x-axis pixel size should ideally be below 0.1919 milli-arcsec
! Estimated beam: bmin=2.494 mas, bmaj=6.36 mas, bpa=2.757 degrees
! Estimated noise=1205.25 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00073585 Jy
! Component: 100  -  total flux cleaned = -0.000734331 Jy
! Component: 150  -  total flux cleaned = -0.000735266 Jy
! Component: 200  -  total flux cleaned = -0.000736483 Jy
! Total flux subtracted in 200 components = -0.000736483 Jy
! Clean residual min=-0.004547 max=0.005346 Jy/beam
! Clean residual mean=0.000059 rms=0.001852 Jy/beam
! Combined flux in latest and established models = 0.646158 Jy
selfcal
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 42 components and 0.646158 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.166676Jy  sigma=0.001255
! Fit after  self-cal, rms=0.166669Jy  sigma=0.001255
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.742% of the data.
!  The x-axis pixel size should ideally be below 0.1919 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 = -6.46306e-05 Jy
! Component: 100  -  total flux cleaned = -6.46181e-05 Jy
! Component: 150  -  total flux cleaned = -6.34513e-05 Jy
! Component: 200  -  total flux cleaned = -6.22455e-05 Jy
! Total flux subtracted in 200 components = -6.22455e-05 Jy
! Clean residual min=-0.004542 max=0.005415 Jy/beam
! Clean residual mean=0.000064 rms=0.001851 Jy/beam
! Combined flux in latest and established models = 0.646096 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 43 components and 0.646096 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.166645Jy  sigma=0.001255
! Fit after  self-cal, rms=0.166634Jy  sigma=0.001255
! Inverting map 
! Your choice of large map pixels excluded 0.742% of the data.
!  The x-axis pixel size should ideally be below 0.1919 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.742% of the data.
!  The x-axis pixel size should ideally be below 0.1919 milli-arcsec
! Estimated beam: bmin=0.9116 mas, bmaj=2.725 mas, bpa=0.5933 degrees
! Estimated noise=996.986 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9116 x 2.725 at 0.5933 degrees (North through East)
! Clean map  min=-0.0039228  max=0.55539 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.166634Jy  sigma=0.001255
! Fit after  self-cal, rms=0.159848Jy  sigma=0.001150
! Inverting map and beam 
! Your choice of large map pixels excluded 0.742% of the data.
!  The x-axis pixel size should ideally be below 0.1919 milli-arcsec
! Estimated beam: bmin=0.9117 mas, bmaj=2.73 mas, bpa=0.5381 degrees
! Estimated noise=996.837 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000132654 Jy
! Component: 100  -  total flux cleaned = -0.000194816 Jy
! Component: 150  -  total flux cleaned = -0.000249142 Jy
! Component: 200  -  total flux cleaned = -0.000345192 Jy
! Total flux subtracted in 200 components = -0.000345192 Jy
! Clean residual min=-0.004120 max=0.004791 Jy/beam
! Clean residual mean=0.000052 rms=0.001380 Jy/beam
! Combined flux in latest and established models = 0.645751 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 44 components and 0.645751 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.159806Jy  sigma=0.001149
! Fit after  self-cal, rms=0.159797Jy  sigma=0.001149
! Inverting map 
! Your choice of large map pixels excluded 0.742% of the data.
!  The x-axis pixel size should ideally be below 0.1919 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 3.5023e-05 Jy
! Component: 100  -  total flux cleaned = -6.13623e-05 Jy
! Component: 150  -  total flux cleaned = -0.000146164 Jy
! Component: 200  -  total flux cleaned = -0.000185777 Jy
! Total flux subtracted in 200 components = -0.000185777 Jy
! Clean residual min=-0.004038 max=0.004807 Jy/beam
! Clean residual mean=0.000062 rms=0.001367 Jy/beam
! Combined flux in latest and established models = 0.645565 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 45 components and 0.645565 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.159769Jy  sigma=0.001149
! Fit after  self-cal, rms=0.159762Jy  sigma=0.001149
! Inverting map 
! Your choice of large map pixels excluded 0.742% of the data.
!  The x-axis pixel size should ideally be below 0.1919 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.159762Jy  sigma=0.001149
! Fit after  self-cal, rms=0.160100Jy  sigma=0.001149
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.742% of the data.
!  The x-axis pixel size should ideally be below 0.1919 milli-arcsec
! Estimated beam: bmin=0.69 mas, bmaj=2.166 mas, bpa=2.357 degrees
! Estimated noise=1702.11 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.423375 Jy
! Component: 100  -  total flux cleaned = 0.529009 Jy
! Component: 150  -  total flux cleaned = 0.576181 Jy
! Component: 200  -  total flux cleaned = 0.602486 Jy
! Total flux subtracted in 200 components = 0.602486 Jy
! Clean residual min=-0.007319 max=0.013044 Jy/beam
! Clean residual mean=0.000514 rms=0.002978 Jy/beam
! Combined flux in latest and established models = 0.602486 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 26 model components to the UV plane model.
! The established model now contains 26 components and 0.602486 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 0.742% of the data.
!  The x-axis pixel size should ideally be below 0.1919 milli-arcsec
! Estimated beam: bmin=0.9116 mas, bmaj=2.733 mas, bpa=0.5029 degrees
! Estimated noise=997.204 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.0223568 Jy
! Component: 100  -  total flux cleaned = 0.032524 Jy
! Component: 150  -  total flux cleaned = 0.0374621 Jy
! Component: 200  -  total flux cleaned = 0.0399617 Jy
! Total flux subtracted in 200 components = 0.0399617 Jy
! Clean residual min=-0.004043 max=0.004619 Jy/beam
! Clean residual mean=0.000251 rms=0.001428 Jy/beam
! Combined flux in latest and established models = 0.642448 Jy
! Adding 26 model components to the UV plane model.
! The established model now contains 47 components and 0.642448 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.742% of the data.
!  The x-axis pixel size should ideally be below 0.1919 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.742% of the data.
!  The x-axis pixel size should ideally be below 0.1919 milli-arcsec
! Estimated beam: bmin=2.495 mas, bmaj=6.373 mas, bpa=2.782 degrees
! Estimated noise=1204.84 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00225935 Jy
! Component: 100  -  total flux cleaned = 0.00233854 Jy
! Component: 150  -  total flux cleaned = 0.00228987 Jy
! Component: 200  -  total flux cleaned = 0.00224567 Jy
! Total flux subtracted in 200 components = 0.00224567 Jy
! Clean residual min=-0.004213 max=0.005490 Jy/beam
! Clean residual mean=0.000208 rms=0.001809 Jy/beam
! Combined flux in latest and established models = 0.644693 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 = -4.01089e-05 Jy
! Component: 100  -  total flux cleaned = -5.92606e-05 Jy
! Component: 150  -  total flux cleaned = -5.94419e-05 Jy
! Component: 200  -  total flux cleaned = -7.794e-05 Jy
! Total flux subtracted in 200 components = -7.794e-05 Jy
! Clean residual min=-0.004225 max=0.005502 Jy/beam
! Clean residual mean=0.000217 rms=0.001810 Jy/beam
! Combined flux in latest and established models = 0.644615 Jy
! Adding 6 model components to the UV plane model.
! The established model now contains 52 components and 0.644616 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.742% of the data.
!  The x-axis pixel size should ideally be below 0.1919 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 0.742% of the data.
!  The x-axis pixel size should ideally be below 0.1919 milli-arcsec
! Estimated beam: bmin=0.9116 mas, bmaj=2.733 mas, bpa=0.5029 degrees
! Estimated noise=997.204 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000978713 Jy
! Component: 100  -  total flux cleaned = -0.000708122 Jy
! Component: 150  -  total flux cleaned = -0.000623162 Jy
! Component: 200  -  total flux cleaned = -0.000552177 Jy
! Total flux subtracted in 200 components = -0.000552177 Jy
! Clean residual min=-0.004020 max=0.004679 Jy/beam
! Clean residual mean=0.000148 rms=0.001396 Jy/beam
! Combined flux in latest and established models = 0.644063 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 56 components and 0.644063 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.159964Jy  sigma=0.001149
! Fit after  self-cal, rms=0.159951Jy  sigma=0.001148
wmodel J0403-3605_X_2000_12_04_pus_map.mod
! Writing 56 model components to file: J0403-3605_X_2000_12_04_pus_map.mod
wobs J0403-3605_X_2000_12_04_pus_uvs.fits
! Writing UV FITS file: J0403-3605_X_2000_12_04_pus_uvs.fits
wwins J0403-3605_X_2000_12_04_pus_map.win
! wwins: Wrote 1 windows to J0403-3605_X_2000_12_04_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.742% of the data.
!  The x-axis pixel size should ideally be below 0.1919 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00146963 Jy
! Component: 100  -  total flux cleaned = 0.00154093 Jy
! Component: 150  -  total flux cleaned = 0.00141196 Jy
! Component: 200  -  total flux cleaned = 0.00110574 Jy
! Component: 250  -  total flux cleaned = 0.00104632 Jy
! Component: 300  -  total flux cleaned = 0.000990828 Jy
! Component: 350  -  total flux cleaned = 0.00104422 Jy
! Component: 400  -  total flux cleaned = 0.000993161 Jy
! Component: 450  -  total flux cleaned = 0.000993922 Jy
! Component: 500  -  total flux cleaned = 0.00104203 Jy
! Component: 550  -  total flux cleaned = 0.000997217 Jy
! Component: 600  -  total flux cleaned = 0.000953311 Jy
! Component: 650  -  total flux cleaned = 0.000996431 Jy
! Component: 700  -  total flux cleaned = 0.000910777 Jy
! Component: 750  -  total flux cleaned = 0.000868702 Jy
! Component: 800  -  total flux cleaned = 0.000786901 Jy
! Component: 850  -  total flux cleaned = 0.000746594 Jy
! Component: 900  -  total flux cleaned = 0.000667998 Jy
! Component: 950  -  total flux cleaned = 0.00062963 Jy
! Component: 1000  -  total flux cleaned = 0.000553914 Jy
! Total flux subtracted in 1024 components = 0.000479497 Jy
! Clean residual min=-0.002991 max=0.001909 Jy/beam
! Clean residual mean=-0.000055 rms=0.000812 Jy/beam
! Combined flux in latest and established models = 0.644543 Jy
keep
! Adding 58 model components to the UV plane model.
! The established model now contains 114 components and 0.644543 Jy
![Exited script file: muppet]
wmap "J0403-3605_X_2000_12_04_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 0.742% of the data.
!  The x-axis pixel size should ideally be below 0.1919 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9116 x 2.733 at 0.5029 degrees (North through East)
! Clean map  min=-0.0034557  max=0.55907 Jy/beam
! Writing clean map to FITS file: J0403-3605_X_2000_12_04_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.559073 
invert
! Inverting map 
! Your choice of large map pixels excluded 0.742% of the data.
!  The x-axis pixel size should ideally be below 0.1919 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000808523 
device "J0403-3605_X_2000_12_04_pus\_map.eps/VPS"
! Attempting to open device: 'J0403-3605_X_2000_12_04_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.433855 0.433855 0.867711 1.73542 3.47084 6.94169 13.8834 27.7667 55.5335
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0024 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.559 
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.9116 x 2.733 at 0.5029 degrees (North through East)
! Clean map  min=-0.0034557  max=0.55907 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0403-3605_X_2000_12_04_pus\_map.gif/vgif"
! Attempting to open device: 'J0403-3605_X_2000_12_04_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0403-3605_X_2000_12_04_pus_uvs.log closed on Fri Oct 12 15:14:29 2007