Closed jmhatch closed 3 years ago
First of all, in order see the exact Wind animation in your leaflet map as in Windy, Earth etc
This can be done by checking side to side the .json values that you are using with the ones that Windy or Earth uses. It may be kinda tricky, as I know that Windy does not pass .json files but .png files to client. Alternatively, you can open downloaded .grib files with Panoply and see if you are displaying the same forecast (if the forecast is for the same datetime). It will be easier to look datetimes in UTC. You should check that your are downloading the same model from NOAA server with the same resolution.
After ensuring you have the same .grib input and displaying the same .json data you should definitely
angleConvention
type. Referring to leaflet-velocity's README
The angle convention option refers to the convention used to express the wind direction as an angle from north direction in the control. It can be any combination of bearing (angle toward which the flow goes) or meteo (angle from which the flow comes), and CW (angle value increases clock-wise) or CCW (angle value increases counter clock-wise). If not given defaults to bearingCCW.
This isn't a
leaflet-velocity
issue, but I thought I'd start here. I'm trying to add wind data to a leaflet map. I download the data using the following link,Then I convert the grib file to json using the
weacast-grib2json
program,Basically following the guidance found here and here.
However, when I display the wind data on my leaflet map,
it looks different than what is displayed on windy or earth.
Not sure what is going on, as the reference datetimes are the same, but it has to be a data issue.
Attached the json and index.html file as a MWE.
mwe_wind_data.zip