Git Product home page Git Product logo

Comments (5)

brentfraser avatar brentfraser commented on September 3, 2024

Have a look at https://github.com/danwild/wind-js-server
Especially the app.js for a good source of wind data (https://nomads.ncep.noaa.gov/)

from leaflet-velocity.

cookalex77 avatar cookalex77 commented on September 3, 2024

Thanks so much for your response! I have looked at the other wind-js pages, however I am using Program R, not a java script to try and create my map. Using a function called addVelocity in this R package https://cran.r-project.org/web/packages/leaflet.extras2/leaflet.extras2.pdf. Do you have any advice or knowledge on the leaflet functions in R?

from leaflet-velocity.

brentfraser avatar brentfraser commented on September 3, 2024

I recommend getting the demo data working with your setup just to confirm the R- Leaflet-velocity connection is working.

from leaflet-velocity.

cookalex77 avatar cookalex77 commented on September 3, 2024

Thanks for your help and suggestions. The addVelocity function in R does work with the demo data. But I have been unsuccessful in formatting my wind data (downloaded from the previously posted website, or downloaded from the rWind package in R) into the correct structure in the json file for it to work with the velocity function. Is there any info on how the demo data is formatted, or what components/data points leaflet-velocity needs to produce wind arrows. I have lat/long, wind speed, wind direction and u and v components in 50km grid format for my geographic region of interest. Thanks!

from leaflet-velocity.

brentfraser avatar brentfraser commented on September 3, 2024

This leaflet-velocity plugin for Leaflet uses a very specific (and rare) format of vector data. To some extent it is a JSON fomat of the binary GRIB2 WMO format of GFS data generated by NOAA's NCEP.

Have a look in the demo .JSON file in the demo folder . The wind-gbr.json file is the simplest example: it has two components U, V of wind. Each component is in a JSON object with a header section and data section. The header names are from the GRIB format mentioned above.

from leaflet-velocity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.