! Started logfile: J2331-1556_X_2001_07_05_pus_uvs.log on Wed Jul  4 22:08:18 2007
obs J2331-1556_X_2001_07_05_pus_uva.fits
! Reading UV FITS file: J2331-1556_X_2001_07_05_pus_uva.fits
! AN table 1: 33 integrations on 171 of 171 possible baselines.
! AN table 2: 11 integrations on 171 of 171 possible baselines.
! AN table 3: 219 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.0824939 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2331-1556
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  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 2370 lines of history.
! 
! Reading 14840 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 
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 452 telescope corrections were flagged in sub-array 1.
!  A total of 209 telescope corrections were flagged in sub-array 2.
!  A total of 3363 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 452 telescope corrections were flagged in sub-array 1.
!  A total of 209 telescope corrections were flagged in sub-array 2.
!  A total of 3363 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 452 telescope corrections were flagged in sub-array 1.
!  A total of 209 telescope corrections were flagged in sub-array 2.
!  A total of 3363 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 452 telescope corrections were flagged in sub-array 1.
!  A total of 209 telescope corrections were flagged in sub-array 2.
!  A total of 3363 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.791238Jy  sigma=0.006827
! Fit after  self-cal, rms=0.361980Jy  sigma=0.002997
! 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.899% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! Estimated beam: bmin=0.6275 mas, bmaj=1.517 mas, bpa=0.4919 degrees
! Estimated noise=1245.7 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.76725 Jy
! Component: 100  -  total flux cleaned = 0.999619 Jy
! Total flux subtracted in 100 components = 0.999619 Jy
! Clean residual min=-0.046734 max=0.146786 Jy/beam
! Clean residual mean=0.000534 rms=0.015948 Jy/beam
! Combined flux in latest and established models = 0.999619 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.999619 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.333706Jy  sigma=0.002785
! Fit after  self-cal, rms=0.333889Jy  sigma=0.002784
! Inverting map 
! Your choice of large map pixels excluded 0.899% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! Added new window around map position (2, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.14485 Jy
! Component: 100  -  total flux cleaned = 0.230088 Jy
! Total flux subtracted in 100 components = 0.230088 Jy
! Clean residual min=-0.032891 max=0.043942 Jy/beam
! Clean residual mean=0.000238 rms=0.008885 Jy/beam
! Combined flux in latest and established models = 1.22971 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 9 components and 1.22971 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.241096Jy  sigma=0.001869
! Fit after  self-cal, rms=0.234783Jy  sigma=0.001822
! Inverting map 
! Your choice of large map pixels excluded 0.899% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0644225 Jy
! Component: 100  -  total flux cleaned = 0.104178 Jy
! Total flux subtracted in 100 components = 0.104178 Jy
! Clean residual min=-0.023877 max=0.025671 Jy/beam
! Clean residual mean=0.000087 rms=0.005965 Jy/beam
! Combined flux in latest and established models = 1.33389 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 16 components and 1.33389 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.208464Jy  sigma=0.001534
! Fit after  self-cal, rms=0.206638Jy  sigma=0.001520
! Inverting map 
! Your choice of large map pixels excluded 0.899% of the data.
!  The x-axis pixel size should ideally be below 0.1914 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.899% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! Estimated beam: bmin=0.7908 mas, bmaj=2.067 mas, bpa=-2.196 degrees
! Estimated noise=731.051 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.0479237 Jy
! Component: 100  -  total flux cleaned = 0.072375 Jy
! Component: 150  -  total flux cleaned = 0.0861689 Jy
! Component: 200  -  total flux cleaned = 0.0941704 Jy
! Total flux subtracted in 200 components = 0.0941704 Jy
! Clean residual min=-0.014211 max=0.013618 Jy/beam
! Clean residual mean=-0.000164 rms=0.004193 Jy/beam
! Combined flux in latest and established models = 1.42806 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 21 components and 1.42806 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.197083Jy  sigma=0.001398
! Fit after  self-cal, rms=0.195840Jy  sigma=0.001387
! Inverting map 
! Your choice of large map pixels excluded 0.899% of the data.
!  The x-axis pixel size should ideally be below 0.1914 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.99     FD        1.07     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.86     KP        1.12     
!   LA        1.06     MC        1.00*    MK        0.96     NL        1.00*    
!   NY        1.00*    OV        0.97     PT        1.04     SC        1.00*    
!   TS        1.00     WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   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*    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 150 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.02     KK        0.93     KP        1.04     
!   LA        0.97     MC        1.00*    MK        0.98     NL        1.01     
!   NY        1.00*    OV        0.99     PT        0.99     SC        0.97     
!   TS        1.00*    WF        1.03     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.99     FD        1.08     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.89     KP        1.13     
!   LA        1.03     MC        1.00*    MK        0.95     NL        1.00*    
!   NY        1.00*    OV        0.99     PT        1.00     SC        1.00*    
!   TS        1.00     WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   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*    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 150 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.01     KK        0.93     KP        1.05     
!   LA        0.97     MC        1.00*    MK        0.99     NL        0.98     
!   NY        1.00*    OV        0.99     PT        0.96     SC        0.94     
!   TS        1.00*    WF        1.00     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        1.05     FD        1.05     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.87     KP        1.20     
!   LA        1.10     MC        1.00*    MK        0.97     NL        1.00*    
!   NY        1.00*    OV        1.02     PT        1.04     SC        1.00*    
!   TS        1.03     WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   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*    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 150 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.96     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.02     KK        0.93     KP        1.09     
!   LA        0.99     MC        1.00*    MK        1.01     NL        1.01     
!   NY        1.00*    OV        1.05     PT        0.99     SC        0.97     
!   TS        1.00*    WF        1.02     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        1.03     FD        1.04     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.86     KP        1.15     
!   LA        1.07     MC        1.00*    MK        1.01     NL        1.00*    
!   NY        1.00*    OV        1.01     PT        1.01     SC        1.00*    
!   TS        1.06     WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   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*    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 150 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.95     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.04     KK        0.95     KP        1.05     
!   LA        0.96     MC        1.00*    MK        1.04     NL        1.02     
!   NY        1.00*    OV        1.01     PT        1.00     SC        1.01     
!   TS        1.00*    WF        1.02     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.195840Jy  sigma=0.001387
! Fit after  self-cal, rms=0.180621Jy  sigma=0.001287
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.94% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! Estimated beam: bmin=0.7848 mas, bmaj=2.436 mas, bpa=-2.062 degrees
! Estimated noise=731.857 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 (1.4, 0.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00821877 Jy
! Component: 100  -  total flux cleaned = 0.00947738 Jy
! Component: 150  -  total flux cleaned = 0.00998037 Jy
! Component: 200  -  total flux cleaned = 0.010189 Jy
! Total flux subtracted in 200 components = 0.010189 Jy
! Clean residual min=-0.009365 max=0.008264 Jy/beam
! Clean residual mean=0.001052 rms=0.002397 Jy/beam
! Combined flux in latest and established models = 1.43825 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 40 components and 1.43825 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179094Jy  sigma=0.001275
! Fit after  self-cal, rms=0.179055Jy  sigma=0.001274
! Inverting map 
! Your choice of large map pixels excluded 0.94% of the data.
!  The x-axis pixel size should ideally be below 0.1914 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.179055Jy  sigma=0.001274
! Fit after  self-cal, rms=0.176834Jy  sigma=0.001239
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.94% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! Estimated beam: bmin=0.7866 mas, bmaj=2.438 mas, bpa=-2.11 degrees
! Estimated noise=732.867 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00729172 Jy
! Component: 100  -  total flux cleaned = 0.0086449 Jy
! Component: 150  -  total flux cleaned = 0.00944626 Jy
! Component: 200  -  total flux cleaned = 0.0101093 Jy
! Total flux subtracted in 200 components = 0.0101093 Jy
! Clean residual min=-0.002961 max=0.005847 Jy/beam
! Clean residual mean=0.000612 rms=0.001237 Jy/beam
! Combined flux in latest and established models = 1.44835 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 55 components and 1.44835 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.176387Jy  sigma=0.001235
! Fit after  self-cal, rms=0.176396Jy  sigma=0.001235
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.94% of the data.
!  The x-axis pixel size should ideally be below 0.1914 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)
! Added new window around map position (5.6, 10.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00491705 Jy
! Component: 100  -  total flux cleaned = 0.00645383 Jy
! Component: 150  -  total flux cleaned = 0.00723219 Jy
! Component: 200  -  total flux cleaned = 0.00782735 Jy
! Total flux subtracted in 200 components = 0.00782735 Jy
! Clean residual min=-0.002991 max=0.004136 Jy/beam
! Clean residual mean=0.000492 rms=0.001111 Jy/beam
! Combined flux in latest and established models = 1.45618 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 78 components and 1.45618 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.176157Jy  sigma=0.001233
! Fit after  self-cal, rms=0.176151Jy  sigma=0.001233
! Inverting map 
! Your choice of large map pixels excluded 0.94% of the data.
!  The x-axis pixel size should ideally be below 0.1914 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.176151Jy  sigma=0.001233
! Fit after  self-cal, rms=0.175762Jy  sigma=0.001232
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.94% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! Estimated beam: bmin=0.7853 mas, bmaj=2.437 mas, bpa=-2.132 degrees
! Estimated noise=732.457 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00273872 Jy
! Component: 100  -  total flux cleaned = 0.0032235 Jy
! Component: 150  -  total flux cleaned = 0.00354287 Jy
! Component: 200  -  total flux cleaned = 0.0038912 Jy
! Total flux subtracted in 200 components = 0.0038912 Jy
! Clean residual min=-0.003150 max=0.004056 Jy/beam
! Clean residual mean=0.000400 rms=0.001042 Jy/beam
! Combined flux in latest and established models = 1.46007 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 86 components and 1.46007 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.175627Jy  sigma=0.001231
! Fit after  self-cal, rms=0.175622Jy  sigma=0.001231
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.94% of the data.
!  The x-axis pixel size should ideally be below 0.1914 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.00023704 Jy
! Component: 100  -  total flux cleaned = 0.000546055 Jy
! Component: 150  -  total flux cleaned = 0.000774016 Jy
! Component: 200  -  total flux cleaned = 0.000986612 Jy
! Total flux subtracted in 200 components = 0.000986612 Jy
! Clean residual min=-0.003160 max=0.003896 Jy/beam
! Clean residual mean=0.000381 rms=0.001030 Jy/beam
! Combined flux in latest and established models = 1.46106 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 91 components and 1.46106 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.175563Jy  sigma=0.001231
! Fit after  self-cal, rms=0.175562Jy  sigma=0.001231
! Inverting map 
! Your choice of large map pixels excluded 0.94% of the data.
!  The x-axis pixel size should ideally be below 0.1914 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.175562Jy  sigma=0.001231
! Fit after  self-cal, rms=0.175369Jy  sigma=0.001231
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.94% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! Estimated beam: bmin=2.169 mas, bmaj=4.139 mas, bpa=1.268 degrees
! Estimated noise=930.405 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00254226 Jy
! Component: 100  -  total flux cleaned = 0.00387948 Jy
! Component: 150  -  total flux cleaned = 0.00453085 Jy
! Component: 200  -  total flux cleaned = 0.00474664 Jy
! Total flux subtracted in 200 components = 0.00474664 Jy
! Clean residual min=-0.003307 max=0.005949 Jy/beam
! Clean residual mean=0.000657 rms=0.001527 Jy/beam
! Combined flux in latest and established models = 1.46581 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 107 components and 1.46581 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.175362Jy  sigma=0.001231
! Fit after  self-cal, rms=0.175359Jy  sigma=0.001231
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.94% of the data.
!  The x-axis pixel size should ideally be below 0.1914 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.000631679 Jy
! Component: 100  -  total flux cleaned = 0.000732701 Jy
! Component: 150  -  total flux cleaned = 0.000802269 Jy
! Component: 200  -  total flux cleaned = 0.000865563 Jy
! Total flux subtracted in 200 components = 0.000865563 Jy
! Clean residual min=-0.003262 max=0.005863 Jy/beam
! Clean residual mean=0.000621 rms=0.001523 Jy/beam
! Combined flux in latest and established models = 1.46667 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 113 components and 1.46667 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.175359Jy  sigma=0.001231
! Fit after  self-cal, rms=0.175359Jy  sigma=0.001231
! Inverting map 
! Your choice of large map pixels excluded 0.94% of the data.
!  The x-axis pixel size should ideally be below 0.1914 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.94% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! Estimated beam: bmin=0.7842 mas, bmaj=2.436 mas, bpa=-2.138 degrees
! Estimated noise=732.169 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7842 x 2.436 at -2.138 degrees (North through East)
! Clean map  min=-0.0029136  max=1.0072 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.175359Jy  sigma=0.001231
! Fit after  self-cal, rms=0.166336Jy  sigma=0.001143
! Inverting map and beam 
! Your choice of large map pixels excluded 0.94% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! Estimated beam: bmin=0.7841 mas, bmaj=2.436 mas, bpa=-2.143 degrees
! Estimated noise=732.517 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000516958 Jy
! Component: 100  -  total flux cleaned = 0.000455879 Jy
! Component: 150  -  total flux cleaned = 0.000345657 Jy
! Component: 200  -  total flux cleaned = 0.000294576 Jy
! Total flux subtracted in 200 components = 0.000294576 Jy
! Clean residual min=-0.002828 max=0.003830 Jy/beam
! Clean residual mean=0.000267 rms=0.000984 Jy/beam
! Combined flux in latest and established models = 1.46697 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 120 components and 1.46697 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.166271Jy  sigma=0.001142
! Fit after  self-cal, rms=0.166268Jy  sigma=0.001142
! Inverting map 
! Your choice of large map pixels excluded 0.94% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 4.20122e-05 Jy
! Component: 100  -  total flux cleaned = -5.09083e-05 Jy
! Component: 150  -  total flux cleaned = -8.88964e-06 Jy
! Component: 200  -  total flux cleaned = -1.01958e-05 Jy
! Total flux subtracted in 200 components = -1.01958e-05 Jy
! Clean residual min=-0.002814 max=0.003809 Jy/beam
! Clean residual mean=0.000266 rms=0.000979 Jy/beam
! Combined flux in latest and established models = 1.46696 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 128 components and 1.46696 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.166232Jy  sigma=0.001142
! Fit after  self-cal, rms=0.166230Jy  sigma=0.001142
! Inverting map 
! Your choice of large map pixels excluded 0.94% of the data.
!  The x-axis pixel size should ideally be below 0.1914 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.166230Jy  sigma=0.001142
! Fit after  self-cal, rms=0.166133Jy  sigma=0.001142
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.94% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! Estimated beam: bmin=0.6175 mas, bmaj=2.047 mas, bpa=0.1197 degrees
! Estimated noise=1124.5 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.747236 Jy
! Component: 100  -  total flux cleaned = 0.996439 Jy
! Component: 150  -  total flux cleaned = 1.15003 Jy
! Component: 200  -  total flux cleaned = 1.24747 Jy
! Total flux subtracted in 200 components = 1.24747 Jy
! Clean residual min=-0.017124 max=0.051546 Jy/beam
! Clean residual mean=0.000359 rms=0.007082 Jy/beam
! Combined flux in latest and established models = 1.24747 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 11 model components to the UV plane model.
! The established model now contains 11 components and 1.24747 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 0.94% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! Estimated beam: bmin=0.7833 mas, bmaj=2.436 mas, bpa=-2.144 degrees
! Estimated noise=732.378 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.0922021 Jy
! Component: 100  -  total flux cleaned = 0.142441 Jy
! Component: 150  -  total flux cleaned = 0.170774 Jy
! Component: 200  -  total flux cleaned = 0.187412 Jy
! Total flux subtracted in 200 components = 0.187412 Jy
! Clean residual min=-0.003149 max=0.008546 Jy/beam
! Clean residual mean=0.000959 rms=0.001620 Jy/beam
! Combined flux in latest and established models = 1.43488 Jy
! Adding 28 model components to the UV plane model.
! The established model now contains 33 components and 1.43488 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.94% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0102297 Jy
! Component: 100  -  total flux cleaned = 0.017079 Jy
! Component: 150  -  total flux cleaned = 0.0218943 Jy
! Component: 200  -  total flux cleaned = 0.0253341 Jy
! Total flux subtracted in 200 components = 0.0253341 Jy
! Clean residual min=-0.002624 max=0.003990 Jy/beam
! Clean residual mean=0.000398 rms=0.001032 Jy/beam
! Combined flux in latest and established models = 1.46022 Jy
! Adding 31 model components to the UV plane model.
! The established model now contains 51 components and 1.46022 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.94% of the data.
!  The x-axis pixel size should ideally be below 0.1914 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.94% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! Estimated beam: bmin=2.168 mas, bmaj=4.138 mas, bpa=1.271 degrees
! Estimated noise=931.663 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00383804 Jy
! Component: 100  -  total flux cleaned = 0.00604551 Jy
! Component: 150  -  total flux cleaned = 0.00672915 Jy
! Component: 200  -  total flux cleaned = 0.00734405 Jy
! Total flux subtracted in 200 components = 0.00734405 Jy
! Clean residual min=-0.003538 max=0.006003 Jy/beam
! Clean residual mean=0.000587 rms=0.001518 Jy/beam
! Combined flux in latest and established models = 1.46756 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.000500494 Jy
! Component: 100  -  total flux cleaned = 0.00091717 Jy
! Component: 150  -  total flux cleaned = 0.00126648 Jy
! Component: 200  -  total flux cleaned = 0.00153636 Jy
! Total flux subtracted in 200 components = 0.00153636 Jy
! Clean residual min=-0.003482 max=0.005931 Jy/beam
! Clean residual mean=0.000527 rms=0.001507 Jy/beam
! Combined flux in latest and established models = 1.4691 Jy
! Adding 29 model components to the UV plane model.
! The established model now contains 75 components and 1.4691 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.94% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 0.94% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! Estimated beam: bmin=0.7833 mas, bmaj=2.436 mas, bpa=-2.144 degrees
! Estimated noise=732.378 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000239124 Jy
! Component: 100  -  total flux cleaned = -0.000506641 Jy
! Component: 150  -  total flux cleaned = -0.000568142 Jy
! Component: 200  -  total flux cleaned = -0.000511942 Jy
! Total flux subtracted in 200 components = -0.000511942 Jy
! Clean residual min=-0.002714 max=0.003902 Jy/beam
! Clean residual mean=0.000252 rms=0.000979 Jy/beam
! Combined flux in latest and established models = 1.46858 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 90 components and 1.46858 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.166075Jy  sigma=0.001142
! Fit after  self-cal, rms=0.166057Jy  sigma=0.001141
wmodel J2331-1556_X_2001_07_05_pus_map.mod
! Writing 90 model components to file: J2331-1556_X_2001_07_05_pus_map.mod
wobs J2331-1556_X_2001_07_05_pus_uvs.fits
! Writing UV FITS file: J2331-1556_X_2001_07_05_pus_uvs.fits
wwins J2331-1556_X_2001_07_05_pus_map.win
! wwins: Wrote 4 windows to J2331-1556_X_2001_07_05_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.94% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00162591 Jy
! Component: 100  -  total flux cleaned = 0.00283012 Jy
! Component: 150  -  total flux cleaned = 0.00370592 Jy
! Component: 200  -  total flux cleaned = 0.00457274 Jy
! Component: 250  -  total flux cleaned = 0.00527185 Jy
! Component: 300  -  total flux cleaned = 0.00561072 Jy
! Component: 350  -  total flux cleaned = 0.00598136 Jy
! Component: 400  -  total flux cleaned = 0.00622293 Jy
! Component: 450  -  total flux cleaned = 0.00649804 Jy
! Component: 500  -  total flux cleaned = 0.00665124 Jy
! Component: 550  -  total flux cleaned = 0.00687733 Jy
! Component: 600  -  total flux cleaned = 0.00709898 Jy
! Component: 650  -  total flux cleaned = 0.00728077 Jy
! Component: 700  -  total flux cleaned = 0.00745961 Jy
! Component: 750  -  total flux cleaned = 0.00773958 Jy
! Component: 800  -  total flux cleaned = 0.00787679 Jy
! Component: 850  -  total flux cleaned = 0.00801233 Jy
! Component: 900  -  total flux cleaned = 0.00817882 Jy
! Component: 950  -  total flux cleaned = 0.00824452 Jy
! Component: 1000  -  total flux cleaned = 0.0083745 Jy
! Total flux subtracted in 1024 components = 0.00840667 Jy
! Clean residual min=-0.001673 max=0.001819 Jy/beam
! Clean residual mean=0.000111 rms=0.000700 Jy/beam
! Combined flux in latest and established models = 1.47699 Jy
keep
! Adding 86 model components to the UV plane model.
! The established model now contains 176 components and 1.47699 Jy
wmap "J2331-1556_X_2001_07_05_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 0.94% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7833 x 2.436 at -2.144 degrees (North through East)
! Clean map  min=-0.0023123  max=1.0041 Jy/beam
! Writing clean map to FITS file: J2331-1556_X_2001_07_05_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.00414 
invert
! Inverting map 
! Your choice of large map pixels excluded 0.94% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000701556 
device "J2331-1556_X_2001_07_05_pus\_map.eps/VPS"
! Attempting to open device: 'J2331-1556_X_2001_07_05_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.209599 0.209599 0.419198 0.838396 1.67679 3.35358 6.70717 13.4143 26.8287 53.6573
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0021 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.004 
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.7833 x 2.436 at -2.144 degrees (North through East)
! Clean map  min=-0.0023123  max=1.0041 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2331-1556_X_2001_07_05_pus\_map.gif/vgif"
! Attempting to open device: 'J2331-1556_X_2001_07_05_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2331-1556_X_2001_07_05_pus_uvs.log closed on Wed Jul  4 22:09:26 2007