Gathering detailed insights and metrics for wind-layer
Gathering detailed insights and metrics for wind-layer
Gathering detailed insights and metrics for wind-layer
Gathering detailed insights and metrics for wind-layer
wind-core
wind layer core
cesium-wind-layer
[](https://www.npmjs.com/package/cesium-wind-layer) [](https://github.com/your-repo/cesium-wind-layer/blob/main/LICENSE)
@jindin/mapbox-gl-wind-layer
基于mapbox-gl-js的风场Wind图层插件
wind-layer-gl
mapboxgl windlayer
🎏 🚀 wind-layer | a openlayers && maptalks && amap && bmap && leaflet && mapbox-gl && maplibre-gl extension like windy.com for weather visualization
npm install wind-layer
Typescript
Module System
Min. Node Version
Node Version
NPM Version
37.1
Supply Chain
83.3
Quality
62.7
Maintenance
25
Vulnerability
90.6
License
leaflet-wind@1.2.2
Updated on Apr 29, 2024
leaflet-wind@1.2.1
Updated on Apr 29, 2024
wind-core@1.1.8
Updated on Apr 28, 2024
openlayers-wind@1.1.7
Updated on Apr 28, 2024
ol-wind@1.1.9
Updated on Apr 28, 2024
bmap-wind@1.1.7
Updated on Apr 28, 2024
TypeScript (90.63%)
GLSL (5.86%)
JavaScript (3.37%)
HTML (0.12%)
Shell (0.02%)
Total Downloads
11,813
Last Day
3
Last Week
21
Last Month
86
Last Year
991
NOASSERTION License
631 Stars
462 Commits
164 Forks
14 Watchers
9 Branches
5 Contributors
Updated on Jun 06, 2025
Minified
Minified + Gzipped
Latest Version
0.1.2
Package Id
wind-layer@0.1.2
Unpacked Size
2.93 MB
Size
641.00 kB
File Count
73
NPM Version
6.10.1
Node Version
10.15.3
Cumulative downloads
Total Downloads
Last Day
0%
3
Compared to previous day
Last Week
40%
21
Compared to previous week
Last Month
-48.5%
86
Compared to previous month
Last Year
-8.7%
991
Compared to previous year
3
44
a openlayers | bmap | amap | maptalks extension to windjs
示例:openlayers | ol6.x | bmap | amap | maptalks
1git clone https://github.com/sakitam-fdd/wind-layer.git 2npm install 3npm run dev 4npm run build
1npm install wind-layer --save 2import windLayer from 'wind-layer' 3 4// 分模块 5import { 6 AMapWind, // amap 7 BMapWind, // bmap 8 OlWind // openlayers 9} from 'wind-layer' 10 11// ol5 12import OlWindy from 'wind-layer/dist/OlWindy.js' 13import OlWindy from 'wind-layer/dist/OlWindy.esm.js' 14 15// ol6 16import OlWindy from 'wind-layer/dist/Ol6Windy.js' 17import OlWindy from 'wind-layer/dist/Ol6Windy.esm.js' 18 19// maptalks 20import MaptalksWindy from 'wind-layer/dist/MaptalksWindy.js' 21import MaptalksWindy from 'wind-layer/dist/MaptalksWindy.esm.js' 22
目前可通过 unpkg.com / jsdelivr 获取最新版本的资源。
1# jsdelivr (jsdelivr由于缓存原因最好锁定版本号,否则可能会出现意料之外的问题) 2https://cdn.jsdelivr.net/npm/wind-layer@0.1.2/dist/windLayer.js 3https://cdn.jsdelivr.net/npm/wind-layer@0.1.2/dist/windLayer.min.js 4# npm 5https://unpkg.com/wind-layer/dist/windLayer.js 6https://unpkg.com/wind-layer/dist/windLayer.min.js 7 8# 分模块 9https://cdn.jsdelivr.net/npm/wind-layer@0.1.2/dist/AMapWind.js // amap 10https://cdn.jsdelivr.net/npm/wind-layer@0.1.2/dist/BMapWind.js // bmap 11https://cdn.jsdelivr.net/npm/wind-layer@0.1.2/dist/OlWind.js // openlayers 12https://cdn.jsdelivr.net/npm/wind-layer@0.1.2/dist/MaptalksWindy.js // maptalks
天气数据由全球预报系统(GFS)生成, 由美国国家气象局管理。 预测每天产生四次,并可用于 从NOMADS下载。 这些文件位于GRIB2 格式并包含超过300条记录。 我们只需要这些记录中的一小部分就可以在特定的等压线上可视化风资料。 下面的命令下载 1000 hPa风向量,并使用grib2json将它们转换为JSON格式。
1YYYYMMDD=<a date, for example: 20140101> 2curl "http://nomads.ncep.noaa.gov/cgi-bin/filter_gfs.pl?file=gfs.t00z.pgrb2.1p00.f000&lev_10_m_above_ground=on&var_UGRD=on&var_VGRD=on&dir=%2Fgfs.${YYYYMMDD}00" -o gfs.t00z.pgrb2.1p00.f000 3grib2json -d -n -o current-wind-surface-level-gfs-1.0.json gfs.t00z.pgrb2.1p00.f000 4cp current-wind-surface-level-gfs-1.0.json <earth-git-repository>/public/data/weather/current
默认运行在3000端口, 使用koa2构建。 目前仅抓取少量数据, 全部数据数据量过大会造成抓取时间过长和转换失败。
1npm run start // 调试环境启动服务 2npm run prd:server // 部署环境启动服务
url | params | desc |
---|---|---|
autofetch | null | 无需参数,开启自动抓取程序,默认30分钟抓取一次数据源 |
stopautofetch | null | 停止自动抓取程序 |
getdata | Object (目前只支持time 参数,时间戳) | 获取json数据,存在转换过的直接返回,若只存在元数据则转换后返回,若元数据也不存在则抓取转换后再响应 |
gribdata | Object (目前只支持time 参数,时间戳) | 获取grib2数据(强制抓取数据) |
getSourceTree | null | 无需参数,获取抓取的数据源 grib2 源数据。返回一个list,包含文件名和服务器地址。 |
getParseTree | null | 无需参数,获取转换后的 json 数据。返回一个list,包含文件名和服务器地址。 |
getDataByFileName | { filename } | 通过文件名请求 json 数据,文件名可为源数据文件和json文件名 |
如果想简单的运行一下看看,可以执行这个命令:
1docker run -d -p 8080:3333 sakitamclone/wind-server:0.0.1
启动后就可以通过主机的 8080 端口看到运行结果了,比如用的是本机 Docker 的话,访问:http://localhost:8080 即可。
测试结束后,彻底清除容器可以用命令:
1docker rm -fv <容器ID>
这样可以停止、删除容器,并清除数据。
新建文件 docker-compose.yml
, 内容如下:
1version: '3' 2 3services: 4 wind-server: 5 image: sakitamclone/wind-server:latest 6 build: 7 context: ./ 8 args: 9 NODE_ENV: development 10 hostname: wind-server 11 environment: 12 - CORS_ORIGIN=**** 13 ports: 14 - "8080:3333" 15 16volumes: 17 yarn: 18
然后使用命令 docker-compose up -d 来启动,停止服务使用 docker-compose down。
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/24 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
78 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-05-26
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More