oscarperpinan / meteoForecast

A package to access outputs from Numerical Weather Prediction models both in raster format and as a time series for a location
GNU General Public License v3.0
51 stars 25 forks source link

Get forecasts from RAP and NAM #17

Closed rbessa closed 7 years ago

rbessa commented 8 years ago

The getPoint for the RAP and NAM models does not seem to be working:

v_wind <- getPoint(c(-112, 43), vars = 'V-component_of_wind',service='rap') Error in pointNCDC(lon = lon, lat = lat, vars = vars, day = day, run = run, : no data could be retrieved. Check date, coordinates and variable(s).

One suggestion: add an example with RAP and NAM to the R Documentation

oscarperpinan commented 8 years ago

Due to the configuration of the NCDC servers, the getRaster function usually gets better results than getPoint. For your example this should work:

x <- getRaster('V-component_of_wind', day = testDay, 
                          box = c(-115, -110, 41, 45), 
                          frames = 10, service = 'rap')

However, it seems that the RAP service is now temporarily unavailable. I will try later.

On the other hand, thanks for the suggestion: I will add more examples.

rbessa commented 8 years ago

There is a delay in the NAM and RAP server. For some reason they only have data until 20160412. If we choose another date (like 5 days before) it works.