解析中国 BUFR 格式的雨滴谱数据
Project description
cnrsd
解析中国 BUFR 格式的雨滴谱文件
安装
pip install cnrsd
# 额外含有 pandas 和 xarray 依赖
pip install cnrsd[all]
基本用法
import cnrsd
# 读取 BUFR 文件
filepath = "sample/Z_SURF_I_53691_20240809000000_O_AWS-RSD-MM_FTM.BIN"
rsd = cnrsd.read_file(filepath)
# 转换成 pandas 或 xarray 的数据类型,方便处理
df = rsd.to_dataframe()
da = rsd.to_dataarray()
# 批量转换类型
df = cnrsd.rsds_to_dataframe(rsds)
民间解读,直径速度可能有错,恳请指正。 以什么形式表示雨滴谱数据,方便保存和数据分析,也仍在探索当中,欢迎讨论。
TODO
- 样例文件
- 详细的 README
- 单元测试、CI
- 雨强、液态水含量
参考资料
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cnrsd-0.1.3.tar.gz
(12.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
cnrsd-0.1.3-py3-none-any.whl
(13.3 kB
view details)
File details
Details for the file cnrsd-0.1.3.tar.gz.
File metadata
- Download URL: cnrsd-0.1.3.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7997780c8df870e5d15e2fb29178087857958149bb5cdc40a406f0c987659ae8
|
|
| MD5 |
76ede15184b80e93df8eec9e31a61893
|
|
| BLAKE2b-256 |
0cd9079d9a78bc6178ab94961df3fc85774df1909c6417b87f6a51cc46760858
|
File details
Details for the file cnrsd-0.1.3-py3-none-any.whl.
File metadata
- Download URL: cnrsd-0.1.3-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
913db7b36c22209789f38483450d97517e7feb00ec2c9178c209fb8ab55c6f1e
|
|
| MD5 |
04588d63f49168337ecfb2045aaeb25d
|
|
| BLAKE2b-256 |
2b3253863e056c9aa7bd2e51482e24c9e1db8bfdf978badb598ebef421c89572
|