! Started logfile: J1150-0023_X_2003_06_18_pus_uvs.log on Thu Jan 18 23:01:30 2007
obs J1150-0023_X_2003_06_18_pus_uva.fits
! Reading UV FITS file: J1150-0023_X_2003_06_18_pus_uva.fits
! AN table 1: 135 integrations on 153 of 153 possible baselines.
! AN table 2: 505 integrations on 153 of 153 possible baselines.
! AN table 3: 123 integrations on 153 of 153 possible baselines.
! AN table 4: 94 integrations on 153 of 153 possible baselines.
! AN table 5: 126 integrations on 153 of 153 possible baselines.
! AN table 6: 226 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.067803 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1150-0023
! 
! 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 2239 lines of history.
! 
! Reading 50168 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
float field_size
field_size = 512
float field_cell
field_cell = 0.16
float taper_size
taper_size = 90.
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.160x0.160 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 2430 telescope corrections were flagged in sub-array 1.
!  A total of 7536 telescope corrections were flagged in sub-array 2.
!  A total of 2214 telescope corrections were flagged in sub-array 3.
!  A total of 1692 telescope corrections were flagged in sub-array 4.
!  A total of 2082 telescope corrections were flagged in sub-array 5.
!  A total of 2533 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 2.
!  A total of 2358 telescope corrections were flagged in sub-array 1.
!  A total of 7294 telescope corrections were flagged in sub-array 2.
!  A total of 2214 telescope corrections were flagged in sub-array 3.
!  A total of 1692 telescope corrections were flagged in sub-array 4.
!  A total of 2082 telescope corrections were flagged in sub-array 5.
!  A total of 2533 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 3.
!  A total of 2361 telescope corrections were flagged in sub-array 1.
!  A total of 7280 telescope corrections were flagged in sub-array 2.
!  A total of 2214 telescope corrections were flagged in sub-array 3.
!  A total of 1692 telescope corrections were flagged in sub-array 4.
!  A total of 2082 telescope corrections were flagged in sub-array 5.
!  A total of 2533 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 4.
!  A total of 2358 telescope corrections were flagged in sub-array 1.
!  A total of 7409 telescope corrections were flagged in sub-array 2.
!  A total of 2214 telescope corrections were flagged in sub-array 3.
!  A total of 1692 telescope corrections were flagged in sub-array 4.
!  A total of 2082 telescope corrections were flagged in sub-array 5.
!  A total of 2533 telescope corrections were flagged in sub-array 6.
! 
! Fit before self-cal, rms=0.819593Jy  sigma=0.010878
! Fit after  self-cal, rms=0.692033Jy  sigma=0.009367
! 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=0.5035 mas, bmaj=2.027 mas, bpa=-3.071 degrees
! Estimated noise=587.17 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.258972 Jy
! Component: 100  -  total flux cleaned = 0.364926 Jy
! Total flux subtracted in 100 components = 0.364926 Jy
! Clean residual min=-0.029674 max=0.087626 Jy/beam
! Clean residual mean=0.001669 rms=0.011694 Jy/beam
! Combined flux in latest and established models = 0.364926 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.364926 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.319009Jy  sigma=0.004203
! Fit after  self-cal, rms=0.318570Jy  sigma=0.004200
! Inverting map 
! Added new window around map position (1.44, 0.96).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0858395 Jy
! Component: 100  -  total flux cleaned = 0.131195 Jy
! Total flux subtracted in 100 components = 0.131195 Jy
! Clean residual min=-0.026866 max=0.069609 Jy/beam
! Clean residual mean=0.001336 rms=0.009196 Jy/beam
! Combined flux in latest and established models = 0.496121 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 17 components and 0.496121 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.274721Jy  sigma=0.003522
! Fit after  self-cal, rms=0.266993Jy  sigma=0.003401
! Inverting map 
! Added new window around map position (-2.88, -1.12).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0672235 Jy
! Component: 100  -  total flux cleaned = 0.111755 Jy
! Total flux subtracted in 100 components = 0.111755 Jy
! Clean residual min=-0.017825 max=0.038567 Jy/beam
! Clean residual mean=0.001120 rms=0.006164 Jy/beam
! Combined flux in latest and established models = 0.607876 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 26 components and 0.607877 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.230578Jy  sigma=0.002814
! Fit after  self-cal, rms=0.228851Jy  sigma=0.002792
! 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=0.7174 mas, bmaj=2.367 mas, bpa=-3.346 degrees
! Estimated noise=246.778 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.0754539 Jy
! Component: 100  -  total flux cleaned = 0.12041 Jy
! Component: 150  -  total flux cleaned = 0.15227 Jy
! Component: 200  -  total flux cleaned = 0.175575 Jy
! Total flux subtracted in 200 components = 0.175575 Jy
! Clean residual min=-0.021727 max=0.048351 Jy/beam
! Clean residual mean=0.003009 rms=0.008326 Jy/beam
! Combined flux in latest and established models = 0.783451 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 48 components and 0.783451 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.200041Jy  sigma=0.002315
! Fit after  self-cal, rms=0.198630Jy  sigma=0.002293
! Inverting map 
! Added new window around map position (-8, -6.24).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0489948 Jy
! Component: 100  -  total flux cleaned = 0.0764322 Jy
! Component: 150  -  total flux cleaned = 0.0964772 Jy
! Component: 200  -  total flux cleaned = 0.11286 Jy
! Total flux subtracted in 200 components = 0.11286 Jy
! Clean residual min=-0.015682 max=0.019157 Jy/beam
! Clean residual mean=0.001378 rms=0.004625 Jy/beam
! Combined flux in latest and established models = 0.896311 Jy
! Performing phase self-cal
! Adding 72 model components to the UV plane model.
! The established model now contains 117 components and 0.896311 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.185806Jy  sigma=0.002051
! Fit after  self-cal, rms=0.184509Jy  sigma=0.002032
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 105 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.93     GG        1.00*    HN        0.99     
!   KK        1.00*    KP        0.98     LA        1.06     MA        1.00*    
!   MK        1.00*    NL        1.04     ON        1.62     OV        1.00*    
!   PT        1.07     SC        0.96     TC        1.00*    TS        1.00*    
!   WF        0.97     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 186 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 87 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.92     FD        0.95     GG        1.00*    HN        1.00*    
!   KK        1.07     KP        1.07     LA        0.92     MA        1.00*    
!   MK        1.03     NL        1.08     ON        1.00*    OV        0.96     
!   PT        0.94     SC        1.00*    TC        1.00*    TS        1.01     
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 72 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 177 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.92     GG        1.00*    HN        0.98     
!   KK        1.00*    KP        0.94     LA        1.06     MA        0.86     
!   MK        1.00*    NL        1.01     ON        1.60     OV        1.00*    
!   PT        1.11     SC        0.94     TC        1.00*    TS        1.00*    
!   WF        1.10     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 186 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 87 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.93     FD        0.94     GG        1.00*    HN        1.00*    
!   KK        1.09     KP        1.03     LA        0.93     MA        1.00*    
!   MK        1.03     NL        1.02     ON        1.00*    OV        0.95     
!   PT        0.98     SC        1.00*    TC        1.00*    TS        1.00     
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 69 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 306 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.93     GG        1.00*    HN        0.98     
!   KK        1.00*    KP        0.99     LA        1.07     MA        0.90     
!   MK        1.00*    NL        0.98     ON        1.12     OV        1.00*    
!   PT        1.15     SC        0.99     TC        1.00*    TS        1.00*    
!   WF        1.00     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 186 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 87 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.00     FD        0.94     GG        1.00*    HN        1.00*    
!   KK        1.18     KP        1.06     LA        0.95     MA        1.00*    
!   MK        1.01     NL        1.02     ON        1.00*    OV        1.00     
!   PT        1.02     SC        1.00*    TC        1.00*    TS        1.03     
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 72 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 177 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.91     GG        1.00*    HN        1.00     
!   KK        1.00*    KP        0.96     LA        1.04     MA        0.62     
!   MK        1.00*    NL        0.97     ON        0.90     OV        1.00*    
!   PT        1.15     SC        1.06     TC        1.00*    TS        1.00*    
!   WF        1.04     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 186 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 87 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.98     FD        0.94     GG        1.00*    HN        1.00*    
!   KK        1.17     KP        1.03     LA        0.93     MA        1.00*    
!   MK        1.04     NL        1.04     ON        1.00*    OV        1.00     
!   PT        1.03     SC        1.00*    TC        1.00*    TS        1.04     
!   WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.184509Jy  sigma=0.002032
! Fit after  self-cal, rms=0.173667Jy  sigma=0.001981
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.7316 mas, bmaj=2.405 mas, bpa=-3.913 degrees
! Estimated noise=246.326 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.00913166 Jy
! Component: 100  -  total flux cleaned = 0.0140784 Jy
! Component: 150  -  total flux cleaned = 0.0183918 Jy
! Component: 200  -  total flux cleaned = 0.0208871 Jy
! Total flux subtracted in 200 components = 0.0208871 Jy
! Clean residual min=-0.008898 max=0.010643 Jy/beam
! Clean residual mean=0.000730 rms=0.002843 Jy/beam
! Combined flux in latest and established models = 0.917198 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 132 components and 0.917198 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.172584Jy  sigma=0.001962
! Fit after  self-cal, rms=0.172650Jy  sigma=0.001960
! 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.172650Jy  sigma=0.001960
! Fit after  self-cal, rms=0.171426Jy  sigma=0.001959
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=0.7349 mas, bmaj=2.401 mas, bpa=-3.984 degrees
! Estimated noise=246.047 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00419424 Jy
! Component: 100  -  total flux cleaned = 0.00743843 Jy
! Component: 150  -  total flux cleaned = 0.00929385 Jy
! Component: 200  -  total flux cleaned = 0.010932 Jy
! Total flux subtracted in 200 components = 0.010932 Jy
! Clean residual min=-0.008563 max=0.010187 Jy/beam
! Clean residual mean=0.000528 rms=0.002615 Jy/beam
! Combined flux in latest and established models = 0.92813 Jy
selfcal
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 147 components and 0.92813 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.170977Jy  sigma=0.001951
! Fit after  self-cal, rms=0.170960Jy  sigma=0.001950
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.00161157 Jy
! Component: 100  -  total flux cleaned = 0.00308061 Jy
! Component: 150  -  total flux cleaned = 0.00424509 Jy
! Component: 200  -  total flux cleaned = 0.0051836 Jy
! Total flux subtracted in 200 components = 0.0051836 Jy
! Clean residual min=-0.007957 max=0.009674 Jy/beam
! Clean residual mean=0.000454 rms=0.002497 Jy/beam
! Combined flux in latest and established models = 0.933314 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 155 components and 0.933314 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.170749Jy  sigma=0.001947
! Fit after  self-cal, rms=0.170739Jy  sigma=0.001947
! 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.170739Jy  sigma=0.001947
! Fit after  self-cal, rms=0.170450Jy  sigma=0.001946
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=0.7376 mas, bmaj=2.395 mas, bpa=-4.011 degrees
! Estimated noise=245.92 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00214399 Jy
! Component: 100  -  total flux cleaned = 0.00347742 Jy
! Component: 150  -  total flux cleaned = 0.00428746 Jy
! Component: 200  -  total flux cleaned = 0.00491518 Jy
! Total flux subtracted in 200 components = 0.00491518 Jy
! Clean residual min=-0.008041 max=0.009652 Jy/beam
! Clean residual mean=0.000349 rms=0.002410 Jy/beam
! Combined flux in latest and established models = 0.938229 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 164 components and 0.938229 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.170278Jy  sigma=0.001943
! Fit after  self-cal, rms=0.170278Jy  sigma=0.001943
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.000936254 Jy
! Component: 100  -  total flux cleaned = 0.00152066 Jy
! Component: 150  -  total flux cleaned = 0.00207134 Jy
! Component: 200  -  total flux cleaned = 0.00250611 Jy
! Total flux subtracted in 200 components = 0.00250611 Jy
! Clean residual min=-0.007697 max=0.009334 Jy/beam
! Clean residual mean=0.000314 rms=0.002352 Jy/beam
! Combined flux in latest and established models = 0.940735 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 171 components and 0.940735 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.170180Jy  sigma=0.001941
! Fit after  self-cal, rms=0.170179Jy  sigma=0.001941
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 90 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.170179Jy  sigma=0.001941
! Fit after  self-cal, rms=0.170484Jy  sigma=0.001940
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=1.99 mas, bmaj=2.865 mas, bpa=-5.149 degrees
! Estimated noise=278.647 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00542762 Jy
! Component: 100  -  total flux cleaned = 0.00845688 Jy
! Component: 150  -  total flux cleaned = 0.00932367 Jy
! Component: 200  -  total flux cleaned = 0.00981417 Jy
! Total flux subtracted in 200 components = 0.00981417 Jy
! Clean residual min=-0.009364 max=0.012190 Jy/beam
! Clean residual mean=0.000264 rms=0.003178 Jy/beam
! Combined flux in latest and established models = 0.950549 Jy
selfcal
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 184 components and 0.950549 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.170445Jy  sigma=0.001939
! Fit after  self-cal, rms=0.170427Jy  sigma=0.001939
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.00146107 Jy
! Component: 100  -  total flux cleaned = 0.00183023 Jy
! Component: 150  -  total flux cleaned = 0.00209428 Jy
! Component: 200  -  total flux cleaned = 0.00242802 Jy
! Total flux subtracted in 200 components = 0.00242802 Jy
! Clean residual min=-0.009012 max=0.011892 Jy/beam
! Clean residual mean=0.000203 rms=0.003124 Jy/beam
! Combined flux in latest and established models = 0.952977 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 186 components and 0.952977 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.170409Jy  sigma=0.001938
! Fit after  self-cal, rms=0.170401Jy  sigma=0.001938
! 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=0.7406 mas, bmaj=2.39 mas, bpa=-4.049 degrees
! Estimated noise=246.1 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7406 x 2.39 at -4.049 degrees (North through East)
! Clean map  min=-0.0075329  max=0.31212 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
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=0.5181 mas, bmaj=2.109 mas, bpa=-4.68 degrees
! Estimated noise=610.661 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.266761 Jy
! Component: 100  -  total flux cleaned = 0.403206 Jy
! Component: 150  -  total flux cleaned = 0.487499 Jy
! Component: 200  -  total flux cleaned = 0.549317 Jy
! Total flux subtracted in 200 components = 0.549317 Jy
! Clean residual min=-0.018263 max=0.038670 Jy/beam
! Clean residual mean=0.001392 rms=0.007278 Jy/beam
! Combined flux in latest and established models = 0.549317 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 26 model components to the UV plane model.
! The established model now contains 26 components and 0.549317 Jy
! Inverting map and beam 
! Estimated beam: bmin=0.7406 mas, bmaj=2.39 mas, bpa=-4.049 degrees
! Estimated noise=246.1 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.0831167 Jy
! Component: 100  -  total flux cleaned = 0.142117 Jy
! Component: 150  -  total flux cleaned = 0.187131 Jy
! Component: 200  -  total flux cleaned = 0.222775 Jy
! Total flux subtracted in 200 components = 0.222775 Jy
! Clean residual min=-0.013270 max=0.028787 Jy/beam
! Clean residual mean=0.002828 rms=0.006232 Jy/beam
! Combined flux in latest and established models = 0.772092 Jy
! Adding 60 model components to the UV plane model.
! The established model now contains 79 components and 0.772092 Jy
! Inverting map 
! Added new window around map position (-2.08, -1.12).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0314014 Jy
! Component: 100  -  total flux cleaned = 0.0552899 Jy
! Component: 150  -  total flux cleaned = 0.0746937 Jy
! Component: 200  -  total flux cleaned = 0.0907277 Jy
! Total flux subtracted in 200 components = 0.0907276 Jy
! Clean residual min=-0.007211 max=0.015239 Jy/beam
! Clean residual mean=0.001474 rms=0.003568 Jy/beam
! Combined flux in latest and established models = 0.86282 Jy
! Adding 82 model components to the UV plane model.
! The established model now contains 144 components and 0.86282 Jy
! Inverting map 
! Added new window around map position (-5.6, -3.68).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0159917 Jy
! Component: 100  -  total flux cleaned = 0.0282094 Jy
! Component: 150  -  total flux cleaned = 0.0385144 Jy
! Component: 200  -  total flux cleaned = 0.0472794 Jy
! Total flux subtracted in 200 components = 0.0472794 Jy
! Clean residual min=-0.005815 max=0.009914 Jy/beam
! Clean residual mean=0.000750 rms=0.002354 Jy/beam
! Combined flux in latest and established models = 0.910099 Jy
! Adding 69 model components to the UV plane model.
! The established model now contains 194 components and 0.910099 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 90 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=1.99 mas, bmaj=2.865 mas, bpa=-5.149 degrees
! Estimated noise=278.647 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0121644 Jy
! Component: 100  -  total flux cleaned = 0.0211879 Jy
! Component: 150  -  total flux cleaned = 0.0281852 Jy
! Component: 200  -  total flux cleaned = 0.0336854 Jy
! Total flux subtracted in 200 components = 0.0336854 Jy
! Clean residual min=-0.006819 max=0.010066 Jy/beam
! Clean residual mean=0.000426 rms=0.002664 Jy/beam
! Combined flux in latest and established models = 0.943784 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.00435113 Jy
! Component: 100  -  total flux cleaned = 0.00780908 Jy
! Component: 150  -  total flux cleaned = 0.0101598 Jy
! Component: 200  -  total flux cleaned = 0.0111231 Jy
! Total flux subtracted in 200 components = 0.0111231 Jy
! Clean residual min=-0.006585 max=0.009355 Jy/beam
! Clean residual mean=0.000137 rms=0.002492 Jy/beam
! Combined flux in latest and established models = 0.954907 Jy
! Adding 91 model components to the UV plane model.
! The established model now contains 259 components and 0.954907 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=0.7406 mas, bmaj=2.39 mas, bpa=-4.049 degrees
! Estimated noise=246.1 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000138324 Jy
! Component: 100  -  total flux cleaned = 0.000247523 Jy
! Component: 150  -  total flux cleaned = 0.000450285 Jy
! Component: 200  -  total flux cleaned = 0.000637875 Jy
! Total flux subtracted in 200 components = 0.000637875 Jy
! Clean residual min=-0.005149 max=0.006818 Jy/beam
! Clean residual mean=0.000071 rms=0.001681 Jy/beam
! Combined flux in latest and established models = 0.955545 Jy
selfcal
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 284 components and 0.955545 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.169763Jy  sigma=0.001922
! Fit after  self-cal, rms=0.169349Jy  sigma=0.001919
wmodel J1150-0023_X_2003_06_18_pus_map.mod
! Writing 284 model components to file: J1150-0023_X_2003_06_18_pus_map.mod
wobs J1150-0023_X_2003_06_18_pus_uvs.fits
! Writing UV FITS file: J1150-0023_X_2003_06_18_pus_uvs.fits
wwins J1150-0023_X_2003_06_18_pus_map.win
! wwins: Wrote 6 windows to J1150-0023_X_2003_06_18_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.003024 Jy
! Component: 100  -  total flux cleaned = 0.0054084 Jy
! Component: 150  -  total flux cleaned = 0.007073 Jy
! Component: 200  -  total flux cleaned = 0.00851245 Jy
! Component: 250  -  total flux cleaned = 0.00906705 Jy
! Component: 300  -  total flux cleaned = 0.00959649 Jy
! Component: 350  -  total flux cleaned = 0.0101726 Jy
! Component: 400  -  total flux cleaned = 0.0106568 Jy
! Component: 450  -  total flux cleaned = 0.0111867 Jy
! Component: 500  -  total flux cleaned = 0.0113792 Jy
! Component: 550  -  total flux cleaned = 0.0117504 Jy
! Component: 600  -  total flux cleaned = 0.011929 Jy
! Component: 650  -  total flux cleaned = 0.0122757 Jy
! Component: 700  -  total flux cleaned = 0.0125001 Jy
! Component: 750  -  total flux cleaned = 0.0128278 Jy
! Component: 800  -  total flux cleaned = 0.0129874 Jy
! Component: 850  -  total flux cleaned = 0.0130916 Jy
! Component: 900  -  total flux cleaned = 0.0131425 Jy
! Component: 950  -  total flux cleaned = 0.0133896 Jy
! Component: 1000  -  total flux cleaned = 0.013534 Jy
! Component: 1050  -  total flux cleaned = 0.0136744 Jy
! Component: 1100  -  total flux cleaned = 0.0136746 Jy
! Component: 1150  -  total flux cleaned = 0.0138553 Jy
! Component: 1200  -  total flux cleaned = 0.0138992 Jy
! Component: 1250  -  total flux cleaned = 0.0139856 Jy
! Component: 1300  -  total flux cleaned = 0.0139009 Jy
! Component: 1350  -  total flux cleaned = 0.0140273 Jy
! Component: 1400  -  total flux cleaned = 0.0139451 Jy
! Component: 1450  -  total flux cleaned = 0.0139865 Jy
! Component: 1500  -  total flux cleaned = 0.0140658 Jy
! Component: 1550  -  total flux cleaned = 0.0139484 Jy
! Component: 1600  -  total flux cleaned = 0.0139483 Jy
! Component: 1650  -  total flux cleaned = 0.0138733 Jy
! Component: 1700  -  total flux cleaned = 0.0138732 Jy
! Component: 1750  -  total flux cleaned = 0.0137639 Jy
! Component: 1800  -  total flux cleaned = 0.0137281 Jy
! Component: 1850  -  total flux cleaned = 0.013693 Jy
! Component: 1900  -  total flux cleaned = 0.0136231 Jy
! Component: 1950  -  total flux cleaned = 0.0135203 Jy
! Component: 2000  -  total flux cleaned = 0.0134868 Jy
! Total flux subtracted in 2048 components = 0.0134203 Jy
! Clean residual min=-0.001714 max=0.001832 Jy/beam
! Clean residual mean=-0.000081 rms=0.000708 Jy/beam
! Combined flux in latest and established models = 0.968965 Jy
keep
! Adding 165 model components to the UV plane model.
! The established model now contains 449 components and 0.968965 Jy
wmap "J1150-0023_X_2003_06_18_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7406 x 2.39 at -4.049 degrees (North through East)
! Clean map  min=-0.0038748  max=0.29632 Jy/beam
! Writing clean map to FITS file: J1150-0023_X_2003_06_18_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.296317 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00069924 
device "J1150-0023_X_2003_06_18_pus\_map.eps/VPS"
! Attempting to open device: 'J1150-0023_X_2003_06_18_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.70793 0.70793 1.41586 2.83172 5.66344 11.3269 22.6538 45.3075 90.6151
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.002 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.296 
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.7406 x 2.39 at -4.049 degrees (North through East)
! Clean map  min=-0.0038748  max=0.29632 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1150-0023_X_2003_06_18_pus\_map.gif/vgif"
! Attempting to open device: 'J1150-0023_X_2003_06_18_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1150-0023_X_2003_06_18_pus_uvs.log closed on Thu Jan 18 23:06:08 2007