! Started logfile: J2037-1522_X_2005_07_20_yyk_uvs.log on Fri Jan 20 10:59:47 2006
obs J2037-1522_X_2005_07_20_yyk_uve.fits
! Reading UV FITS file: J2037-1522_X_2005_07_20_yyk_uve.fits
! AN table 1: 10 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.8 visibilities/baseline/integration-bin.
! Found source: J2037-1522
! 
! 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 1488 lines of history.
! 
! Reading 1440 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
![@muppet J2037-1522_X_2005_07_20_yyk]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.04
float dynam
dynam = 6.0
float amp_soltime1
amp_soltime1 = 10
float amp_soltime2
amp_soltime2 = 1
float phase_soltime1
phase_soltime1=10
float phase_soltime2
phase_soltime2=0.5
float phase_soltime
phase_soltime=phase_soltime1
float ampcor_selflim
ampcor_selflim=1.20
float thresh
thresh = 0.10
float win_mult
win_mult = 1.8
float time_av
time_av = 30
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.200x0.200 milli-arcsec cellsize.
phase_soltime=phase_soltime1
print "uvstat(rms)=",uvstat(rms),"Jy"
! uvstat(rms)= 0.120906 Jy 
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.6544 mas, bmaj=1.806 mas, bpa=-4.401 degrees
! Estimated noise=1.71195 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal false,false,phase_soltime
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0768161 Jy
! Component: 100  -  total flux cleaned = 0.0916725 Jy
! Total flux subtracted in 100 components = 0.0916725 Jy
! Clean residual min=-0.009043 max=0.010370 Jy/beam
! Clean residual mean=-0.000028 rms=0.002194 Jy/beam
! Combined flux in latest and established models = 0.0916725 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 23 model components to the UV plane model.
! The established model now contains 23 components and 0.0916725 Jy
! 
! Correcting IF 1.
!  A total of 10 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 12 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 12 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 52 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.078294Jy  sigma=1.182225
! Fit after  self-cal, rms=0.073788Jy  sigma=1.113132
! Inverting map and beam 
! Estimated beam: bmin=0.6544 mas, bmaj=1.806 mas, bpa=-4.401 degrees
! Estimated noise=1.71195 mJy/beam.
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 0,-2
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -2.
! 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.8495 mas, bmaj=2.282 mas, bpa=-6.044 degrees
! Estimated noise=1.1768 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal false,false,phase_soltime
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0118745 Jy
! Component: 100  -  total flux cleaned = 0.0158567 Jy
! Component: 150  -  total flux cleaned = 0.0176798 Jy
! Component: 200  -  total flux cleaned = 0.0183075 Jy
! Total flux subtracted in 200 components = 0.0183075 Jy
! Clean residual min=-0.005973 max=0.005846 Jy/beam
! Clean residual mean=-0.000021 rms=0.001613 Jy/beam
! Combined flux in latest and established models = 0.10998 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 26 model components to the UV plane model.
! The established model now contains 42 components and 0.10998 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.072793Jy  sigma=1.087165
! Fit after  self-cal, rms=0.072785Jy  sigma=1.087036
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
restore
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8495 x 2.282 at -6.044 degrees (North through East)
! Clean map  min=-0.0055655  max=0.096054 Jy/beam
if(peak(flux) < thresh*2)
  selflims ampcor_selflim
  end if
