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

Package throws an error #1

Open
mladencucak opened this issue Jun 1, 2020 · 1 comment
Open

Package throws an error #1

mladencucak opened this issue Jun 1, 2020 · 1 comment

Comments

@mladencucak
Copy link

Hi is anyone maintaining this package? I am trying to use it to get some forecast data from NDFD but had no success so far...

`locs <- "48.2016,-122.2262 48.0109,-122.7746 48.1995,-122.6876 48.3565,-122.4219 48.0011,-122.4328 48.8837,-122.3214 48.9356,-122.5141 48.4385,-122.3857 48.9668,-122.3076 48.4974,-122.3785 48.0867,-123.059 47.9027,-122.1147 48.8661,-122.4762 47.7484,-122.1542"

my_query <- query_this(what = "multipoint", listLonLat = locs, element = 'temp')
x <- NDFD(my_query)
x
Response [https://graphical.weather.gov/xml/sample_products/browser_interface/ndfdXMLclient.php?whichClient=NDFDgenLatLonList&listLonLat=48.2016,-122.2262 48.0109,-122.7746 48.1995,-122.6876 48.3565,-122.4219 48.0011,-122.4328 48.8837,-122.3214 48.9356,-122.5141 48.4385,-122.3857 48.9668,-122.3076 48.4974,-122.3785 48.0867,-123.059 47.9027,-122.1147 48.8661,-122.4762 47.7484,-122.1542&product=time-series&begin=&end=&Unit=m&temp=temp]
Date: 2020-06-01 16:54
Status: 400
Content-Type: text/html; charset=iso-8859-1
Size: 298 B

<title>400 Bad Request</title>

Bad Request

Your browser sent a request that this server could not understand.


Apache Server at graphical.weather.gov Port 443 [1] "\n\n<title>400 Bad Request</title>\n\n

Bad Request

\n

Your browser sent a request that this server could not understand.
\n

\n
\nApache Server at graphical.weather.gov Port 443\n\n" **Error in read_xml.raw(charToRaw(enc2utf8(x)), "UTF-8", ..., as_html = as_html, : Space required after the Public Identifier [65]** `
@btupper
Copy link
Member

btupper commented Jun 1, 2020

We have not put any effort into this for quite some time (2016!) As much as we liked the concept we encountered too many issues with NDFD to make it work for us. Even the examples don't always work. We like to think we'll go back to get it going, but it keeps getting pushed off.

We moved on to NAM and other grid-based systems. If you would like fairly easy access to daily estimates going back in time, we have found DAYMET to be quite useful.

You might find what you need here... https://rseek.org/?q=weather

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