ekaestle / amb_noise_tools

Python functions to preprocess and correlate ambient-noise data and extract phase-velocity curves
23 stars 17 forks source link

Input for st1 and st2 #1

Open lakromah opened 5 years ago

lakromah commented 5 years ago

Good day

I am using the noise.py code for my cross-correlations using ambient noise sac and mseed data. The code is clear but I am not sure where I can input my st1 and st2. I was able to input data on example1 and example2 because there is space for that. In noise.py, it is not that clear.

Please assist.

Linda

fnwolf commented 5 years ago

Hi Linda,

I did not write noise.py, but if I remember correctly it is a set of definitions/functions, i.e. a set of scripts that you can refer to from other python-scripts. For example, example1 is using noisecorr and velocity_filter from noise.py (indicated by importing 'noise in the beginning' and then stating noise.noisecorr, ..). So you write a script, defining streams (st1 and st2) or traces and use those as input for the functions from noise.py.

Hope that helps a bit. Greetings, Felix

lakromah commented 5 years ago

Hi Felix

Thank you so much, at first I thought I needed inputs for all the codes given but one actually needs to replace the station inputs in example1 with theirs and it works.

Kind regards Linda

On Fri, 3 May 2019 at 13:44, Felix Wolf notifications@github.com wrote:

Hi Linda,

I did not write noise.py, but if I remember correctly it is a set of definitions/functions, i.e. a set of scripts that you can refer to from other python-scripts. For example, example1 is using noisecorr and velocity_filter from noise.py (indicated by importing 'noise in the beginning' and then stating noise.noisecorr, ..). So you write a script, defining streams (st1 and st2) or traces and use those as input for the functions from noise.py.

Hope that helps a bit. Greetings, Felix

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ekaestle/amb_noise_tools/issues/1#issuecomment-489068693, or mute the thread https://github.com/notifications/unsubscribe-auth/AHGHKWYCJ7DQ4O5HG33FHW3PTQQTRANCNFSM4HJJUT4A .