Date : 12-11-29 14:34
[Seisunix] Modifications to SU trace rasterizing routines suxwigb 구동시 선이 깨지는문제 해결
 Author : 07 (121.♡.152.151)
Views : 6,524   recommend : 0 (58.2K) [0] DATE : 2012-11-29 14:34:25
[Seisunix] Modifications to SU trace rasterizing routines rfwtva.c and rfwtvaint.c

Kris Vanneste via
Nov 4
to seisunix
Dear John and seisunix list members,

Several years ago, I discovered and fixed a bug (or rather incompleteness) in the trace rasterizing routines that are used by xwigb
and pswigb. When displaying a wiggle trace, you don't always get a continuous line. This problem appears when the number of rasterized samples exceeds the number of bits in the x direction (time axis), and disappears when you zoom in far enough. The attached images suxwigb1_old.png and suxwigb2_old.png illustrate this problem for two different traces.

I modified the rasterizing routines in the source files rfwtva.c and
rfwtvaint.c (located in $CWPROOT/src/cwp/lib), so that bits in the y
direction (amplitude axis) are correctly set. Basically, I had to add a
loop over the y coordinates that intervene between two subsequent x coordinates. The result of these modifications can be seen in the attached images suxwigb1_new_interp=0.png, suxwigb1_new_interp=1.png and suxwigb2_new.png.

Please find attached the modified source files rfwtva.c and rfwtvaint.c. I modified them from SU version 36 (but as far as I can see, these files have not been changed since then). I have marked all modified sections with /* (kvn) */ remarks. I tried to make as little modifications as possible, to make clear what exactly has been changed.
I am not an experienced C programmer, so it is possible that the code can be further optimized. However, I have not encountered any problem with my modified code so far.

I hope you will consider these modifications for inclusion in next versions of SU. Thank you for your continuing effort to improve Seismic Unix!

Kind regards,
Kris Vanneste


Total 8
No Topic Author Date Views Recommend
8 [Seisunix] Modifications to SU trace rasterizing routines su… 07 11-29 6525 0
7 Free Software for seismic modeling (SU email) 07 10-05 7446 0
6 su파일 swap바이트 변경 07 08-22 6171 0
5 supsimage , gp Color brgb by seisunix-bounces@mailman.min… 07 11-09 18189 0
4 SU Seismic Unix / suxmovie script 07 10-04 28909 0
3 SU - how to overlay Two Segy signal or graph 07 09-08 9938 0
2 SU USEFUL Link 07 09-05 5090 0
1 Book / The New SU User's Manual. John W. Stockwell, Jr.… (1) 07 09-05 5596 0

Warning: Unknown: open(../data/session/sess_9166678e3a037e2759e1988b52cf3e13, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (../data/session) in Unknown on line 0