! Started logfile: J0539-2839_S_2001_04_09_pus_uvs.log on Fri Oct  5 17:39:15 2007
obs J0539-2839_S_2001_04_09_pus_uva.fits
! Reading UV FITS file: J0539-2839_S_2001_04_09_pus_uva.fits
! AN table 1: 82 integrations on 190 of 190 possible baselines.
! AN table 2: 116 integrations on 190 of 190 possible baselines.
! AN table 3: 17 integrations on 190 of 190 possible baselines.
! AN table 4: 22 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0709083 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0539-2839
! 
! 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.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1953 lines of history.
! 
! Reading 12772 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 J0539-2839_S_2001_04_09_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 1099 telescope corrections were flagged in sub-array 1.
!  A total of 2050 telescope corrections were flagged in sub-array 2.
!  A total of 340 telescope corrections were flagged in sub-array 3.
!  A total of 419 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1099 telescope corrections were flagged in sub-array 1.
!  A total of 2050 telescope corrections were flagged in sub-array 2.
!  A total of 340 telescope corrections were flagged in sub-array 3.
!  A total of 416 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1099 telescope corrections were flagged in sub-array 1.
!  A total of 1971 telescope corrections were flagged in sub-array 2.
!  A total of 340 telescope corrections were flagged in sub-array 3.
!  A total of 416 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1099 telescope corrections were flagged in sub-array 1.
!  A total of 2008 telescope corrections were flagged in sub-array 2.
!  A total of 340 telescope corrections were flagged in sub-array 3.
!  A total of 416 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.201743Jy  sigma=0.009001
! Fit after  self-cal, rms=0.250435Jy  sigma=0.001679
! 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.313 mas, bmaj=4.97 mas, bpa=2.728 degrees
! Estimated noise=1547 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.711446 Jy
! Component: 100  -  total flux cleaned = 0.875629 Jy
! Total flux subtracted in 100 components = 0.875629 Jy
! Clean residual min=-0.025718 max=0.064359 Jy/beam
! Clean residual mean=0.000408 rms=0.008447 Jy/beam
! Combined flux in latest and established models = 0.875629 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 0.875629 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.244004Jy  sigma=0.001674
! Fit after  self-cal, rms=0.243962Jy  sigma=0.001674
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.070464 Jy
! Component: 100  -  total flux cleaned = 0.10662 Jy
! Total flux subtracted in 100 components = 0.10662 Jy
! Clean residual min=-0.021157 max=0.038484 Jy/beam
! Clean residual mean=0.000024 rms=0.005882 Jy/beam
! Combined flux in latest and established models = 0.982249 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 13 components and 0.982249 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224502Jy  sigma=0.001487
! Fit after  self-cal, rms=0.224409Jy  sigma=0.001486
! Inverting map 
! Added new window around map position (4, -5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0346608 Jy
! Component: 100  -  total flux cleaned = 0.0525099 Jy
! Total flux subtracted in 100 components = 0.0525099 Jy
! Clean residual min=-0.020052 max=0.027881 Jy/beam
! Clean residual mean=-0.000163 rms=0.004992 Jy/beam
! Combined flux in latest and established models = 1.03476 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 24 components and 1.03476 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.219081Jy  sigma=0.001432
! Fit after  self-cal, rms=0.218431Jy  sigma=0.001427
! 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.849 mas, bmaj=7.199 mas, bpa=-5.574 degrees
! Estimated noise=865.503 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.0162299 Jy
! Component: 100  -  total flux cleaned = 0.0183359 Jy
! Component: 150  -  total flux cleaned = 0.020305 Jy
! Component: 200  -  total flux cleaned = 0.0213936 Jy
! Total flux subtracted in 200 components = 0.0213936 Jy
! Clean residual min=-0.013907 max=0.021139 Jy/beam
! Clean residual mean=-0.000590 rms=0.003949 Jy/beam
! Combined flux in latest and established models = 1.05615 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 40 components and 1.05615 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.216629Jy  sigma=0.001407
! Fit after  self-cal, rms=0.216393Jy  sigma=0.001405
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        0.97     GC        1.00*    GG        1.00*    
!   HH        1.12     HN        1.08     KK        1.08     KP        0.89     
!   LA        0.97     MA        1.00*    MC        1.00*    MK        0.99     
!   NL        1.01     NY        1.00*    OV        1.05     PT        0.96     
!   SC        1.02     TS        1.00*    WF        0.97     WZ        1.00*    
! 
!  A total of 150 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.10     FD        0.94     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.00*    KP        0.95     
!   LA        0.95     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        0.88     NY        1.00*    OV        1.05     PT        0.95     
!   SC        0.95     TS        1.00*    WF        0.99     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.96     GC        1.00*    GG        1.00*    
!   HH        1.05     HN        1.07     KK        1.09     KP        1.24     
!   LA        1.00     MA        1.00*    MC        1.00*    MK        1.02     
!   NL        1.02     NY        1.00*    OV        1.02     PT        0.99     
!   SC        1.01     TS        1.00*    WF        1.02     WZ        1.00*    
! 
!  A total of 150 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.09     FD        0.95     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.01     KK        1.00*    KP        2.04     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        0.90     NY        1.00*    OV        1.05     PT        0.98     
!   SC        0.95     TS        1.00*    WF        0.98     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.08     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.04     HN        1.11     KK        1.03     KP        0.98     
!   LA        0.95     MA        1.00*    MC        1.00*    MK        0.96     
!   NL        1.02     NY        1.00*    OV        1.02     PT        0.98     
!   SC        0.99     TS        1.00*    WF        0.96     WZ        1.00*    
! 
!  A total of 189 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.14     FD        0.94     GC        1.00*    GG        1.00*    
!   HH        0.96     HN        1.03     KK        1.00*    KP        0.92     
!   LA        0.98     MA        0.99     MC        0.94     MK        1.00*    
!   NL        0.89     NY        1.00*    OV        1.03     PT        0.97     
!   SC        0.93     TS        1.00*    WF        0.94     WZ        1.06     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        0.92     HN        1.12     KK        1.05     KP        0.97     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        0.95     
!   NL        1.00     NY        1.00*    OV        1.01     PT        0.99     
!   SC        0.99     TS        1.00*    WF        0.93     WZ        1.00*    
! 
!  A total of 156 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.09     FD        0.96     GC        1.00*    GG        1.00*    
!   HH        1.02     HN        1.03     KK        1.00*    KP        0.96     
!   LA        0.99     MA        1.04     MC        0.98     MK        1.00*    
!   NL        0.91     NY        1.00*    OV        1.01     PT        0.88     
!   SC        0.97     TS        1.00*    WF        0.94     WZ        1.28     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Fit before self-cal, rms=0.216393Jy  sigma=0.001405
! Fit after  self-cal, rms=0.204469Jy  sigma=0.001276
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.822 mas, bmaj=7.355 mas, bpa=-6.097 degrees
! Estimated noise=886.087 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.00505087 Jy
! Component: 100  -  total flux cleaned = -0.00603735 Jy
! Component: 150  -  total flux cleaned = -0.00664141 Jy
! Component: 200  -  total flux cleaned = -0.00663249 Jy
! Total flux subtracted in 200 components = -0.00663249 Jy
! Clean residual min=-0.005530 max=0.005817 Jy/beam
! Clean residual mean=-0.000130 rms=0.001560 Jy/beam
! Combined flux in latest and established models = 1.04952 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 48 components and 1.04952 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.204067Jy  sigma=0.001274
! Fit after  self-cal, rms=0.204347Jy  sigma=0.001273
! 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.204347Jy  sigma=0.001273
! Fit after  self-cal, rms=0.204109Jy  sigma=0.001271
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.824 mas, bmaj=7.362 mas, bpa=-6.121 degrees
! Estimated noise=885.531 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00237576 Jy
! Component: 100  -  total flux cleaned = -0.00284681 Jy
! Component: 150  -  total flux cleaned = -0.00313267 Jy
! Component: 200  -  total flux cleaned = -0.0031285 Jy
! Total flux subtracted in 200 components = -0.0031285 Jy
! Clean residual min=-0.004400 max=0.005500 Jy/beam
! Clean residual mean=-0.000079 rms=0.001427 Jy/beam
! Combined flux in latest and established models = 1.04639 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 57 components and 1.04639 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.203962Jy  sigma=0.001270
! Fit after  self-cal, rms=0.204110Jy  sigma=0.001270
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.000263164 Jy
! Component: 100  -  total flux cleaned = -0.000191111 Jy
! Component: 150  -  total flux cleaned = -0.000189693 Jy
! Component: 200  -  total flux cleaned = -0.000189941 Jy
! Total flux subtracted in 200 components = -0.000189941 Jy
! Clean residual min=-0.004358 max=0.005478 Jy/beam
! Clean residual mean=-0.000077 rms=0.001396 Jy/beam
! Combined flux in latest and established models = 1.0462 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 61 components and 1.0462 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.204059Jy  sigma=0.001270
! Fit after  self-cal, rms=0.204060Jy  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.204060Jy  sigma=0.001270
! Fit after  self-cal, rms=0.204282Jy  sigma=0.001270
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.824 mas, bmaj=7.361 mas, bpa=-6.102 degrees
! Estimated noise=885.153 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000694998 Jy
! Component: 100  -  total flux cleaned = -0.00102367 Jy
! Component: 150  -  total flux cleaned = -0.00113781 Jy
! Component: 200  -  total flux cleaned = -0.00123884 Jy
! Total flux subtracted in 200 components = -0.00123884 Jy
! Clean residual min=-0.004263 max=0.005548 Jy/beam
! Clean residual mean=-0.000037 rms=0.001356 Jy/beam
! Combined flux in latest and established models = 1.04496 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 64 components and 1.04496 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.204236Jy  sigma=0.001270
! Fit after  self-cal, rms=0.204336Jy  sigma=0.001270
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.000154308 Jy
! Component: 100  -  total flux cleaned = -0.000246787 Jy
! Component: 150  -  total flux cleaned = -0.000290077 Jy
! Component: 200  -  total flux cleaned = -0.000370319 Jy
! Total flux subtracted in 200 components = -0.000370319 Jy
! Clean residual min=-0.004270 max=0.005476 Jy/beam
! Clean residual mean=-0.000035 rms=0.001343 Jy/beam
! Combined flux in latest and established models = 1.04459 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 67 components and 1.04459 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.204312Jy  sigma=0.001269
! Fit after  self-cal, rms=0.204314Jy  sigma=0.001269
! 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.204314Jy  sigma=0.001269
! Fit after  self-cal, rms=0.204504Jy  sigma=0.001269
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.317 mas, bmaj=18.73 mas, bpa=-1.551 degrees
! Estimated noise=1151.69 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000548809 Jy
! Component: 100  -  total flux cleaned = -0.000520586 Jy
! Component: 150  -  total flux cleaned = -0.000492332 Jy
! Component: 200  -  total flux cleaned = -0.000491466 Jy
! Total flux subtracted in 200 components = -0.000491466 Jy
! Clean residual min=-0.004979 max=0.008460 Jy/beam
! Clean residual mean=-0.000032 rms=0.002096 Jy/beam
! Combined flux in latest and established models = 1.0441 Jy
selfcal
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 72 components and 1.0441 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.204511Jy  sigma=0.001269
! Fit after  self-cal, rms=0.204563Jy  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 = -8.23974e-05 Jy
! Component: 100  -  total flux cleaned = -3.28835e-05 Jy
! Component: 150  -  total flux cleaned = 1.02054e-05 Jy
! Component: 200  -  total flux cleaned = 9.8442e-06 Jy
! Total flux subtracted in 200 components = 9.8442e-06 Jy
! Clean residual min=-0.004929 max=0.008495 Jy/beam
! Clean residual mean=-0.000031 rms=0.002094 Jy/beam
! Combined flux in latest and established models = 1.04411 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 73 components and 1.04411 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.204574Jy  sigma=0.001269
! Fit after  self-cal, rms=0.204571Jy  sigma=0.001269
! 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.824 mas, bmaj=7.36 mas, bpa=-6.085 degrees
! Estimated noise=885.124 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.824 x 7.36 at -6.085 degrees (North through East)
! Clean map  min=-0.0039582  max=0.91415 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.204571Jy  sigma=0.001269
! Fit after  self-cal, rms=0.409177Jy  sigma=0.001160
! Inverting map and beam 
! Estimated beam: bmin=2.826 mas, bmaj=7.365 mas, bpa=-6.057 degrees
! Estimated noise=885.048 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000359079 Jy
! Component: 100  -  total flux cleaned = -0.000416753 Jy
! Component: 150  -  total flux cleaned = -0.000414739 Jy
! Component: 200  -  total flux cleaned = -0.000371398 Jy
! Total flux subtracted in 200 components = -0.000371398 Jy
! Clean residual min=-0.004249 max=0.005747 Jy/beam
! Clean residual mean=0.000098 rms=0.001321 Jy/beam
! Combined flux in latest and established models = 1.04374 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 77 components and 1.04374 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.409150Jy  sigma=0.001160
! Fit after  self-cal, rms=0.409160Jy  sigma=0.001160
! Inverting map 
! Added new window around map position (16.5, -18.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00544238 Jy
! Component: 100  -  total flux cleaned = 0.00805076 Jy
! Component: 150  -  total flux cleaned = 0.00926212 Jy
! Component: 200  -  total flux cleaned = 0.00963471 Jy
! Total flux subtracted in 200 components = 0.00963471 Jy
! Clean residual min=-0.003904 max=0.004864 Jy/beam
! Clean residual mean=0.000022 rms=0.001144 Jy/beam
! Combined flux in latest and established models = 1.05337 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 92 components and 1.05337 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.409024Jy  sigma=0.001158
! Fit after  self-cal, rms=0.409051Jy  sigma=0.001158
! 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.409051Jy  sigma=0.001158
! Fit after  self-cal, rms=0.620672Jy  sigma=0.001158
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.367 mas, bmaj=5.121 mas, bpa=2.355 degrees
! Estimated noise=1575.82 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.711801 Jy
! Component: 100  -  total flux cleaned = 0.874421 Jy
! Component: 150  -  total flux cleaned = 0.942749 Jy
! Component: 200  -  total flux cleaned = 0.981983 Jy
! Total flux subtracted in 200 components = 0.981983 Jy
! Clean residual min=-0.008326 max=0.019755 Jy/beam
! Clean residual mean=0.000198 rms=0.002857 Jy/beam
! Combined flux in latest and established models = 0.981983 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 19 model components to the UV plane model.
! The established model now contains 19 components and 0.981983 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.826 mas, bmaj=7.365 mas, bpa=-6.047 degrees
! Estimated noise=885.098 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.0290781 Jy
! Component: 100  -  total flux cleaned = 0.0444404 Jy
! Component: 150  -  total flux cleaned = 0.0532829 Jy
! Component: 200  -  total flux cleaned = 0.0594565 Jy
! Total flux subtracted in 200 components = 0.0594565 Jy
! Clean residual min=-0.004581 max=0.005566 Jy/beam
! Clean residual mean=0.000120 rms=0.001369 Jy/beam
! Combined flux in latest and established models = 1.04144 Jy
! Adding 28 model components to the UV plane model.
! The established model now contains 44 components and 1.04144 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.317 mas, bmaj=18.72 mas, bpa=-1.541 degrees
! Estimated noise=1151.04 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0065352 Jy
! Component: 100  -  total flux cleaned = 0.0103019 Jy
! Component: 150  -  total flux cleaned = 0.0127071 Jy
! Component: 200  -  total flux cleaned = 0.0134745 Jy
! Total flux subtracted in 200 components = 0.0134745 Jy
! Clean residual min=-0.004880 max=0.004377 Jy/beam
! Clean residual mean=0.000084 rms=0.001563 Jy/beam
! Combined flux in latest and established models = 1.05491 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.000292821 Jy
! Component: 100  -  total flux cleaned = 0.000553427 Jy
! Component: 150  -  total flux cleaned = 0.000689435 Jy
! Component: 200  -  total flux cleaned = 0.000813081 Jy
! Total flux subtracted in 200 components = 0.000813081 Jy
! Clean residual min=-0.004837 max=0.004357 Jy/beam
! Clean residual mean=0.000072 rms=0.001522 Jy/beam
! Combined flux in latest and established models = 1.05573 Jy
! Adding 33 model components to the UV plane model.
! The established model now contains 75 components and 1.05573 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.826 mas, bmaj=7.365 mas, bpa=-6.047 degrees
! Estimated noise=885.098 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 7.98689e-05 Jy
! Component: 100  -  total flux cleaned = 0.000185181 Jy
! Component: 150  -  total flux cleaned = 0.000277444 Jy
! Component: 200  -  total flux cleaned = 0.00027651 Jy
! Total flux subtracted in 200 components = 0.00027651 Jy
! Clean residual min=-0.003917 max=0.005413 Jy/beam
! Clean residual mean=0.000029 rms=0.001155 Jy/beam
! Combined flux in latest and established models = 1.056 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 84 components and 1.056 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.620674Jy  sigma=0.001159
! Fit after  self-cal, rms=0.620763Jy  sigma=0.001159
wmodel J0539-2839_S_2001_04_09_pus_map.mod
! Writing 84 model components to file: J0539-2839_S_2001_04_09_pus_map.mod
wobs J0539-2839_S_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J0539-2839_S_2001_04_09_pus_uvs.fits
wwins J0539-2839_S_2001_04_09_pus_map.win
! wwins: Wrote 3 windows to J0539-2839_S_2001_04_09_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.00154156 Jy
! Component: 100  -  total flux cleaned = 0.00161141 Jy
! Component: 150  -  total flux cleaned = 0.00154971 Jy
! Component: 200  -  total flux cleaned = 0.00149075 Jy
! Component: 250  -  total flux cleaned = 0.00137504 Jy
! Component: 300  -  total flux cleaned = 0.00126396 Jy
! Component: 350  -  total flux cleaned = 0.00110465 Jy
! Component: 400  -  total flux cleaned = 0.00110552 Jy
! Component: 450  -  total flux cleaned = 0.00120645 Jy
! Component: 500  -  total flux cleaned = 0.00130502 Jy
! Component: 550  -  total flux cleaned = 0.00144888 Jy
! Component: 600  -  total flux cleaned = 0.00154105 Jy
! Component: 650  -  total flux cleaned = 0.00167738 Jy
! Component: 700  -  total flux cleaned = 0.0018094 Jy
! Component: 750  -  total flux cleaned = 0.00189689 Jy
! Component: 800  -  total flux cleaned = 0.00202622 Jy
! Component: 850  -  total flux cleaned = 0.00215241 Jy
! Component: 900  -  total flux cleaned = 0.00223464 Jy
! Component: 950  -  total flux cleaned = 0.00227501 Jy
! Component: 1000  -  total flux cleaned = 0.00223483 Jy
! Component: 1050  -  total flux cleaned = 0.00215695 Jy
! Component: 1100  -  total flux cleaned = 0.00219669 Jy
! Component: 1150  -  total flux cleaned = 0.00227359 Jy
! Component: 1200  -  total flux cleaned = 0.00223553 Jy
! Component: 1250  -  total flux cleaned = 0.00223592 Jy
! Component: 1300  -  total flux cleaned = 0.00230942 Jy
! Component: 1350  -  total flux cleaned = 0.00227325 Jy
! Component: 1400  -  total flux cleaned = 0.00230933 Jy
! Component: 1450  -  total flux cleaned = 0.00234458 Jy
! Component: 1500  -  total flux cleaned = 0.00237943 Jy
! Component: 1550  -  total flux cleaned = 0.00237921 Jy
! Component: 1600  -  total flux cleaned = 0.00248213 Jy
! Component: 1650  -  total flux cleaned = 0.00248249 Jy
! Component: 1700  -  total flux cleaned = 0.00251563 Jy
! Component: 1750  -  total flux cleaned = 0.00251567 Jy
! Component: 1800  -  total flux cleaned = 0.00254836 Jy
! Component: 1850  -  total flux cleaned = 0.00254859 Jy
! Component: 1900  -  total flux cleaned = 0.00261256 Jy
! Component: 1950  -  total flux cleaned = 0.0025487 Jy
! Component: 2000  -  total flux cleaned = 0.00258011 Jy
! Total flux subtracted in 2048 components = 0.00251853 Jy
! Clean residual min=-0.001785 max=0.001768 Jy/beam
! Clean residual mean=0.000021 rms=0.000614 Jy/beam
! Combined flux in latest and established models = 1.05852 Jy
keep
! Adding 136 model components to the UV plane model.
! The established model now contains 220 components and 1.05852 Jy
![Exited script file: muppet]
wmap "J0539-2839_S_2001_04_09_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.826 x 7.365 at -6.047 degrees (North through East)
! Clean map  min=-0.0027995  max=0.91481 Jy/beam
! Writing clean map to FITS file: J0539-2839_S_2001_04_09_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.914807 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000614978 
device "J0539-2839_S_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J0539-2839_S_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.201675 0.201675 0.403349 0.806699 1.6134 3.22679 6.45359 12.9072 25.8144 51.6287
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0018 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.914 
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.826 x 7.365 at -6.047 degrees (North through East)
! Clean map  min=-0.0027995  max=0.91481 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0539-2839_S_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J0539-2839_S_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0539-2839_S_2001_04_09_pus_uvs.log closed on Fri Oct  5 17:39:25 2007