Rafnuss / GeoPressureR

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

No pressure available for a flight, `graph_add_wind` return error #60

Closed Rafnuss closed 1 year ago

Rafnuss commented 1 year ago

If pressure data was unaivailable during some flight, the graph_add_wind will return the following message:

Error in graph_add_wind(grl, pressure = pam$pressure, filename, thr_as = gpr$thr_as) : 
  Pressure not matching for 'data/5_wind_graph/xxx/xxx_xx.nc'

If you had look carefully, you might have noticed that during the download of wind data, there was already a warning message:

Warning messages:
1: In graph_download_wind(pam, area = static_prob, ) :
  No pressure data available for sta_id=xx. All pressure level will be downloaded

As no pressure is availabe, it is not possible to determine the wind data easily.

Problem raised by @ksakuras, see https://github.com/ksakuras/Siberian-rubythroat-China/issues/9.