! Started logfile: J1337-1257_X_1999_12_20_pus_uvs.log on Fri Dec 14 17:22:52 2007
obs J1337-1257_X_1999_12_20_pus_uva.fits
! Reading UV FITS file: J1337-1257_X_1999_12_20_pus_uva.fits
! AN table 1: 79 integrations on 190 of 190 possible baselines.
! AN table 2: 31 integrations on 190 of 190 possible baselines.
! AN table 3: 51 integrations on 190 of 190 possible baselines.
! AN table 4: 184 integrations on 190 of 190 possible baselines.
! AN table 5: 29 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.069772 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1337-1257
! 
! 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 2418 lines of history.
! 
! Reading 19832 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 J1337-1257_X_1999_12_20_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 1373 telescope corrections were flagged in sub-array 1.
!  A total of 424 telescope corrections were flagged in sub-array 2.
!  A total of 693 telescope corrections were flagged in sub-array 3.
!  A total of 3023 telescope corrections were flagged in sub-array 4.
!  A total of 489 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 1373 telescope corrections were flagged in sub-array 1.
!  A total of 424 telescope corrections were flagged in sub-array 2.
!  A total of 693 telescope corrections were flagged in sub-array 3.
!  A total of 3023 telescope corrections were flagged in sub-array 4.
!  A total of 489 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 1373 telescope corrections were flagged in sub-array 1.
!  A total of 424 telescope corrections were flagged in sub-array 2.
!  A total of 702 telescope corrections were flagged in sub-array 3.
!  A total of 3023 telescope corrections were flagged in sub-array 4.
!  A total of 489 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 1373 telescope corrections were flagged in sub-array 1.
!  A total of 424 telescope corrections were flagged in sub-array 2.
!  A total of 702 telescope corrections were flagged in sub-array 3.
!  A total of 3023 telescope corrections were flagged in sub-array 4.
!  A total of 489 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=3.963999Jy  sigma=0.042933
! Fit after  self-cal, rms=3.202437Jy  sigma=0.035891
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 1.25% of the data.
!  The x-axis pixel size should ideally be below 0.1708 milli-arcsec
! Estimated beam: bmin=0.5701 mas, bmaj=1.29 mas, bpa=1.743 degrees
! Estimated noise=1326.04 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 3.20582 Jy
! Component: 100  -  total flux cleaned = 4.12183 Jy
! Total flux subtracted in 100 components = 4.12183 Jy
! Clean residual min=-0.227624 max=0.434173 Jy/beam
! Clean residual mean=0.003845 rms=0.071586 Jy/beam
! Combined flux in latest and established models = 4.12183 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 4.12183 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.582295Jy  sigma=0.013395
! Fit after  self-cal, rms=1.582284Jy  sigma=0.013394
! Inverting map 
! Your choice of large map pixels excluded 1.25% of the data.
!  The x-axis pixel size should ideally be below 0.1708 milli-arcsec
! Added new window around map position (1.6, 0.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.510774 Jy
! Component: 100  -  total flux cleaned = 0.832798 Jy
! Total flux subtracted in 100 components = 0.832798 Jy
! Clean residual min=-0.258095 max=0.366143 Jy/beam
! Clean residual mean=0.000221 rms=0.056294 Jy/beam
! Combined flux in latest and established models = 4.95463 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 18 components and 4.95463 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.554988Jy  sigma=0.011204
! Fit after  self-cal, rms=1.551669Jy  sigma=0.011136
! Inverting map 
! Your choice of large map pixels excluded 1.25% of the data.
!  The x-axis pixel size should ideally be below 0.1708 milli-arcsec
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
win_mult = win_mult * 1.6
clean_niter = clean_niter * 2
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 1.25% of the data.
!  The x-axis pixel size should ideally be below 0.1708 milli-arcsec
! Estimated beam: bmin=0.8577 mas, bmaj=1.877 mas, bpa=2.235 degrees
! Estimated noise=580.09 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.169034 Jy
! Component: 100  -  total flux cleaned = 0.169383 Jy
! Component: 150  -  total flux cleaned = 0.155845 Jy
! Component: 200  -  total flux cleaned = 0.156074 Jy
! Total flux subtracted in 200 components = 0.156074 Jy
! Clean residual min=-0.299257 max=0.356500 Jy/beam
! Clean residual mean=-0.016342 rms=0.100020 Jy/beam
! Combined flux in latest and established models = 5.11071 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 30 components and 5.1107 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.461181Jy  sigma=0.010639
! Fit after  self-cal, rms=1.454626Jy  sigma=0.010473
! Inverting map 
! Your choice of large map pixels excluded 1.25% of the data.
!  The x-axis pixel size should ideally be below 0.1708 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 108 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.93     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.02     MK        1.00*    NY        1.00*    ON        1.10     
!   OV        1.00*    PT        1.00*    SC        1.13     TS        1.00*    
!   WF        1.53     WZ        1.13     GN        1.00*    NL        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.94     GC        1.00*    HH        1.00*    
!   HN        0.87     KK        0.92     KP        0.98     LA        0.96     
!   MC        1.00*    MK        0.90     NY        1.00*    ON        1.00*    
!   OV        0.94     PT        1.00     SC        0.84     TS        1.00*    
!   WF        8.38     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.99     GC        1.00*    HH        0.94     
!   HN        0.95     KK        1.00*    KP        1.01     LA        0.97     
!   MC        1.20     MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.18     PT        0.97     SC        0.87     TS        1.00*    
!   WF        0.96     WZ        2.57     GN        0.92     NL        0.86     
! 
!  A total of 141 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.94     FD        0.94     GC        1.00*    HH        1.00*    
!   HN        2.45     KK        0.91     KP        1.00     LA        0.97     
!   MC        1.00*    MK        0.91     NY        1.00*    ON        1.00*    
!   OV        0.96     PT        1.01     SC        1.31     TS        1.00*    
!   WF        3.37     WZ        1.00*    GN        0.96     NL        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.78     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.03     MK        1.00*    NY        1.00*    ON        0.98     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.13     GN        1.00*    NL        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 108 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.90     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.02     MK        1.00*    NY        1.00*    ON        1.10     
!   OV        1.00*    PT        1.00*    SC        1.05     TS        1.00*    
!   WF        1.56     WZ        1.13     GN        1.00*    NL        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.94     GC        1.00*    HH        1.00*    
!   HN        0.86     KK        0.91     KP        0.93     LA        0.96     
!   MC        1.00*    MK        0.91     NY        1.00*    ON        1.00*    
!   OV        0.95     PT        0.99     SC        0.80     TS        1.00*    
!   WF        5.53     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.99     GC        1.00*    HH        0.93     
!   HN        0.94     KK        1.00*    KP        0.96     LA        0.96     
!   MC        2.50     MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.18     PT        0.96     SC        0.82     TS        1.00*    
!   WF        0.96     WZ       11.96     GN        0.91     NL        0.86     
! 
!  A total of 141 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.93     FD        0.94     GC        1.00*    HH        1.00*    
!   HN        2.47     KK        0.90     KP        0.95     LA        0.96     
!   MC        1.00*    MK        0.91     NY        1.00*    ON        1.00*    
!   OV        0.97     PT        1.00     SC        1.26     TS        1.00*    
!   WF        3.37     WZ        1.00*    GN        0.97     NL        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.79     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.01     MK        1.00*    NY        1.00*    ON        0.98     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.11     GN        1.00*    NL        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 108 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.85     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.99     MK        1.00*    NY        1.00*    ON        1.09     
!   OV        1.00*    PT        1.00*    SC        1.10     TS        1.00*    
!   WF        1.58     WZ        1.13     GN        1.00*    NL        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.93     FD        0.93     GC        1.00*    HH        1.00*    
!   HN        0.88     KK        0.89     KP        0.93     LA        0.94     
!   MC        1.00*    MK        0.88     NY        1.00*    ON        1.00*    
!   OV        0.92     PT        0.98     SC        0.80     TS        1.00*    
!   WF        1.94     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.98     GC        1.00*    HH        1.00*    
!   HN        0.95     KK        1.00*    KP        0.97     LA        0.95     
!   MC        1.19     MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.17     PT        0.96     SC        0.81     TS        1.00*    
!   WF        0.96     WZ        2.50     GN        0.89     NL        0.85     
! 
!  A total of 141 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.90     FD        0.93     GC        1.00*    HH        1.00*    
!   HN        2.76     KK        0.89     KP        0.95     LA        0.95     
!   MC        1.00*    MK        0.88     NY        1.00*    ON        1.00*    
!   OV        0.95     PT        0.99     SC        1.37     TS        1.00*    
!   WF        3.66     WZ        1.00*    GN        0.92     NL        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.77     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.98     MK        1.00*    NY        1.00*    ON        0.97     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.13     GN        1.00*    NL        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 108 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.86     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.02     MK        1.00*    NY        1.00*    ON        1.10     
!   OV        1.00*    PT        1.00*    SC        1.10     TS        1.00*    
!   WF        1.61     WZ        1.12     GN        1.00*    NL        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.92     GC        1.00*    HH        1.00*    
!   HN        0.88     KK        0.88     KP        0.92     LA        0.95     
!   MC        1.00*    MK        0.84     NY        1.00*    ON        1.00*    
!   OV        0.92     PT        0.97     SC        0.80     TS        1.00*    
!   WF        2.57     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.98     GC        1.00*    HH        1.00*    
!   HN        0.95     KK        1.00*    KP        0.96     LA        0.95     
!   MC        1.21     MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.17     PT        0.96     SC        0.81     TS        1.00*    
!   WF        0.95     WZ        2.64     GN        0.89     NL        0.85     
! 
!  A total of 141 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.92     FD        0.92     GC        1.00*    HH        1.00*    
!   HN        2.87     KK        0.88     KP        0.94     LA        0.95     
!   MC        1.00*    MK        0.84     NY        1.00*    ON        1.00*    
!   OV        0.95     PT        0.97     SC        1.35     TS        1.00*    
!   WF        3.86     WZ        1.00*    GN        0.96     NL        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.82     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.97     MK        1.00*    NY        1.00*    ON        1.00     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.16     GN        1.00*    NL        1.00*    
! 
! 
! Fit before self-cal, rms=1.454626Jy  sigma=0.010473
! Fit after  self-cal, rms=3.620896Jy  sigma=0.004150
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 1.34% of the data.
!  The x-axis pixel size should ideally be below 0.1708 milli-arcsec
! Estimated beam: bmin=0.8967 mas, bmaj=1.956 mas, bpa=0.8415 degrees
! Estimated noise=607.232 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.0605141 Jy
! Component: 100  -  total flux cleaned = -0.0645531 Jy
! Component: 150  -  total flux cleaned = -0.0685386 Jy
! Component: 200  -  total flux cleaned = -0.0740175 Jy
! Total flux subtracted in 200 components = -0.0740175 Jy
! Clean residual min=-0.085797 max=0.086838 Jy/beam
! Clean residual mean=0.011529 rms=0.023754 Jy/beam
! Combined flux in latest and established models = 5.03669 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 37 components and 5.03669 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=3.626519Jy  sigma=0.003851
! Fit after  self-cal, rms=3.639863Jy  sigma=0.003786
! Inverting map 
! Your choice of large map pixels excluded 1.34% of the data.
!  The x-axis pixel size should ideally be below 0.1708 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=3.639863Jy  sigma=0.003786
! Fit after  self-cal, rms=3.826111Jy  sigma=0.003752
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.34% of the data.
!  The x-axis pixel size should ideally be below 0.1708 milli-arcsec
! Estimated beam: bmin=0.8987 mas, bmaj=1.965 mas, bpa=0.6432 degrees
! Estimated noise=610.447 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0304911 Jy
! Component: 100  -  total flux cleaned = -0.0364472 Jy
! Component: 150  -  total flux cleaned = -0.0436135 Jy
! Component: 200  -  total flux cleaned = -0.0464978 Jy
! Total flux subtracted in 200 components = -0.0464978 Jy
! Clean residual min=-0.069250 max=0.084053 Jy/beam
! Clean residual mean=0.012448 rms=0.022277 Jy/beam
! Combined flux in latest and established models = 4.99019 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 38 components and 4.99019 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=3.828086Jy  sigma=0.003608
! Fit after  self-cal, rms=3.828524Jy  sigma=0.003584
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.34% of the data.
!  The x-axis pixel size should ideally be below 0.1708 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.0158646 Jy
! Component: 100  -  total flux cleaned = -0.0201692 Jy
! Component: 150  -  total flux cleaned = -0.0229836 Jy
! Component: 200  -  total flux cleaned = -0.0253696 Jy
! Total flux subtracted in 200 components = -0.0253696 Jy
! Clean residual min=-0.063696 max=0.089459 Jy/beam
! Clean residual mean=0.013101 rms=0.022118 Jy/beam
! Combined flux in latest and established models = 4.96482 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 39 components and 4.96482 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=3.829212Jy  sigma=0.003543
! Fit after  self-cal, rms=3.829422Jy  sigma=0.003538
! Inverting map 
! Your choice of large map pixels excluded 1.34% of the data.
!  The x-axis pixel size should ideally be below 0.1708 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=3.829422Jy  sigma=0.003538
! Fit after  self-cal, rms=4.154099Jy  sigma=0.003495
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.34% of the data.
!  The x-axis pixel size should ideally be below 0.1708 milli-arcsec
! Estimated beam: bmin=0.9017 mas, bmaj=1.973 mas, bpa=0.3712 degrees
! Estimated noise=615.79 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000527438 Jy
! Component: 100  -  total flux cleaned = -0.00705531 Jy
! Component: 150  -  total flux cleaned = -0.0124655 Jy
! Component: 200  -  total flux cleaned = -0.016145 Jy
! Total flux subtracted in 200 components = -0.016145 Jy
! Clean residual min=-0.055273 max=0.079643 Jy/beam
! Clean residual mean=0.013431 rms=0.021229 Jy/beam
! Combined flux in latest and established models = 4.94868 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 42 components and 4.94868 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=4.152291Jy  sigma=0.003437
! Fit after  self-cal, rms=4.153153Jy  sigma=0.003431
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.34% of the data.
!  The x-axis pixel size should ideally be below 0.1708 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.00841029 Jy
! Component: 100  -  total flux cleaned = -0.0114517 Jy
! Component: 150  -  total flux cleaned = -0.0140824 Jy
! Component: 200  -  total flux cleaned = -0.0163898 Jy
! Total flux subtracted in 200 components = -0.0163898 Jy
! Clean residual min=-0.052669 max=0.083269 Jy/beam
! Clean residual mean=0.013850 rms=0.021136 Jy/beam
! Combined flux in latest and established models = 4.93229 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 43 components and 4.93229 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=4.152773Jy  sigma=0.003413
! Fit after  self-cal, rms=4.152980Jy  sigma=0.003411
! Inverting map 
! Your choice of large map pixels excluded 1.34% of the data.
!  The x-axis pixel size should ideally be below 0.1708 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=4.152980Jy  sigma=0.003411
! Fit after  self-cal, rms=4.326416Jy  sigma=0.003383
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.34% of the data.
!  The x-axis pixel size should ideally be below 0.1708 milli-arcsec
! Estimated beam: bmin=2.259 mas, bmaj=4.38 mas, bpa=10.37 degrees
! Estimated noise=694.317 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.012973 Jy
! Component: 100  -  total flux cleaned = 0.0116893 Jy
! Component: 150  -  total flux cleaned = 0.0116937 Jy
! Component: 200  -  total flux cleaned = 0.0122019 Jy
! Total flux subtracted in 200 components = 0.0122019 Jy
! Clean residual min=-0.037436 max=0.076907 Jy/beam
! Clean residual mean=0.026617 rms=0.017027 Jy/beam
! Combined flux in latest and established models = 4.94449 Jy
selfcal
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 45 components and 4.94449 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=4.323755Jy  sigma=0.003384
! Fit after  self-cal, rms=4.323811Jy  sigma=0.003380
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.34% of the data.
!  The x-axis pixel size should ideally be below 0.1708 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 (-7, 1.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0830578 Jy
! Component: 100  -  total flux cleaned = 0.143284 Jy
! Component: 150  -  total flux cleaned = 0.18149 Jy
! Component: 200  -  total flux cleaned = 0.205147 Jy
! Total flux subtracted in 200 components = 0.205147 Jy
! Clean residual min=-0.024449 max=0.065956 Jy/beam
! Clean residual mean=0.018623 rms=0.015544 Jy/beam
! Combined flux in latest and established models = 5.14964 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 75 components and 5.14963 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=4.298729Jy  sigma=0.003347
! Fit after  self-cal, rms=4.299057Jy  sigma=0.003334
! Inverting map 
! Your choice of large map pixels excluded 1.34% of the data.
!  The x-axis pixel size should ideally be below 0.1708 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Your choice of large map pixels excluded 1.34% of the data.
!  The x-axis pixel size should ideally be below 0.1708 milli-arcsec
! Estimated beam: bmin=0.9045 mas, bmaj=1.979 mas, bpa=0.1356 degrees
! Estimated noise=620.738 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9045 x 1.979 at 0.1356 degrees (North through East)
! Clean map  min=-0.042912  max=4.2591 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=4.299057Jy  sigma=0.003334
! Fit after  self-cal, rms=6.612256Jy  sigma=0.003031
! Inverting map and beam 
! Your choice of large map pixels excluded 1.34% of the data.
!  The x-axis pixel size should ideally be below 0.1708 milli-arcsec
! Estimated beam: bmin=0.9035 mas, bmaj=1.978 mas, bpa=0.1031 degrees
! Estimated noise=620.051 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0424491 Jy
! Component: 100  -  total flux cleaned = 0.0612829 Jy
! Component: 150  -  total flux cleaned = 0.0729 Jy
! Component: 200  -  total flux cleaned = 0.0802052 Jy
! Total flux subtracted in 200 components = 0.0802052 Jy
! Clean residual min=-0.040394 max=0.064251 Jy/beam
! Clean residual mean=0.008846 rms=0.018499 Jy/beam
! Combined flux in latest and established models = 5.22984 Jy
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 110 components and 5.22984 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=6.602065Jy  sigma=0.002988
! Fit after  self-cal, rms=6.602014Jy  sigma=0.002982
! Inverting map 
! Your choice of large map pixels excluded 1.34% of the data.
!  The x-axis pixel size should ideally be below 0.1708 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.016865 Jy
! Component: 100  -  total flux cleaned = 0.021997 Jy
! Component: 150  -  total flux cleaned = 0.0253224 Jy
! Component: 200  -  total flux cleaned = 0.0301329 Jy
! Total flux subtracted in 200 components = 0.0301329 Jy
! Clean residual min=-0.040614 max=0.061241 Jy/beam
! Clean residual mean=0.008259 rms=0.017888 Jy/beam
! Combined flux in latest and established models = 5.25997 Jy
! Performing phase self-cal
! Adding 55 model components to the UV plane model.
! The established model now contains 128 components and 5.25997 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=6.595493Jy  sigma=0.002959
! Fit after  self-cal, rms=6.595240Jy  sigma=0.002958
! Inverting map 
! Your choice of large map pixels excluded 1.34% of the data.
!  The x-axis pixel size should ideally be below 0.1708 milli-arcsec
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=6.595240Jy  sigma=0.002958
! Fit after  self-cal, rms=6.519217Jy  sigma=0.002945
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.34% of the data.
!  The x-axis pixel size should ideally be below 0.1708 milli-arcsec
! Estimated beam: bmin=0.603 mas, bmaj=1.263 mas, bpa=0.6795 degrees
! Estimated noise=1351.7 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 3.18564 Jy
! Component: 100  -  total flux cleaned = 3.96805 Jy
! Component: 150  -  total flux cleaned = 4.32826 Jy
! Component: 200  -  total flux cleaned = 4.5454 Jy
! Total flux subtracted in 200 components = 4.5454 Jy
! Clean residual min=-0.072277 max=0.112421 Jy/beam
! Clean residual mean=0.002926 rms=0.020484 Jy/beam
! Combined flux in latest and established models = 4.5454 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 16 model components to the UV plane model.
! The established model now contains 16 components and 4.5454 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 1.34% of the data.
!  The x-axis pixel size should ideally be below 0.1708 milli-arcsec
! Estimated beam: bmin=0.9036 mas, bmaj=1.978 mas, bpa=0.1257 degrees
! Estimated noise=619.817 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.228173 Jy
! Component: 100  -  total flux cleaned = 0.356211 Jy
! Component: 150  -  total flux cleaned = 0.450212 Jy
! Component: 200  -  total flux cleaned = 0.512106 Jy
! Total flux subtracted in 200 components = 0.512106 Jy
! Clean residual min=-0.047328 max=0.086981 Jy/beam
! Clean residual mean=0.012911 rms=0.020543 Jy/beam
! Combined flux in latest and established models = 5.05751 Jy
! Adding 34 model components to the UV plane model.
! The established model now contains 43 components and 5.05751 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.34% of the data.
!  The x-axis pixel size should ideally be below 0.1708 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.34% of the data.
!  The x-axis pixel size should ideally be below 0.1708 milli-arcsec
! Estimated beam: bmin=2.251 mas, bmaj=4.377 mas, bpa=10.29 degrees
! Estimated noise=695.357 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0660775 Jy
! Component: 100  -  total flux cleaned = 0.0983279 Jy
! Component: 150  -  total flux cleaned = 0.126198 Jy
! Component: 200  -  total flux cleaned = 0.150552 Jy
! Total flux subtracted in 200 components = 0.150552 Jy
! Clean residual min=-0.024836 max=0.059933 Jy/beam
! Clean residual mean=0.019477 rms=0.015918 Jy/beam
! Combined flux in latest and established models = 5.20806 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.0159392 Jy
! Component: 100  -  total flux cleaned = 0.02792 Jy
! Component: 150  -  total flux cleaned = 0.039024 Jy
! Component: 200  -  total flux cleaned = 0.0504553 Jy
! Total flux subtracted in 200 components = 0.0504553 Jy
! Clean residual min=-0.025222 max=0.060835 Jy/beam
! Clean residual mean=0.017762 rms=0.016018 Jy/beam
! Combined flux in latest and established models = 5.25852 Jy
! Adding 39 model components to the UV plane model.
! The established model now contains 74 components and 5.25852 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.34% of the data.
!  The x-axis pixel size should ideally be below 0.1708 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 1.34% of the data.
!  The x-axis pixel size should ideally be below 0.1708 milli-arcsec
! Estimated beam: bmin=0.9036 mas, bmaj=1.978 mas, bpa=0.1257 degrees
! Estimated noise=619.817 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00520364 Jy
! Component: 100  -  total flux cleaned = 0.0144996 Jy
! Component: 150  -  total flux cleaned = 0.019792 Jy
! Component: 200  -  total flux cleaned = 0.0232022 Jy
! Total flux subtracted in 200 components = 0.0232022 Jy
! Clean residual min=-0.040091 max=0.064866 Jy/beam
! Clean residual mean=0.008631 rms=0.018384 Jy/beam
! Combined flux in latest and established models = 5.28172 Jy
selfcal
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 103 components and 5.28172 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=6.519494Jy  sigma=0.002965
! Fit after  self-cal, rms=6.525144Jy  sigma=0.002949
wmodel J1337-1257_X_1999_12_20_pus_map.mod
! Writing 103 model components to file: J1337-1257_X_1999_12_20_pus_map.mod
wobs J1337-1257_X_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J1337-1257_X_1999_12_20_pus_uvs.fits
wwins J1337-1257_X_1999_12_20_pus_map.win
! wwins: Wrote 3 windows to J1337-1257_X_1999_12_20_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! Your choice of large map pixels excluded 1.34% of the data.
!  The x-axis pixel size should ideally be below 0.1708 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.0299871 Jy
! Component: 100  -  total flux cleaned = 0.0568492 Jy
! Component: 150  -  total flux cleaned = 0.0823083 Jy
! Component: 200  -  total flux cleaned = 0.106765 Jy
! Component: 250  -  total flux cleaned = 0.130477 Jy
! Component: 300  -  total flux cleaned = 0.153527 Jy
! Component: 350  -  total flux cleaned = 0.175961 Jy
! Component: 400  -  total flux cleaned = 0.197834 Jy
! Component: 450  -  total flux cleaned = 0.219181 Jy
! Component: 500  -  total flux cleaned = 0.240041 Jy
! Component: 550  -  total flux cleaned = 0.260443 Jy
! Component: 600  -  total flux cleaned = 0.280416 Jy
! Component: 650  -  total flux cleaned = 0.299193 Jy
! Component: 700  -  total flux cleaned = 0.316076 Jy
! Component: 750  -  total flux cleaned = 0.333399 Jy
! Component: 800  -  total flux cleaned = 0.348934 Jy
! Component: 850  -  total flux cleaned = 0.364215 Jy
! Component: 900  -  total flux cleaned = 0.379248 Jy
! Component: 950  -  total flux cleaned = 0.394052 Jy
! Component: 1000  -  total flux cleaned = 0.407941 Jy
! Total flux subtracted in 1024 components = 0.415494 Jy
! Clean residual min=-0.034209 max=0.042497 Jy/beam
! Clean residual mean=0.003997 rms=0.015311 Jy/beam
! Combined flux in latest and established models = 5.69721 Jy
keep
! Adding 74 model components to the UV plane model.
! The established model now contains 177 components and 5.69721 Jy
![Exited script file: muppet]
wmap "J1337-1257_X_1999_12_20_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 1.34% of the data.
!  The x-axis pixel size should ideally be below 0.1708 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9036 x 1.978 at 0.1257 degrees (North through East)
! Clean map  min=-0.06458  max=4.2718 Jy/beam
! Writing clean map to FITS file: J1337-1257_X_1999_12_20_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 4.27176 
invert
! Inverting map 
! Your choice of large map pixels excluded 1.34% of the data.
!  The x-axis pixel size should ideally be below 0.1708 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.0153592 
device "J1337-1257_X_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J1337-1257_X_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -1.07866 1.07866 2.15731 4.31463 8.62926 17.2585 34.517 69.0341
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.046 
print "peak=",int(1000*peak_flux)/1000
! peak= 4.271 
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.9036 x 1.978 at 0.1257 degrees (North through East)
! Clean map  min=-0.06458  max=4.2718 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1337-1257_X_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J1337-1257_X_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1337-1257_X_1999_12_20_pus_uvs.log closed on Fri Dec 14 17:23:03 2007