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

Unable to use freqs between 3 and 3.4 GHz #1

Closed
wkozmaNTIA opened this issue Apr 18, 2019 · 1 comment
Closed

Unable to use freqs between 3 and 3.4 GHz #1

wkozmaNTIA opened this issue Apr 18, 2019 · 1 comment

Comments

@wkozmaNTIA
Copy link
Member

If a frequency between 3.0 and 3.4 GHz is entered when running IF-77, the application will fail. This is due to in the atmospheric absorption calculations, ASORP(...) subroutine, it will attempt to execute LOG10(0), which is undefined. The cause of this is the manner in which the subroutine searches through the frequency array, FZ, and interpolates once it found the correct interval.

The attached output.txt file shows an example run at 3.1 GHz.

input.txt
output.txt

@wkozmaNTIA
Copy link
Member Author

Fixed using the simplest method, in which the '0' was changed instead to a very small number - "effectively zero" - but that the log10() will still evaluate. This meant no need to change and re-validate the logic in the code.

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

1 participant