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.7.tar.gz
(46.5 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.7-py3-none-any.whl
(11.2 kB
view details)
File details
Details for the file dayuanlib-0.4.7.tar.gz.
File metadata
- Download URL: dayuanlib-0.4.7.tar.gz
- Upload date:
- Size: 46.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65348ca05d3ff0503fb91a3514bfe625b238fbad9253ceef5e9d47dc34766a27
|
|
| MD5 |
60dfe0b2e7c92c68f55831c5937f21be
|
|
| BLAKE2b-256 |
20b0cc39b058ec313a89f8c6077ca2b21d9dd2cc0cc304968c3be59e1808fe78
|
File details
Details for the file dayuanlib-0.4.7-py3-none-any.whl.
File metadata
- Download URL: dayuanlib-0.4.7-py3-none-any.whl
- Upload date:
- Size: 11.2 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 |
fdc3288442e91cc615322e426887006f88d10d7459feee3d00baa78843d53a80
|
|
| MD5 |
016ea07d4dc4dba48177382ab28f9ebe
|
|
| BLAKE2b-256 |
9b509b3e3521f66946c60906dfc9082160a7ba595b2a653987b55d7816c3c53c
|