! Started logfile: J0921-2618_X_2001_04_09_pus_uvs.log on Mon Oct  1 14:37:25 2007
obs J0921-2618_X_2001_04_09_pus_uva.fits
! Reading UV FITS file: J0921-2618_X_2001_04_09_pus_uva.fits
! AN table 1: 33 integrations on 190 of 190 possible baselines.
! AN table 2: 85 integrations on 190 of 190 possible baselines.
! AN table 3: 112 integrations on 190 of 190 possible baselines.
! AN table 4: 34 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0586722 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0921-2618
! 
! 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 1926 lines of history.
! 
! Reading 11772 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 J0921-2618_X_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 = 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 417 telescope corrections were flagged in sub-array 1.
!  A total of 1486 telescope corrections were flagged in sub-array 2.
!  A total of 1804 telescope corrections were flagged in sub-array 3.
!  A total of 680 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 417 telescope corrections were flagged in sub-array 1.
!  A total of 1486 telescope corrections were flagged in sub-array 2.
!  A total of 1804 telescope corrections were flagged in sub-array 3.
!  A total of 680 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 417 telescope corrections were flagged in sub-array 1.
!  A total of 1486 telescope corrections were flagged in sub-array 2.
!  A total of 1804 telescope corrections were flagged in sub-array 3.
!  A total of 680 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 417 telescope corrections were flagged in sub-array 1.
!  A total of 1486 telescope corrections were flagged in sub-array 2.
!  A total of 1804 telescope corrections were flagged in sub-array 3.
!  A total of 680 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.989423Jy  sigma=0.009083
! Fit after  self-cal, rms=0.375250Jy  sigma=0.003408
! 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.513% of the data.
!  The x-axis pixel size should ideally be below 0.1963 milli-arcsec
! Estimated beam: bmin=0.6533 mas, bmaj=1.447 mas, bpa=-1.4 degrees
! Estimated noise=1436.96 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.810161 Jy
! Component: 100  -  total flux cleaned = 1.06006 Jy
! Total flux subtracted in 100 components = 1.06006 Jy
! Clean residual min=-0.041994 max=0.117573 Jy/beam
! Clean residual mean=0.001352 rms=0.014548 Jy/beam
! Combined flux in latest and established models = 1.06006 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 1.06006 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.321817Jy  sigma=0.002972
! Fit after  self-cal, rms=0.321762Jy  sigma=0.002972
! Inverting map 
! Your choice of large map pixels excluded 0.513% of the data.
!  The x-axis pixel size should ideally be below 0.1963 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.133065 Jy
! Component: 100  -  total flux cleaned = 0.207173 Jy
! Total flux subtracted in 100 components = 0.207173 Jy
! Clean residual min=-0.024004 max=0.046076 Jy/beam
! Clean residual mean=0.000629 rms=0.007459 Jy/beam
! Combined flux in latest and established models = 1.26723 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 15 components and 1.26723 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223191Jy  sigma=0.001816
! Fit after  self-cal, rms=0.223176Jy  sigma=0.001815
! Inverting map 
! Your choice of large map pixels excluded 0.513% of the data.
!  The x-axis pixel size should ideally be below 0.1963 milli-arcsec
! Added new window around map position (-1.4, -0.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0498258 Jy
! Component: 100  -  total flux cleaned = 0.0831707 Jy
! Total flux subtracted in 100 components = 0.0831707 Jy
! Clean residual min=-0.021842 max=0.033416 Jy/beam
! Clean residual mean=0.000308 rms=0.005730 Jy/beam
! Combined flux in latest and established models = 1.3504 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 20 components and 1.3504 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.204981Jy  sigma=0.001557
! Fit after  self-cal, rms=0.204074Jy  sigma=0.001549
! Inverting map 
! Your choice of large map pixels excluded 0.513% of the data.
!  The x-axis pixel size should ideally be below 0.1963 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.513% of the data.
!  The x-axis pixel size should ideally be below 0.1963 milli-arcsec
! Estimated beam: bmin=0.9318 mas, bmaj=2.129 mas, bpa=-5.763 degrees
! Estimated noise=762.392 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.0421215 Jy
! Component: 100  -  total flux cleaned = 0.063139 Jy
! Component: 150  -  total flux cleaned = 0.0744206 Jy
! Component: 200  -  total flux cleaned = 0.0806497 Jy
! Total flux subtracted in 200 components = 0.0806497 Jy
! Clean residual min=-0.011545 max=0.018376 Jy/beam
! Clean residual mean=0.000539 rms=0.004331 Jy/beam
! Combined flux in latest and established models = 1.43105 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 29 components and 1.43105 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.197288Jy  sigma=0.001438
! Fit after  self-cal, rms=0.196652Jy  sigma=0.001431
! Inverting map 
! Your choice of large map pixels excluded 0.513% of the data.
!  The x-axis pixel size should ideally be below 0.1963 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.24     KK        1.03     KP        1.00     
!   LA        1.00     MA        1.00*    MC        1.00*    MK        0.94     
!   NL        1.01     NY        1.00*    OV        0.97     PT        1.00     
!   SC        0.99     TS        1.00*    WF        0.92     WZ        1.00*    
! 
!  A total of 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.97     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.00*    KP        0.99     
!   LA        1.00     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.08     NY        1.00*    OV        1.04     PT        0.99     
!   SC        0.95     TS        1.00*    WF        0.97     WZ        1.00*    
! 
!  A total of 81 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.00     GC        1.00*    GG        1.00*    
!   HH        1.01     HN        1.00*    KK        1.01     KP        1.00     
!   LA        0.98     MA        0.84     MC        1.22     MK        0.92     
!   NL        1.09     NY        1.00*    OV        0.98     PT        0.98     
!   SC        1.00*    TS        0.96     WF        1.00*    WZ        1.06     
! 
!  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 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.21     KK        1.04     KP        0.99     
!   LA        1.00     MA        1.00*    MC        1.00*    MK        1.01     
!   NL        0.98     NY        1.00*    OV        0.98     PT        1.00     
!   SC        0.98     TS        1.00*    WF        0.94     WZ        1.00*    
! 
!  A total of 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.00*    KP        0.99     
!   LA        1.02     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.01     NY        1.00*    OV        1.04     PT        0.99     
!   SC        0.96     TS        1.00*    WF        0.98     WZ        1.00*    
! 
!  A total of 81 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        0.96     HN        1.00*    KK        1.03     KP        0.99     
!   LA        0.98     MA        0.86     MC        1.15     MK        0.97     
!   NL        1.03     NY        1.00*    OV        0.99     PT        0.98     
!   SC        1.00*    TS        0.95     WF        1.00*    WZ        1.02     
! 
!  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 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.25     KK        1.07     KP        0.90     
!   LA        1.02     MA        1.00*    MC        1.00*    MK        0.98     
!   NL        0.99     NY        1.00*    OV        0.95     PT        0.96     
!   SC        1.00     TS        1.00*    WF        0.99     WZ        1.00*    
! 
!  A total of 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.01     KK        1.00*    KP        0.90     
!   LA        1.04     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.04     NY        1.00*    OV        1.01     PT        0.97     
!   SC        0.97     TS        1.00*    WF        1.01     WZ        1.00*    
! 
!  A total of 81 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        0.93     HN        1.00*    KK        1.03     KP        0.91     
!   LA        1.00     MA        0.98     MC        1.20     MK        0.94     
!   NL        1.03     NY        1.00*    OV        0.97     PT        0.94     
!   SC        1.00*    TS        0.94     WF        1.00*    WZ        1.10     
! 
!  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 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.00     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.31     KK        1.05     KP        1.12     
!   LA        1.01     MA        1.00*    MC        1.00*    MK        1.03     
!   NL        1.00     NY        1.00*    OV        0.94     PT        1.00     
!   SC        1.00     TS        1.00*    WF        0.99     WZ        1.00*    
! 
!  A total of 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.00*    KP        1.12     
!   LA        1.02     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.04     NY        1.00*    OV        0.99     PT        0.99     
!   SC        0.97     TS        1.00*    WF        1.02     WZ        1.00*    
! 
!  A total of 81 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        0.89     HN        1.00*    KK        1.04     KP        1.11     
!   LA        0.99     MA        0.90     MC        1.22     MK        0.98     
!   NL        1.05     NY        1.00*    OV        0.95     PT        0.99     
!   SC        1.00*    TS        0.97     WF        1.00*    WZ        1.06     
! 
!  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.196652Jy  sigma=0.001431
! Fit after  self-cal, rms=0.175222Jy  sigma=0.001248
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.533% of the data.
!  The x-axis pixel size should ideally be below 0.1963 milli-arcsec
! Estimated beam: bmin=0.9422 mas, bmaj=2.575 mas, bpa=-6.557 degrees
! Estimated noise=768.992 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 (-2.4, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0120097 Jy
! Component: 100  -  total flux cleaned = 0.0133982 Jy
! Component: 150  -  total flux cleaned = 0.0142192 Jy
! Component: 200  -  total flux cleaned = 0.0147036 Jy
! Total flux subtracted in 200 components = 0.0147036 Jy
! Clean residual min=-0.005767 max=0.005373 Jy/beam
! Clean residual mean=-0.000207 rms=0.001792 Jy/beam
! Combined flux in latest and established models = 1.44576 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 49 components and 1.44576 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.174209Jy  sigma=0.001237
! Fit after  self-cal, rms=0.174222Jy  sigma=0.001236
! Inverting map 
! Your choice of large map pixels excluded 0.533% of the data.
!  The x-axis pixel size should ideally be below 0.1963 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.174222Jy  sigma=0.001236
! Fit after  self-cal, rms=0.172862Jy  sigma=0.001222
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.533% of the data.
!  The x-axis pixel size should ideally be below 0.1963 milli-arcsec
! Estimated beam: bmin=0.9442 mas, bmaj=2.578 mas, bpa=-6.62 degrees
! Estimated noise=768.544 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00108907 Jy
! Component: 100  -  total flux cleaned = 0.00173823 Jy
! Component: 150  -  total flux cleaned = 0.00250427 Jy
! Component: 200  -  total flux cleaned = 0.00303901 Jy
! Total flux subtracted in 200 components = 0.00303901 Jy
! Clean residual min=-0.004997 max=0.005498 Jy/beam
! Clean residual mean=-0.000097 rms=0.001532 Jy/beam
! Combined flux in latest and established models = 1.44879 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 60 components and 1.44879 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.172543Jy  sigma=0.001219
! Fit after  self-cal, rms=0.172532Jy  sigma=0.001219
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.533% of the data.
!  The x-axis pixel size should ideally be below 0.1963 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.000673041 Jy
! Component: 100  -  total flux cleaned = 0.00105011 Jy
! Component: 150  -  total flux cleaned = 0.00113582 Jy
! Component: 200  -  total flux cleaned = 0.00113727 Jy
! Total flux subtracted in 200 components = 0.00113727 Jy
! Clean residual min=-0.004930 max=0.005424 Jy/beam
! Clean residual mean=-0.000136 rms=0.001490 Jy/beam
! Combined flux in latest and established models = 1.44993 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 66 components and 1.44993 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.172414Jy  sigma=0.001218
! Fit after  self-cal, rms=0.172414Jy  sigma=0.001218
! Inverting map 
! Your choice of large map pixels excluded 0.533% of the data.
!  The x-axis pixel size should ideally be below 0.1963 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.172414Jy  sigma=0.001218
! Fit after  self-cal, rms=0.172293Jy  sigma=0.001212
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.533% of the data.
!  The x-axis pixel size should ideally be below 0.1963 milli-arcsec
! Estimated beam: bmin=0.9469 mas, bmaj=2.582 mas, bpa=-6.678 degrees
! Estimated noise=769.193 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000750871 Jy
! Component: 100  -  total flux cleaned = -0.000354017 Jy
! Component: 150  -  total flux cleaned = -8.85307e-05 Jy
! Component: 200  -  total flux cleaned = 6.61601e-05 Jy
! Total flux subtracted in 200 components = 6.61601e-05 Jy
! Clean residual min=-0.004904 max=0.005663 Jy/beam
! Clean residual mean=-0.000058 rms=0.001359 Jy/beam
! Combined flux in latest and established models = 1.45 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 77 components and 1.45 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.172124Jy  sigma=0.001210
! Fit after  self-cal, rms=0.172135Jy  sigma=0.001210
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.533% of the data.
!  The x-axis pixel size should ideally be below 0.1963 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 = -8.82538e-05 Jy
! Component: 100  -  total flux cleaned = -8.73482e-05 Jy
! Component: 150  -  total flux cleaned = -2.20472e-05 Jy
! Component: 200  -  total flux cleaned = -2.17125e-05 Jy
! Total flux subtracted in 200 components = -2.17125e-05 Jy
! Clean residual min=-0.004523 max=0.005640 Jy/beam
! Clean residual mean=-0.000058 rms=0.001328 Jy/beam
! Combined flux in latest and established models = 1.44998 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 82 components and 1.44998 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.172061Jy  sigma=0.001210
! Fit after  self-cal, rms=0.172062Jy  sigma=0.001210
! Inverting map 
! Your choice of large map pixels excluded 0.533% of the data.
!  The x-axis pixel size should ideally be below 0.1963 milli-arcsec
! Added new window around map position (-5, 4.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00522116 Jy
! Component: 100  -  total flux cleaned = 0.00626125 Jy
! Component: 150  -  total flux cleaned = 0.00645114 Jy
! Component: 200  -  total flux cleaned = 0.00637388 Jy
! Total flux subtracted in 200 components = 0.00637388 Jy
! Clean residual min=-0.004478 max=0.003225 Jy/beam
! Clean residual mean=-0.000247 rms=0.001041 Jy/beam
! Combined flux in latest and established models = 1.45635 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 100 components and 1.45635 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.171882Jy  sigma=0.001208
! Fit after  self-cal, rms=0.171863Jy  sigma=0.001208
! Inverting map 
! Your choice of large map pixels excluded 0.533% of the data.
!  The x-axis pixel size should ideally be below 0.1963 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.171863Jy  sigma=0.001208
! Fit after  self-cal, rms=0.172118Jy  sigma=0.001207
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.533% of the data.
!  The x-axis pixel size should ideally be below 0.1963 milli-arcsec
! Estimated beam: bmin=2.359 mas, bmaj=5.334 mas, bpa=6.415 degrees
! Estimated noise=879.506 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00129316 Jy
! Component: 100  -  total flux cleaned = 0.00165439 Jy
! Component: 150  -  total flux cleaned = 0.00182705 Jy
! Component: 200  -  total flux cleaned = 0.0017283 Jy
! Total flux subtracted in 200 components = 0.0017283 Jy
! Clean residual min=-0.002939 max=0.003389 Jy/beam
! Clean residual mean=-0.000347 rms=0.001075 Jy/beam
! Combined flux in latest and established models = 1.45808 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 117 components and 1.45808 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.172068Jy  sigma=0.001207
! Fit after  self-cal, rms=0.172060Jy  sigma=0.001207
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.533% of the data.
!  The x-axis pixel size should ideally be below 0.1963 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.000482257 Jy
! Component: 100  -  total flux cleaned = 0.000481374 Jy
! Component: 150  -  total flux cleaned = 0.000483081 Jy
! Component: 200  -  total flux cleaned = 0.000483503 Jy
! Total flux subtracted in 200 components = 0.000483503 Jy
! Clean residual min=-0.002934 max=0.003460 Jy/beam
! Clean residual mean=-0.000368 rms=0.001082 Jy/beam
! Combined flux in latest and established models = 1.45856 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 130 components and 1.45856 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.172042Jy  sigma=0.001206
! Fit after  self-cal, rms=0.172039Jy  sigma=0.001206
! Inverting map 
! Your choice of large map pixels excluded 0.533% of the data.
!  The x-axis pixel size should ideally be below 0.1963 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.533% of the data.
!  The x-axis pixel size should ideally be below 0.1963 milli-arcsec
! Estimated beam: bmin=0.9473 mas, bmaj=2.583 mas, bpa=-6.645 degrees
! Estimated noise=768.945 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9473 x 2.583 at -6.645 degrees (North through East)
! Clean map  min=-0.0034931  max=1.1738 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.172039Jy  sigma=0.001206
! Fit after  self-cal, rms=0.160863Jy  sigma=0.001099
! Inverting map and beam 
! Your choice of large map pixels excluded 0.533% of the data.
!  The x-axis pixel size should ideally be below 0.1963 milli-arcsec
! Estimated beam: bmin=0.947 mas, bmaj=2.582 mas, bpa=-6.667 degrees
! Estimated noise=767.823 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000496556 Jy
! Component: 100  -  total flux cleaned = 0.000922478 Jy
! Component: 150  -  total flux cleaned = 0.00104862 Jy
! Component: 200  -  total flux cleaned = 0.00110782 Jy
! Total flux subtracted in 200 components = 0.00110782 Jy
! Clean residual min=-0.003597 max=0.002603 Jy/beam
! Clean residual mean=-0.000149 rms=0.000854 Jy/beam
! Combined flux in latest and established models = 1.45967 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 139 components and 1.45967 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.160785Jy  sigma=0.001098
! Fit after  self-cal, rms=0.160784Jy  sigma=0.001098
! Inverting map 
! Your choice of large map pixels excluded 0.533% of the data.
!  The x-axis pixel size should ideally be below 0.1963 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000175165 Jy
! Component: 100  -  total flux cleaned = 0.000228184 Jy
! Component: 150  -  total flux cleaned = 0.000227077 Jy
! Component: 200  -  total flux cleaned = 0.000228229 Jy
! Total flux subtracted in 200 components = 0.000228229 Jy
! Clean residual min=-0.003492 max=0.002592 Jy/beam
! Clean residual mean=-0.000156 rms=0.000844 Jy/beam
! Combined flux in latest and established models = 1.4599 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 149 components and 1.4599 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.160742Jy  sigma=0.001098
! Fit after  self-cal, rms=0.160744Jy  sigma=0.001098
! Inverting map 
! Your choice of large map pixels excluded 0.533% of the data.
!  The x-axis pixel size should ideally be below 0.1963 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.160744Jy  sigma=0.001098
! Fit after  self-cal, rms=0.160980Jy  sigma=0.001098
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.533% of the data.
!  The x-axis pixel size should ideally be below 0.1963 milli-arcsec
! Estimated beam: bmin=0.666 mas, bmaj=1.805 mas, bpa=-4.881 degrees
! Estimated noise=1452.98 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.822113 Jy
! Component: 100  -  total flux cleaned = 1.07605 Jy
! Component: 150  -  total flux cleaned = 1.21012 Jy
! Component: 200  -  total flux cleaned = 1.28263 Jy
! Total flux subtracted in 200 components = 1.28263 Jy
! Clean residual min=-0.017646 max=0.036207 Jy/beam
! Clean residual mean=0.000708 rms=0.005702 Jy/beam
! Combined flux in latest and established models = 1.28263 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 9 model components to the UV plane model.
! The established model now contains 9 components and 1.28263 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 0.533% of the data.
!  The x-axis pixel size should ideally be below 0.1963 milli-arcsec
! Estimated beam: bmin=0.9471 mas, bmaj=2.583 mas, bpa=-6.654 degrees
! Estimated noise=767.553 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.0702091 Jy
! Component: 100  -  total flux cleaned = 0.106563 Jy
! Component: 150  -  total flux cleaned = 0.127382 Jy
! Component: 200  -  total flux cleaned = 0.140415 Jy
! Total flux subtracted in 200 components = 0.140415 Jy
! Clean residual min=-0.004147 max=0.008178 Jy/beam
! Clean residual mean=0.001144 rms=0.002211 Jy/beam
! Combined flux in latest and established models = 1.42305 Jy
! Adding 39 model components to the UV plane model.
! The established model now contains 42 components and 1.42305 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.533% of the data.
!  The x-axis pixel size should ideally be below 0.1963 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.533% of the data.
!  The x-axis pixel size should ideally be below 0.1963 milli-arcsec
! Estimated beam: bmin=2.359 mas, bmaj=5.331 mas, bpa=6.436 degrees
! Estimated noise=878.325 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0133358 Jy
! Component: 100  -  total flux cleaned = 0.0216931 Jy
! Component: 150  -  total flux cleaned = 0.0271241 Jy
! Component: 200  -  total flux cleaned = 0.0307019 Jy
! Total flux subtracted in 200 components = 0.0307019 Jy
! Clean residual min=-0.002478 max=0.003472 Jy/beam
! Clean residual mean=0.000157 rms=0.001135 Jy/beam
! Combined flux in latest and established models = 1.45375 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.00231812 Jy
! Component: 100  -  total flux cleaned = 0.00304132 Jy
! Component: 150  -  total flux cleaned = 0.00363146 Jy
! Component: 200  -  total flux cleaned = 0.00406999 Jy
! Total flux subtracted in 200 components = 0.00406999 Jy
! Clean residual min=-0.002245 max=0.003037 Jy/beam
! Clean residual mean=-0.000100 rms=0.000919 Jy/beam
! Combined flux in latest and established models = 1.45782 Jy
! Adding 56 model components to the UV plane model.
! The established model now contains 93 components and 1.45782 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.533% of the data.
!  The x-axis pixel size should ideally be below 0.1963 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 0.533% of the data.
!  The x-axis pixel size should ideally be below 0.1963 milli-arcsec
! Estimated beam: bmin=0.9471 mas, bmaj=2.583 mas, bpa=-6.654 degrees
! Estimated noise=767.553 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000806035 Jy
! Component: 100  -  total flux cleaned = 0.00090441 Jy
! Component: 150  -  total flux cleaned = 0.00108929 Jy
! Component: 200  -  total flux cleaned = 0.00108541 Jy
! Total flux subtracted in 200 components = 0.00108541 Jy
! Clean residual min=-0.003169 max=0.002995 Jy/beam
! Clean residual mean=-0.000094 rms=0.000881 Jy/beam
! Combined flux in latest and established models = 1.45891 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 105 components and 1.4589 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.161480Jy  sigma=0.001100
! Fit after  self-cal, rms=0.161460Jy  sigma=0.001100
wmodel J0921-2618_X_2001_04_09_pus_map.mod
! Writing 105 model components to file: J0921-2618_X_2001_04_09_pus_map.mod
wobs J0921-2618_X_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J0921-2618_X_2001_04_09_pus_uvs.fits
wwins J0921-2618_X_2001_04_09_pus_map.win
! wwins: Wrote 4 windows to J0921-2618_X_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 
! Your choice of large map pixels excluded 0.533% of the data.
!  The x-axis pixel size should ideally be below 0.1963 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.00113337 Jy
! Component: 100  -  total flux cleaned = -0.00165401 Jy
! Component: 150  -  total flux cleaned = -0.00208887 Jy
! Component: 200  -  total flux cleaned = -0.002546 Jy
! Component: 250  -  total flux cleaned = -0.00280862 Jy
! Component: 300  -  total flux cleaned = -0.00285105 Jy
! Component: 350  -  total flux cleaned = -0.00285189 Jy
! Component: 400  -  total flux cleaned = -0.00293299 Jy
! Component: 450  -  total flux cleaned = -0.00305006 Jy
! Component: 500  -  total flux cleaned = -0.00308833 Jy
! Component: 550  -  total flux cleaned = -0.00316383 Jy
! Component: 600  -  total flux cleaned = -0.00331166 Jy
! Component: 650  -  total flux cleaned = -0.00342015 Jy
! Component: 700  -  total flux cleaned = -0.00352693 Jy
! Component: 750  -  total flux cleaned = -0.00359767 Jy
! Component: 800  -  total flux cleaned = -0.00366706 Jy
! Component: 850  -  total flux cleaned = -0.00373512 Jy
! Component: 900  -  total flux cleaned = -0.00376853 Jy
! Component: 950  -  total flux cleaned = -0.00383474 Jy
! Component: 1000  -  total flux cleaned = -0.00389955 Jy
! Total flux subtracted in 1024 components = -0.0039317 Jy
! Clean residual min=-0.001988 max=0.001895 Jy/beam
! Clean residual mean=0.000005 rms=0.000655 Jy/beam
! Combined flux in latest and established models = 1.45497 Jy
keep
! Adding 65 model components to the UV plane model.
! The established model now contains 170 components and 1.45497 Jy
![Exited script file: muppet]
wmap "J0921-2618_X_2001_04_09_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 0.533% of the data.
!  The x-axis pixel size should ideally be below 0.1963 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9471 x 2.583 at -6.654 degrees (North through East)
! Clean map  min=-0.0027284  max=1.175 Jy/beam
! Writing clean map to FITS file: J0921-2618_X_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 1.17497 
invert
! Inverting map 
! Your choice of large map pixels excluded 0.533% of the data.
!  The x-axis pixel size should ideally be below 0.1963 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000657227 
device "J0921-2618_X_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J0921-2618_X_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.167808 0.167808 0.335615 0.67123 1.34246 2.68492 5.36984 10.7397 21.4794 42.9587 85.9174
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0019 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.174 
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.9471 x 2.583 at -6.654 degrees (North through East)
! Clean map  min=-0.0027284  max=1.175 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0921-2618_X_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J0921-2618_X_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0921-2618_X_2001_04_09_pus_uvs.log closed on Mon Oct  1 14:37:33 2007