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
- 雨强、液态水含量
参考资料
Release files for cnrsd 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cnrsd-0.1.3.tar.gz | 12.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cnrsd-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.1 kB
Release files / cnrsd-0.1.3.tar.gz
| Download URL | cnrsd-0.1.3.tar.gz |
|---|---|
| Size | 12.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7997780c8df870e5d15e2fb29178087857958149bb5cdc40a406f0c987659ae8
|
|
BLAKE2b-256 checksum How to use checksums |
0cd9079d9a78bc6178ab94961df3fc85774df1909c6417b87f6a51cc46760858
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / cnrsd-0.1.3-py3-none-any.whl
| Download URL | cnrsd-0.1.3-py3-none-any.whl |
|---|---|
| Size | 13.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
913db7b36c22209789f38483450d97517e7feb00ec2c9178c209fb8ab55c6f1e
|
|
BLAKE2b-256 checksum How to use checksums |
2b3253863e056c9aa7bd2e51482e24c9e1db8bfdf978badb598ebef421c89572
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|