oafuncs 0.0.98.1__tar.gz → 0.0.98.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- oafuncs-0.0.98.2/MANIFEST.in +5 -0
- {oafuncs-0.0.98.1/oafuncs.egg-info → oafuncs-0.0.98.2}/PKG-INFO +83 -11
- oafuncs-0.0.98.2/README.md +131 -0
- {oafuncs-0.0.98.1 → oafuncs-0.0.98.2}/oafuncs/__init__.py +3 -14
- oafuncs-0.0.98.1/oafuncs/data_store/hycom_3hourly.png → oafuncs-0.0.98.2/oafuncs/_data/hycom.png +0 -0
- oafuncs-0.0.98.2/oafuncs/_data/oafuncs.png +0 -0
- oafuncs-0.0.98.2/oafuncs/_script/cprogressbar.py +465 -0
- {oafuncs-0.0.98.1/oafuncs/oa_tool → oafuncs-0.0.98.2/oafuncs/_script}/email.py +26 -24
- oafuncs-0.0.98.2/oafuncs/_script/netcdf_merge.py +107 -0
- oafuncs-0.0.98.2/oafuncs/_script/netcdf_modify.py +114 -0
- oafuncs-0.0.98.2/oafuncs/_script/netcdf_write.py +116 -0
- oafuncs-0.0.98.2/oafuncs/_script/parallel.py +565 -0
- oafuncs-0.0.98.2/oafuncs/_script/parallel_example_usage.py +83 -0
- {oafuncs-0.0.98.1 → oafuncs-0.0.98.2}/oafuncs/_script/plot_dataset.py +31 -17
- oafuncs-0.0.98.2/oafuncs/_script/replace_file_content.py +151 -0
- oafuncs-0.0.98.2/oafuncs/oa_cmap.py +278 -0
- oafuncs-0.0.98.2/oafuncs/oa_data.py +232 -0
- oafuncs-0.0.98.2/oafuncs/oa_date.py +160 -0
- oafuncs-0.0.98.1/oafuncs/oa_down/hycom_3hourly_20250129.py → oafuncs-0.0.98.2/oafuncs/oa_down/hycom_3hourly.py +261 -386
- oafuncs-0.0.98.1/oafuncs/oa_down/hycom_3hourly.py → oafuncs-0.0.98.2/oafuncs/oa_down/hycom_3hourly_20250407.py +64 -78
- {oafuncs-0.0.98.1 → oafuncs-0.0.98.2}/oafuncs/oa_down/idm.py +13 -5
- oafuncs-0.0.98.2/oafuncs/oa_draw.py +336 -0
- oafuncs-0.0.98.2/oafuncs/oa_file.py +407 -0
- {oafuncs-0.0.98.1 → oafuncs-0.0.98.2}/oafuncs/oa_help.py +10 -0
- oafuncs-0.0.98.2/oafuncs/oa_nc.py +283 -0
- oafuncs-0.0.98.2/oafuncs/oa_python.py +124 -0
- {oafuncs-0.0.98.1 → oafuncs-0.0.98.2}/oafuncs/oa_sign/meteorological.py +3 -3
- oafuncs-0.0.98.2/oafuncs/oa_tool.py +119 -0
- {oafuncs-0.0.98.1 → oafuncs-0.0.98.2/oafuncs.egg-info}/PKG-INFO +83 -11
- {oafuncs-0.0.98.1 → oafuncs-0.0.98.2}/oafuncs.egg-info/SOURCES.txt +14 -9
- {oafuncs-0.0.98.1 → oafuncs-0.0.98.2}/oafuncs.egg-info/requires.txt +2 -2
- {oafuncs-0.0.98.1 → oafuncs-0.0.98.2}/setup.py +14 -7
- oafuncs-0.0.98.1/MANIFEST.in +0 -4
- oafuncs-0.0.98.1/README.md +0 -60
- oafuncs-0.0.98.1/oafuncs/_script/__init__.py +0 -27
- oafuncs-0.0.98.1/oafuncs/data_store/OAFuncs.png +0 -0
- oafuncs-0.0.98.1/oafuncs/oa_cmap.py +0 -215
- oafuncs-0.0.98.1/oafuncs/oa_data.py +0 -293
- oafuncs-0.0.98.1/oafuncs/oa_draw.py +0 -326
- oafuncs-0.0.98.1/oafuncs/oa_file.py +0 -413
- oafuncs-0.0.98.1/oafuncs/oa_nc.py +0 -523
- oafuncs-0.0.98.1/oafuncs/oa_python.py +0 -108
- oafuncs-0.0.98.1/oafuncs/oa_tool/__init__.py +0 -19
- oafuncs-0.0.98.1/oafuncs/oa_tool/parallel.py +0 -90
- oafuncs-0.0.98.1/oafuncs/oa_tool/time.py +0 -22
- {oafuncs-0.0.98.1 → oafuncs-0.0.98.2}/LICENSE.txt +0 -0
- {oafuncs-0.0.98.1 → oafuncs-0.0.98.2}/oafuncs/oa_down/User_Agent-list.txt +0 -0
- {oafuncs-0.0.98.1 → oafuncs-0.0.98.2}/oafuncs/oa_down/__init__.py +0 -0
- {oafuncs-0.0.98.1 → oafuncs-0.0.98.2}/oafuncs/oa_down/literature.py +0 -0
- {oafuncs-0.0.98.1 → oafuncs-0.0.98.2}/oafuncs/oa_down/test_ua.py +0 -0
- {oafuncs-0.0.98.1 → oafuncs-0.0.98.2}/oafuncs/oa_down/user_agent.py +0 -0
- {oafuncs-0.0.98.1 → oafuncs-0.0.98.2}/oafuncs/oa_model/__init__.py +0 -0
- {oafuncs-0.0.98.1 → oafuncs-0.0.98.2}/oafuncs/oa_model/roms/__init__.py +0 -0
- {oafuncs-0.0.98.1 → oafuncs-0.0.98.2}/oafuncs/oa_model/roms/test.py +0 -0
- {oafuncs-0.0.98.1 → oafuncs-0.0.98.2}/oafuncs/oa_model/wrf/__init__.py +0 -0
- {oafuncs-0.0.98.1 → oafuncs-0.0.98.2}/oafuncs/oa_model/wrf/little_r.py +0 -0
- {oafuncs-0.0.98.1 → oafuncs-0.0.98.2}/oafuncs/oa_sign/__init__.py +0 -0
- {oafuncs-0.0.98.1 → oafuncs-0.0.98.2}/oafuncs/oa_sign/ocean.py +0 -0
- {oafuncs-0.0.98.1 → oafuncs-0.0.98.2}/oafuncs/oa_sign/scientific.py +0 -0
- {oafuncs-0.0.98.1 → oafuncs-0.0.98.2}/oafuncs.egg-info/dependency_links.txt +0 -0
- {oafuncs-0.0.98.1 → oafuncs-0.0.98.2}/oafuncs.egg-info/top_level.txt +0 -0
- {oafuncs-0.0.98.1 → oafuncs-0.0.98.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.4
|
2
2
|
Name: oafuncs
|
3
|
-
Version: 0.0.98.
|
3
|
+
Version: 0.0.98.2
|
4
4
|
Summary: Oceanic and Atmospheric Functions
|
5
5
|
Home-page: https://github.com/Industry-Pays/OAFuncs
|
6
6
|
Author: Kun Liu
|
@@ -32,8 +32,8 @@ Requires-Dist: geopandas
|
|
32
32
|
Requires-Dist: Cartopy
|
33
33
|
Requires-Dist: rasterio
|
34
34
|
Requires-Dist: salem
|
35
|
-
Requires-Dist:
|
36
|
-
Requires-Dist:
|
35
|
+
Requires-Dist: psutil
|
36
|
+
Requires-Dist: dask
|
37
37
|
Dynamic: author
|
38
38
|
Dynamic: author-email
|
39
39
|
Dynamic: classifier
|
@@ -41,6 +41,7 @@ Dynamic: description
|
|
41
41
|
Dynamic: description-content-type
|
42
42
|
Dynamic: home-page
|
43
43
|
Dynamic: license
|
44
|
+
Dynamic: license-file
|
44
45
|
Dynamic: requires-dist
|
45
46
|
Dynamic: requires-python
|
46
47
|
Dynamic: summary
|
@@ -88,21 +89,92 @@ oafuncs.oa_help.use('query')
|
|
88
89
|
```
|
89
90
|
|
90
91
|
```shell
|
91
|
-
# 此小板块于
|
92
|
+
# 此小板块于2025/03/16更新,仅为示例,不代表最新情况
|
92
93
|
函数数量:
|
93
|
-
|
94
|
+
62
|
94
95
|
函数列表:
|
95
|
-
[
|
96
|
+
[
|
97
|
+
'MidpointNormalize',
|
98
|
+
'ParallelExecutor',
|
99
|
+
'add_cartopy',
|
100
|
+
'add_gridlines',
|
101
|
+
'add_lonlat_unit',
|
102
|
+
'check',
|
103
|
+
'clear_folder',
|
104
|
+
'contour',
|
105
|
+
'contourf',
|
106
|
+
'convert_longitude',
|
107
|
+
'copy_file',
|
108
|
+
'create',
|
109
|
+
'create_rgbtxt',
|
110
|
+
'data_record',
|
111
|
+
'download',
|
112
|
+
'download5doi',
|
113
|
+
'downloader',
|
114
|
+
'draw',
|
115
|
+
'draw_time_range',
|
116
|
+
'ending_record',
|
117
|
+
'ensure_list',
|
118
|
+
'extract',
|
119
|
+
'fig_minus',
|
120
|
+
'file_size',
|
121
|
+
'find_file',
|
122
|
+
'get',
|
123
|
+
'get_days',
|
124
|
+
'get_time_list',
|
125
|
+
'get_ua',
|
126
|
+
'get_var',
|
127
|
+
'gif',
|
128
|
+
'header_record',
|
129
|
+
'how_to_use',
|
130
|
+
'install_lib',
|
131
|
+
'interp_2d',
|
132
|
+
'interp_along_dim',
|
133
|
+
'isel',
|
134
|
+
'link_file',
|
135
|
+
'log',
|
136
|
+
'make_dir',
|
137
|
+
'make_folder',
|
138
|
+
'mask_shapefile',
|
139
|
+
'mean_size',
|
140
|
+
'merge',
|
141
|
+
'modify',
|
142
|
+
'query',
|
143
|
+
'quiver',
|
144
|
+
'remove',
|
145
|
+
'remove_empty_folder',
|
146
|
+
'rename',
|
147
|
+
'rename_file',
|
148
|
+
'save',
|
149
|
+
'send',
|
150
|
+
'show',
|
151
|
+
'sign_in_love_ocean',
|
152
|
+
'sign_in_meteorological_home',
|
153
|
+
'sign_in_scientific_research',
|
154
|
+
'tail_record',
|
155
|
+
'test',
|
156
|
+
'to_color',
|
157
|
+
'upgrade_lib',
|
158
|
+
'use'
|
159
|
+
]
|
160
|
+
同名函数:
|
161
|
+
----------------------------------------
|
96
162
|
模块全路径:
|
97
163
|
oafuncs.oa_help.query
|
98
|
-
函数提示:
|
99
164
|
|
100
|
-
|
101
|
-
|
165
|
+
Help on function query in module oafuncs.oa_help:
|
166
|
+
|
167
|
+
query()
|
168
|
+
Description:
|
169
|
+
Show the number of functions and the list of functions in the module.
|
170
|
+
Example:
|
171
|
+
query()
|
172
|
+
|
173
|
+
----------------------------------------
|
102
174
|
```
|
103
175
|
|
104
176
|
## Structure
|
105
177
|
|
106
178
|
<img title="" src="./oafuncs/data_store/OAFuncs.png" alt="">
|
107
179
|
|
108
|
-
<img title="OAFuncs" src="https://raw.githubusercontent.com/Industry-Pays/OAFuncs/main/oafuncs/
|
180
|
+
<img title="OAFuncs" src="https://raw.githubusercontent.com/Industry-Pays/OAFuncs/main/oafuncs/_data/oafuncs.png" alt="OAFuncs">
|
@@ -0,0 +1,131 @@
|
|
1
|
+
# oafuncs
|
2
|
+
|
3
|
+
## Description
|
4
|
+
|
5
|
+
**Python Function**
|
6
|
+
|
7
|
+
```text
|
8
|
+
In the field of geoscience, some commonly used and universal operations!
|
9
|
+
|
10
|
+
Just for the convenience of daily use, some complex operations are integrated into general functions.
|
11
|
+
|
12
|
+
The code will be optimized and updated from time to time, with additions, deletions, or modifications…
|
13
|
+
|
14
|
+
Existing functions will not be completely removed, they might just have a different function name, or the parameter passing might have been optimized…
|
15
|
+
|
16
|
+
Note: If there are any requirements, you can email to liukun0312@stu.ouc.edu.cn. Within my capabilities, I can consider implementing them.
|
17
|
+
```
|
18
|
+
|
19
|
+
## PyPI
|
20
|
+
|
21
|
+
```html
|
22
|
+
https://pypi.org/project/oafuncs
|
23
|
+
```
|
24
|
+
|
25
|
+
## Github
|
26
|
+
|
27
|
+
```html
|
28
|
+
https://github.com/Industry-Pays/OAFuncs
|
29
|
+
```
|
30
|
+
|
31
|
+
## Example
|
32
|
+
|
33
|
+
```python
|
34
|
+
import oafuncs
|
35
|
+
|
36
|
+
# 查询当前所有可用函数
|
37
|
+
oafuncs.oa_help.query()
|
38
|
+
# 根据函数名获取使用方法
|
39
|
+
oafuncs.oa_help.use('query')
|
40
|
+
```
|
41
|
+
|
42
|
+
```shell
|
43
|
+
# 此小板块于2025/03/16更新,仅为示例,不代表最新情况
|
44
|
+
函数数量:
|
45
|
+
62
|
46
|
+
函数列表:
|
47
|
+
[
|
48
|
+
'MidpointNormalize',
|
49
|
+
'ParallelExecutor',
|
50
|
+
'add_cartopy',
|
51
|
+
'add_gridlines',
|
52
|
+
'add_lonlat_unit',
|
53
|
+
'check',
|
54
|
+
'clear_folder',
|
55
|
+
'contour',
|
56
|
+
'contourf',
|
57
|
+
'convert_longitude',
|
58
|
+
'copy_file',
|
59
|
+
'create',
|
60
|
+
'create_rgbtxt',
|
61
|
+
'data_record',
|
62
|
+
'download',
|
63
|
+
'download5doi',
|
64
|
+
'downloader',
|
65
|
+
'draw',
|
66
|
+
'draw_time_range',
|
67
|
+
'ending_record',
|
68
|
+
'ensure_list',
|
69
|
+
'extract',
|
70
|
+
'fig_minus',
|
71
|
+
'file_size',
|
72
|
+
'find_file',
|
73
|
+
'get',
|
74
|
+
'get_days',
|
75
|
+
'get_time_list',
|
76
|
+
'get_ua',
|
77
|
+
'get_var',
|
78
|
+
'gif',
|
79
|
+
'header_record',
|
80
|
+
'how_to_use',
|
81
|
+
'install_lib',
|
82
|
+
'interp_2d',
|
83
|
+
'interp_along_dim',
|
84
|
+
'isel',
|
85
|
+
'link_file',
|
86
|
+
'log',
|
87
|
+
'make_dir',
|
88
|
+
'make_folder',
|
89
|
+
'mask_shapefile',
|
90
|
+
'mean_size',
|
91
|
+
'merge',
|
92
|
+
'modify',
|
93
|
+
'query',
|
94
|
+
'quiver',
|
95
|
+
'remove',
|
96
|
+
'remove_empty_folder',
|
97
|
+
'rename',
|
98
|
+
'rename_file',
|
99
|
+
'save',
|
100
|
+
'send',
|
101
|
+
'show',
|
102
|
+
'sign_in_love_ocean',
|
103
|
+
'sign_in_meteorological_home',
|
104
|
+
'sign_in_scientific_research',
|
105
|
+
'tail_record',
|
106
|
+
'test',
|
107
|
+
'to_color',
|
108
|
+
'upgrade_lib',
|
109
|
+
'use'
|
110
|
+
]
|
111
|
+
同名函数:
|
112
|
+
----------------------------------------
|
113
|
+
模块全路径:
|
114
|
+
oafuncs.oa_help.query
|
115
|
+
|
116
|
+
Help on function query in module oafuncs.oa_help:
|
117
|
+
|
118
|
+
query()
|
119
|
+
Description:
|
120
|
+
Show the number of functions and the list of functions in the module.
|
121
|
+
Example:
|
122
|
+
query()
|
123
|
+
|
124
|
+
----------------------------------------
|
125
|
+
```
|
126
|
+
|
127
|
+
## Structure
|
128
|
+
|
129
|
+
<img title="" src="./oafuncs/data_store/OAFuncs.png" alt="">
|
130
|
+
|
131
|
+
<img title="OAFuncs" src="https://raw.githubusercontent.com/Industry-Pays/OAFuncs/main/oafuncs/_data/oafuncs.png" alt="OAFuncs">
|
@@ -1,18 +1,5 @@
|
|
1
1
|
#!/usr/bin/env python
|
2
2
|
# coding=utf-8
|
3
|
-
"""
|
4
|
-
Author: Liu Kun && 16031215@qq.com
|
5
|
-
Date: 2024-09-17 16:09:20
|
6
|
-
LastEditors: Liu Kun && 16031215@qq.com
|
7
|
-
LastEditTime: 2025-03-09 16:28:01
|
8
|
-
FilePath: \\Python\\My_Funcs\\OAFuncs\\oafuncs\\__init__.py
|
9
|
-
Description:
|
10
|
-
EditPlatform: vscode
|
11
|
-
ComputerInfo: XPS 15 9510
|
12
|
-
SystemInfo: Windows 11
|
13
|
-
Python Version: 3.12
|
14
|
-
"""
|
15
|
-
|
16
3
|
|
17
4
|
# 会导致OAFuncs直接导入所有函数,不符合模块化设计
|
18
5
|
# from oafuncs.oa_s.oa_cmap import *
|
@@ -50,5 +37,7 @@ from .oa_sign import *
|
|
50
37
|
from .oa_tool import *
|
51
38
|
# ------------------- 2025-03-09 16:28:01 -------------------
|
52
39
|
# path: My_Funcs/OAFuncs/oafuncs/_script/
|
53
|
-
from ._script import *
|
40
|
+
# from ._script import *
|
54
41
|
# ------------------- 2025-03-16 15:56:01 -------------------
|
42
|
+
from .oa_date import *
|
43
|
+
# ------------------- 2025-03-27 16:56:57 -------------------
|
oafuncs-0.0.98.1/oafuncs/data_store/hycom_3hourly.png → oafuncs-0.0.98.2/oafuncs/_data/hycom.png
RENAMED
Binary file
|
Binary file
|