! Started logfile: J1337-1257_X_1999_05_10_pus_uvs.log on Tue Jan 15 12:44:46 2008
obs J1337-1257_X_1999_05_10_pus_uva.fits
! Reading UV FITS file: J1337-1257_X_1999_05_10_pus_uva.fits
! AN table 1: 23 integrations on 153 of 153 possible baselines.
! AN table 2: 82 integrations on 153 of 153 possible baselines.
! AN table 3: 149 integrations on 153 of 153 possible baselines.
! AN table 4: 32 integrations on 153 of 153 possible baselines.
! AN table 5: 24 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.0938225 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 1763 lines of history.
! 
! Reading 17800 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_05_10_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 337 telescope corrections were flagged in sub-array 1.
!  A total of 1382 telescope corrections were flagged in sub-array 2.
!  A total of 2141 telescope corrections were flagged in sub-array 3.
!  A total of 366 telescope corrections were flagged in sub-array 4.
!  A total of 227 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 337 telescope corrections were flagged in sub-array 1.
!  A total of 1382 telescope corrections were flagged in sub-array 2.
!  A total of 1972 telescope corrections were flagged in sub-array 3.
!  A total of 366 telescope corrections were flagged in sub-array 4.
!  A total of 222 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 337 telescope corrections were flagged in sub-array 1.
!  A total of 1382 telescope corrections were flagged in sub-array 2.
!  A total of 1972 telescope corrections were flagged in sub-array 3.
!  A total of 366 telescope corrections were flagged in sub-array 4.
!  A total of 221 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 375 telescope corrections were flagged in sub-array 1.
!  A total of 1446 telescope corrections were flagged in sub-array 2.
!  A total of 1972 telescope corrections were flagged in sub-array 3.
!  A total of 366 telescope corrections were flagged in sub-array 4.
!  A total of 221 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=3.680447Jy  sigma=0.035151
! Fit after  self-cal, rms=3.406643Jy  sigma=0.033576
! 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 
! Estimated beam: bmin=0.6542 mas, bmaj=1.392 mas, bpa=-2.859 degrees
! Estimated noise=1374.91 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.24386 Jy
! Component: 100  -  total flux cleaned = 3.98173 Jy
! Total flux subtracted in 100 components = 3.98173 Jy
! Clean residual min=-0.077721 max=0.268956 Jy/beam
! Clean residual mean=0.002971 rms=0.031458 Jy/beam
! Combined flux in latest and established models = 3.98173 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 3.98173 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.668684Jy  sigma=0.006912
! Fit after  self-cal, rms=0.668649Jy  sigma=0.006911
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.298228 Jy
! Component: 100  -  total flux cleaned = 0.466815 Jy
! Total flux subtracted in 100 components = 0.466815 Jy
! Clean residual min=-0.060365 max=0.095709 Jy/beam
! Clean residual mean=0.001252 rms=0.020186 Jy/beam
! Combined flux in latest and established models = 4.44855 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 19 components and 4.44855 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.456358Jy  sigma=0.004386
! Fit after  self-cal, rms=0.456315Jy  sigma=0.004384
! Inverting map 
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 
! Estimated beam: bmin=0.9771 mas, bmaj=2.149 mas, bpa=-2.807 degrees
! Estimated noise=596.03 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.156328 Jy
! Component: 100  -  total flux cleaned = 0.221099 Jy
! Component: 150  -  total flux cleaned = 0.250851 Jy
! Component: 200  -  total flux cleaned = 0.259416 Jy
! Total flux subtracted in 200 components = 0.259416 Jy
! Clean residual min=-0.046010 max=0.081230 Jy/beam
! Clean residual mean=-0.003441 rms=0.015449 Jy/beam
! Combined flux in latest and established models = 4.70796 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 31 components and 4.70796 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.427660Jy  sigma=0.003747
! Fit after  self-cal, rms=0.427601Jy  sigma=0.003747
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 27 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.08     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.01     OV        1.00*    PT        1.00*    SC        1.09     
!   WF        1.00*    WZ        1.04     
! 
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.89     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.07     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.03     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.06     
! 
!  A total of 33 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.97     GC        1.00*    HH        1.00*    
!   HN        1.00     KK        1.09     KP        1.00     LA        0.98     
!   MC        1.00*    MK        0.96     NL        1.03     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        1.02     SC        1.01     
!   WF        1.27     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.04     GC        1.21     HH        1.00*    
!   HN        1.00*    KK        0.98     KP        1.03     LA        1.03     
!   MC        1.00*    MK        1.21     NL        1.20     NY        1.00*    
!   ON        1.00*    OV        1.02     PT        1.05     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.99     FD        0.99     GC        1.00*    HH        1.00*    
!   HN        1.10     KK        0.98     KP        1.01     LA        0.99     
!   MC        1.00*    MK        0.96     NL        1.07     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        1.03     SC        1.08     
!   WF        1.47     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 27 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.91     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.08     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.01     OV        1.00*    PT        1.00*    SC        1.08     
!   WF        1.00*    WZ        1.04     
! 
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.92     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.09     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.02     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.05     
! 
!  A total of 198 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.95     GC        1.00*    HH        1.00*    
!   HN        0.99     KK        1.10     KP        1.00     LA        0.98     
!   MC        1.00*    MK        0.95     NL        0.95     NY        1.00*    
!   ON        1.00*    OV        0.97     PT        0.92     SC        0.99     
!   WF        1.06     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.03     GC        1.19     HH        1.00*    
!   HN        1.00*    KK        0.98     KP        1.04     LA        1.04     
!   MC        1.00*    MK        1.20     NL        1.18     NY        1.00*    
!   ON        1.00*    OV        1.01     PT        0.97     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.99     FD        0.99     GC        1.00*    HH        1.00*    
!   HN        1.09     KK        0.98     KP        1.02     LA        0.98     
!   MC        1.00*    MK        0.95     NL        1.05     NY        1.00*    
!   ON        1.00*    OV        0.97     PT        0.94     SC        1.05     
!   WF        1.37     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 27 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.91     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.12     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.03     OV        1.00*    PT        1.00*    SC        1.07     
!   WF        1.00*    WZ        1.06     
! 
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.89     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.15     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.04     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.05     
! 
!  A total of 198 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        0.97     GC        1.00*    HH        1.00*    
!   HN        1.00     KK        1.18     KP        1.01     LA        0.96     
!   MC        1.00*    MK        0.94     NL        0.95     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        0.92     SC        1.00     
!   WF        1.06     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.04     GC        1.28     HH        1.00*    
!   HN        1.00*    KK        1.05     KP        1.05     LA        1.03     
!   MC        1.00*    MK        1.18     NL        1.17     NY        1.00*    
!   ON        1.00*    OV        1.02     PT        0.97     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.01     FD        1.01     GC        1.00*    HH        1.00*    
!   HN        1.09     KK        1.04     KP        1.03     LA        0.97     
!   MC        1.00*    MK        0.94     NL        1.04     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.95     SC        1.07     
!   WF        1.36     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 15 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        1.00     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.09     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.02     OV        1.00*    PT        1.00*    SC        1.04     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        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*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 198 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.95     GC        1.00*    HH        1.00*    
!   HN        0.99     KK        1.13     KP        0.98     LA        0.98     
!   MC        1.00*    MK        0.99     NL        0.95     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        0.95     SC        0.96     
!   WF        1.05     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        1.03     GC        1.16     HH        1.00*    
!   HN        1.00*    KK        1.02     KP        1.03     LA        1.04     
!   MC        1.00*    MK        1.18     NL        1.18     NY        1.00*    
!   ON        1.00*    OV        1.02     PT        1.00     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.98     FD        0.98     GC        1.00*    HH        1.00*    
!   HN        1.09     KK        1.00     KP        1.01     LA        0.98     
!   MC        1.00*    MK        0.95     NL        1.05     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.97     SC        1.03     
!   WF        1.37     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.427601Jy  sigma=0.003747
! Fit after  self-cal, rms=0.273712Jy  sigma=0.002077
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.9755 mas, bmaj=2.244 mas, bpa=-2.389 degrees
! Estimated noise=605.15 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, -2.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0313597 Jy
! Component: 100  -  total flux cleaned = 0.0289028 Jy
! Component: 150  -  total flux cleaned = 0.0276366 Jy
! Component: 200  -  total flux cleaned = 0.028568 Jy
! Total flux subtracted in 200 components = 0.028568 Jy
! Clean residual min=-0.017037 max=0.015327 Jy/beam
! Clean residual mean=0.000378 rms=0.004673 Jy/beam
! Combined flux in latest and established models = 4.73653 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 52 components and 4.73653 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.267000Jy  sigma=0.002008
! Fit after  self-cal, rms=0.265784Jy  sigma=0.001998
! Inverting map 
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.265784Jy  sigma=0.001998
! Fit after  self-cal, rms=0.258970Jy  sigma=0.001927
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=0.976 mas, bmaj=2.244 mas, bpa=-2.387 degrees
! Estimated noise=604.47 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0113401 Jy
! Component: 100  -  total flux cleaned = 0.0107957 Jy
! Component: 150  -  total flux cleaned = 0.0103505 Jy
! Component: 200  -  total flux cleaned = 0.0103671 Jy
! Total flux subtracted in 200 components = 0.0103671 Jy
! Clean residual min=-0.014096 max=0.011851 Jy/beam
! Clean residual mean=-0.000084 rms=0.003576 Jy/beam
! Combined flux in latest and established models = 4.7469 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 59 components and 4.7469 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.256626Jy  sigma=0.001904
! Fit after  self-cal, rms=0.256134Jy  sigma=0.001900
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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.00505877 Jy
! Component: 100  -  total flux cleaned = 0.0051137 Jy
! Component: 150  -  total flux cleaned = 0.00536199 Jy
! Component: 200  -  total flux cleaned = 0.00515188 Jy
! Total flux subtracted in 200 components = 0.00515188 Jy
! Clean residual min=-0.014593 max=0.009777 Jy/beam
! Clean residual mean=-0.000208 rms=0.003410 Jy/beam
! Combined flux in latest and established models = 4.75205 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 68 components and 4.75205 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.255486Jy  sigma=0.001894
! Fit after  self-cal, rms=0.255313Jy  sigma=0.001894
! Inverting map 
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.255313Jy  sigma=0.001894
! Fit after  self-cal, rms=0.248097Jy  sigma=0.001827
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=0.9765 mas, bmaj=2.245 mas, bpa=-2.4 degrees
! Estimated noise=604.297 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00392092 Jy
! Component: 100  -  total flux cleaned = 0.00392726 Jy
! Component: 150  -  total flux cleaned = 0.00417512 Jy
! Component: 200  -  total flux cleaned = 0.00438452 Jy
! Total flux subtracted in 200 components = 0.00438452 Jy
! Clean residual min=-0.010860 max=0.007952 Jy/beam
! Clean residual mean=0.000020 rms=0.002374 Jy/beam
! Combined flux in latest and established models = 4.75643 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 81 components and 4.75643 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.247450Jy  sigma=0.001820
! Fit after  self-cal, rms=0.247275Jy  sigma=0.001819
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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.00275053 Jy
! Component: 100  -  total flux cleaned = 0.0031146 Jy
! Component: 150  -  total flux cleaned = 0.00327527 Jy
! Component: 200  -  total flux cleaned = 0.00326613 Jy
! Total flux subtracted in 200 components = 0.00326613 Jy
! Clean residual min=-0.012212 max=0.007201 Jy/beam
! Clean residual mean=-0.000058 rms=0.002325 Jy/beam
! Combined flux in latest and established models = 4.7597 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 84 components and 4.7597 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.246987Jy  sigma=0.001816
! Fit after  self-cal, rms=0.246926Jy  sigma=0.001816
! Inverting map 
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.246926Jy  sigma=0.001816
! Fit after  self-cal, rms=0.246546Jy  sigma=0.001814
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.268 mas, bmaj=3.935 mas, bpa=-0.7442 degrees
! Estimated noise=720.826 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000442627 Jy
! Component: 100  -  total flux cleaned = -0.000637332 Jy
! Component: 150  -  total flux cleaned = -0.000345244 Jy
! Component: 200  -  total flux cleaned = -0.000150758 Jy
! Total flux subtracted in 200 components = -0.000150758 Jy
! Clean residual min=-0.006898 max=0.007918 Jy/beam
! Clean residual mean=-0.000092 rms=0.002394 Jy/beam
! Combined flux in latest and established models = 4.75955 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 102 components and 4.75955 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.246541Jy  sigma=0.001813
! Fit after  self-cal, rms=0.246243Jy  sigma=0.001811
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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.00076604 Jy
! Component: 100  -  total flux cleaned = 0.000849793 Jy
! Component: 150  -  total flux cleaned = 0.00101997 Jy
! Component: 200  -  total flux cleaned = 0.00101851 Jy
! Total flux subtracted in 200 components = 0.00101851 Jy
! Clean residual min=-0.007004 max=0.007978 Jy/beam
! Clean residual mean=-0.000140 rms=0.002391 Jy/beam
! Combined flux in latest and established models = 4.76057 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 112 components and 4.76057 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.246293Jy  sigma=0.001811
! Fit after  self-cal, rms=0.246196Jy  sigma=0.001810
! Inverting map 
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 
! Estimated beam: bmin=0.9771 mas, bmaj=2.245 mas, bpa=-2.406 degrees
! Estimated noise=604.199 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9771 x 2.245 at -2.406 degrees (North through East)
! Clean map  min=-0.0089797  max=4.3608 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.246196Jy  sigma=0.001810
! Fit after  self-cal, rms=0.203305Jy  sigma=0.001300
! Inverting map and beam 
! Estimated beam: bmin=0.9774 mas, bmaj=2.247 mas, bpa=-2.423 degrees
! Estimated noise=603.465 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00158362 Jy
! Component: 100  -  total flux cleaned = -0.00174757 Jy
! Component: 150  -  total flux cleaned = -0.0019025 Jy
! Component: 200  -  total flux cleaned = -0.0020462 Jy
! Total flux subtracted in 200 components = -0.0020462 Jy
! Clean residual min=-0.009491 max=0.005715 Jy/beam
! Clean residual mean=-0.000148 rms=0.001888 Jy/beam
! Combined flux in latest and established models = 4.75852 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 117 components and 4.75852 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.202978Jy  sigma=0.001297
! Fit after  self-cal, rms=0.202957Jy  sigma=0.001296
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000684909 Jy
! Component: 100  -  total flux cleaned = 0.00055531 Jy
! Component: 150  -  total flux cleaned = 0.000431891 Jy
! Component: 200  -  total flux cleaned = 0.000312657 Jy
! Total flux subtracted in 200 components = 0.000312657 Jy
! Clean residual min=-0.008590 max=0.005461 Jy/beam
! Clean residual mean=-0.000157 rms=0.001854 Jy/beam
! Combined flux in latest and established models = 4.75884 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 120 components and 4.75884 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.202776Jy  sigma=0.001295
! Fit after  self-cal, rms=0.202761Jy  sigma=0.001295
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.202761Jy  sigma=0.001295
! Fit after  self-cal, rms=0.202685Jy  sigma=0.001294
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 
! Estimated beam: bmin=0.6603 mas, bmaj=1.422 mas, bpa=-2.78 degrees
! Estimated noise=1414.71 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 3.29981 Jy
! Component: 100  -  total flux cleaned = 4.04209 Jy
! Component: 150  -  total flux cleaned = 4.30792 Jy
! Component: 200  -  total flux cleaned = 4.44813 Jy
! Total flux subtracted in 200 components = 4.44813 Jy
! Clean residual min=-0.028428 max=0.070513 Jy/beam
! Clean residual mean=0.001243 rms=0.009429 Jy/beam
! Combined flux in latest and established models = 4.44813 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 17 model components to the UV plane model.
! The established model now contains 17 components and 4.44813 Jy
! Inverting map and beam 
! Estimated beam: bmin=0.9779 mas, bmaj=2.247 mas, bpa=-2.426 degrees
! Estimated noise=603.311 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.13662 Jy
! Component: 100  -  total flux cleaned = 0.204295 Jy
! Component: 150  -  total flux cleaned = 0.243365 Jy
! Component: 200  -  total flux cleaned = 0.267202 Jy
! Total flux subtracted in 200 components = 0.267202 Jy
! Clean residual min=-0.006818 max=0.012950 Jy/beam
! Clean residual mean=0.000835 rms=0.003055 Jy/beam
! Combined flux in latest and established models = 4.71533 Jy
! Adding 45 model components to the UV plane model.
! The established model now contains 53 components and 4.71533 Jy
! Inverting map 
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 
! Estimated beam: bmin=2.268 mas, bmaj=3.936 mas, bpa=-0.7295 degrees
! Estimated noise=719.299 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0193015 Jy
! Component: 100  -  total flux cleaned = 0.0288932 Jy
! Component: 150  -  total flux cleaned = 0.0341406 Jy
! Component: 200  -  total flux cleaned = 0.0368057 Jy
! Total flux subtracted in 200 components = 0.0368057 Jy
! Clean residual min=-0.005728 max=0.006372 Jy/beam
! Clean residual mean=-0.000110 rms=0.002122 Jy/beam
! Combined flux in latest and established models = 4.75214 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.000356221 Jy
! Component: 100  -  total flux cleaned = 0.000758448 Jy
! Component: 150  -  total flux cleaned = 0.00104708 Jy
! Component: 200  -  total flux cleaned = 0.00117988 Jy
! Total flux subtracted in 200 components = 0.00117988 Jy
! Clean residual min=-0.005587 max=0.006146 Jy/beam
! Clean residual mean=-0.000165 rms=0.002064 Jy/beam
! Combined flux in latest and established models = 4.75332 Jy
! Adding 46 model components to the UV plane model.
! The established model now contains 93 components and 4.75332 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=0.9779 mas, bmaj=2.247 mas, bpa=-2.426 degrees
! Estimated noise=603.311 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00127545 Jy
! Component: 100  -  total flux cleaned = -0.000796854 Jy
! Component: 150  -  total flux cleaned = -0.000378211 Jy
! Component: 200  -  total flux cleaned = -0.000376853 Jy
! Total flux subtracted in 200 components = -0.000376853 Jy
! Clean residual min=-0.008518 max=0.007153 Jy/beam
! Clean residual mean=-0.000070 rms=0.001892 Jy/beam
! Combined flux in latest and established models = 4.75294 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 103 components and 4.75294 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.203506Jy  sigma=0.001302
! Fit after  self-cal, rms=0.203335Jy  sigma=0.001300
wmodel J1337-1257_X_1999_05_10_pus_map.mod
! Writing 103 model components to file: J1337-1257_X_1999_05_10_pus_map.mod
wobs J1337-1257_X_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J1337-1257_X_1999_05_10_pus_uvs.fits
wwins J1337-1257_X_1999_05_10_pus_map.win
! wwins: Wrote 2 windows to J1337-1257_X_1999_05_10_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.00184449 Jy
! Component: 100  -  total flux cleaned = -0.00308905 Jy
! Component: 150  -  total flux cleaned = -0.00392928 Jy
! Component: 200  -  total flux cleaned = -0.00463783 Jy
! Component: 250  -  total flux cleaned = -0.00522829 Jy
! Component: 300  -  total flux cleaned = -0.00589788 Jy
! Component: 350  -  total flux cleaned = -0.00654941 Jy
! Component: 400  -  total flux cleaned = -0.00700335 Jy
! Component: 450  -  total flux cleaned = -0.00735748 Jy
! Component: 500  -  total flux cleaned = -0.00770418 Jy
! Component: 550  -  total flux cleaned = -0.00812482 Jy
! Component: 600  -  total flux cleaned = -0.00837176 Jy
! Component: 650  -  total flux cleaned = -0.00869449 Jy
! Component: 700  -  total flux cleaned = -0.00893197 Jy
! Component: 750  -  total flux cleaned = -0.0090877 Jy
! Component: 800  -  total flux cleaned = -0.00946898 Jy
! Component: 850  -  total flux cleaned = -0.00969316 Jy
! Component: 900  -  total flux cleaned = -0.00984021 Jy
! Component: 950  -  total flux cleaned = -0.0100578 Jy
! Component: 1000  -  total flux cleaned = -0.0102011 Jy
! Total flux subtracted in 1024 components = -0.0103425 Jy
! Clean residual min=-0.003520 max=0.003520 Jy/beam
! Clean residual mean=0.000085 rms=0.001384 Jy/beam
! Combined flux in latest and established models = 4.7426 Jy
keep
! Adding 54 model components to the UV plane model.
! The established model now contains 154 components and 4.7426 Jy
![Exited script file: muppet]
wmap "J1337-1257_X_1999_05_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9779 x 2.247 at -2.426 degrees (North through East)
! Clean map  min=-0.0061749  max=4.3559 Jy/beam
! Writing clean map to FITS file: J1337-1257_X_1999_05_10_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 4.35592 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00138303 
device "J1337-1257_X_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J1337-1257_X_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.0952519 0.0952519 0.190504 0.381008 0.762015 1.52403 3.04806 6.09612 12.1922 24.3845 48.769 97.538
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0041 
print "peak=",int(1000*peak_flux)/1000
! peak= 4.355 
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.9779 x 2.247 at -2.426 degrees (North through East)
! Clean map  min=-0.0061749  max=4.3559 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1337-1257_X_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J1337-1257_X_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1337-1257_X_1999_05_10_pus_uvs.log closed on Tue Jan 15 12:44:57 2008