解析中国 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.2.tar.gz
(12.4 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.2-py3-none-any.whl
(13.0 kB
view details)
File details
Details for the file cnrsd-0.1.2.tar.gz.
File metadata
- Download URL: cnrsd-0.1.2.tar.gz
- Upload date:
- Size: 12.4 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 |
2715f15df4fc19cfdb8527ee4532a0cbb16d40357eb8448705e59c33bc21fb68
|
|
| MD5 |
4b83372bf3da369195c3d911b7dfac91
|
|
| BLAKE2b-256 |
9f951d9d3da22c9e3cc1b935cbae32711b28b6a17ba207c4857eecc67bd268d3
|
File details
Details for the file cnrsd-0.1.2-py3-none-any.whl.
File metadata
- Download URL: cnrsd-0.1.2-py3-none-any.whl
- Upload date:
- Size: 13.0 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 |
004c28d2af5e25b6a5fef6ae53de9216a2cf4704fa0175dfee56e9d27c596eff
|
|
| MD5 |
22862303a44d6375d9fd6142aba26510
|
|
| BLAKE2b-256 |
782ab9b7ccd22b6f2c64388c91a539bf3c83b851224760cc7663093e32f13805
|