! Started logfile: J1625-2527_X_2003_05_07_pus_uvs.log on Thu Dec 14 16:07:09 2006
obs J1625-2527_X_2003_05_07_pus_uva.fits
! Reading UV FITS file: J1625-2527_X_2003_05_07_pus_uva.fits
! AN table 1: 120 integrations on 171 of 171 possible baselines.
! AN table 2: 196 integrations on 171 of 171 possible baselines.
! AN table 3: 9 integrations on 171 of 171 possible baselines.
! AN table 4: 160 integrations on 171 of 171 possible baselines.
! AN table 5: 84 integrations on 171 of 171 possible baselines.
! AN table 6: 131 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.0430159 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1625-2527
! 
! 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 1739 lines of history.
! 
! Reading 20596 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 = 256
float field_cell
field_cell = 0.2
float taper_size
taper_size = 70.
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 2024 telescope corrections were flagged in sub-array 1.
!  A total of 3196 telescope corrections were flagged in sub-array 2.
!  A total of 171 telescope corrections were flagged in sub-array 3.
!  A total of 2834 telescope corrections were flagged in sub-array 4.
!  A total of 1051 telescope corrections were flagged in sub-array 5.
!  A total of 2129 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 2.
!  A total of 2024 telescope corrections were flagged in sub-array 1.
!  A total of 3196 telescope corrections were flagged in sub-array 2.
!  A total of 171 telescope corrections were flagged in sub-array 3.
!  A total of 2834 telescope corrections were flagged in sub-array 4.
!  A total of 1051 telescope corrections were flagged in sub-array 5.
!  A total of 2129 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 3.
!  A total of 2024 telescope corrections were flagged in sub-array 1.
!  A total of 3196 telescope corrections were flagged in sub-array 2.
!  A total of 171 telescope corrections were flagged in sub-array 3.
!  A total of 2834 telescope corrections were flagged in sub-array 4.
!  A total of 1051 telescope corrections were flagged in sub-array 5.
!  A total of 2129 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 4.
!  A total of 2027 telescope corrections were flagged in sub-array 1.
!  A total of 3196 telescope corrections were flagged in sub-array 2.
!  A total of 171 telescope corrections were flagged in sub-array 3.
!  A total of 2834 telescope corrections were flagged in sub-array 4.
!  A total of 1051 telescope corrections were flagged in sub-array 5.
!  A total of 2129 telescope corrections were flagged in sub-array 6.
! 
! Fit before self-cal, rms=1.528885Jy  sigma=0.010702
! Fit after  self-cal, rms=0.756744Jy  sigma=0.005330
! 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 4.09% of the data.
!  The x-axis pixel size should ideally be below 0.1959 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 milli-arcsec
! Estimated beam: bmin=0.6143 mas, bmaj=0.8985 mas, bpa=-12.24 degrees
! Estimated noise=1909.04 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.18265 Jy
! Component: 100  -  total flux cleaned = 1.45951 Jy
! Total flux subtracted in 100 components = 1.45951 Jy
! Clean residual min=-0.054970 max=0.098471 Jy/beam
! Clean residual mean=0.001590 rms=0.016547 Jy/beam
! Combined flux in latest and established models = 1.45951 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 1.45951 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.529519Jy  sigma=0.002582
! Fit after  self-cal, rms=0.529922Jy  sigma=0.002582
! Inverting map 
! Your choice of large map pixels excluded 4.09% of the data.
!  The x-axis pixel size should ideally be below 0.1959 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.101425 Jy
! Component: 100  -  total flux cleaned = 0.147491 Jy
! Total flux subtracted in 100 components = 0.147491 Jy
! Clean residual min=-0.046399 max=0.047717 Jy/beam
! Clean residual mean=0.001002 rms=0.014323 Jy/beam
! Combined flux in latest and established models = 1.607 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 13 components and 1.607 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.505088Jy  sigma=0.002057
! Fit after  self-cal, rms=0.505342Jy  sigma=0.002057
! Inverting map 
! Your choice of large map pixels excluded 4.09% of the data.
!  The x-axis pixel size should ideally be below 0.1959 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 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 4.09% of the data.
!  The x-axis pixel size should ideally be below 0.1959 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 milli-arcsec
! Estimated beam: bmin=0.9495 mas, bmaj=1.477 mas, bpa=-18.23 degrees
! Estimated noise=788.018 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.0689392 Jy
! Component: 100  -  total flux cleaned = 0.0936455 Jy
! Component: 150  -  total flux cleaned = 0.102677 Jy
! Component: 200  -  total flux cleaned = 0.104273 Jy
! Total flux subtracted in 200 components = 0.104273 Jy
! Clean residual min=-0.025039 max=0.034006 Jy/beam
! Clean residual mean=-0.000859 rms=0.009479 Jy/beam
! Combined flux in latest and established models = 1.71127 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 19 components and 1.71128 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.502527Jy  sigma=0.001906
! Fit after  self-cal, rms=0.502633Jy  sigma=0.001906
! Inverting map 
! Your choice of large map pixels excluded 4.09% of the data.
!  The x-axis pixel size should ideally be below 0.1959 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 99 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.98     GG        1.00*    HN        1.00*    
!   KK        0.93     KP        1.05     LA        0.98     MA        0.90     
!   MC        1.08     MK        0.93     NL        1.31     ON        1.09     
!   OV        0.95     PT        0.99     SC        1.00*    TC        0.97     
!   TS        1.00*    WF        1.00*    WZ        0.92     
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.94     GG        1.00*    HN        1.09     
!   KK        1.02     KP        1.05     LA        0.93     MA        1.02     
!   MC        1.00*    MK        1.00     NL        1.14     ON        1.04     
!   OV        1.03     PT        0.95     SC        0.89     TC        0.98     
!   TS        1.00*    WF        1.19     WZ        1.04     
! 
!  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*    
!   MC        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 57 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.07     
!   MC        1.14     MK        1.00*    NL        1.00*    ON        1.07     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        0.96     
!   TS        1.00*    WF        1.00*    WZ        0.90     
! 
!  A total of 9 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.01     FD        0.93     GG        1.00*    HN        1.07     
!   KK        1.00*    KP        1.06     LA        0.93     MA        1.03     
!   MC        1.14     MK        1.00*    NL        1.06     ON        1.09     
!   OV        0.94     PT        0.94     SC        0.92     TC        0.96     
!   TS        1.00*    WF        0.99     WZ        0.96     
! 
!  A total of 45 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.04     
!   MC        1.23     MK        1.00*    NL        1.00*    ON        1.00*    
!   OV        1.00*    PT        1.00*    SC        0.90     TC        0.93     
!   TS        1.00*    WF        1.03     WZ        0.99     
! 
! 
! Correcting IF 2.
!  A total of 99 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.97     GG        1.00*    HN        1.00*    
!   KK        0.92     KP        0.99     LA        0.99     MA        0.96     
!   MC        1.07     MK        0.94     NL        1.27     ON        1.12     
!   OV        0.95     PT        1.03     SC        1.00*    TC        0.98     
!   TS        1.00*    WF        1.00*    WZ        0.94     
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.94     GG        1.00*    HN        1.10     
!   KK        1.03     KP        0.99     LA        0.94     MA        1.00     
!   MC        1.00*    MK        1.01     NL        1.09     ON        1.09     
!   OV        1.02     PT        0.99     SC        0.87     TC        1.07     
!   TS        1.00*    WF        1.15     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*    
!   MC        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 57 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.10     
!   MC        1.08     MK        1.00*    NL        1.00*    ON        1.03     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.07     
!   TS        1.00*    WF        1.00*    WZ        0.94     
! 
!  A total of 9 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.01     FD        0.93     GG        1.00*    HN        1.09     
!   KK        1.00*    KP        0.99     LA        0.94     MA        1.02     
!   MC        1.10     MK        1.00*    NL        1.02     ON        1.07     
!   OV        0.94     PT        0.98     SC        0.89     TC        1.01     
!   TS        1.00*    WF        1.02     WZ        0.99     
! 
!  A total of 45 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.05     
!   MC        1.19     MK        1.00*    NL        1.00*    ON        1.00*    
!   OV        1.00*    PT        1.00*    SC        0.84     TC        1.00     
!   TS        1.00*    WF        1.06     WZ        1.04     
! 
! 
! Correcting IF 3.
!  A total of 99 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.07     FD        0.96     GG        1.00*    HN        1.00*    
!   KK        0.97     KP        0.93     LA        1.00     MA        0.92     
!   MC        1.41     MK        0.95     NL        1.24     ON        1.18     
!   OV        1.00     PT        1.07     SC        1.00*    TC        0.95     
!   TS        1.00*    WF        1.00*    WZ        0.86     
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        0.93     GG        1.00*    HN        1.11     
!   KK        1.06     KP        0.95     LA        0.94     MA        0.94     
!   MC        1.00*    MK        0.95     NL        1.06     ON        1.14     
!   OV        0.99     PT        1.03     SC        0.88     TC        1.01     
!   TS        1.00*    WF        1.09     WZ        1.01     
! 
!  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*    
!   MC        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 57 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.06     
!   MC        1.14     MK        1.00*    NL        1.00*    ON        1.04     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        0.99     
!   TS        1.00*    WF        1.00*    WZ        0.91     
! 
!  A total of 9 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.06     FD        0.92     GG        1.00*    HN        1.08     
!   KK        1.00*    KP        0.92     LA        0.95     MA        1.01     
!   MC        1.84     MK        1.00*    NL        1.00     ON        1.09     
!   OV        0.99     PT        1.01     SC        0.91     TC        0.98     
!   TS        1.00*    WF        1.01     WZ        0.94     
! 
!  A total of 45 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.06     
!   MC        1.12     MK        1.00*    NL        1.00*    ON        1.00*    
!   OV        1.00*    PT        1.00*    SC        0.87     TC        0.90     
!   TS        1.00*    WF        1.00     WZ        1.03     
! 
! 
! Correcting IF 4.
!  A total of 96 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        0.94     GG        1.00*    HN        1.00*    
!   KK        0.95     KP        1.01     LA        0.95     MA        1.00     
!   MC        2.11     MK        0.98     NL        1.25     ON        1.07     
!   OV        0.99     PT        1.07     SC        1.00*    TC        1.00     
!   TS        1.00*    WF        1.00*    WZ        0.97     
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.91     GG        1.00*    HN        1.16     
!   KK        0.98     KP        1.01     LA        0.93     MA        1.02     
!   MC        1.00*    MK        0.98     NL        1.08     ON        1.06     
!   OV        0.99     PT        1.03     SC        0.92     TC        0.97     
!   TS        1.00*    WF        1.06     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*    
!   MC        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 57 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.12     
!   MC        1.54     MK        1.00*    NL        1.00*    ON        1.05     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        0.91     
!   TS        1.00*    WF        1.00*    WZ        0.97     
! 
!  A total of 9 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.03     FD        0.90     GG        1.00*    HN        1.12     
!   KK        1.00*    KP        0.99     LA        0.93     MA        1.03     
!   MC        1.67     MK        1.00*    NL        1.01     ON        1.03     
!   OV        0.97     PT        1.02     SC        0.97     TC        1.31     
!   TS        1.00*    WF        0.99     WZ        0.95     
! 
!  A total of 45 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.11     
!   MC        1.91     MK        1.00*    NL        1.00*    ON        1.00*    
!   OV        1.00*    PT        1.00*    SC        0.87     TC        0.95     
!   TS        1.00*    WF        1.04     WZ        1.00     
! 
! 
! Fit before self-cal, rms=0.502633Jy  sigma=0.001906
! Fit after  self-cal, rms=0.483854Jy  sigma=0.001372
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 3.46% of the data.
!  The x-axis pixel size should ideally be below 0.1959 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 milli-arcsec
! Estimated beam: bmin=0.9752 mas, bmaj=1.514 mas, bpa=-17.52 degrees
! Estimated noise=787.687 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.00441145 Jy
! Component: 100  -  total flux cleaned = -0.00491029 Jy
! Component: 150  -  total flux cleaned = -0.00514601 Jy
! Component: 200  -  total flux cleaned = -0.00555518 Jy
! Total flux subtracted in 200 components = -0.00555518 Jy
! Clean residual min=-0.007164 max=0.011722 Jy/beam
! Clean residual mean=0.000053 rms=0.002390 Jy/beam
! Combined flux in latest and established models = 1.70572 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 25 components and 1.70572 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.483417Jy  sigma=0.001369
! Fit after  self-cal, rms=0.483497Jy  sigma=0.001368
! Inverting map 
! Your choice of large map pixels excluded 3.46% of the data.
!  The x-axis pixel size should ideally be below 0.1959 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 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.483497Jy  sigma=0.001368
! Fit after  self-cal, rms=0.474755Jy  sigma=0.001295
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.46% of the data.
!  The x-axis pixel size should ideally be below 0.1959 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 milli-arcsec
! Estimated beam: bmin=0.9728 mas, bmaj=1.517 mas, bpa=-18.04 degrees
! Estimated noise=787.215 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00112143 Jy
! Component: 100  -  total flux cleaned = -0.00136507 Jy
! Component: 150  -  total flux cleaned = -0.00167981 Jy
! Component: 200  -  total flux cleaned = -0.00185687 Jy
! Total flux subtracted in 200 components = -0.00185687 Jy
! Clean residual min=-0.005153 max=0.007501 Jy/beam
! Clean residual mean=0.000217 rms=0.001890 Jy/beam
! Combined flux in latest and established models = 1.70386 Jy
selfcal
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 25 components and 1.70386 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.474587Jy  sigma=0.001295
! Fit after  self-cal, rms=0.474572Jy  sigma=0.001295
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.46% of the data.
!  The x-axis pixel size should ideally be below 0.1959 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 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.000161626 Jy
! Component: 100  -  total flux cleaned = -0.000234397 Jy
! Component: 150  -  total flux cleaned = -0.00036569 Jy
! Component: 200  -  total flux cleaned = -0.000482256 Jy
! Total flux subtracted in 200 components = -0.000482256 Jy
! Clean residual min=-0.005206 max=0.007774 Jy/beam
! Clean residual mean=0.000236 rms=0.001912 Jy/beam
! Combined flux in latest and established models = 1.70338 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 25 components and 1.70338 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.474492Jy  sigma=0.001295
! Fit after  self-cal, rms=0.474495Jy  sigma=0.001295
! Inverting map 
! Your choice of large map pixels excluded 3.46% of the data.
!  The x-axis pixel size should ideally be below 0.1959 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 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.474495Jy  sigma=0.001295
! Fit after  self-cal, rms=0.472071Jy  sigma=0.001216
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.46% of the data.
!  The x-axis pixel size should ideally be below 0.1959 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 milli-arcsec
! Estimated beam: bmin=0.9743 mas, bmaj=1.519 mas, bpa=-18.1 degrees
! Estimated noise=787.044 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00263913 Jy
! Component: 100  -  total flux cleaned = -0.00292424 Jy
! Component: 150  -  total flux cleaned = -0.00308545 Jy
! Component: 200  -  total flux cleaned = -0.00315666 Jy
! Total flux subtracted in 200 components = -0.00315666 Jy
! Clean residual min=-0.004976 max=0.006456 Jy/beam
! Clean residual mean=0.000039 rms=0.001433 Jy/beam
! Combined flux in latest and established models = 1.70022 Jy
selfcal
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 25 components and 1.70022 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.471941Jy  sigma=0.001216
! Fit after  self-cal, rms=0.472009Jy  sigma=0.001216
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.46% of the data.
!  The x-axis pixel size should ideally be below 0.1959 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 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, 5.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00430176 Jy
! Component: 100  -  total flux cleaned = 0.00471556 Jy
! Component: 150  -  total flux cleaned = 0.00460359 Jy
! Component: 200  -  total flux cleaned = 0.00460495 Jy
! Total flux subtracted in 200 components = 0.00460495 Jy
! Clean residual min=-0.004622 max=0.004334 Jy/beam
! Clean residual mean=-0.000111 rms=0.001249 Jy/beam
! Combined flux in latest and established models = 1.70483 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 33 components and 1.70483 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.471788Jy  sigma=0.001215
! Fit after  self-cal, rms=0.471770Jy  sigma=0.001215
! Inverting map 
! Your choice of large map pixels excluded 3.46% of the data.
!  The x-axis pixel size should ideally be below 0.1959 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 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.471770Jy  sigma=0.001215
! Fit after  self-cal, rms=0.471250Jy  sigma=0.001215
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.46% of the data.
!  The x-axis pixel size should ideally be below 0.1959 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 milli-arcsec
! Estimated beam: bmin=2.725 mas, bmaj=6.145 mas, bpa=-13.02 degrees
! Estimated noise=827.189 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000956701 Jy
! Component: 100  -  total flux cleaned = 0.00103981 Jy
! Component: 150  -  total flux cleaned = 0.0011624 Jy
! Component: 200  -  total flux cleaned = 0.0012086 Jy
! Total flux subtracted in 200 components = 0.0012086 Jy
! Clean residual min=-0.003548 max=0.003390 Jy/beam
! Clean residual mean=-0.000222 rms=0.001339 Jy/beam
! Combined flux in latest and established models = 1.70604 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 38 components and 1.70604 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.471224Jy  sigma=0.001214
! Fit after  self-cal, rms=0.471165Jy  sigma=0.001214
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.46% of the data.
!  The x-axis pixel size should ideally be below 0.1959 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 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.000691416 Jy
! Component: 100  -  total flux cleaned = 0.000792594 Jy
! Component: 150  -  total flux cleaned = 0.000755148 Jy
! Component: 200  -  total flux cleaned = 0.000718061 Jy
! Total flux subtracted in 200 components = 0.000718061 Jy
! Clean residual min=-0.003888 max=0.003316 Jy/beam
! Clean residual mean=-0.000262 rms=0.001363 Jy/beam
! Combined flux in latest and established models = 1.70676 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 44 components and 1.70676 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.471155Jy  sigma=0.001214
! Fit after  self-cal, rms=0.471134Jy  sigma=0.001214
! Inverting map 
! Your choice of large map pixels excluded 3.46% of the data.
!  The x-axis pixel size should ideally be below 0.1959 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 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 3.46% of the data.
!  The x-axis pixel size should ideally be below 0.1959 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 milli-arcsec
! Estimated beam: bmin=0.9754 mas, bmaj=1.521 mas, bpa=-18.11 degrees
! Estimated noise=786.812 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9754 x 1.521 at -18.11 degrees (North through East)
! Clean map  min=-0.0043213  max=1.6039 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.471134Jy  sigma=0.001214
! Fit after  self-cal, rms=0.583193Jy  sigma=0.001055
! Inverting map and beam 
! Your choice of large map pixels excluded 3.46% of the data.
!  The x-axis pixel size should ideally be below 0.1959 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 milli-arcsec
! Estimated beam: bmin=0.974 mas, bmaj=1.52 mas, bpa=-18.04 degrees
! Estimated noise=786.192 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00081247 Jy
! Component: 100  -  total flux cleaned = 0.00090467 Jy
! Component: 150  -  total flux cleaned = 0.000903167 Jy
! Component: 200  -  total flux cleaned = 0.000905417 Jy
! Total flux subtracted in 200 components = 0.000905416 Jy
! Clean residual min=-0.004185 max=0.003940 Jy/beam
! Clean residual mean=-0.000101 rms=0.001098 Jy/beam
! Combined flux in latest and established models = 1.70766 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 52 components and 1.70766 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.583102Jy  sigma=0.001055
! Fit after  self-cal, rms=0.583109Jy  sigma=0.001055
! Inverting map 
! Your choice of large map pixels excluded 3.46% of the data.
!  The x-axis pixel size should ideally be below 0.1959 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000760902 Jy
! Component: 100  -  total flux cleaned = 0.000762721 Jy
! Component: 150  -  total flux cleaned = 0.00068959 Jy
! Component: 200  -  total flux cleaned = 0.000691452 Jy
! Total flux subtracted in 200 components = 0.000691452 Jy
! Clean residual min=-0.004230 max=0.003861 Jy/beam
! Clean residual mean=-0.000123 rms=0.001101 Jy/beam
! Combined flux in latest and established models = 1.70835 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 53 components and 1.70835 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.583045Jy  sigma=0.001055
! Fit after  self-cal, rms=0.583045Jy  sigma=0.001055
! Inverting map 
! Your choice of large map pixels excluded 3.46% of the data.
!  The x-axis pixel size should ideally be below 0.1959 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 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.583045Jy  sigma=0.001055
! Fit after  self-cal, rms=0.636598Jy  sigma=0.001055
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 3.46% of the data.
!  The x-axis pixel size should ideally be below 0.1959 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 milli-arcsec
! Estimated beam: bmin=0.6149 mas, bmaj=0.9037 mas, bpa=-11.4 degrees
! Estimated noise=1970.72 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.20214 Jy
! Component: 100  -  total flux cleaned = 1.48195 Jy
! Component: 150  -  total flux cleaned = 1.58416 Jy
! Component: 200  -  total flux cleaned = 1.63135 Jy
! Total flux subtracted in 200 components = 1.63135 Jy
! Clean residual min=-0.011139 max=0.023291 Jy/beam
! Clean residual mean=0.000343 rms=0.003241 Jy/beam
! Combined flux in latest and established models = 1.63135 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.63135 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 3.46% of the data.
!  The x-axis pixel size should ideally be below 0.1959 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 milli-arcsec
! Estimated beam: bmin=0.9744 mas, bmaj=1.519 mas, bpa=-18.04 degrees
! Estimated noise=785.861 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.0438391 Jy
! Component: 100  -  total flux cleaned = 0.0612074 Jy
! Component: 150  -  total flux cleaned = 0.0697342 Jy
! Component: 200  -  total flux cleaned = 0.0737424 Jy
! Total flux subtracted in 200 components = 0.0737424 Jy
! Clean residual min=-0.004147 max=0.004733 Jy/beam
! Clean residual mean=0.000030 rms=0.001209 Jy/beam
! Combined flux in latest and established models = 1.70509 Jy
! Adding 16 model components to the UV plane model.
! The established model now contains 23 components and 1.70509 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.46% of the data.
!  The x-axis pixel size should ideally be below 0.1959 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 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 3.46% of the data.
!  The x-axis pixel size should ideally be below 0.1959 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 milli-arcsec
! Estimated beam: bmin=2.723 mas, bmaj=6.142 mas, bpa=-13 degrees
! Estimated noise=826.858 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00300575 Jy
! Component: 100  -  total flux cleaned = 0.00347898 Jy
! Component: 150  -  total flux cleaned = 0.00342575 Jy
! Component: 200  -  total flux cleaned = 0.00340122 Jy
! Total flux subtracted in 200 components = 0.00340122 Jy
! Clean residual min=-0.003365 max=0.002643 Jy/beam
! Clean residual mean=-0.000169 rms=0.001139 Jy/beam
! Combined flux in latest and established models = 1.70849 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 = -2.3036e-05 Jy
! Component: 100  -  total flux cleaned = -6.51969e-05 Jy
! Component: 150  -  total flux cleaned = -8.41876e-05 Jy
! Component: 200  -  total flux cleaned = -8.47129e-05 Jy
! Total flux subtracted in 200 components = -8.47129e-05 Jy
! Clean residual min=-0.003352 max=0.002604 Jy/beam
! Clean residual mean=-0.000168 rms=0.001135 Jy/beam
! Combined flux in latest and established models = 1.70841 Jy
! Adding 16 model components to the UV plane model.
! The established model now contains 37 components and 1.70841 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.46% of the data.
!  The x-axis pixel size should ideally be below 0.1959 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 3.46% of the data.
!  The x-axis pixel size should ideally be below 0.1959 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 milli-arcsec
! Estimated beam: bmin=0.9744 mas, bmaj=1.519 mas, bpa=-18.04 degrees
! Estimated noise=785.861 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000256044 Jy
! Component: 100  -  total flux cleaned = -0.000259634 Jy
! Component: 150  -  total flux cleaned = -0.000172008 Jy
! Component: 200  -  total flux cleaned = -9.18889e-05 Jy
! Total flux subtracted in 200 components = -9.18889e-05 Jy
! Clean residual min=-0.004067 max=0.004049 Jy/beam
! Clean residual mean=-0.000095 rms=0.001079 Jy/beam
! Combined flux in latest and established models = 1.70831 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 43 components and 1.70831 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.636572Jy  sigma=0.001055
! Fit after  self-cal, rms=0.636570Jy  sigma=0.001055
wmodel J1625-2527_X_2003_05_07_pus_map.mod
! Writing 43 model components to file: J1625-2527_X_2003_05_07_pus_map.mod
wobs J1625-2527_X_2003_05_07_pus_uvs.fits
! Writing UV FITS file: J1625-2527_X_2003_05_07_pus_uvs.fits
wwins J1625-2527_X_2003_05_07_pus_map.win
! wwins: Wrote 2 windows to J1625-2527_X_2003_05_07_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 3.46% of the data.
!  The x-axis pixel size should ideally be below 0.1959 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000413026 Jy
! Component: 100  -  total flux cleaned = 0.000410601 Jy
! Component: 150  -  total flux cleaned = 0.000222434 Jy
! Component: 200  -  total flux cleaned = 0.000223945 Jy
! Component: 250  -  total flux cleaned = 0.000170664 Jy
! Component: 300  -  total flux cleaned = 0.000222595 Jy
! Component: 350  -  total flux cleaned = 0.000273318 Jy
! Component: 400  -  total flux cleaned = 0.000369924 Jy
! Component: 450  -  total flux cleaned = 0.000464045 Jy
! Component: 500  -  total flux cleaned = 0.000556466 Jy
! Component: 550  -  total flux cleaned = 0.000601331 Jy
! Component: 600  -  total flux cleaned = 0.000600096 Jy
! Component: 650  -  total flux cleaned = 0.000513498 Jy
! Component: 700  -  total flux cleaned = 0.000471494 Jy
! Component: 750  -  total flux cleaned = 0.000429726 Jy
! Component: 800  -  total flux cleaned = 0.000388436 Jy
! Component: 850  -  total flux cleaned = 0.000347924 Jy
! Component: 900  -  total flux cleaned = 0.000228201 Jy
! Component: 950  -  total flux cleaned = 0.000111085 Jy
! Component: 1000  -  total flux cleaned = 7.33471e-05 Jy
! Total flux subtracted in 1024 components = 7.33665e-05 Jy
! Clean residual min=-0.002269 max=0.002226 Jy/beam
! Clean residual mean=-0.000099 rms=0.000692 Jy/beam
! Combined flux in latest and established models = 1.70839 Jy
keep
! Adding 47 model components to the UV plane model.
! The established model now contains 90 components and 1.70839 Jy
wmap "J1625-2527_X_2003_05_07_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 3.46% of the data.
!  The x-axis pixel size should ideally be below 0.1959 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9744 x 1.519 at -18.04 degrees (North through East)
! Clean map  min=-0.0037636  max=1.602 Jy/beam
! Writing clean map to FITS file: J1625-2527_X_2003_05_07_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.60203 
invert
! Inverting map 
! Your choice of large map pixels excluded 3.46% of the data.
!  The x-axis pixel size should ideally be below 0.1959 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000691877 
device "J1625-2527_X_2003_05_07_pus\_map.eps/VPS"
! Attempting to open device: 'J1625-2527_X_2003_05_07_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.129562 0.129562 0.259125 0.51825 1.0365 2.073 4.146 8.292 16.584 33.168 66.336
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.002 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.602 
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.9744 x 1.519 at -18.04 degrees (North through East)
! Clean map  min=-0.0037636  max=1.602 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1625-2527_X_2003_05_07_pus\_map.gif/vgif"
! Attempting to open device: 'J1625-2527_X_2003_05_07_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1625-2527_X_2003_05_07_pus_uvs.log closed on Thu Dec 14 16:09:34 2006