Welcome to METRADAR📡
🚀 Quick start
📡metradar 主要面向一线气象工作者,提供简单易用的python接口,用于读取、处理和可视化中国天气雷达数据,并利用国际成熟的雷达工具包如pyart、wradlib、pydda、pysteps构建了质量控制、降水反演、风场反演、临近预报等工程。
✨强烈推荐先从examples目录下的所有notebook入手!
✨由于很多算法功能都是以完整项目形式共享,因此,建议用户将整个代码包从github上下载到本地进行后续开发!
✨培训视频连接:https://www.bilibili.com/video/BV112BfBzEXq?vd_source=46a14909e851f4367d42b635b08f9160
📚主要功能包括
- 1,雷达数据下载,自动站数据下载,下载功能集成在nmc_met_io工具包中;
- 2,雷达基数据的读取(中国气象局最新的标准数据格式FMT)、绘图;
- 3,ROSE PUP 产品读取、绘图;
- 4,雷达拼图解码、绘图,支持SWAN格式拼图、中国气象探测中心拼图等;
- 5,雷达和自动站综合分析及绘图,自动站数据诊断分析包括散度、涡度计算、等值线客观分析等。
- 6,雷达质控、批量绘图、三维组网产品制作、降水估测、三维风场反演、回波临近预报、雷达和自动站时间序列图等,其中部分算法以项目形式开源,提供一键式处理流程。
🛠️安装
用下面的命令行进行安装:
- 使用pypi安装源安装(https://pypi.org/project/metradar/)
pip install metradar
📂若要构建全功能运行环境,建议安装顺序如下:
- conda create -n radar312 python=3.12
- conda activate radar312
- pip install metradar
- conda install -c conda-forge pysteps -y
- conda install -c conda-forge arm_pyart -y
- conda install -c conda-forge gdal -y
- pip install tensorflow
- pip install tensorflow-probability
- pip install tf_keras
📜设置配置文件
- 在系统用户目录下("C:\Users\用户名"(windows)或"/home/用户名/"(Linux)), 建立文件夹".metradar"(若Windows下无法直接创建, 在命令窗口中输入
mkdir .metradar创建) - 在".metradar"中创建文本文件"config.ini", 内容模板为:
# 用于metradar相关参数设置
# 建议使用vscode进行编辑,或notepad++等编辑器进行编辑
# RESOURCES_PATH路径下存放了各种资源文件,包括地图、字体、色标等
[SETTING]
RESOURCES_PATH = /home/wjzhu/metradar/resources
⚠️注意事项:
- 资源文件RESOURCES 目录下的stations目录下的文件都是样例文件,不代表真实坐标,使用时,请自行按照同样的格式准备站点文件。
- 样例测试数据、字体、DEM数据、maps等需要单独下载,链接:https://github.com/zhuwenjian/metradar_testdata
🚀补充材料(主要服务那些访问Github不稳定的人):
* 方便国内用户安装和使用的补充材料如下:
安装前,建议将pip源设置为阿里云的,将conda源设置为清华的,具体详情咨询AI即可。此外,地图文件,测试数据等也可以从下面对应链接获取。
======================夸克网盘链接如下===========
样例测试数据metradar_testdata 链接:https://pan.quark.cn/s/c756f461c7d8
metradar工具包介绍.pptx 链接:https://pan.quark.cn/s/0012cb00a686
resources(字体、map等) 链接:https://pan.quark.cn/s/35f08baab338
=================百度网盘链接如下==========
metradar工具包介绍.pptx 链接:https://pan.baidu.com/s/1Rfzo3zGu23hl4uvWPvsl9g?pwd=5wew 提取码:5wew
resources(字体、map等) 链接: https://pan.baidu.com/s/159hOPYRg0LeXo49cqlUxnw?pwd=3pje 提取码: 3pje
样例测试数据metradar_testdata 链接:https://pan.baidu.com/s/1cYUHGL6Cqk4rK5uZCXrUWg?pwd=5wew 提取码:5wew
👇适合新手的保姆级材料来了,主要内容是:1,共享了miniconda的安装文件;2,上传了完整的安装视频。链接如下:
==================夸克网盘=================
Linux版本的miniconda连接: Miniconda3-latest-Linux-x86_64.sh 链接:https://pan.quark.cn/s/16c39c495762
Windows版本的miniconda连接: Miniconda3-latest-Windows-x86_64.exe 链接:https://pan.quark.cn/s/392491e5b2a0
================百度网盘==================
Linux版本的miniconda安装文件 Miniconda3-latest-Linux-x86_64.sh 链接: https://pan.baidu.com/s/1aMFKaNbVfkPbIHziAH5lhg?pwd=jj5b 提取码: jj5b
Windows版本的miniconda安装文件 Miniconda3-latest-Linux-x86_64.sh 链接: https://pan.baidu.com/s/1aMFKaNbVfkPbIHziAH5lhg?pwd=jj5b 提取码: jj5b
Linux下安装metradar的视频: https://www.bilibili.com/video/BV15DzCB1EsC/?spm_id_from=333.1387.list.card_archive.click
Windows下安装metradar的视频: https://www.bilibili.com/video/BV1d2zCB7E1R?spm_id_from=333.788.videopod.sections
Good Luck!
Metadata
Release files for metradar 0.1.8.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| metradar-0.1.8.7.tar.gz | 126.6 kB | Without provenance | Details for metradar-0.1.8.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| metradar-0.1.8.7-py3-none-any.whl | Python 3 | none | any | Details for metradar-0.1.8.7-py3-none-any.whl |
Total release size: 272.9 kB
Release files / metradar-0.1.8.7.tar.gz
| Download URL | metradar-0.1.8.7.tar.gz |
|---|---|
| Size | 126.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4fecaf4012ef4f0d783bed57c57c9aaa46e2a157bdcf2d7c82717da570b70d66
|
|
BLAKE2b-256 checksum How to use checksums |
2550db87db3d2cb8e949481882f324a1cc5ad8a71ba6cd9b4a0c5d5c3247ec0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / metradar-0.1.8.7-py3-none-any.whl
| Download URL | metradar-0.1.8.7-py3-none-any.whl |
|---|---|
| Size | 146.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a04ea5f2cf44b9f5a375706d9fd0f2aea12b7cdfad2e4799b311f9488a7c215e
|
|
BLAKE2b-256 checksum How to use checksums |
8fdbf0ef89e96310bc99a73d2ec0284a354aff71085c9d281d89a9885494918b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Security for metradar 0.1.8.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.