Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generating Fingerprint #23

Open
sf-wilbur opened this issue Nov 19, 2020 · 3 comments
Open

Generating Fingerprint #23

sf-wilbur opened this issue Nov 19, 2020 · 3 comments

Comments

@sf-wilbur
Copy link

Hi,
I'm trying to replicate what you all have done to generate fingerprints but I'm running into an issue. I have generated a .json file for several .sac files containing the data to be used for generating the fingerprints. I edited a global_indices file to contain these fp_input_.json files as well a the config.json file. When running the code the same way you all do in the tutorial, "python run_fp.py -c config.json" I'm given an error saying there is no such directory. The specific error is as follows, "IOError: [Errno 2] No such file or directory: u'../data/waveforms02/Deci5.Pick.20200413000000.01.02.DPZ.sac'"
Do we need to direct it to the waveform file and not the .sac file?

Thanks for the help,

Spencer

@kexinrong
Copy link
Contributor

Hi Spencer,

Thanks for reaching out. This sounds like a config error, maybe due to relative path. Are your sac files under FAST/data/waveforms02/? The wrapper script (run_fp) basically cds in to the fingerprint folder, and run python gen_fp.py [fp_input_.json] from there. You can try the gen_fp script first, and if it gives the same error, you can start debugging from there.

Kexin

@sf-wilbur
Copy link
Author

sf-wilbur commented Nov 20, 2020 via email

@kexinrong
Copy link
Contributor

kexinrong commented Nov 21, 2020

It's a bit hard for me to debug with only the provided information, but here is what I was suggesting:
~/FAST$ cd fingerprint/
~/FAST/fingerprint$ python gen_fp.py ../parameters/fingerprint/fp_input_*.json
Of course, you should replace the path with the actual path of your fp_input_*.json file. If the above fails, it means that there are probably problems with your fp_input files.

I also suggest that you change the relative path ../data/waveforms02/ to an absolute path in the fp_input files. The location of fp_input files should not matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants