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

Elevation statistics tool #574

Merged
merged 6 commits into from
May 30, 2024
Merged

Elevation statistics tool #574

merged 6 commits into from
May 30, 2024

Conversation

aburrell
Copy link
Contributor

@aburrell aburrell commented Jun 1, 2023

Created a tool to count the number of elevation angle observations with potentially realistic values. To test, try a radar that has and another that doesn't have elevation angles. This, unfortunately, doesn't identify garbage values that are within a potentially realistic range.

find_elvstat 20000131.2200.00.hal.fitacf3

Yields:

Opening file:20000131.2200.00.hal.fitacf3
0 positive elevation angles below 90 degrees

While find_elvstat ~/Programs/Data/SuperDARN/Downloads/20170105.1001.00.lyr.fitacf3

Yields:

Opening file:20170105.1001.00.lyr.fitacf3
39809 positive elevation angles below 90 degrees

Added a function to count the number of elevation angles with potentially valid values in fit-esque files.
Added a header for elevation angle statistical functions.
Created documentation for the elvstat functions.
Created a tool to print the number of potentially valid elevation angles in fit-esque file(s).
@aburrell aburrell requested review from egthomas and ksterne June 1, 2023 18:55
Free the `dnames` pointer once it's no longer used.
@ksterne ksterne added this to the RST 5.1 milestone Jul 6, 2023
@ksterne ksterne added the feature label Jul 6, 2023
@ksterne
Copy link
Contributor

ksterne commented Aug 30, 2023

Sorry it's taken a bit! This is a nice feature to add in and I got the binary to work fairly easily. I had a few general comments or questions that aren't specific to any line so I thought I would post them here. Feel free to point me to a line in the code of somewhere that is relevant though. First, are you able to easily add in some info for the --help option? The option is there in the binary, but it doesn't seem to have anywhere to go. Maybe it was a forgotten copy of a ~/doc/ directory in the main binary folder?

Second and much more minorly, I wasn't able to reproduce the results for the 20170105.1001.00.lyr.fitacf3 file. But this could be from a different version of RST. I used the 5.0 release to generate a fitacf3 and got 22517 for the result. Again, this is likely different input and not an issue with this binary, but it would be good to make sense of that. @aburrell, are you able to confirm this number with a more recently generated fitacf3 file?

@ksterne
Copy link
Contributor

ksterne commented Sep 5, 2023

@aburrell, giving this a bump to see if you're able to add in a few things, mostly the results for the --help option when running the binary.

@ksterne
Copy link
Contributor

ksterne commented Sep 11, 2023

Hey @aburrell, do you think you'll be able to check this out? If you don't think you'll be able to look at adding --help results I can look into making a suggestion of what that would look like.

@egthomas
Copy link
Member

@ksterne I think @aburrell has been out on travel, so you may need to allow some more time for her to reply.

@ksterne
Copy link
Contributor

ksterne commented Sep 11, 2023

Not a problem! I'm certainly patient on this, especially since it took my several months to initially review it. Just trying to put it at the top of the e-mail to try to get attention. But I understand there can be hotter burning fires that need to be put out, especially after being on travel.

@aburrell
Copy link
Contributor Author

Hey @ksterne, I am now back from Japan and recovered from COVID. Unfortunately that means I have a bunch of stuff to catch up on. I will try to get to this in a week or so.

@egthomas
Copy link
Member

egthomas commented May 28, 2024

@aburrell this looks good to me - I just added an XML documentation file so that find_elvstat --help will show something meaningful. Please let me know if I made any mistakes or if the description should be changed.

@aburrell
Copy link
Contributor Author

Thanks @egthomas this looks good to me!

@aburrell
Copy link
Contributor Author

@egthomas if I remember correctly, I am not supposed to merge this. Correct?

@pasha-ponomarenko
Copy link
Contributor

It looks like there is another reviewer, Kevin.

@egthomas egthomas merged commit 1a67d5d into develop May 30, 2024
1 of 2 checks passed
@aburrell aburrell deleted the fit_elv_stat branch May 30, 2024 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants