Comments (8)
I installed the latest version and it seems to be working properly!
I'm now closing this. Thank you so much.
from nasapower.
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.
from nasapower.
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
lonlat = c(151.1, -27.5)
I tried this fixes myself (changing length(latlon !=2 )
instead of length(latlon) != 2
) but it returned another error:
get_power_custom(
community = "ag",
lonlat = c(151.5, -27.5),
pars = c('RH2M', 'PSC') ,
dates = c(data_ini, data_fin),
temporal_api = "daily",
site_elevation = 410,
)
>Error: HTTP (422) - The request was well-formed but was unable to be followed due to semantic errors (WebDAV; RFC 4918)
> Please provide a site elevation with the 'PSC' parameter abbreviation.
Could you provide me with an example where the site_elevation is used to retrieve corrected atmospheric pressure?
Thank you
from nasapower.
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!
from nasapower.
closed with 5858247
from nasapower.
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) for a point request. So maybe there is something else going on.
Thanks again!
from nasapower.
from nasapower.
I think you can only check if it is working properly by passing the "PSC" to "pars" argument.
Example:
library(nasapower)
get_power_custom(
community = "ag",
lonlat = c(151.5, -27.5),
pars = c("RH2M", "PSC"),
dates = "1985-01-01",
temporal_api = "daily",
site_elevation = 400
)
Even after the fix, I get the following now:
Erro: HTTP (422) - The request was well-formed but was unable to be followed due to semantic errors (WebDAV; RFC 4918)
Please provide a site elevation with the 'PSC' parameter abbreviation.
I have tried digging into internal functions but could not figure it out. Could be something related to the query?
Instead of sending siteElev
, maybe it should be site-elevation
?
I think a while back it used to be siteElev, but now is site-elevation.
API example:
/api/temporal/daily/point?parameters=T2M&community=SB&longitude=0&latitude=0&start=20170101&end=20170201&format=JSON&site-elevation=50
from nasapower.
Related Issues (20)
- Error: Unprocessable Entity (HTTP 422) HOT 10
- Fetching global climatology data HOT 3
- Problems with installation HOT 2
- Can I access HQPRECIPITATION ? HOT 4
- Release nasapower 4.0.2
- Write rate limiting into package HOT 1
- Warning with vroom >= 1.5.0 HOT 5
- Caching requests HOT 4
- IMERG Precipitation requires changing Time Standard to UTC HOT 2
- get_power fails when request data for more than a year HOT 3
- Dependencies need to be explicictly installed and loaded HOT 3
- Replace skip_on_cran() with skip_if_offline()? HOT 2
- Release nasapower 4.0.10
- Release nasapower 4.0.11
- Error in calculating wind direction at daily level HOT 1
- Error retrieving hourly data for regional coverage HOT 3
- Release nasapower 4.2.0
- Issue querying POWER API for all parameters in a community + temporal API HOT 1
- Contribution to project HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nasapower.