Add your description here
Project description
dataprocessor
from dayuanlib import dataprocessor
processor = dataprocessor.DataProcessor()
# 加载全域数据
arr = processor.load_arr(settings.data_output_final_dir, timeStr)
vars = [
'100u_hres','100v_hres','200u_hres','200v_hres','tp_hres','sp_hres','2t_hres','10u_hres',
'10v_hres','tcc_hres','ssr_hres','u10_fw','v10_fw','t2m_fw','z850_fw','z1000_fw','q850_fw','q1000_fw',
'u850_fw','u1000_fw','v850_fw','v1000_fw','t850_fw','t1000_fw','u10_pg','v10_pg','t2m_pg','z1000_pg',
'z850_pg', 'q1000_pg', 'q850_pg', 't1000_pg', 't850_pg', 'u1000_pg', 'u850_pg', 'v1000_pg','v850_pg',
'u100_ens','v100_ens','t2m_ens','sp_ens','tp_ens','ssrd_ens','tcc_ens','u25_ens','u50_ens','u75_ens',
'v25_ens','v50_ens','v75_ens'
]
# 数据切割
processor.process(arr, timestr=timeStr,
step="6:54",
lat_range=(42, 33),
lon_range=(109, 116),
var_list=vars,
outpath="processed")
GridFinder
from dayuanlib import tools
grid_finder = tools.GridFinder()
# 现在返回的是index 不是经纬度 还需要更新一次
lat_range, lon_range = grid_finder.get_lat_lon_ranges([[42, 109]])
xmlzip
from dayuanlib import tools
tools.zip2xml("script/2025-03-09_08_00_00.zip", "script/2025-03-09_08_00_00.xml")
tools.xml2zip("script/2025-03-09_08_00_00.xml", "script/2025-03-09_08_00_00_exml.zip")
版本号由 git tag 自动管理
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
dayuanlib-0.4.6.tar.gz
(46.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
dayuanlib-0.4.6-py3-none-any.whl
(11.1 kB
view details)
File details
Details for the file dayuanlib-0.4.6.tar.gz.
File metadata
- Download URL: dayuanlib-0.4.6.tar.gz
- Upload date:
- Size: 46.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
300b4c9d5c24a9f5148624946ab9cc1038c799414ca1a896f1b2982361b5325b
|
|
| MD5 |
9d3ebf89e9f6cd9b3d7ed24e1f883c86
|
|
| BLAKE2b-256 |
f202fa467443a6810e0286ff10f491226ac8defb36d35e754e27c21686f98c0b
|
File details
Details for the file dayuanlib-0.4.6-py3-none-any.whl.
File metadata
- Download URL: dayuanlib-0.4.6-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17c6255ab2d6829af77aa734374948501bb2a0c13c265f17aff73965711d36dc
|
|
| MD5 |
968efe4cb6bb038591ca336faf729224
|
|
| BLAKE2b-256 |
d30337f326157e58e49ccf99687fa318c9665a42a6d1a9dfe8a11c938ac6b5b2
|