Skip to main content

解析中国 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)

民间解读,直径速度可能有错,恳请指正。 以什么形式表示雨滴谱数据,方便保存和数据分析,也仍在探索当中,欢迎讨论。

示例:examples/plot_station.py

plot_station.png

TODO

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

参考资料

Project details


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cnrsd-0.1.3-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

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

Hashes for cnrsd-0.1.3.tar.gz
Algorithm Hash digest
SHA256 7997780c8df870e5d15e2fb29178087857958149bb5cdc40a406f0c987659ae8
MD5 76ede15184b80e93df8eec9e31a61893
BLAKE2b-256 0cd9079d9a78bc6178ab94961df3fc85774df1909c6417b87f6a51cc46760858

See more details on using hashes here.

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

Hashes for cnrsd-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 913db7b36c22209789f38483450d97517e7feb00ec2c9178c209fb8ab55c6f1e
MD5 04588d63f49168337ecfb2045aaeb25d
BLAKE2b-256 2b3253863e056c9aa7bd2e51482e24c9e1db8bfdf978badb598ebef421c89572

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page