Giter VIP home page Giter VIP logo

Comments (7)

adamhsparks avatar adamhsparks commented on June 6, 2024

Can you provide an actual (non)working example? the lonlat values provided are not valid.

from nasapower.

AboodaA avatar AboodaA commented on June 6, 2024

Sorry, that was my mistake. Please see the code below. The first of the two requests using ALL SKY SFC DWN works fine; the second, which uses SI EF MIN OPTIMAL does not. Note also that the error message is at odds with the documentation from the NASA Power API site.
``
#this works

qatarrandom1 <- nasapower::get_power(community = "SSE", pars = "ALLSKY_SFC_SW_DWN", temporal_average = "CLIMATOLOGY", dates = c("2000-01-01", "2010-01-01"), lonlat = c(51, 25.1))
#this does not
qatarrandom2 <- nasapower::get_power(community = "SSE", pars = "SI_EF_MIN_OPTIMAL", temporal_average = "CLIMATOLOGY", dates = c("2000-01-01", "2010-01-01"), lonlat = c(51, 25.1))

The error message for the second one is as below
``

Error: The Solar Irradiance for Equator Facing Tilted Surfaces are returned as a Set of Surfaces., Please remove: SI_EF_MIN_OPTIMAL and replace with SI_EF_MIN_TILTED_SURFACE to return the requested parameters., Please remove: SI_EF_MIN_OPTIMAL and replace with SI_EF_TILTED_SURFACE to return the requested parameters. Please reference our API Documentation at https://power.larc.nasa.gov for more information.

 
  |

from nasapower.

adamhsparks avatar adamhsparks commented on June 6, 2024

That's not an error from this package, that comes directly from the POWER API as far as I can tell.

Did you follow the directions the error message gives you? What was the result then?

from nasapower.

AboodaA avatar AboodaA commented on June 6, 2024

from nasapower.

adamhsparks avatar adamhsparks commented on June 6, 2024

I'm not sure what I'm supposed to do here? nasapower only creates a query it sends to the API. If the API isn't handling the parameters properly then that's on the receiving side, not the sending side and I have no control.

from nasapower.

AboodaA avatar AboodaA commented on June 6, 2024

I see your point and I am sorry for the hassle. I will close this and try to find a way of following up with the NASA Power API. Their website is not entirely clear on how to do this (maybe I didn't look in the right places) so I would appreciate any pointers you have on that.

from nasapower.

adamhsparks avatar adamhsparks commented on June 6, 2024

I've just sent an email to the team members, they're responsive in the past. If there is something that they suggest that I can implement I'm happy to. But this doesn't seem to be under my control

from nasapower.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.