! Selfcal amplitude corrections will be limited to 0.833333 -> 1.2.
! Selfcal phase corrections will not be limited.
gscale
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Amplitude normalization factor in sub-array 1: 1
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.00*    
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 1.01514
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.88     FD        0.95     HN        1.00     KP        0.87     
!   LA        1.00*    MK        0.95     NL        0.95     OV        0.95     
!   PT        1.13     SC        1.17     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 1.00768
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.95     HN        0.91     KP        0.84     
!   LA        1.00*    MK        1.00     NL        1.05     OV        0.98     
!   PT        1.14     SC        1.09     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 1
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.00*    
! 
! 
! Fit before self-cal, rms=0.072785Jy  sigma=1.087036
! Fit after  self-cal, rms=0.071522Jy  sigma=1.073272
selfcal false, false, phase_soltime
! Performing phase self-cal over 10 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.071522Jy  sigma=1.073272
! Fit after  self-cal, rms=0.071524Jy  sigma=1.073196
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.8629 mas, bmaj=2.341 mas, bpa=-7.345 degrees
! Estimated noise=1.16401 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal false,false,phase_soltime
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.00111442 Jy
! Component: 100  -  total flux cleaned = -0.00102923 Jy
! Component: 150  -  total flux cleaned = -0.00097045 Jy
! Component: 200  -  total flux cleaned = -0.000948973 Jy
! Total flux subtracted in 200 components = -0.000948973 Jy
! Clean residual min=-0.005248 max=0.005109 Jy/beam
! Clean residual mean=-0.000029 rms=0.001359 Jy/beam
! Combined flux in latest and established models = 0.109031 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 48 components and 0.109031 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.071496Jy  sigma=1.072475
! Fit after  self-cal, rms=0.071497Jy  sigma=1.072444
! Inverting map 
print "************** FINISHED AMPLITUDE GSCALE SELF-CAL **************"
! ************** FINISHED AMPLITUDE GSCALE SELF-CAL ************** 
! 
phase_soltime=phase_soltime2
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.071497Jy  sigma=1.072444
! Fit after  self-cal, rms=0.067326Jy  sigma=1.007696
dynam = dynam - 0.5
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 false,false,phase_soltime
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00201644 Jy
! Component: 100  -  total flux cleaned = 0.00210432 Jy
! Component: 150  -  total flux cleaned = 0.0021049 Jy
! Component: 200  -  total flux cleaned = 0.00210492 Jy
! Total flux subtracted in 200 components = 0.00210492 Jy
! Clean residual min=-0.004862 max=0.004952 Jy/beam
! Clean residual mean=-0.000027 rms=0.001302 Jy/beam
! Combined flux in latest and established models = 0.111136 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 57 components and 0.111136 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.067330Jy  sigma=1.006694
! Fit after  self-cal, rms=0.066478Jy  sigma=0.999802
! Inverting map 
print "*** FINISHED NATURAL WEIGHTING CLEAN with shorter phase_soltime ***"
! *** FINISHED NATURAL WEIGHTING CLEAN with shorter phase_soltime *** 
! 
dynam = dynam - 0.25
restore
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8629 x 2.341 at -7.345 degrees (North through East)
! Clean map  min=-0.0046109  max=0.097495 Jy/beam
if(peak(flux) > thresh)
  selfcal true, true, amp_soltime1
  selfcal false, false, phase_soltime
  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 false,false,phase_soltime
    new_peak = peak(flux)
    until(new_peak<=flux_cutoff)
  selfcal true, true, amp_soltime2
  selfcal false, false, phase_soltime
  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 false,false,phase_soltime
    new_peak = peak(flux)
    until(new_peak<=flux_cutoff)
  print "************** FINISHED AMPLITUDE SELF-CAL **************"
  end if
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
win_mult = win_mult * 1.4
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.149 mas, bmaj=4.176 mas, bpa=0.9021 degrees
! Estimated noise=1.47967 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal false,false,phase_soltime
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000381248 Jy
! Component: 100  -  total flux cleaned = -0.000460155 Jy
! Component: 150  -  total flux cleaned = -0.000569278 Jy
! Component: 200  -  total flux cleaned = -0.000691947 Jy
! Total flux subtracted in 200 components = -0.000691947 Jy
! Clean residual min=-0.006081 max=0.006666 Jy/beam
! Clean residual mean=-0.000054 rms=0.001786 Jy/beam
! Combined flux in latest and established models = 0.110444 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 59 components and 0.110444 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.066492Jy  sigma=1.000126
! Fit after  self-cal, rms=0.066396Jy  sigma=0.998987
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
win_mult = win_mult / 1.4
print "************** FINISHED TAPERING SELF-CAL CLEAN **************"
! ************** FINISHED TAPERING SELF-CAL CLEAN ************** 
! 
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true,true,true
! clrmod: Cleared the established, tentative and continuum 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.6601 mas, bmaj=1.828 mas, bpa=-5.14 degrees
! Estimated noise=1.70854 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.081911 Jy
! Component: 100  -  total flux cleaned = 0.0973922 Jy
! Component: 150  -  total flux cleaned = 0.104176 Jy
! Component: 200  -  total flux cleaned = 0.10767 Jy
! Total flux subtracted in 200 components = 0.10767 Jy
! Clean residual min=-0.006763 max=0.006248 Jy/beam
! Clean residual mean=-0.000027 rms=0.001670 Jy/beam
! Combined flux in latest and established models = 0.10767 Jy
uvw 0,-2
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -2.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 24 model components to the UV plane model.
! The established model now contains 24 components and 0.10767 Jy
! Inverting map and beam 
! Estimated beam: bmin=0.8629 mas, bmaj=2.341 mas, bpa=-7.345 degrees
! Estimated noise=1.16401 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.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00215152 Jy
! Component: 100  -  total flux cleaned = 0.00242805 Jy
! Component: 150  -  total flux cleaned = 0.00258057 Jy
! Component: 200  -  total flux cleaned = 0.00266298 Jy
! Total flux subtracted in 200 components = 0.00266298 Jy
! Clean residual min=-0.004951 max=0.004865 Jy/beam
! Clean residual mean=-0.000028 rms=0.001297 Jy/beam
! Combined flux in latest and established models = 0.110333 Jy
! Adding 15 model components to the UV plane model.
! The established model now contains 35 components and 0.110333 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.149 mas, bmaj=4.176 mas, bpa=0.9021 degrees
! Estimated noise=1.47967 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.04  cutoff=0
! Component: 050  -  total flux cleaned = -9.6731e-05 Jy
! Component: 100  -  total flux cleaned = -9.00213e-05 Jy
! Component: 150  -  total flux cleaned = -8.21663e-05 Jy
! Component: 200  -  total flux cleaned = -0.000163502 Jy
! Total flux subtracted in 200 components = -0.000163502 Jy
! Clean residual min=-0.005969 max=0.006652 Jy/beam
! Clean residual mean=-0.000054 rms=0.001783 Jy/beam
! Combined flux in latest and established models = 0.110169 Jy
! Adding 7 model components to the UV plane model.
! The established model now contains 41 components and 0.110169 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=0.8629 mas, bmaj=2.341 mas, bpa=-7.345 degrees
! Estimated noise=1.16401 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.000115266 Jy
! Component: 100  -  total flux cleaned = 9.04801e-05 Jy
! Component: 150  -  total flux cleaned = 6.22495e-05 Jy
! Component: 200  -  total flux cleaned = 8.44199e-05 Jy
! Total flux subtracted in 200 components = 8.44199e-05 Jy
! Clean residual min=-0.004829 max=0.004979 Jy/beam
! Clean residual mean=-0.000028 rms=0.001283 Jy/beam
! Combined flux in latest and established models = 0.110254 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 48 components and 0.110254 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.066351Jy  sigma=0.998632
! Fit after  self-cal, rms=0.066342Jy  sigma=0.998434
wmodel J2037-1522_X_2005_07_20_yyk\_map.mod
! Writing 48 model components to file: J2037-1522_X_2005_07_20_yyk_map.mod
wobs J2037-1522_X_2005_07_20_yyk\_uvs.fits
! Writing UV FITS file: J2037-1522_X_2005_07_20_yyk_uvs.fits
wwins J2037-1522_X_2005_07_20_yyk\_map.win
! wwins: Wrote 1 windows to J2037-1522_X_2005_07_20_yyk_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.000370015 Jy
! Component: 100  -  total flux cleaned = 0.000535798 Jy
! Component: 150  -  total flux cleaned = 0.000384395 Jy
! Component: 200  -  total flux cleaned = 0.000240973 Jy
! Component: 250  -  total flux cleaned = 0.00016986 Jy
! Component: 300  -  total flux cleaned = -0.000160786 Jy
! Component: 350  -  total flux cleaned = -0.000727226 Jy
! Component: 400  -  total flux cleaned = -0.00115029 Jy
! Component: 450  -  total flux cleaned = -0.00138324 Jy
! Component: 500  -  total flux cleaned = -0.00143884 Jy
! Component: 550  -  total flux cleaned = -0.00154739 Jy
! Component: 600  -  total flux cleaned = -0.00154749 Jy
! Component: 650  -  total flux cleaned = -0.00154775 Jy
! Component: 700  -  total flux cleaned = -0.00154785 Jy
! Component: 750  -  total flux cleaned = -0.00134893 Jy
! Component: 800  -  total flux cleaned = -0.00134924 Jy
! Component: 850  -  total flux cleaned = -0.00125394 Jy
! Component: 900  -  total flux cleaned = -0.00120757 Jy
! Component: 950  -  total flux cleaned = -0.0011611 Jy
! Component: 1000  -  total flux cleaned = -0.00111592 Jy
! Component: 1050  -  total flux cleaned = -0.00111471 Jy
! Component: 1100  -  total flux cleaned = -0.00115671 Jy
! Component: 1150  -  total flux cleaned = -0.00115552 Jy
! Component: 1200  -  total flux cleaned = -0.00111492 Jy
! Component: 1250  -  total flux cleaned = -0.00119644 Jy
! Component: 1300  -  total flux cleaned = -0.00123651 Jy
! Component: 1350  -  total flux cleaned = -0.0011583 Jy
! Component: 1400  -  total flux cleaned = -0.00104324 Jy
! Component: 1450  -  total flux cleaned = -0.00100551 Jy
! Component: 1500  -  total flux cleaned = -0.000967789 Jy
! Component: 1550  -  total flux cleaned = -0.000894302 Jy
! Component: 1600  -  total flux cleaned = -0.000786203 Jy
! Component: 1650  -  total flux cleaned = -0.000785925 Jy
! Component: 1700  -  total flux cleaned = -0.000611765 Jy
! Component: 1750  -  total flux cleaned = -0.000405742 Jy
! Component: 1800  -  total flux cleaned = -0.000202938 Jy
! Component: 1850  -  total flux cleaned = -2.76293e-06 Jy
! Component: 1900  -  total flux cleaned = 0.000162597 Jy
! Component: 1950  -  total flux cleaned = 0.000292524 Jy
! Component: 2000  -  total flux cleaned = 0.000518475 Jy
! Total flux subtracted in 2048 components = 0.000740581 Jy
! Clean residual min=-0.001579 max=0.002141 Jy/beam
! Clean residual mean=-0.000012 rms=0.000589 Jy/beam
! Combined flux in latest and established models = 0.110994 Jy
keep
! Adding 131 model components to the UV plane model.
! The established model now contains 179 components and 0.110994 Jy
![Exited script file: muppet]
wmap "J2037-1522_X_2005_07_20_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8629 x 2.341 at -7.345 degrees (North through East)
! Clean map  min=-0.0032315  max=0.097811 Jy/beam
! Writing clean map to FITS file: J2037-1522_X_2005_07_20_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.0978107 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000583338 
device "J2037-1522_X_2005_07_20_yyk\_map.eps/VPS"
! Attempting to open device: 'J2037-1522_X_2005_07_20_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -1.78918 1.78918 3.57837 7.15674 14.3135 28.627 57.2539
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0017 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.097 
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.8629 x 2.341 at -7.345 degrees (North through East)
! Clean map  min=-0.0032315  max=0.097811 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2037-1522_X_2005_07_20_yyk\_map.gif/gif"
! Attempting to open device: 'J2037-1522_X_2005_07_20_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J2037-1522_X_2005_07_20_yyk_uvs.log closed on Fri Jan 20 10:59:51 2006