[SAC-HELP] fake lines in conversion with sgftops
Arthur Snoke
snoke at vt.edu
Wed Aug 24 04:27:50 PDT 2011
A bug was found in sgftops.c just after v101.4 was sent out. Itt caused
-- on rare occasions -- the error you report. The fix is moving one line.
The correct bversion will be included in 101.5, coming out very soon.
[macarthur-3:sac_archive/sac-110719/utils] snoke% diff -u sgftops.c
../../sac-101.4/utils/sgftops.c
--- sgftops.c 2010-07-19 17:22:27.000000000 -0400
+++ ../../sac-101.4/utils/sgftops.c 2010-06-07 14:10:44.000000000
-0400
@@ -9,9 +9,7 @@
* sgftox.csh: Script (using gs) produces screen plot.
*
=========================================================================
* MODIFICATION HISTORY:
- * 20100614: rwg at vt.edu fixed a bug related to the "move" command
(values
- * of x and y were not saved between calls to execute_buffer)
- * 20100208: snoke at vt.edu and rwg at vt.edu made program independent of
byte
+ * 20100208: snoke at vt.edu and rwg at vt.edumade program independent of
byte
* order of .sgf file
* 20090912: snoke at vt.edu moved setlinewdith from prologue. Fixed(>)
* problem with some print drivers that did not see it.
@@ -421,12 +419,11 @@
static void execute_buffer(short *buffer, int buflen, int *done, FILE
*ofp,
float red[], float green[], float blue[], int ict)
{
int i, newindx;
- int count, dx, dy;
int iwidth, iheight, xloc, yloc, bufcount, nwrite, charcount;
int new_width;
char str[133];
- static int x, y;
static int indx = -1, needmove = 0;
float width, height; /* width and height of viewspace */
On Wed, 24 Aug 2011, marco.olivieri at bo.ingv.it wrote:
> dear All,
> we recently moved to ubuntu 64bit our computer used for running some complex
> sac macros that generate figures by first creating .sgf file and then
> converting it to ps by using sgftops. sac version is 101.4 linux64.
> We now observe unrequested straight lines (see attachment) that from some
> points in one of the boxes reach the lower left corner.
> The problem is not observed when plots are sent to screen by using bg X
> instead of bg sgf.
> sgf files are normally 2-3Mbyte large.
>
> Any suggestion?
>
> thanks
> Marco
>
>
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
More information about the sac-help
mailing list