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.RSD.from_file(filepath)

# 转换成方便处理的类型
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.1.tar.gz (10.9 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.1-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file cnrsd-0.1.1.tar.gz.

File metadata

  • Download URL: cnrsd-0.1.1.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","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.1.tar.gz
Algorithm Hash digest
SHA256 460ffe7b96c53d79eb1a0420674b3db589e531ce8638e0443147a82724785fb6
MD5 b7348a8c191e306c81c910c79d350b93
BLAKE2b-256 dd757f005268ad5741161c0a9ca25c8f645e0ad24e0278f0800c14ca3c9fd371

See more details on using hashes here.

File details

Details for the file cnrsd-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: cnrsd-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 18b042d002d1fbc9813899d5b55d58f1243d1a48e8c76a07524503ae8d043580
MD5 28b7fd1bb861250d9f4b8b9463a3b2ca
BLAKE2b-256 9c9df9539454bc3fe2922e7fb9026517dcc6037d47991a0c6bfc9217248c7819

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