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

trouble downloading variables with vertical layers with getRaster #29

Open jbuler opened 9 months ago

jbuler commented 9 months ago

Thanks so much for yor package! I am trying to download the raster of v wind component at 10m from the NAM service and am getting an error. I think it is having difficulty parsing out the two vertical layers attributed to this variable? I tried using the 'vertical' argument that exists for getPoint, but not sure that argument works for getRaster. Here is what I tried and the error I received. Thanks for your assistance with this.

cloudNAM<-getRaster('v-component_of_wind_height_above_ground', vertical=1, day=testDay, box=bbox, service ='nam') |=================================================================================================================| 100% File(s) available at /tmp/Rtmp7lV4q9

Some URLs did not work. Check this file for details: /tmp/Rtmp7lV4q9/failedURL_f20085ae65931

Error in setZ(b, tt) : length(z) == nlayers(x) is not TRUE In addition: There were 33 warnings (use warnings() to see them)

jbuler commented 9 months ago

I am using meteoForecast version 0.56.

oscarperpinan commented 9 months ago

Hello, I am sorry, but vertical coordinates are only implemented in getPoint for the GFS service.