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

Meta data in HV file #32

Open
alangi opened this issue Sep 16, 2024 · 1 comment
Open

Meta data in HV file #32

alangi opened this issue Sep 16, 2024 · 1 comment

Comments

@alangi
Copy link

alangi commented Sep 16, 2024

Hi,

Version 1 of hvsrpy produced .hv files that had a load of information about the results in them. The new .csv files don't seem to have the same information in them. I was using this for reporting purposes. Is there a place that I could find this information, or method to generate it?

Some of the items were:
"Method",
"Azimuth ()",
"Window length (s)",
"SDs for rejection",
"Total windows",
"Total azimuths",
"Accepted windows",
"Upper limit (Hz)",
"Lower limit (Hz)",
"Distribution of f0",
"Median curve distribution",
"Frequency range (Hz)",
"Median curve peak A",
"Median curve f0 (Hz)",
"Median f0 (Hz)",
"SD of f0 (LN)",
"Median T0 (s)",
"Range of T0 (s) 1 SD"

@jpvantassel
Copy link
Owner

Hi @alangi,

Most of these are in the HVSR object methods for example if hvsr is an instance of an HVSR object the following can be called:
hvsr.mean_fn_frequency()
hvsr.mean_fn_amplitude()
hvsr.std_fn_frequency()
hvsr.std_fn_amplitude()
hvsr.mean_curve()
hvsr.std_curve()
hvsr.mean_curve_peak()
hvsr.nth_std_fn_frequency()
hvsr.nth_std_fn_amplitude()
hvsr.nth_std_curve()

If the data is not one of these you can check hvsr.meta that includes a whole heap of meta information organized as a dict.

I think that should be everything off of the list, but if something is missing I can start including it in the output file. My thinking is to include the essential information in the output file so that the HVSR can be recreated from the results and then new calculations performed if needed.

Joe

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