oafuncs 0.0.95__py2.py3-none-any.whl → 0.0.96__py2.py3-none-any.whl
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/data_store/OAFuncs.png +0 -0
- oafuncs/oa_down/hycom_3hourly.py +14 -5
- oafuncs/oa_nc.py +2 -2
- {oafuncs-0.0.95.dist-info → oafuncs-0.0.96.dist-info}/METADATA +1 -1
- {oafuncs-0.0.95.dist-info → oafuncs-0.0.96.dist-info}/RECORD +8 -8
- {oafuncs-0.0.95.dist-info → oafuncs-0.0.96.dist-info}/LICENSE.txt +0 -0
- {oafuncs-0.0.95.dist-info → oafuncs-0.0.96.dist-info}/WHEEL +0 -0
- {oafuncs-0.0.95.dist-info → oafuncs-0.0.96.dist-info}/top_level.txt +0 -0
oafuncs/data_store/OAFuncs.png
CHANGED
Binary file
|
oafuncs/oa_down/hycom_3hourly.py
CHANGED
@@ -536,8 +536,10 @@ def _get_base_url(dataset_name, version_name, var, ymdh_str):
|
|
536
536
|
mdh_str = ymdh_str[4:]
|
537
537
|
# GLBy0.08 93.0
|
538
538
|
# data time range in each year: year-01-01 12:00 to year+1-01-01 09:00
|
539
|
-
if mdh_str <= "010109":
|
539
|
+
if "010100" <= mdh_str <= "010109":
|
540
540
|
year_str = int(ymdh_str[:4]) - 1
|
541
|
+
else:
|
542
|
+
year_str = int(ymdh_str[:4])
|
541
543
|
base_url = None
|
542
544
|
for key, value in var_group.items():
|
543
545
|
if var in value:
|
@@ -547,6 +549,13 @@ def _get_base_url(dataset_name, version_name, var, ymdh_str):
|
|
547
549
|
print("Please ensure the var is in [u,v,temp,salt,ssh,u_b,v_b,temp_b,salt_b]")
|
548
550
|
elif classification_method == "single_var_year_different":
|
549
551
|
base_url = None
|
552
|
+
if dataset_name == "ESPC_D" and version_name == "V02":
|
553
|
+
mdh_str = ymdh_str[4:]
|
554
|
+
# ESPC-D-V02
|
555
|
+
if "010100" <= mdh_str <= "010109":
|
556
|
+
year_str = int(ymdh_str[:4]) - 1
|
557
|
+
else:
|
558
|
+
year_str = int(ymdh_str[:4])
|
550
559
|
for key, value in single_var_group.items():
|
551
560
|
if var in value:
|
552
561
|
base_url = url_dict[key][str(year_str)]
|
@@ -1276,9 +1285,9 @@ if __name__ == "__main__":
|
|
1276
1285
|
|
1277
1286
|
options = {
|
1278
1287
|
"var": var_list,
|
1279
|
-
"time_s": "
|
1280
|
-
"time_e": "
|
1281
|
-
"store_path": r"
|
1288
|
+
"time_s": "2025010300",
|
1289
|
+
"time_e": "2025010321",
|
1290
|
+
"store_path": r"I:\Data\HYCOM\3hourly",
|
1282
1291
|
"lon_min": 105,
|
1283
1292
|
"lon_max": 130,
|
1284
1293
|
"lat_min": 15,
|
@@ -1289,7 +1298,7 @@ if __name__ == "__main__":
|
|
1289
1298
|
"level": None, # or 1-40 levels
|
1290
1299
|
"ftimes": 1,
|
1291
1300
|
# "idm_engine": r"D:\Programs\Internet Download Manager\IDMan.exe", # 查漏补缺不建议开启
|
1292
|
-
"fill_time":
|
1301
|
+
"fill_time": None,
|
1293
1302
|
}
|
1294
1303
|
|
1295
1304
|
if single_var:
|
oafuncs/oa_nc.py
CHANGED
@@ -254,13 +254,13 @@ def merge(file_list, var_name=None, dim_name=None, target_filename=None):
|
|
254
254
|
|
255
255
|
merged_data = xr.Dataset(merged_data)
|
256
256
|
|
257
|
-
print("
|
257
|
+
print("\nWriting data to file ...")
|
258
258
|
if os.path.exists(target_filename):
|
259
259
|
print("Warning: The target file already exists.")
|
260
260
|
print("Removing existing file ...")
|
261
261
|
os.remove(target_filename)
|
262
262
|
merged_data.to_netcdf(target_filename)
|
263
|
-
print(f'
|
263
|
+
print(f'\nFile "{target_filename}" has been created.')
|
264
264
|
|
265
265
|
|
266
266
|
def _modify_var(nc_file_path, variable_name, new_value):
|
@@ -4,12 +4,12 @@ oafuncs/oa_data.py,sha256=Skhi70IY7T4lHd_eu3BxcSAfpXMH8SzUURR8gB7bj74,7679
|
|
4
4
|
oafuncs/oa_draw.py,sha256=QypQp4vJIrbAyFddEVxd9K9Q4d85PRYqYQi9xDUmSZw,11150
|
5
5
|
oafuncs/oa_file.py,sha256=EUL9osp7scZ3JTCwTUlKNfS1d_9xOsFrIkmFxzZAbdg,14233
|
6
6
|
oafuncs/oa_help.py,sha256=loyzTbjU_0VpSIBvAEUA_tqxG8MVsO0xFE_2hgQ3zMw,4188
|
7
|
-
oafuncs/oa_nc.py,sha256=
|
7
|
+
oafuncs/oa_nc.py,sha256=SHjpGziWTIwzUHv4R5HaxL-7BC9j3y9XLThcbCD5bvc,18347
|
8
8
|
oafuncs/oa_python.py,sha256=Q-6UGGw_dJff7Ef8i87fsLPoGeHV5jBzfb-7HP4THR0,4018
|
9
|
-
oafuncs/data_store/OAFuncs.png,sha256=
|
9
|
+
oafuncs/data_store/OAFuncs.png,sha256=y1_x-mUP3gFjcy6m8FqfvQO_HgjzPhQKfXjnSHjslZE,3436152
|
10
10
|
oafuncs/oa_down/User_Agent-list.txt,sha256=pazxSip8_lphEBOPHG902zmIBUg8sBKXgmqp_g6j_E4,661062
|
11
11
|
oafuncs/oa_down/__init__.py,sha256=kRX5eTUCbAiz3zTaQM1501paOYS_3fizDN4Pa0mtNUA,585
|
12
|
-
oafuncs/oa_down/hycom_3hourly.py,sha256=
|
12
|
+
oafuncs/oa_down/hycom_3hourly.py,sha256=lCdbYQd7o_2jMgwmbrClNo5omrj5b5cnWnp6lnXMloQ,65307
|
13
13
|
oafuncs/oa_down/hycom_3hourly_20250129.py,sha256=zbUp5NNBMzDXEqSC0-Z9H_EoM6Fg-6tXymK0AXH9qRk,65553
|
14
14
|
oafuncs/oa_down/idm.py,sha256=XfYCNnQWADxOhhJd-T8sNYN0nGiRrAs7zbQcsB5-UmI,1668
|
15
15
|
oafuncs/oa_down/literature.py,sha256=2bF9gSKQbzcci9LcKE81j8JEjIJwON7jbwQB3gDDA3E,11331
|
@@ -22,8 +22,8 @@ oafuncs/oa_sign/scientific.py,sha256=a4JxOBgm9vzNZKpJ_GQIQf7cokkraV5nh23HGbmTYKw
|
|
22
22
|
oafuncs/oa_tool/__init__.py,sha256=bNTy9abznDhg3k_Irx0YieXl37r-oDRMtTAxf57Stzs,487
|
23
23
|
oafuncs/oa_tool/email.py,sha256=4lJxV_KUzhxgLYfVwYTqp0qxRugD7fvsZkXDe5WkUKo,3052
|
24
24
|
oafuncs/oa_tool/parallel.py,sha256=kYbiIFDB7EoxasmXGSomaEDVUsg9Rfvdgbw93lBOY7o,3770
|
25
|
-
oafuncs-0.0.
|
26
|
-
oafuncs-0.0.
|
27
|
-
oafuncs-0.0.
|
28
|
-
oafuncs-0.0.
|
29
|
-
oafuncs-0.0.
|
25
|
+
oafuncs-0.0.96.dist-info/LICENSE.txt,sha256=rMtLpVg8sKiSlwClfR9w_Dd_5WubTQgoOzE2PDFxzs4,1074
|
26
|
+
oafuncs-0.0.96.dist-info/METADATA,sha256=Nh6i-B0Mt9WoTMNYRZ8-bTj9cjHXK_7NDPaZxEPOLk0,3618
|
27
|
+
oafuncs-0.0.96.dist-info/WHEEL,sha256=9Hm2OB-j1QcCUq9Jguht7ayGIIZBRTdOXD1qg9cCgPM,109
|
28
|
+
oafuncs-0.0.96.dist-info/top_level.txt,sha256=bgC35QkXbN4EmPHEveg_xGIZ5i9NNPYWqtJqaKqTPsQ,8
|
29
|
+
oafuncs-0.0.96.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|