A Python library for extracting and processing air quality model data from AELMO NetCDF files
Project description
CMAQ Tools
一个用于从 AELMO NetCDF 文件中提取和处理空气质量模型数据的 Python 库。
安装
pip install git+https://github.com/zusiven/cmaq_tools.git
使用方法
from cmaq_tools import AelmoExtractor
from pathlib import Path
# 初始化提取器
extractor = AelmoExtractor(
aelmo_path=Path("path/to/CCTM_AELMO_d01.nc"),
cro2d_path=Path("path/to/GRIDCRO2D_d01.nc")
)
# 提取所有数据
df = extractor.extract_data()
print(df)
# 根据经纬度提取特定位置的数据
df_point = extractor.extract_data_by_lonlat(lon=114.0, lat=38.0)
print(df_point)
支持的污染物
- O3 (臭氧)
- PM2.5 (细颗粒物)
- PM10 (可吸入颗粒物)
- NO2 (二氧化氮)
- CO (一氧化碳)
- NO (一氧化氮)
- SO2 (二氧化硫)
依赖
- polars
- xarray
- netcdf4
- pyproj
- wztools
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
cmaq_tools-0.1.0.tar.gz
(155.8 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
File details
Details for the file cmaq_tools-0.1.0.tar.gz.
File metadata
- Download URL: cmaq_tools-0.1.0.tar.gz
- Upload date:
- Size: 155.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","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 |
ab587fb4875fbb06d9d82c22742550ed2db3081ca0132c7356d03f1393d6edda
|
|
| MD5 |
95adbeb64e008db84602d860da556762
|
|
| BLAKE2b-256 |
563df1c29f24d9d5773a9f398fbf0abcfa3032a6efe839f851987863862913e0
|
File details
Details for the file cmaq_tools-0.1.0-py3-none-any.whl.
File metadata
- Download URL: cmaq_tools-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","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 |
ddc5313972eadd1d3eced03749092914e4f25dae7352eaf8de001a4f0e64b6e5
|
|
| MD5 |
ad1646dd4218402abefb837528846580
|
|
| BLAKE2b-256 |
725e016e46ad93d7a11a9b19f2da64e991c740a5e8c601a449246dc72dfabe66
|