<HTML>
<HEAD>
<TITLE>Profiler updates</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>Maris,<BR>
<BR>
I committed your patch to profile.tcl with a few modifications. The window placement is a nice improvement. There was already an error trap for profiles with a 0 length, so I deleted your 2nd trap for this condition. I also moved the trap for elevation range = 0 up a bit to immediately after the spot where the procedure for generating elevation range is called. <BR>
<BR>
I thought of another potential problem but haven&#8217;t found a way to trap it. If you send r.profile any coordinates that extend beyond the current region, it will crash and crash the entire GUI&#8212;in spite of the fact that the call to r.profile is trapped with a catch statement. The profiler generates correct coordinates for any place on the display, regardless of whether it extends beyond the region boundaries or not. However, r.profile apparently chokes on coordinates outside the region. <BR>
<BR>
I&#8217;m not sure if this can really be called a bug in r.profile, but it should probably fail more gracefully.<BR>
<BR>
Michael<BR>
__________________________________________<BR>
Michael Barton, Professor of Anthropology<BR>
School of Human Evolution &amp; Social Change &nbsp;&nbsp;&nbsp;<BR>
Center for Social Dynamics &amp; Complexity<BR>
Arizona State University<BR>
<BR>
phone: 480-965-6213<BR>
fax: 480-965-7671<BR>
www: <a href="http://www.public.asu.edu/~cmbarton">http://www.public.asu.edu/~cmbarton</a> <BR>
<BR>
</SPAN></FONT>
</BODY>
</HTML>