Git Product home page Git Product logo

gridwind2json's Introduction

gridwind2json

decode CMA grid-wind product data to leaflet-velocity json type

[China] 解析CMA-GFS/CMA-GD/CMA-SH地面和高空等模式资料风场数据,生成leaflet-velocity需要的json格式数据

install

pip install wind2json

what's leaflet-velocity

leaflet-velocity is here : https://github.com/onaci/leaflet-velocity


A plugin for Leaflet (v1.0.3, and v0.7.7) to create a canvas visualisation layer for direction and intensity of arbitrary velocities (e.g. wind, ocean current).

Screenshot

example:decode_from_gds

from wind2json import Wind2Json
import datetime
filename = datetime.datetime.now().strftime("%y%m%d%H") + ".000"
path = f"GUANGZHOU_RUC/WIND/850/{filename}"
service = Wind2Json("10.1.20.100", 8080)
service.decode_from_gds(path)
service("d:/wind.json")

example:decode_from_file

from wind2json import Wind2Json
path = f"24010123.001"
service = Wind2Json()
service.decode_from_file(path)
service(f"d:/{path}.json")

gridwind2json's People

Contributors

pysoer avatar

Stargazers

 avatar

Watchers

 avatar

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.