ropensci / nasapower

API Client for NASA POWER Global Meteorology, Surface Solar Energy and Climatology in R
https://docs.ropensci.org/nasapower
Other
97 stars 22 forks source link

Error when running example #11

Closed emdelponte closed 6 years ago

emdelponte commented 6 years ago

@adamhsparks I was trying to run the second example but got this error:

get_cell(lonlat = c(-179.5, -89.5), endate = "1983-01-02", vars = "WS10M")

Error in curl::curl_fetch_memory(url, handle = handle) : The POWER website does not appear to be responding. Please try again later.

adamhsparks commented 6 years ago

I suspect it was just as the error said. The site wasn't responding. I just tried the code you used and it worked fine.

Downloading: 770 B     

  YEAR MONTH DAY   YYYYMMDD DOY    LON   LAT WS10M
1 1983    01  01 1983-01-01   1 -179.5 -89.5  2.28
2 1983    01  02 1983-01-02   2 -179.5 -89.5  3.04
emdelponte commented 6 years ago

I keep getting the error

adamhsparks commented 6 years ago

Still works here, I just tried it again.

Do any other functions work or not?

emdelponte commented 6 years ago

working from home now and nothing works

adamhsparks commented 6 years ago

It's something on your end. I'm not having any issues with the package interface here.

Can you access the website and retrieve data through your browser?

https://power.larc.nasa.gov/cgi-bin/agro.cgi?na

On 9 February 2018 at 06:45, Emerson M. Del Ponte notifications@github.com wrote:

working from home now and nothing works

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/adamhsparks/nasapower/issues/11#issuecomment-364242882, or mute the thread https://github.com/notifications/unsubscribe-auth/ADDEAoLWFCB3RxWC8vCQvT0Y1eBwCnd_ks5tS10AgaJpZM4R-QUa .

-- Dr Adam H. Sparks Associate Professor of Field Crops Pathology | Centre for Crop Health | Office C313

Phone (+61) 07 46311948 | Mobile 0415 489 422 | Twitter @adamhsparks https://twitter.com/adamhsparks

Institute for Agriculture and the Environment | Research and Innovation Division University of Southern Queensland | Toowoomba, Queensland | 4350 | Australia

emdelponte commented 6 years ago

No, I cant.

This site can’t be reached power.larc.nasa.gov’s server IP address could not be found.

adamhsparks commented 6 years ago

Ah, well there's your problem. ;)

Seriously, I don't know what to suggest other than it's not the package interface at this point.

On 9 February 2018 at 06:55, Emerson M. Del Ponte notifications@github.com wrote:

No, I cant.

This site can’t be reached power.larc.nasa.gov’s server IP address could not be found.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/adamhsparks/nasapower/issues/11#issuecomment-364245376, or mute the thread https://github.com/notifications/unsubscribe-auth/ADDEAoTL7uDLxLkt-quiHYrlSm63JLdJks5tS185gaJpZM4R-QUa .

-- Dr Adam H. Sparks Associate Professor of Field Crops Pathology | Centre for Crop Health | Office C313

Phone (+61) 07 46311948 | Mobile 0415 489 422 | Twitter @adamhsparks https://twitter.com/adamhsparks

Institute for Agriculture and the Environment | Research and Innovation Division University of Southern Queensland | Toowoomba, Queensland | 4350 | Australia

emdelponte commented 6 years ago

haha, you can't fix their site? :) maybe they don't want Brazilians using the data. I will talk to you later about other sources for our need. Actually, I am consulting with a colleague from BR met institute to get access to their data and build a pkg maybe