Metadata-Version: 2.4
Name: cnrsd
Version: 0.1.1
Summary: 解析中国 BUFR 格式的雨滴谱数据
Author: ZhaJiMan
Author-email: ZhaJiMan <915023793@qq.com>
License-Expression: MIT
License-File: LICENSE
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Atmospheric Science
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: MIT License
Requires-Dist: bitarray>=3.0.0
Requires-Dist: numpy>=2.0.0
Requires-Dist: xarray>=2024.9.0 ; extra == 'all'
Requires-Python: >=3.10
Project-URL: Homepage, https://github.com/ZhaJiMan/cnrsd
Project-URL: Issues, https://github.com/ZhaJiMan/cnrsd/issues
Project-URL: Changelog, https://github.com/ZhaJiMan/cnrsd/blob/main/CHANGELOG.md
Provides-Extra: all
Description-Content-Type: text/markdown

# cnrsd

解析中国 BUFR 格式的雨滴谱文件

## 安装

```bash
pip install cnrsd

# 额外含有 pandas 和 xarray 依赖
pip install cnrsd[all]
```

## 基本用法

```python
import cnrsd

# 读取 BUFR 文件
filepath = "sample/Z_SURF_I_53691_20240809000000_O_AWS-RSD-MM_FTM.BIN"
rsd = cnrsd.RSD.from_file(filepath)

# 转换成方便处理的类型
df = rsd.to_dataframe()
da = rsd.to_dataarray()

# 批量转换类型
df = cnrsd.rsds_to_dataframe(rsds)
```

示例：[examples/plot_station.py](examples/plot_station.py)

![plot_station.png](images/plot_station.png)

## TODO

- [ ] 样例文件
- [ ] 详细的 README
- [ ] 单元测试、CI
- [ ] 雨强、液态水含量
