! Started logfile: J0730-1141_X_1999_12_20_pus_uvs.log on Mon Dec 17 16:59:51 2007
obs J0730-1141_X_1999_12_20_pus_uva.fits
! Reading UV FITS file: J0730-1141_X_1999_12_20_pus_uva.fits
! AN table 1: 82 integrations on 190 of 190 possible baselines.
! AN table 2: 56 integrations on 190 of 190 possible baselines.
! AN table 3: 110 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.107937 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0730-1141
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2511 lines of history.
! 
! Reading 20344 visibilities.
select I
! Polarization I is unavailable.
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
print "field_size =",field_size
! field_size = 256 
print "field_cell =",field_cell
! field_cell = 0.2 
print "taper_size =",taper_size
! taper_size = 70 
![@muppet J0730-1141_X_1999_12_20_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 256x256 pixels with 0.200x0.200 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 1544 telescope corrections were flagged in sub-array 1.
!  A total of 871 telescope corrections were flagged in sub-array 2.
!  A total of 1278 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1544 telescope corrections were flagged in sub-array 1.
!  A total of 871 telescope corrections were flagged in sub-array 2.
!  A total of 1278 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1544 telescope corrections were flagged in sub-array 1.
!  A total of 871 telescope corrections were flagged in sub-array 2.
!  A total of 1278 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1544 telescope corrections were flagged in sub-array 1.
!  A total of 871 telescope corrections were flagged in sub-array 2.
!  A total of 1278 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.422045Jy  sigma=0.014490
! Fit after  self-cal, rms=0.706804Jy  sigma=0.007535
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.678% of the data.
!  The x-axis pixel size should ideally be below 0.1907 milli-arcsec
! Estimated beam: bmin=0.5988 mas, bmaj=1.931 mas, bpa=-6.472 degrees
! Estimated noise=822.128 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 = 1.11476 Jy
! Component: 100  -  total flux cleaned = 1.45445 Jy
! Total flux subtracted in 100 components = 1.45445 Jy
! Clean residual min=-0.043857 max=0.153597 Jy/beam
! Clean residual mean=0.001874 rms=0.015492 Jy/beam
! Combined flux in latest and established models = 1.45445 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 1.45445 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.385441Jy  sigma=0.003908
! Fit after  self-cal, rms=0.385155Jy  sigma=0.003907
! Inverting map 
! Your choice of large map pixels excluded 0.678% of the data.
!  The x-axis pixel size should ideally be below 0.1907 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.173064 Jy
! Component: 100  -  total flux cleaned = 0.266899 Jy
! Total flux subtracted in 100 components = 0.266899 Jy
! Clean residual min=-0.043312 max=0.071359 Jy/beam
! Clean residual mean=0.000993 rms=0.009236 Jy/beam
! Combined flux in latest and established models = 1.72135 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 13 components and 1.72135 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.258707Jy  sigma=0.002334
! Fit after  self-cal, rms=0.258550Jy  sigma=0.002333
! Inverting map 
! Your choice of large map pixels excluded 0.678% of the data.
!  The x-axis pixel size should ideally be below 0.1907 milli-arcsec
! Added new window around map position (0.6, -2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0588897 Jy
! Component: 100  -  total flux cleaned = 0.0804735 Jy
! Total flux subtracted in 100 components = 0.0804735 Jy
! Clean residual min=-0.039488 max=0.046787 Jy/beam
! Clean residual mean=0.000758 rms=0.007799 Jy/beam
! Combined flux in latest and established models = 1.80182 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 22 components and 1.80182 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.236333Jy  sigma=0.002037
! Fit after  self-cal, rms=0.236024Jy  sigma=0.002031
! Inverting map 
! Your choice of large map pixels excluded 0.678% of the data.
!  The x-axis pixel size should ideally be below 0.1907 milli-arcsec
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
win_mult = win_mult * 1.6
clean_niter = clean_niter * 2
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.678% of the data.
!  The x-axis pixel size should ideally be below 0.1907 milli-arcsec
! Estimated beam: bmin=0.8251 mas, bmaj=2.35 mas, bpa=-7.614 degrees
! Estimated noise=506.418 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (-1.6, 0.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0626011 Jy
! Component: 100  -  total flux cleaned = 0.100174 Jy
! Component: 150  -  total flux cleaned = 0.125471 Jy
! Component: 200  -  total flux cleaned = 0.143965 Jy
! Total flux subtracted in 200 components = 0.143965 Jy
! Clean residual min=-0.015175 max=0.024527 Jy/beam
! Clean residual mean=0.002010 rms=0.004865 Jy/beam
! Combined flux in latest and established models = 1.94578 Jy
! Performing phase self-cal
! Adding 43 model components to the UV plane model.
! The established model now contains 63 components and 1.94578 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.219670Jy  sigma=0.001761
! Fit after  self-cal, rms=0.218382Jy  sigma=0.001744
! Inverting map 
! Your choice of large map pixels excluded 0.678% of the data.
!  The x-axis pixel size should ideally be below 0.1907 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 96 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   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 39 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.95     GC        1.00*    HH        1.00*    
!   HN        1.03     KK        1.00*    KP        0.96     LA        1.08     
!   MC        1.23     MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.22     PT        0.93     SC        0.99     TS        1.00*    
!   WF        0.98     WZ        1.50     GN        1.06     NL        1.06     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00     GC        1.00*    HH        1.00*    
!   HN        0.97     KK        0.95     KP        0.99     LA        1.01     
!   MC        1.00*    MK        1.02     NY        1.00*    ON        1.00*    
!   OV        0.99     PT        0.98     SC        1.04     TS        1.00*    
!   WF        0.98     WZ        1.00*    GN        1.04     NL        1.01     
! 
! 
! Correcting IF 2.
!  A total of 96 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   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 39 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.94     GC        1.00*    HH        1.00*    
!   HN        1.02     KK        1.00*    KP        0.91     LA        1.08     
!   MC        1.22     MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.24     PT        0.92     SC        0.95     TS        1.00*    
!   WF        0.98     WZ        1.66     GN        1.05     NL        1.08     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00     GC        1.00*    HH        1.00*    
!   HN        0.96     KK        0.95     KP        0.95     LA        1.01     
!   MC        1.00*    MK        1.03     NY        1.00*    ON        1.00*    
!   OV        1.00     PT        0.97     SC        0.99     TS        1.00*    
!   WF        0.99     WZ        1.00*    GN        1.03     NL        1.00     
! 
! 
! Correcting IF 3.
!  A total of 96 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   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 39 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.96     GC        1.00*    HH        1.00*    
!   HN        1.03     KK        1.00*    KP        0.93     LA        1.08     
!   MC        1.23     MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.24     PT        0.94     SC        0.96     TS        1.00*    
!   WF        0.96     WZ        2.80     GN        1.04     NL        1.07     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.00     GC        1.00*    HH        1.00*    
!   HN        0.98     KK        0.93     KP        0.96     LA        1.00     
!   MC        1.00*    MK        1.02     NY        1.00*    ON        1.00*    
!   OV        0.99     PT        0.98     SC        0.99     TS        1.00*    
!   WF        0.99     WZ        1.00*    GN        1.04     NL        1.01     
! 
! 
! Correcting IF 4.
!  A total of 96 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   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 39 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.97     GC        1.00*    HH        1.00*    
!   HN        1.05     KK        1.00*    KP        0.91     LA        1.10     
!   MC        1.30     MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.23     PT        0.94     SC        0.97     TS        1.00*    
!   WF        0.96     WZ        1.64     GN        1.05     NL        1.08     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.00     GC        1.00*    HH        1.00*    
!   HN        0.97     KK        0.94     KP        0.95     LA        1.01     
!   MC        1.00*    MK        0.98     NY        1.00*    ON        1.00*    
!   OV        0.99     PT        0.98     SC        1.00     TS        1.00*    
!   WF        0.98     WZ        1.00*    GN        1.05     NL        1.01     
! 
! 
! Fit before self-cal, rms=0.218382Jy  sigma=0.001744
! Fit after  self-cal, rms=0.208318Jy  sigma=0.001439
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.697% of the data.
!  The x-axis pixel size should ideally be below 0.1907 milli-arcsec
! Estimated beam: bmin=0.8466 mas, bmaj=2.362 mas, bpa=-8.391 degrees
! Estimated noise=508.915 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.0152159 Jy
! Component: 100  -  total flux cleaned = 0.0166431 Jy
! Component: 150  -  total flux cleaned = 0.0172711 Jy
! Component: 200  -  total flux cleaned = 0.0180429 Jy
! Total flux subtracted in 200 components = 0.0180429 Jy
! Clean residual min=-0.010225 max=0.015193 Jy/beam
! Clean residual mean=0.000617 rms=0.003152 Jy/beam
! Combined flux in latest and established models = 1.96383 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 79 components and 1.96383 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206813Jy  sigma=0.001410
! Fit after  self-cal, rms=0.206599Jy  sigma=0.001406
! Inverting map 
! Your choice of large map pixels excluded 0.697% of the data.
!  The x-axis pixel size should ideally be below 0.1907 milli-arcsec
selfcal true, true, soltime1
! Performing amp+phase self-cal over 120 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206599Jy  sigma=0.001406
! Fit after  self-cal, rms=0.203720Jy  sigma=0.001332
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.697% of the data.
!  The x-axis pixel size should ideally be below 0.1907 milli-arcsec
! Estimated beam: bmin=0.8495 mas, bmaj=2.37 mas, bpa=-8.269 degrees
! Estimated noise=510.09 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0037397 Jy
! Component: 100  -  total flux cleaned = 0.00430591 Jy
! Component: 150  -  total flux cleaned = 0.00502902 Jy
! Component: 200  -  total flux cleaned = 0.00546063 Jy
! Total flux subtracted in 200 components = 0.00546063 Jy
! Clean residual min=-0.006688 max=0.010007 Jy/beam
! Clean residual mean=0.000772 rms=0.002182 Jy/beam
! Combined flux in latest and established models = 1.96929 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 97 components and 1.96929 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.203038Jy  sigma=0.001320
! Fit after  self-cal, rms=0.202930Jy  sigma=0.001318
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.697% of the data.
!  The x-axis pixel size should ideally be below 0.1907 milli-arcsec
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0.8, 4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00662574 Jy
! Component: 100  -  total flux cleaned = 0.00737055 Jy
! Component: 150  -  total flux cleaned = 0.00737654 Jy
! Component: 200  -  total flux cleaned = 0.00737136 Jy
! Total flux subtracted in 200 components = 0.00737136 Jy
! Clean residual min=-0.006484 max=0.007938 Jy/beam
! Clean residual mean=0.000631 rms=0.001943 Jy/beam
! Combined flux in latest and established models = 1.97666 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 112 components and 1.97666 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.202284Jy  sigma=0.001310
! Fit after  self-cal, rms=0.202227Jy  sigma=0.001309
! Inverting map 
! Your choice of large map pixels excluded 0.697% of the data.
!  The x-axis pixel size should ideally be below 0.1907 milli-arcsec
selfcal true, true, soltime2
! Performing amp+phase self-cal over 20 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.202227Jy  sigma=0.001309
! Fit after  self-cal, rms=0.202675Jy  sigma=0.001303
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.697% of the data.
!  The x-axis pixel size should ideally be below 0.1907 milli-arcsec
! Estimated beam: bmin=0.8503 mas, bmaj=2.372 mas, bpa=-8.237 degrees
! Estimated noise=509.934 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000433923 Jy
! Component: 100  -  total flux cleaned = 0.00168703 Jy
! Component: 150  -  total flux cleaned = 0.00222635 Jy
! Component: 200  -  total flux cleaned = 0.00238674 Jy
! Total flux subtracted in 200 components = 0.00238674 Jy
! Clean residual min=-0.005982 max=0.006529 Jy/beam
! Clean residual mean=0.000596 rms=0.001808 Jy/beam
! Combined flux in latest and established models = 1.97905 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 124 components and 1.97905 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.202343Jy  sigma=0.001297
! Fit after  self-cal, rms=0.202310Jy  sigma=0.001297
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.697% of the data.
!  The x-axis pixel size should ideally be below 0.1907 milli-arcsec
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000451458 Jy
! Component: 100  -  total flux cleaned = 0.000907871 Jy
! Component: 150  -  total flux cleaned = 0.00090856 Jy
! Component: 200  -  total flux cleaned = 0.00104348 Jy
! Total flux subtracted in 200 components = 0.00104348 Jy
! Clean residual min=-0.005774 max=0.006343 Jy/beam
! Clean residual mean=0.000578 rms=0.001749 Jy/beam
! Combined flux in latest and established models = 1.98009 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 130 components and 1.98009 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.202128Jy  sigma=0.001294
! Fit after  self-cal, rms=0.202109Jy  sigma=0.001294
! Inverting map 
! Your choice of large map pixels excluded 0.697% of the data.
!  The x-axis pixel size should ideally be below 0.1907 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
win_mult = win_mult * 1.2
selfcal true, true, soltime2
! Performing amp+phase self-cal over 20 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.202109Jy  sigma=0.001294
! Fit after  self-cal, rms=0.202943Jy  sigma=0.001293
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.697% of the data.
!  The x-axis pixel size should ideally be below 0.1907 milli-arcsec
! Estimated beam: bmin=2.193 mas, bmaj=3.862 mas, bpa=-1.952 degrees
! Estimated noise=620.325 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00365943 Jy
! Component: 100  -  total flux cleaned = 0.00530975 Jy
! Component: 150  -  total flux cleaned = 0.00619774 Jy
! Component: 200  -  total flux cleaned = 0.00642448 Jy
! Total flux subtracted in 200 components = 0.00642448 Jy
! Clean residual min=-0.005287 max=0.007159 Jy/beam
! Clean residual mean=0.001000 rms=0.002330 Jy/beam
! Combined flux in latest and established models = 1.98651 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 141 components and 1.98651 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.202919Jy  sigma=0.001292
! Fit after  self-cal, rms=0.202903Jy  sigma=0.001292
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.697% of the data.
!  The x-axis pixel size should ideally be below 0.1907 milli-arcsec
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0007252 Jy
! Component: 100  -  total flux cleaned = 0.00118708 Jy
! Component: 150  -  total flux cleaned = 0.00143741 Jy
! Component: 200  -  total flux cleaned = 0.00155036 Jy
! Total flux subtracted in 200 components = 0.00155036 Jy
! Clean residual min=-0.005271 max=0.007004 Jy/beam
! Clean residual mean=0.000947 rms=0.002276 Jy/beam
! Combined flux in latest and established models = 1.98806 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 146 components and 1.98806 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.202905Jy  sigma=0.001291
! Fit after  self-cal, rms=0.202889Jy  sigma=0.001291
! Inverting map 
! Your choice of large map pixels excluded 0.697% of the data.
!  The x-axis pixel size should ideally be below 0.1907 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Your choice of large map pixels excluded 0.697% of the data.
!  The x-axis pixel size should ideally be below 0.1907 milli-arcsec
! Estimated beam: bmin=0.8516 mas, bmaj=2.374 mas, bpa=-8.191 degrees
! Estimated noise=510.023 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8516 x 2.374 at -8.191 degrees (North through East)
! Clean map  min=-0.007397  max=1.5649 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.202889Jy  sigma=0.001291
! Fit after  self-cal, rms=0.211242Jy  sigma=0.001167
! Inverting map and beam 
! Your choice of large map pixels excluded 0.697% of the data.
!  The x-axis pixel size should ideally be below 0.1907 milli-arcsec
! Estimated beam: bmin=0.8513 mas, bmaj=2.374 mas, bpa=-8.204 degrees
! Estimated noise=509.635 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00225653 Jy
! Component: 100  -  total flux cleaned = -0.00225894 Jy
! Component: 150  -  total flux cleaned = -0.00212776 Jy
! Component: 200  -  total flux cleaned = -0.00188547 Jy
! Total flux subtracted in 200 components = -0.00188547 Jy
! Clean residual min=-0.004674 max=0.005299 Jy/beam
! Clean residual mean=0.000452 rms=0.001512 Jy/beam
! Combined flux in latest and established models = 1.98618 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 159 components and 1.98618 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.211118Jy  sigma=0.001164
! Fit after  self-cal, rms=0.211115Jy  sigma=0.001164
! Inverting map 
! Your choice of large map pixels excluded 0.697% of the data.
!  The x-axis pixel size should ideally be below 0.1907 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -3.99245e-05 Jy
! Component: 100  -  total flux cleaned = 7.27016e-05 Jy
! Component: 150  -  total flux cleaned = 0.000180479 Jy
! Component: 200  -  total flux cleaned = 0.000283689 Jy
! Total flux subtracted in 200 components = 0.000283689 Jy
! Clean residual min=-0.004634 max=0.005332 Jy/beam
! Clean residual mean=0.000446 rms=0.001488 Jy/beam
! Combined flux in latest and established models = 1.98646 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 164 components and 1.98646 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.211026Jy  sigma=0.001163
! Fit after  self-cal, rms=0.211012Jy  sigma=0.001162
! Inverting map 
! Your choice of large map pixels excluded 0.697% of the data.
!  The x-axis pixel size should ideally be below 0.1907 milli-arcsec
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.211012Jy  sigma=0.001162
! Fit after  self-cal, rms=0.212133Jy  sigma=0.001162
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.697% of the data.
!  The x-axis pixel size should ideally be below 0.1907 milli-arcsec
! Estimated beam: bmin=0.6276 mas, bmaj=1.967 mas, bpa=-7.926 degrees
! Estimated noise=846.767 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.13935 Jy
! Component: 100  -  total flux cleaned = 1.46144 Jy
! Component: 150  -  total flux cleaned = 1.61906 Jy
! Component: 200  -  total flux cleaned = 1.7022 Jy
! Total flux subtracted in 200 components = 1.7022 Jy
! Clean residual min=-0.016451 max=0.041595 Jy/beam
! Clean residual mean=0.000967 rms=0.006162 Jy/beam
! Combined flux in latest and established models = 1.7022 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 12 model components to the UV plane model.
! The established model now contains 12 components and 1.7022 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 0.697% of the data.
!  The x-axis pixel size should ideally be below 0.1907 milli-arcsec
! Estimated beam: bmin=0.8524 mas, bmaj=2.375 mas, bpa=-8.167 degrees
! Estimated noise=509.631 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.0908061 Jy
! Component: 100  -  total flux cleaned = 0.146428 Jy
! Component: 150  -  total flux cleaned = 0.183618 Jy
! Component: 200  -  total flux cleaned = 0.209782 Jy
! Total flux subtracted in 200 components = 0.209782 Jy
! Clean residual min=-0.007929 max=0.015861 Jy/beam
! Clean residual mean=0.001755 rms=0.003776 Jy/beam
! Combined flux in latest and established models = 1.91199 Jy
! Adding 66 model components to the UV plane model.
! The established model now contains 74 components and 1.91199 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.697% of the data.
!  The x-axis pixel size should ideally be below 0.1907 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.697% of the data.
!  The x-axis pixel size should ideally be below 0.1907 milli-arcsec
! Estimated beam: bmin=2.193 mas, bmaj=3.863 mas, bpa=-1.945 degrees
! Estimated noise=619.348 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0299987 Jy
! Component: 100  -  total flux cleaned = 0.0468534 Jy
! Component: 150  -  total flux cleaned = 0.0573913 Jy
! Component: 200  -  total flux cleaned = 0.0643337 Jy
! Total flux subtracted in 200 components = 0.0643337 Jy
! Clean residual min=-0.005167 max=0.007802 Jy/beam
! Clean residual mean=0.001297 rms=0.002335 Jy/beam
! Combined flux in latest and established models = 1.97632 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.00469086 Jy
! Component: 100  -  total flux cleaned = 0.00796796 Jy
! Component: 150  -  total flux cleaned = 0.0103339 Jy
! Component: 200  -  total flux cleaned = 0.0120501 Jy
! Total flux subtracted in 200 components = 0.0120501 Jy
! Clean residual min=-0.004559 max=0.006811 Jy/beam
! Clean residual mean=0.000834 rms=0.002075 Jy/beam
! Combined flux in latest and established models = 1.98837 Jy
! Adding 80 model components to the UV plane model.
! The established model now contains 148 components and 1.98837 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.697% of the data.
!  The x-axis pixel size should ideally be below 0.1907 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 0.697% of the data.
!  The x-axis pixel size should ideally be below 0.1907 milli-arcsec
! Estimated beam: bmin=0.8524 mas, bmaj=2.375 mas, bpa=-8.167 degrees
! Estimated noise=509.631 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00144703 Jy
! Component: 100  -  total flux cleaned = -0.00122135 Jy
! Component: 150  -  total flux cleaned = -0.00143357 Jy
! Component: 200  -  total flux cleaned = -0.00162101 Jy
! Total flux subtracted in 200 components = -0.00162101 Jy
! Clean residual min=-0.005572 max=0.006207 Jy/beam
! Clean residual mean=0.000403 rms=0.001558 Jy/beam
! Combined flux in latest and established models = 1.98675 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 167 components and 1.98675 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.214595Jy  sigma=0.001171
! Fit after  self-cal, rms=0.214306Jy  sigma=0.001168
wmodel J0730-1141_X_1999_12_20_pus_map.mod
! Writing 167 model components to file: J0730-1141_X_1999_12_20_pus_map.mod
wobs J0730-1141_X_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J0730-1141_X_1999_12_20_pus_uvs.fits
wwins J0730-1141_X_1999_12_20_pus_map.win
! wwins: Wrote 4 windows to J0730-1141_X_1999_12_20_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! Your choice of large map pixels excluded 0.697% of the data.
!  The x-axis pixel size should ideally be below 0.1907 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00214516 Jy
! Component: 100  -  total flux cleaned = 0.00329749 Jy
! Component: 150  -  total flux cleaned = 0.00365169 Jy
! Component: 200  -  total flux cleaned = 0.00381399 Jy
! Component: 250  -  total flux cleaned = 0.0040459 Jy
! Component: 300  -  total flux cleaned = 0.00404535 Jy
! Component: 350  -  total flux cleaned = 0.0042619 Jy
! Component: 400  -  total flux cleaned = 0.00468146 Jy
! Component: 450  -  total flux cleaned = 0.00509184 Jy
! Component: 500  -  total flux cleaned = 0.00529351 Jy
! Component: 550  -  total flux cleaned = 0.00568653 Jy
! Component: 600  -  total flux cleaned = 0.00613279 Jy
! Component: 650  -  total flux cleaned = 0.00638195 Jy
! Component: 700  -  total flux cleaned = 0.00674968 Jy
! Component: 750  -  total flux cleaned = 0.00704964 Jy
! Component: 800  -  total flux cleaned = 0.00728559 Jy
! Component: 850  -  total flux cleaned = 0.00763366 Jy
! Component: 900  -  total flux cleaned = 0.00791809 Jy
! Component: 950  -  total flux cleaned = 0.00825457 Jy
! Component: 1000  -  total flux cleaned = 0.00858484 Jy
! Total flux subtracted in 1024 components = 0.00869381 Jy
! Clean residual min=-0.002717 max=0.003196 Jy/beam
! Clean residual mean=0.000223 rms=0.001106 Jy/beam
! Combined flux in latest and established models = 1.99544 Jy
keep
! Adding 56 model components to the UV plane model.
! The established model now contains 220 components and 1.99544 Jy
![Exited script file: muppet]
wmap "J0730-1141_X_1999_12_20_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 0.697% of the data.
!  The x-axis pixel size should ideally be below 0.1907 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8524 x 2.375 at -8.167 degrees (North through East)
! Clean map  min=-0.0045576  max=1.5728 Jy/beam
! Writing clean map to FITS file: J0730-1141_X_1999_12_20_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.57278 
invert
! Inverting map 
! Your choice of large map pixels excluded 0.697% of the data.
!  The x-axis pixel size should ideally be below 0.1907 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00110797 
device "J0730-1141_X_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J0730-1141_X_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.211339 0.211339 0.422679 0.845358 1.69072 3.38143 6.76286 13.5257 27.0514 54.1029
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0033 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.572 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8524 x 2.375 at -8.167 degrees (North through East)
! Clean map  min=-0.0045576  max=1.5728 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0730-1141_X_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J0730-1141_X_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0730-1141_X_1999_12_20_pus_uvs.log closed on Mon Dec 17 16:59:59 2007