-
Notifications
You must be signed in to change notification settings - Fork 23
site_elevation and wind_elevation needs fixing #69
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
Comments
Hi there. Elevation only works with single point requests. Please refer to the docs for more and see the error message that the API returns. |
This is a single point request I tried this fixes myself (changing
Could you provide me with an example where the site_elevation is used to retrieve corrected atmospheric pressure? Thank you |
Right! Really sorry, I looked on my phone and didn't inspect closely. You've found a bug. I've patched it in the devel branch and will get a new release on CRAN as soon as I can! |
closed with 5858247 |
Hi Adam! I recommend you to test the corrected code before pushing the new release. Thanks again! |
Hmm. I did test it and it seems to work but I guess I don’t know what it should look like otherwise?
Can you please provide me with a correct example to match against?
…
On 25 Feb 2022, at 22:09, Daniel Althoff ***@***.***> wrote:
closed with 5858247
Hi Adam!
I recommend you to test the corrected code before pushing the new release.
I tried a custom fix for that, but the function still did not return PSC (PS corrected). So maybe there is something else going on.
Thanks again!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you modified the open/close state.
|
I think you can only check if it is working properly by passing the "PSC" to "pars" argument.
Even after the fix, I get the following now:
I have tried digging into internal functions but could not figure it out. Could be something related to the query? API example: |
I installed the latest version and it seems to be working properly! |
Describe the bug
The script has a problem that requires fixing for site_elevation and wind_elevation.
On lines 243 and 250 (https://github.com/ropensci/nasapower/blob/main/R/get_power.R) it says
length(latlon !=2 )
instead oflength(latlon) != 2
Code to Reproduce
Expected behaviour
Return atmospheric pressure corrected by elevation
OS and R versions (please complete the following information):
R version 4.1.1 (2021-08-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19043)
I tried a workaround to get the atmospheric pressure corrected by elevation, but it doesn't seem to work., even when including the variable "PSC" in pars.
The text was updated successfully, but these errors were encountered: