Rafnuss / GeoPressureR

Global positioning by atmospheric pressure
https://raphaelnussbaumer.com/GeoPressureR
GNU General Public License v3.0
7 stars 1 forks source link

grl - Adding wind #57

Closed grhyne closed 1 year ago

grhyne commented 1 year ago

Hitting a wall during 5-2-wind-graph_create.R when adding wind to grl, but ONLY for certain tags (CB594, 598, 599) while others run just fine. Here is my error:

> grl <- graph_add_wind(grl,
+   pressure = pam$pressure,
+   filename = paste0("data/5_wind_graph/", gdl, "/", gdl, "_"),
+   thr_as = gpr$thr_as
+ )
[1] "vobjtovarid4: error #F: I could not find the requsted var (or dimvar) in the file!"
[1] "var (or dimvar) name: level"
[1] "file name: data/5_wind_graph/CB594/CB594_1.nc"
Error in vobjtovarid4(nc, varid, verbose = verbose, allowdimvar = TRUE) : 
  Variable not found

I have re-run the wind download but it still can't find some variable in the .nc files? Any suggestions?

Rafnuss commented 1 year ago

Hi @grhyne , Sorry, I missed this issue. Do you still have a problem with this? can you update the repository (https://github.com/grhyne/SWWA_Pressure) and I can have a look? Also, so you mind transfering this issue to your repo? I think it will be a problem with the script rather than the functions of GeoPressureR.