! Started logfile: J1957-3845_S_1999_12_20_pus_uvs.log on Thu Dec 20 15:33:33 2007
obs J1957-3845_S_1999_12_20_pus_uva.fits
! Reading UV FITS file: J1957-3845_S_1999_12_20_pus_uva.fits
! AN table 1: 20 integrations on 190 of 190 possible baselines.
! AN table 2: 36 integrations on 190 of 190 possible baselines.
! AN table 3: 22 integrations on 190 of 190 possible baselines.
! AN table 4: 96 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0305808 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1957-3845
! 
! 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  2.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2298 lines of history.
! 
! Reading 4044 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 = 512 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
![@muppet J1957-3845_S_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 = 512x512 pixels with 0.500x0.500 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 312 telescope corrections were flagged in sub-array 1.
!  A total of 720 telescope corrections were flagged in sub-array 2.
!  A total of 404 telescope corrections were flagged in sub-array 3.
!  A total of 1649 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 312 telescope corrections were flagged in sub-array 1.
!  A total of 720 telescope corrections were flagged in sub-array 2.
!  A total of 404 telescope corrections were flagged in sub-array 3.
!  A total of 1649 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 312 telescope corrections were flagged in sub-array 1.
!  A total of 720 telescope corrections were flagged in sub-array 2.
!  A total of 404 telescope corrections were flagged in sub-array 3.
!  A total of 1649 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 312 telescope corrections were flagged in sub-array 1.
!  A total of 720 telescope corrections were flagged in sub-array 2.
!  A total of 404 telescope corrections were flagged in sub-array 3.
!  A total of 1649 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.748445Jy  sigma=0.004915
! Fit after  self-cal, rms=0.349688Jy  sigma=0.002408
! 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=2.641 mas, bmaj=11.07 mas, bpa=-0.7811 degrees
! Estimated noise=2452.69 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.938863 Jy
! Component: 100  -  total flux cleaned = 1.14363 Jy
! Total flux subtracted in 100 components = 1.14363 Jy
! Clean residual min=-0.030609 max=0.063632 Jy/beam
! Clean residual mean=0.000613 rms=0.013039 Jy/beam
! Combined flux in latest and established models = 1.14363 Jy
! Performing phase self-cal
! Adding 3 model components to the UV plane model.
! The established model now contains 3 components and 1.14363 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.271193Jy  sigma=0.001733
! Fit after  self-cal, rms=0.271198Jy  sigma=0.001733
! 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=3.275 mas, bmaj=13.73 mas, bpa=0.3604 degrees
! Estimated noise=1605.98 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.098107 Jy
! Component: 100  -  total flux cleaned = 0.152359 Jy
! Component: 150  -  total flux cleaned = 0.184323 Jy
! Component: 200  -  total flux cleaned = 0.203165 Jy
! Total flux subtracted in 200 components = 0.203165 Jy
! Clean residual min=-0.020553 max=0.032079 Jy/beam
! Clean residual mean=-0.000130 rms=0.007965 Jy/beam
! Combined flux in latest and established models = 1.34679 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 16 components and 1.34679 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.235906Jy  sigma=0.001383
! Fit after  self-cal, rms=0.235878Jy  sigma=0.001383
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.96     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        0.98     KP        1.02     LA        0.98     
!   MC        1.00*    MK        0.98     NY        1.00*    ON        1.00*    
!   OV        0.95     PT        1.00     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  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*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
!  A total of 63 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.97     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        0.99     LA        0.99     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.99     PT        0.99     SC        1.01     TS        1.00*    
!   WF        1.25     WZ        1.00*    GN        1.14     NL        0.97     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.99     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.01     KP        0.99     LA        0.95     
!   MC        1.00*    MK        0.94     NY        1.00*    ON        1.00*    
!   OV        0.96     PT        0.98     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  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*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
!  A total of 63 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.03     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        0.97     LA        0.97     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.94     PT        0.99     SC        0.98     TS        1.00*    
!   WF        1.18     WZ        1.00*    GN        1.10     NL        0.97     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.98     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.03     KP        0.98     LA        1.00     
!   MC        1.00*    MK        0.97     NY        1.00*    ON        1.00*    
!   OV        0.98     PT        0.92     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  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*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
!  A total of 63 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.99     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00     LA        1.00     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.01     PT        0.96     SC        1.04     TS        1.00*    
!   WF        1.27     WZ        1.00*    GN        1.08     NL        0.97     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.96     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.07     KP        1.00     LA        0.99     
!   MC        1.00*    MK        1.02     NY        1.00*    ON        1.00*    
!   OV        0.96     PT        0.95     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  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*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
!  A total of 63 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.98     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        0.99     LA        0.99     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.96     PT        1.00     SC        1.02     TS        1.00*    
!   WF        1.26     WZ        1.00*    GN        1.05     NL        0.96     
! 
! 
! Fit before self-cal, rms=0.235878Jy  sigma=0.001383
! Fit after  self-cal, rms=0.232981Jy  sigma=0.001276
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.496 mas, bmaj=15.25 mas, bpa=-3.729 degrees
! Estimated noise=1718.9 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.00844696 Jy
! Component: 100  -  total flux cleaned = -0.00846248 Jy
! Component: 150  -  total flux cleaned = -0.00873684 Jy
! Component: 200  -  total flux cleaned = -0.00896048 Jy
! Total flux subtracted in 200 components = -0.00896048 Jy
! Clean residual min=-0.013619 max=0.011492 Jy/beam
! Clean residual mean=-0.000207 rms=0.003773 Jy/beam
! Combined flux in latest and established models = 1.33783 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 22 components and 1.33783 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232106Jy  sigma=0.001270
! Fit after  self-cal, rms=0.232207Jy  sigma=0.001270
! 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.232207Jy  sigma=0.001270
! Fit after  self-cal, rms=0.232251Jy  sigma=0.001268
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.493 mas, bmaj=15.23 mas, bpa=-3.694 degrees
! Estimated noise=1717.11 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00420346 Jy
! Component: 100  -  total flux cleaned = -0.00445895 Jy
! Component: 150  -  total flux cleaned = -0.0046632 Jy
! Component: 200  -  total flux cleaned = -0.00483485 Jy
! Total flux subtracted in 200 components = -0.00483485 Jy
! Clean residual min=-0.012578 max=0.010326 Jy/beam
! Clean residual mean=-0.000229 rms=0.003346 Jy/beam
! Combined flux in latest and established models = 1.333 Jy
selfcal
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 23 components and 1.333 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.231755Jy  sigma=0.001265
! Fit after  self-cal, rms=0.231743Jy  sigma=0.001265
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 = 5.4741e-05 Jy
! Component: 100  -  total flux cleaned = -0.000362309 Jy
! Component: 150  -  total flux cleaned = -0.000741771 Jy
! Component: 200  -  total flux cleaned = -0.000974645 Jy
! Total flux subtracted in 200 components = -0.000974645 Jy
! Clean residual min=-0.012159 max=0.010383 Jy/beam
! Clean residual mean=-0.000232 rms=0.003277 Jy/beam
! Combined flux in latest and established models = 1.33202 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 28 components and 1.33202 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.231577Jy  sigma=0.001263
! Fit after  self-cal, rms=0.231560Jy  sigma=0.001263
! 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.231560Jy  sigma=0.001263
! Fit after  self-cal, rms=0.232107Jy  sigma=0.001262
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.488 mas, bmaj=15.21 mas, bpa=-3.68 degrees
! Estimated noise=1717.59 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00207762 Jy
! Component: 100  -  total flux cleaned = -0.00227749 Jy
! Component: 150  -  total flux cleaned = -0.00243525 Jy
! Component: 200  -  total flux cleaned = -0.00256854 Jy
! Total flux subtracted in 200 components = -0.00256854 Jy
! Clean residual min=-0.011453 max=0.008750 Jy/beam
! Clean residual mean=-0.000223 rms=0.002861 Jy/beam
! Combined flux in latest and established models = 1.32946 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 28 components and 1.32946 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.231821Jy  sigma=0.001259
! Fit after  self-cal, rms=0.231815Jy  sigma=0.001259
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 = 2.71574e-05 Jy
! Component: 100  -  total flux cleaned = -0.000300405 Jy
! Component: 150  -  total flux cleaned = -0.00068919 Jy
! Component: 200  -  total flux cleaned = -0.000947865 Jy
! Total flux subtracted in 200 components = -0.000947865 Jy
! Clean residual min=-0.011174 max=0.008692 Jy/beam
! Clean residual mean=-0.000226 rms=0.002822 Jy/beam
! Combined flux in latest and established models = 1.32851 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 30 components and 1.32851 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.231712Jy  sigma=0.001259
! Fit after  self-cal, rms=0.231696Jy  sigma=0.001259
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 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.231696Jy  sigma=0.001259
! Fit after  self-cal, rms=0.232081Jy  sigma=0.001258
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.188 mas, bmaj=24.36 mas, bpa=-1.854 degrees
! Estimated noise=2091.61 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000194382 Jy
! Component: 100  -  total flux cleaned = 9.8482e-05 Jy
! Component: 150  -  total flux cleaned = -5.81103e-05 Jy
! Component: 200  -  total flux cleaned = -0.000126106 Jy
! Total flux subtracted in 200 components = -0.000126106 Jy
! Clean residual min=-0.011092 max=0.009690 Jy/beam
! Clean residual mean=-0.000388 rms=0.003596 Jy/beam
! Combined flux in latest and established models = 1.32838 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 39 components and 1.32838 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232036Jy  sigma=0.001257
! Fit after  self-cal, rms=0.231943Jy  sigma=0.001257
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.000257321 Jy
! Component: 100  -  total flux cleaned = -0.000347951 Jy
! Component: 150  -  total flux cleaned = -0.00048845 Jy
! Component: 200  -  total flux cleaned = -0.000596043 Jy
! Total flux subtracted in 200 components = -0.000596043 Jy
! Clean residual min=-0.010990 max=0.009705 Jy/beam
! Clean residual mean=-0.000392 rms=0.003600 Jy/beam
! Combined flux in latest and established models = 1.32779 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 42 components and 1.32779 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.231928Jy  sigma=0.001257
! Fit after  self-cal, rms=0.231849Jy  sigma=0.001256
! 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=3.484 mas, bmaj=15.2 mas, bpa=-3.681 degrees
! Estimated noise=1718.13 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.484 x 15.2 at -3.681 degrees (North through East)
! Clean map  min=-0.010128  max=1.2404 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.231849Jy  sigma=0.001256
! Fit after  self-cal, rms=0.215294Jy  sigma=0.001075
! Inverting map and beam 
! Estimated beam: bmin=3.482 mas, bmaj=15.2 mas, bpa=-3.679 degrees
! Estimated noise=1717.46 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000649833 Jy
! Component: 100  -  total flux cleaned = 0.0005722 Jy
! Component: 150  -  total flux cleaned = 0.000426676 Jy
! Component: 200  -  total flux cleaned = 0.000228962 Jy
! Total flux subtracted in 200 components = 0.000228962 Jy
! Clean residual min=-0.008559 max=0.007722 Jy/beam
! Clean residual mean=-0.000146 rms=0.002291 Jy/beam
! Combined flux in latest and established models = 1.32801 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 45 components and 1.32801 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.215240Jy  sigma=0.001075
! Fit after  self-cal, rms=0.215229Jy  sigma=0.001075
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -9.516e-05 Jy
! Component: 100  -  total flux cleaned = -0.000261852 Jy
! Component: 150  -  total flux cleaned = -0.000411123 Jy
! Component: 200  -  total flux cleaned = -0.000500915 Jy
! Total flux subtracted in 200 components = -0.000500915 Jy
! Clean residual min=-0.008510 max=0.007552 Jy/beam
! Clean residual mean=-0.000148 rms=0.002280 Jy/beam
! Combined flux in latest and established models = 1.32751 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 45 components and 1.32751 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.215197Jy  sigma=0.001074
! Fit after  self-cal, rms=0.215187Jy  sigma=0.001074
! 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.215187Jy  sigma=0.001074
! Fit after  self-cal, rms=0.215334Jy  sigma=0.001074
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=2.811 mas, bmaj=13.57 mas, bpa=-5.439 degrees
! Estimated noise=2643.19 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.955981 Jy
! Component: 100  -  total flux cleaned = 1.16496 Jy
! Component: 150  -  total flux cleaned = 1.22779 Jy
! Component: 200  -  total flux cleaned = 1.26339 Jy
! Total flux subtracted in 200 components = 1.26339 Jy
! Clean residual min=-0.014394 max=0.017613 Jy/beam
! Clean residual mean=0.000199 rms=0.004251 Jy/beam
! Combined flux in latest and established models = 1.26339 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 15 model components to the UV plane model.
! The established model now contains 15 components and 1.26339 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.48 mas, bmaj=15.19 mas, bpa=-3.692 degrees
! Estimated noise=1717.63 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.0291845 Jy
! Component: 100  -  total flux cleaned = 0.043635 Jy
! Component: 150  -  total flux cleaned = 0.0517417 Jy
! Component: 200  -  total flux cleaned = 0.0564204 Jy
! Total flux subtracted in 200 components = 0.0564204 Jy
! Clean residual min=-0.009159 max=0.007666 Jy/beam
! Clean residual mean=-0.000153 rms=0.002429 Jy/beam
! Combined flux in latest and established models = 1.31981 Jy
! Adding 51 model components to the UV plane model.
! The established model now contains 59 components and 1.31981 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.184 mas, bmaj=24.37 mas, bpa=-1.857 degrees
! Estimated noise=2093.93 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00566328 Jy
! Component: 100  -  total flux cleaned = 0.00730934 Jy
! Component: 150  -  total flux cleaned = 0.00741318 Jy
! Component: 200  -  total flux cleaned = 0.00750977 Jy
! Total flux subtracted in 200 components = 0.00750977 Jy
! Clean residual min=-0.008432 max=0.008059 Jy/beam
! Clean residual mean=-0.000243 rms=0.003060 Jy/beam
! Combined flux in latest and established models = 1.32732 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 = 9.01961e-05 Jy
! Component: 100  -  total flux cleaned = 0.000209959 Jy
! Component: 150  -  total flux cleaned = 0.000283844 Jy
! Component: 200  -  total flux cleaned = 0.000353239 Jy
! Total flux subtracted in 200 components = 0.000353239 Jy
! Clean residual min=-0.008405 max=0.007879 Jy/beam
! Clean residual mean=-0.000241 rms=0.003025 Jy/beam
! Combined flux in latest and established models = 1.32767 Jy
! Adding 12 model components to the UV plane model.
! The established model now contains 67 components and 1.32767 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.48 mas, bmaj=15.19 mas, bpa=-3.692 degrees
! Estimated noise=1717.63 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00174355 Jy
! Component: 100  -  total flux cleaned = -0.0016545 Jy
! Component: 150  -  total flux cleaned = -0.00159605 Jy
! Component: 200  -  total flux cleaned = -0.00160132 Jy
! Total flux subtracted in 200 components = -0.00160132 Jy
! Clean residual min=-0.008670 max=0.007278 Jy/beam
! Clean residual mean=-0.000129 rms=0.002247 Jy/beam
! Combined flux in latest and established models = 1.32607 Jy
selfcal
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 72 components and 1.32607 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.215230Jy  sigma=0.001074
! Fit after  self-cal, rms=0.215203Jy  sigma=0.001074
wmodel J1957-3845_S_1999_12_20_pus_map.mod
! Writing 72 model components to file: J1957-3845_S_1999_12_20_pus_map.mod
wobs J1957-3845_S_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J1957-3845_S_1999_12_20_pus_uvs.fits
wwins J1957-3845_S_1999_12_20_pus_map.win
! wwins: Wrote 1 windows to J1957-3845_S_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 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.0021558 Jy
! Component: 100  -  total flux cleaned = -0.00288339 Jy
! Component: 150  -  total flux cleaned = -0.00333369 Jy
! Component: 200  -  total flux cleaned = -0.00333236 Jy
! Component: 250  -  total flux cleaned = -0.00418872 Jy
! Component: 300  -  total flux cleaned = -0.00482273 Jy
! Component: 350  -  total flux cleaned = -0.00516776 Jy
! Component: 400  -  total flux cleaned = -0.00558349 Jy
! Component: 450  -  total flux cleaned = -0.00605926 Jy
! Component: 500  -  total flux cleaned = -0.0064381 Jy
! Component: 550  -  total flux cleaned = -0.00694604 Jy
! Component: 600  -  total flux cleaned = -0.00750175 Jy
! Component: 650  -  total flux cleaned = -0.00777014 Jy
! Component: 700  -  total flux cleaned = -0.0079651 Jy
! Component: 750  -  total flux cleaned = -0.00815342 Jy
! Component: 800  -  total flux cleaned = -0.00821354 Jy
! Component: 850  -  total flux cleaned = -0.00833355 Jy
! Component: 900  -  total flux cleaned = -0.00827756 Jy
! Component: 950  -  total flux cleaned = -0.00827812 Jy
! Component: 1000  -  total flux cleaned = -0.00805685 Jy
! Component: 1050  -  total flux cleaned = -0.00784095 Jy
! Component: 1100  -  total flux cleaned = -0.0077882 Jy
! Component: 1150  -  total flux cleaned = -0.00783999 Jy
! Component: 1200  -  total flux cleaned = -0.00778894 Jy
! Component: 1250  -  total flux cleaned = -0.0077389 Jy
! Component: 1300  -  total flux cleaned = -0.00783669 Jy
! Component: 1350  -  total flux cleaned = -0.0076913 Jy
! Component: 1400  -  total flux cleaned = -0.00778613 Jy
! Component: 1450  -  total flux cleaned = -0.00769306 Jy
! Component: 1500  -  total flux cleaned = -0.00773939 Jy
! Component: 1550  -  total flux cleaned = -0.00782937 Jy
! Component: 1600  -  total flux cleaned = -0.00774065 Jy
! Component: 1650  -  total flux cleaned = -0.00778484 Jy
! Component: 1700  -  total flux cleaned = -0.00778464 Jy
! Component: 1750  -  total flux cleaned = -0.00765648 Jy
! Component: 1800  -  total flux cleaned = -0.00769894 Jy
! Component: 1850  -  total flux cleaned = -0.00757385 Jy
! Component: 1900  -  total flux cleaned = -0.00765602 Jy
! Component: 1950  -  total flux cleaned = -0.0075332 Jy
! Component: 2000  -  total flux cleaned = -0.00745241 Jy
! Total flux subtracted in 2048 components = -0.00749254 Jy
! Clean residual min=-0.002864 max=0.002186 Jy/beam
! Clean residual mean=0.000000 rms=0.000908 Jy/beam
! Combined flux in latest and established models = 1.31858 Jy
keep
! Adding 124 model components to the UV plane model.
! The established model now contains 196 components and 1.31858 Jy
![Exited script file: muppet]
wmap "J1957-3845_S_1999_12_20_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.48 x 15.19 at -3.692 degrees (North through East)
! Clean map  min=-0.0061172  max=1.2428 Jy/beam
! Writing clean map to FITS file: J1957-3845_S_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 1.24283 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000888392 
device "J1957-3845_S_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J1957-3845_S_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.214444 0.214444 0.428889 0.857778 1.71556 3.43111 6.86222 13.7244 27.4489 54.8978
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0026 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.242 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.48 x 15.19 at -3.692 degrees (North through East)
! Clean map  min=-0.0061172  max=1.2428 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1957-3845_S_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J1957-3845_S_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1957-3845_S_1999_12_20_pus_uvs.log closed on Thu Dec 20 15:33:46 2007