npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

mars3d-wind

v3.8.10

Published

Mars3D平台插件,支持气象 风向图 功能插件

Downloads

476

Readme

Mars3D平台插件, 支持气象 风向图 功能插件

使用方式

使用 Node 环境下的现代 web 前端技术栈时,可以使用 npm 或 cnpm 或 yarn 等方式来安装 mars3d 插件包

//安装mars3d主库
npm install mars3d --save

//安装mars3d插件(按需安装)
npm install mars3d-wind --save

安装后在mars3d引入后,引入一次插件即可

//导入mars3d主库
import "mars3d/mars3d.css";
import * as mars3d from "mars3d";

//导入mars3d插件 [在mars3d引入后]
import "mars3d-wind";

关于引入后的具体如何使用,请参考教程在项目中集成 Mars3D中了解更多信息。

相关依赖

mars3d

Mars3D 是什么

Mars3D三维地球平台软件火星科技研发的一款基于 WebGL 技术实现的三维客户端开发平台,基于Cesium优化提升与B/S架构设计,支持多行业扩展的轻量级高效能GIS开发平台,能够免安装、无插件地在浏览器中高效运行,并可快速接入与使用多种GIS数据和三维模型,呈现三维空间的可视化,完成平台在不同行业的灵活应用。

Mars3D平台可用于构建无插件、跨操作系统、 跨浏览器的三维 GIS 应用程序。平台使用 WebGL 来进行硬件加速图形化,跨平台、跨浏览器来实现真正的动态大数据三维可视化。通过 Mars3D产品可快速实现浏览器和移动端上美观、流畅的三维地图呈现与空间分析。

相关网站

参考来源

CanvasWindLayer 参考了: https://blog.csdn.net/axiwang88/article/details/105737114

WindLayer 参考了: https://github.com/RaymanNg/3D-Wind-Field https://github.com/hongfaqiu/cesium-wind-layer (主要)

数据说明

本例使用的demo.nc属于NetCDF version 3数据文件,文件分辨率28km,请参考这个网站上的数据 Panoply

如何获取NetCDF文件(.nc)数据

演示数据来自NOAA全球预报系统。原始数据为GRIB2格式,我使用toolsUI将GRIB2文件转换为NetCDF V3文件。 下载数据:https://www.unidata.ucar.edu/software/netcdf/examples/files.html NOAA全球预报系统:https://www.ncdc.noaa.gov/data-access/model-data/model-datasets/global-forcast-system-gfs

您可以使用NCO(NetCDF运算符)来进一步处理NetCDF数据。我已经编写了一个PowerShell脚本,以通过使用NCO提取和转换数据。

您可以检查“ Util”文件夹以获取详细信息。 https://www.unidata.ucar.edu/software/netcdf-java/v4.5/ToolsUI.html

怎样加载自己的.nc文件

.nc文件最好为NetCDF version 3形式

文件中必须至少包含以下属性:

  • 横向速度矩阵 U (lev, lat, lon)
  • 纵向速度矩阵 V (lev, lat, lon)
  • 经度维度 lon(0 - 360)
  • 纬度维度 lat

可使用getFileFields()方法读取.nc文件中的属性字段名、维度字段名

并配合数据后按API传入的fields字段,尝试加载到地球上。

noData值设为0, 或者加载时配置valueRange属性。

如果经度范围不在(0, 360),纬度范围不在(-90, 90),需要配置offset属性。