! Started logfile: J0457-2324_S_1999_12_20_pus_uvs.log on Thu Dec 20 14:54:45 2007
obs J0457-2324_S_1999_12_20_pus_uva.fits
! Reading UV FITS file: J0457-2324_S_1999_12_20_pus_uva.fits
! AN table 1: 90 integrations on 190 of 190 possible baselines.
! AN table 2: 90 integrations on 190 of 190 possible baselines.
! AN table 3: 11 integrations on 190 of 190 possible baselines.
! AN table 4: 97 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0689876 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0457-2324
! 
! 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 15100 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 J0457-2324_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 1386 telescope corrections were flagged in sub-array 1.
!  A total of 1616 telescope corrections were flagged in sub-array 2.
!  A total of 220 telescope corrections were flagged in sub-array 3.
!  A total of 1572 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1386 telescope corrections were flagged in sub-array 1.
!  A total of 1616 telescope corrections were flagged in sub-array 2.
!  A total of 220 telescope corrections were flagged in sub-array 3.
!  A total of 1572 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1416 telescope corrections were flagged in sub-array 1.
!  A total of 1646 telescope corrections were flagged in sub-array 2.
!  A total of 220 telescope corrections were flagged in sub-array 3.
!  A total of 1572 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1410 telescope corrections were flagged in sub-array 1.
!  A total of 1646 telescope corrections were flagged in sub-array 2.
!  A total of 220 telescope corrections were flagged in sub-array 3.
!  A total of 1572 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.985578Jy  sigma=0.007336
! Fit after  self-cal, rms=0.356468Jy  sigma=0.002710
! 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.066 mas, bmaj=4.854 mas, bpa=11.88 degrees
! Estimated noise=1220.51 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.906035 Jy
! Component: 100  -  total flux cleaned = 1.13909 Jy
! Total flux subtracted in 100 components = 1.13909 Jy
! Clean residual min=-0.022042 max=0.086308 Jy/beam
! Clean residual mean=0.000451 rms=0.007652 Jy/beam
! Combined flux in latest and established models = 1.13909 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 13 components and 1.13909 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.272763Jy  sigma=0.002026
! Fit after  self-cal, rms=0.272762Jy  sigma=0.002026
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0979085 Jy
! Component: 100  -  total flux cleaned = 0.155063 Jy
! Total flux subtracted in 100 components = 0.155063 Jy
! Clean residual min=-0.016539 max=0.029709 Jy/beam
! Clean residual mean=0.000150 rms=0.004569 Jy/beam
! Combined flux in latest and established models = 1.29415 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 28 components and 1.29415 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220619Jy  sigma=0.001533
! Fit after  self-cal, rms=0.220540Jy  sigma=0.001532
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0364821 Jy
! Component: 100  -  total flux cleaned = 0.0603313 Jy
! Total flux subtracted in 100 components = 0.0603313 Jy
! Clean residual min=-0.015977 max=0.016450 Jy/beam
! Clean residual mean=0.000035 rms=0.003933 Jy/beam
! Combined flux in latest and established models = 1.35448 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 36 components and 1.35448 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.212831Jy  sigma=0.001446
! Fit after  self-cal, rms=0.212789Jy  sigma=0.001446
! 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=2.668 mas, bmaj=7.091 mas, bpa=2.877 degrees
! Estimated noise=779.58 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.0192119 Jy
! Component: 100  -  total flux cleaned = 0.0288484 Jy
! Component: 150  -  total flux cleaned = 0.0337954 Jy
! Component: 200  -  total flux cleaned = 0.0345806 Jy
! Total flux subtracted in 200 components = 0.0345806 Jy
! Clean residual min=-0.012535 max=0.009657 Jy/beam
! Clean residual mean=-0.000710 rms=0.002982 Jy/beam
! Combined flux in latest and established models = 1.38906 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 41 components and 1.38906 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.211667Jy  sigma=0.001428
! Fit after  self-cal, rms=0.211646Jy  sigma=0.001428
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 66 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.99     GC        1.00*    HH        1.00*    
!   HN        1.02     KK        1.02     KP        1.01     LA        1.00     
!   MC        1.00*    MK        1.02     NY        1.00*    ON        1.00*    
!   OV        0.98     PT        1.01     SC        0.96     TS        1.13     
!   WF        1.01     WZ        1.00*    GN        0.92     NL        0.94     
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.01     GC        1.00*    HH        1.00*    
!   HN        1.05     KK        1.00*    KP        1.02     LA        1.00     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.00     PT        1.03     SC        0.98     TS        1.00*    
!   WF        1.03     WZ        1.00*    GN        1.00*    NL        0.99     
! 
!  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 42 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.01     GC        1.00*    HH        1.12     
!   HN        1.02     KK        1.02     KP        0.98     LA        1.01     
!   MC        1.00*    MK        1.00     NY        1.00*    ON        1.00*    
!   OV        0.99     PT        1.02     SC        1.03     TS        1.00*    
!   WF        1.04     WZ        1.00*    GN        1.06     NL        0.98     
! 
! 
! Correcting IF 2.
!  A total of 66 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.04     GC        1.00*    HH        1.00*    
!   HN        1.09     KK        0.98     KP        1.01     LA        0.98     
!   MC        1.00*    MK        1.00     NY        1.00*    ON        1.00*    
!   OV        0.97     PT        1.00     SC        0.95     TS        1.12     
!   WF        1.00     WZ        1.00*    GN        0.91     NL        0.95     
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.06     GC        1.00*    HH        1.00*    
!   HN        1.14     KK        1.00*    KP        1.00     LA        0.99     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.98     PT        0.99     SC        1.00     TS        1.00*    
!   WF        1.01     WZ        1.00*    GN        1.00*    NL        0.97     
! 
!  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 42 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.03     GC        1.00*    HH        1.09     
!   HN        1.10     KK        0.93     KP        1.01     LA        0.99     
!   MC        1.00*    MK        1.00     NY        1.00*    ON        1.00*    
!   OV        0.99     PT        1.01     SC        1.02     TS        1.00*    
!   WF        1.02     WZ        1.00*    GN        1.05     NL        0.99     
! 
! 
! Correcting IF 3.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.01     GC        1.00*    HH        1.00*    
!   HN        1.05     KK        1.02     KP        0.96     LA        1.01     
!   MC        1.00*    MK        0.98     NY        1.00*    ON        1.00*    
!   OV        1.00     PT        0.95     SC        0.96     TS        1.11     
!   WF        1.00     WZ        1.00*    GN        0.93     NL        0.93     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.04     GC        1.00*    HH        1.00*    
!   HN        1.05     KK        1.00*    KP        1.00     LA        1.02     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.00     PT        0.98     SC        0.99     TS        1.00*    
!   WF        1.01     WZ        1.00*    GN        1.00*    NL        0.99     
! 
!  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 42 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.02     GC        1.00*    HH        0.98     
!   HN        0.99     KK        0.96     KP        1.02     LA        1.01     
!   MC        1.00*    MK        0.97     NY        1.00*    ON        1.00*    
!   OV        1.02     PT        0.95     SC        1.05     TS        1.00*    
!   WF        1.03     WZ        1.00*    GN        1.04     NL        0.96     
! 
! 
! Correcting IF 4.
!  A total of 42 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        1.01     GC        1.00*    HH        1.00*    
!   HN        1.05     KK        1.00     KP        1.00     LA        1.02     
!   MC        1.00*    MK        1.03     NY        1.00*    ON        1.00*    
!   OV        0.95     PT        0.95     SC        0.96     TS        1.11     
!   WF        1.02     WZ        1.00*    GN        0.93     NL        0.93     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.02     GC        1.00*    HH        1.00*    
!   HN        1.07     KK        1.00*    KP        1.00     LA        1.02     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.96     PT        1.03     SC        1.01     TS        1.00*    
!   WF        1.03     WZ        1.00*    GN        1.00*    NL        0.94     
! 
!  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 42 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.00     GC        1.00*    HH        0.99     
!   HN        1.02     KK        0.96     KP        1.03     LA        1.02     
!   MC        1.00*    MK        1.01     NY        1.00*    ON        1.00*    
!   OV        1.00     PT        0.95     SC        1.04     TS        1.00*    
!   WF        0.97     WZ        1.00*    GN        1.07     NL        0.96     
! 
! 
! Fit before self-cal, rms=0.211646Jy  sigma=0.001428
! Fit after  self-cal, rms=0.196770Jy  sigma=0.001325
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.701 mas, bmaj=7.265 mas, bpa=2.064 degrees
! Estimated noise=791.552 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.001903 Jy
! Component: 100  -  total flux cleaned = -0.00197899 Jy
! Component: 150  -  total flux cleaned = -0.00212041 Jy
! Component: 200  -  total flux cleaned = -0.0021206 Jy
! Total flux subtracted in 200 components = -0.0021206 Jy
! Clean residual min=-0.006859 max=0.005816 Jy/beam
! Clean residual mean=-0.000330 rms=0.001825 Jy/beam
! Combined flux in latest and established models = 1.38694 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 48 components and 1.38694 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.196680Jy  sigma=0.001325
! Fit after  self-cal, rms=0.196707Jy  sigma=0.001325
! 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.196707Jy  sigma=0.001325
! Fit after  self-cal, rms=0.191897Jy  sigma=0.001274
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.707 mas, bmaj=7.27 mas, bpa=2.1 degrees
! Estimated noise=792.321 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00101631 Jy
! Component: 100  -  total flux cleaned = -0.00127399 Jy
! Component: 150  -  total flux cleaned = -0.0012795 Jy
! Component: 200  -  total flux cleaned = -0.00128339 Jy
! Total flux subtracted in 200 components = -0.00128339 Jy
! Clean residual min=-0.004517 max=0.007076 Jy/beam
! Clean residual mean=0.000145 rms=0.001182 Jy/beam
! Combined flux in latest and established models = 1.38566 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 52 components and 1.38566 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.191821Jy  sigma=0.001273
! Fit after  self-cal, rms=0.191884Jy  sigma=0.001273
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)
! Added new window around map position (-3.5, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00673592 Jy
! Component: 100  -  total flux cleaned = 0.00741032 Jy
! Component: 150  -  total flux cleaned = 0.00767846 Jy
! Component: 200  -  total flux cleaned = 0.00779123 Jy
! Total flux subtracted in 200 components = 0.00779123 Jy
! Clean residual min=-0.004333 max=0.003815 Jy/beam
! Clean residual mean=0.000019 rms=0.001050 Jy/beam
! Combined flux in latest and established models = 1.39345 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 65 components and 1.39345 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.191554Jy  sigma=0.001271
! Fit after  self-cal, rms=0.191520Jy  sigma=0.001270
! 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.191520Jy  sigma=0.001270
! Fit after  self-cal, rms=0.191445Jy  sigma=0.001270
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.71 mas, bmaj=7.271 mas, bpa=2.104 degrees
! Estimated noise=792.683 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00152973 Jy
! Component: 100  -  total flux cleaned = 0.00177164 Jy
! Component: 150  -  total flux cleaned = 0.00187506 Jy
! Component: 200  -  total flux cleaned = 0.00187769 Jy
! Total flux subtracted in 200 components = 0.00187769 Jy
! Clean residual min=-0.004182 max=0.003632 Jy/beam
! Clean residual mean=0.000034 rms=0.001005 Jy/beam
! Combined flux in latest and established models = 1.39533 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 72 components and 1.39533 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.191321Jy  sigma=0.001269
! Fit after  self-cal, rms=0.191307Jy  sigma=0.001269
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.000522491 Jy
! Component: 100  -  total flux cleaned = 0.000523293 Jy
! Component: 150  -  total flux cleaned = 0.00059903 Jy
! Component: 200  -  total flux cleaned = 0.000601006 Jy
! Total flux subtracted in 200 components = 0.000601006 Jy
! Clean residual min=-0.004252 max=0.003605 Jy/beam
! Clean residual mean=0.000025 rms=0.000990 Jy/beam
! Combined flux in latest and established models = 1.39593 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 77 components and 1.39593 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.191246Jy  sigma=0.001268
! Fit after  self-cal, rms=0.191240Jy  sigma=0.001268
! 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.191240Jy  sigma=0.001268
! Fit after  self-cal, rms=0.191067Jy  sigma=0.001268
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.253 mas, bmaj=16.57 mas, bpa=2.378 degrees
! Estimated noise=1013.61 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000692678 Jy
! Component: 100  -  total flux cleaned = -0.000689366 Jy
! Component: 150  -  total flux cleaned = -0.000693095 Jy
! Component: 200  -  total flux cleaned = -0.000752922 Jy
! Total flux subtracted in 200 components = -0.000752922 Jy
! Clean residual min=-0.003915 max=0.002937 Jy/beam
! Clean residual mean=0.000123 rms=0.001128 Jy/beam
! Combined flux in latest and established models = 1.39517 Jy
selfcal
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 105 components and 1.39517 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.191055Jy  sigma=0.001268
! Fit after  self-cal, rms=0.191043Jy  sigma=0.001268
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 = 6.19682e-05 Jy
! Component: 100  -  total flux cleaned = 0.000129251 Jy
! Component: 150  -  total flux cleaned = 0.000103082 Jy
! Component: 200  -  total flux cleaned = 5.59219e-05 Jy
! Total flux subtracted in 200 components = 5.59219e-05 Jy
! Clean residual min=-0.003929 max=0.002965 Jy/beam
! Clean residual mean=0.000122 rms=0.001129 Jy/beam
! Combined flux in latest and established models = 1.39523 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 116 components and 1.39523 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.191035Jy  sigma=0.001268
! Fit after  self-cal, rms=0.191031Jy  sigma=0.001268
! 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=2.712 mas, bmaj=7.265 mas, bpa=2.137 degrees
! Estimated noise=792.606 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.712 x 7.265 at 2.137 degrees (North through East)
! Clean map  min=-0.0038423  max=1.2095 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.191031Jy  sigma=0.001268
! Fit after  self-cal, rms=0.177772Jy  sigma=0.001146
! Inverting map and beam 
! Estimated beam: bmin=2.713 mas, bmaj=7.262 mas, bpa=2.137 degrees
! Estimated noise=791.894 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000265679 Jy
! Component: 100  -  total flux cleaned = 0.000187402 Jy
! Component: 150  -  total flux cleaned = 0.000188682 Jy
! Component: 200  -  total flux cleaned = 0.000190312 Jy
! Total flux subtracted in 200 components = 0.000190312 Jy
! Clean residual min=-0.003672 max=0.003371 Jy/beam
! Clean residual mean=0.000096 rms=0.000915 Jy/beam
! Combined flux in latest and established models = 1.39542 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 126 components and 1.39542 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177708Jy  sigma=0.001146
! Fit after  self-cal, rms=0.177704Jy  sigma=0.001146
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000165417 Jy
! Component: 100  -  total flux cleaned = 0.000106588 Jy
! Component: 150  -  total flux cleaned = 0.000107907 Jy
! Component: 200  -  total flux cleaned = 0.0001079 Jy
! Total flux subtracted in 200 components = 0.0001079 Jy
! Clean residual min=-0.003723 max=0.003340 Jy/beam
! Clean residual mean=0.000094 rms=0.000907 Jy/beam
! Combined flux in latest and established models = 1.39553 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 131 components and 1.39553 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177665Jy  sigma=0.001145
! Fit after  self-cal, rms=0.177665Jy  sigma=0.001145
! 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.177665Jy  sigma=0.001145
! Fit after  self-cal, rms=0.177567Jy  sigma=0.001145
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.112 mas, bmaj=4.968 mas, bpa=11.13 degrees
! Estimated noise=1224.04 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.918035 Jy
! Component: 100  -  total flux cleaned = 1.14861 Jy
! Component: 150  -  total flux cleaned = 1.2377 Jy
! Component: 200  -  total flux cleaned = 1.28582 Jy
! Total flux subtracted in 200 components = 1.28582 Jy
! Clean residual min=-0.007342 max=0.024846 Jy/beam
! Clean residual mean=0.000198 rms=0.002739 Jy/beam
! Combined flux in latest and established models = 1.28582 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 29 model components to the UV plane model.
! The established model now contains 29 components and 1.28582 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.715 mas, bmaj=7.263 mas, bpa=2.142 degrees
! Estimated noise=791.769 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.0473593 Jy
! Component: 100  -  total flux cleaned = 0.0720008 Jy
! Component: 150  -  total flux cleaned = 0.0860002 Jy
! Component: 200  -  total flux cleaned = 0.0945411 Jy
! Total flux subtracted in 200 components = 0.0945411 Jy
! Clean residual min=-0.003574 max=0.004849 Jy/beam
! Clean residual mean=0.000332 rms=0.001100 Jy/beam
! Combined flux in latest and established models = 1.38036 Jy
! Adding 60 model components to the UV plane model.
! The established model now contains 80 components and 1.38036 Jy
! Inverting map 
! Added new window around map position (1, -5.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00548085 Jy
! Component: 100  -  total flux cleaned = 0.00901115 Jy
! Component: 150  -  total flux cleaned = 0.0114799 Jy
! Component: 200  -  total flux cleaned = 0.0123996 Jy
! Total flux subtracted in 200 components = 0.0123996 Jy
! Clean residual min=-0.003261 max=0.003226 Jy/beam
! Clean residual mean=0.000136 rms=0.000900 Jy/beam
! Combined flux in latest and established models = 1.39276 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 104 components and 1.39276 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.247 mas, bmaj=16.57 mas, bpa=2.322 degrees
! Estimated noise=1012.22 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00165913 Jy
! Component: 100  -  total flux cleaned = 0.00213224 Jy
! Component: 150  -  total flux cleaned = 0.00215501 Jy
! Component: 200  -  total flux cleaned = 0.00217454 Jy
! Total flux subtracted in 200 components = 0.00217454 Jy
! Clean residual min=-0.003149 max=0.002923 Jy/beam
! Clean residual mean=0.000235 rms=0.001001 Jy/beam
! Combined flux in latest and established models = 1.39494 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 = 1.85609e-05 Jy
! Component: 100  -  total flux cleaned = 3.57342e-05 Jy
! Component: 150  -  total flux cleaned = 3.53814e-05 Jy
! Component: 200  -  total flux cleaned = 3.53505e-05 Jy
! Total flux subtracted in 200 components = 3.53505e-05 Jy
! Clean residual min=-0.003119 max=0.002910 Jy/beam
! Clean residual mean=0.000233 rms=0.000999 Jy/beam
! Combined flux in latest and established models = 1.39497 Jy
! Adding 26 model components to the UV plane model.
! The established model now contains 128 components and 1.39497 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.715 mas, bmaj=7.263 mas, bpa=2.142 degrees
! Estimated noise=791.769 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000512794 Jy
! Component: 100  -  total flux cleaned = -0.000456553 Jy
! Component: 150  -  total flux cleaned = -0.000351109 Jy
! Component: 200  -  total flux cleaned = -0.000254286 Jy
! Total flux subtracted in 200 components = -0.000254286 Jy
! Clean residual min=-0.003310 max=0.003139 Jy/beam
! Clean residual mean=0.000105 rms=0.000884 Jy/beam
! Combined flux in latest and established models = 1.39472 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 136 components and 1.39472 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177476Jy  sigma=0.001145
! Fit after  self-cal, rms=0.177454Jy  sigma=0.001145
wmodel J0457-2324_S_1999_12_20_pus_map.mod
! Writing 136 model components to file: J0457-2324_S_1999_12_20_pus_map.mod
wobs J0457-2324_S_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J0457-2324_S_1999_12_20_pus_uvs.fits
wwins J0457-2324_S_1999_12_20_pus_map.win
! wwins: Wrote 3 windows to J0457-2324_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.000198378 Jy
! Component: 100  -  total flux cleaned = 7.66344e-05 Jy
! Component: 150  -  total flux cleaned = 0.000443133 Jy
! Component: 200  -  total flux cleaned = 0.000595268 Jy
! Component: 250  -  total flux cleaned = 0.00079309 Jy
! Component: 300  -  total flux cleaned = 0.000888567 Jy
! Component: 350  -  total flux cleaned = 0.000841629 Jy
! Component: 400  -  total flux cleaned = 0.00102638 Jy
! Component: 450  -  total flux cleaned = 0.00116164 Jy
! Component: 500  -  total flux cleaned = 0.00125079 Jy
! Component: 550  -  total flux cleaned = 0.00138153 Jy
! Component: 600  -  total flux cleaned = 0.00146736 Jy
! Component: 650  -  total flux cleaned = 0.00155264 Jy
! Component: 700  -  total flux cleaned = 0.00171949 Jy
! Component: 750  -  total flux cleaned = 0.001802 Jy
! Component: 800  -  total flux cleaned = 0.00192394 Jy
! Component: 850  -  total flux cleaned = 0.00204422 Jy
! Component: 900  -  total flux cleaned = 0.00204442 Jy
! Component: 950  -  total flux cleaned = 0.00220204 Jy
! Component: 1000  -  total flux cleaned = 0.0023573 Jy
! Component: 1050  -  total flux cleaned = 0.00247251 Jy
! Component: 1100  -  total flux cleaned = 0.00254829 Jy
! Component: 1150  -  total flux cleaned = 0.00262326 Jy
! Component: 1200  -  total flux cleaned = 0.00262353 Jy
! Component: 1250  -  total flux cleaned = 0.00280861 Jy
! Component: 1300  -  total flux cleaned = 0.00295463 Jy
! Component: 1350  -  total flux cleaned = 0.00302691 Jy
! Component: 1400  -  total flux cleaned = 0.00309873 Jy
! Component: 1450  -  total flux cleaned = 0.00317018 Jy
! Component: 1500  -  total flux cleaned = 0.00331165 Jy
! Component: 1550  -  total flux cleaned = 0.00338168 Jy
! Component: 1600  -  total flux cleaned = 0.00341647 Jy
! Component: 1650  -  total flux cleaned = 0.00352012 Jy
! Component: 1700  -  total flux cleaned = 0.00355422 Jy
! Component: 1750  -  total flux cleaned = 0.00358835 Jy
! Component: 1800  -  total flux cleaned = 0.00365588 Jy
! Component: 1850  -  total flux cleaned = 0.00372283 Jy
! Component: 1900  -  total flux cleaned = 0.00375617 Jy
! Component: 1950  -  total flux cleaned = 0.00382217 Jy
! Component: 2000  -  total flux cleaned = 0.00378935 Jy
! Total flux subtracted in 2048 components = 0.00391979 Jy
! Clean residual min=-0.002223 max=0.001812 Jy/beam
! Clean residual mean=0.000065 rms=0.000665 Jy/beam
! Combined flux in latest and established models = 1.39864 Jy
keep
! Adding 151 model components to the UV plane model.
! The established model now contains 287 components and 1.39864 Jy
![Exited script file: muppet]
wmap "J0457-2324_S_1999_12_20_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.715 x 7.263 at 2.142 degrees (North through East)
! Clean map  min=-0.0029579  max=1.2144 Jy/beam
! Writing clean map to FITS file: J0457-2324_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.21444 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000663803 
device "J0457-2324_S_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J0457-2324_S_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.163978 0.163978 0.327956 0.655912 1.31182 2.62365 5.24729 10.4946 20.9892 41.9784 83.9567
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0019 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.214 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.715 x 7.263 at 2.142 degrees (North through East)
! Clean map  min=-0.0029579  max=1.2144 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0457-2324_S_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J0457-2324_S_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0457-2324_S_1999_12_20_pus_uvs.log closed on Thu Dec 20 14:55:06 2007