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

Possible problem with palRefco.c #24

Open
davidneedelman opened this issue Aug 15, 2022 · 1 comment
Open

Possible problem with palRefco.c #24

davidneedelman opened this issue Aug 15, 2022 · 1 comment

Comments

@davidneedelman
Copy link

I find that as I increase the relative humidity (fourth input argument), the values returned by the function give me a smaller refractive shift. I would think that I would get a larger refractive shift.

@timj
Copy link
Member

timj commented Aug 15, 2022

palRefro is a direct port of the Fortran SLALIB and testing did show that it agrees with the original. I've had a quick look at the SOFA/ERFA code (which now can do atmospheric refraction -- it could not do it ten years ago) but there is no direct equivalent to palRefro that I can see.

It looks like the humidity only comes in to the algorithm in one place:

https://github.com/Starlink/pal/blob/master/palRefro.c#L261-L262

There seem to be six routines in SOFA/ERFA that now take relative humidity.

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