Thread: Re: Error : Segmentation fault using spectrogram

Started: 2017-08-03 17:46:41
Last activity: 2017-08-03 17:46:41
Topics: SAC Help
Brian Savage
2017-08-03 17:46:41
Léa,

The data you are using is too long for the spectrogram command in 101.6a. This will be fixed in the next version.

A quick fix is to reduce the size of your data by either
- windowing you data or
- downsampling your data (decimate 3)

The data you are trying to take the spectrogram of is very long. It is long enough that the spectrogram function overflows the size of an integer (INT_MAX = 2147483647) while trying to determine the size of the spectrogram, as such it produces undefined results. The fix is to change the size of the type of the length to something larger / more appropriate.

Brian

On Aug 2, 2017, at 8:21 PM, lea.pauc <leapauchot<at>orange.fr> wrote:

Thank you for your response !

This is one of my SAC file.


I write usualy :

r 201310190000000050_B9EF_XX_01-03.SAC

p1

(hp n 2 c 10) optional

Spectrogram slice 1 ymin 0 ymax 12


I hava the last version of sac.


That’s all

Thank you for your help

Cordialy


Léa Pauchot

<201310190000000050_B9EF_XX_01-03.zip>


00:05:58 v.22510d55