shancx 1.9.33.232__tar.gz → 1.9.33.234__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.
Files changed (102) hide show
  1. {shancx-1.9.33.232 → shancx-1.9.33.234}/PKG-INFO +1 -1
  2. {shancx-1.9.33.232 → shancx-1.9.33.234}/setup.py +1 -1
  3. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Read.py +40 -2
  4. shancx-1.9.33.234/shancx/Time/tool.py +0 -0
  5. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx.egg-info/PKG-INFO +1 -1
  6. shancx-1.9.33.232/shancx/H/__init__.py +0 -3
  7. {shancx-1.9.33.232 → shancx-1.9.33.234}/README.md +0 -0
  8. {shancx-1.9.33.232 → shancx-1.9.33.234}/setup.cfg +0 -0
  9. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/3D/__init__.py +0 -0
  10. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Algo/Class.py +0 -0
  11. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Algo/CudaPrefetcher1.py +0 -0
  12. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Algo/Fake_image.py +0 -0
  13. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Algo/Hsml.py +0 -0
  14. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Algo/L2Loss.py +0 -0
  15. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Algo/MetricTracker.py +0 -0
  16. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Algo/Normalize.py +0 -0
  17. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Algo/OptimizerWScheduler.py +0 -0
  18. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Algo/Rmageresize.py +0 -0
  19. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Algo/Savemodel.py +0 -0
  20. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Algo/SmoothL1_losses.py +0 -0
  21. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Algo/Tqdm.py +0 -0
  22. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Algo/__init__.py +0 -0
  23. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Algo/checknan.py +0 -0
  24. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Algo/dsalgor.py +0 -0
  25. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Algo/iouJU.py +0 -0
  26. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Algo/mask.py +0 -0
  27. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Algo/psnr.py +0 -0
  28. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Algo/ssim.py +0 -0
  29. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Algo/structural_similarity.py +0 -0
  30. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Algo/tool.py +0 -0
  31. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Calmetrics/__init__.py +0 -0
  32. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Calmetrics/calmetrics.py +0 -0
  33. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Calmetrics/calmetricsmatrixLib.py +0 -0
  34. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Calmetrics/rmseR2score.py +0 -0
  35. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Clip/__init__.py +0 -0
  36. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Cmd.py +0 -0
  37. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Config_.py +0 -0
  38. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Df/DataFrame.py +0 -0
  39. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Df/__init__.py +0 -0
  40. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Df/tool.py +0 -0
  41. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Diffm/Psamples.py +0 -0
  42. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Diffm/__init__.py +0 -0
  43. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Diffm/test.py +0 -0
  44. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Doc/__init__.py +0 -0
  45. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/E/__init__.py +0 -0
  46. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Fillmiss/__init__.py +0 -0
  47. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Fillmiss/imgidwJU.py +0 -0
  48. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Fillmiss/imgidwLatLonJU.py +0 -0
  49. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Gpu/__init__.py +0 -0
  50. /shancx-1.9.33.232/shancx/Time/tool.py → /shancx-1.9.33.234/shancx/H/__init__.py +0 -0
  51. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/H/optSchler.py +0 -0
  52. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/H/simple.py +0 -0
  53. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/H9/__init__.py +0 -0
  54. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/H9/ahi_read_hsd.py +0 -0
  55. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/H9/ahisearchtable.py +0 -0
  56. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/H9/geometry.py +0 -0
  57. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Hug/__init__.py +0 -0
  58. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Inst.py +0 -0
  59. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Lib.py +0 -0
  60. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Mos/__init__.py +0 -0
  61. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/NN/__init__.py +0 -0
  62. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/NN/chainMul.py +0 -0
  63. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Path1.py +0 -0
  64. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Plot/GlobMap.py +0 -0
  65. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Plot/Gray2RGB.py +0 -0
  66. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Plot/__init__.py +0 -0
  67. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Plot/draw_day_CR_PNG.py +0 -0
  68. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Plot/exam.py +0 -0
  69. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Plot/plotGlobal.py +0 -0
  70. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Plot/radarNmc.py +0 -0
  71. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Plot/single_china_map.py +0 -0
  72. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Point.py +0 -0
  73. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/QC.py +0 -0
  74. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/RdPzl/__init__.py +0 -0
  75. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Resize.py +0 -0
  76. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/SN/__init__.py +0 -0
  77. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Time/GetTime.py +0 -0
  78. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Time/__init__.py +0 -0
  79. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Time/timeCycle.py +0 -0
  80. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Train/__init__.py +0 -0
  81. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Train/makelist.py +0 -0
  82. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Train/multiGpu.py +0 -0
  83. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Train/prepare.py +0 -0
  84. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/Train/renet50.py +0 -0
  85. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/ZR.py +0 -0
  86. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/__init__.py +0 -0
  87. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/args.py +0 -0
  88. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/bak.py +0 -0
  89. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/cmp.py +0 -0
  90. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/df2database.py +0 -0
  91. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/geosProj.py +0 -0
  92. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/getResponse.py +0 -0
  93. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/info.py +0 -0
  94. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/netdfJU.py +0 -0
  95. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/npz.py +0 -0
  96. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/sendM.py +0 -0
  97. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/tensBoard/__init__.py +0 -0
  98. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx/wait.py +0 -0
  99. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx.egg-info/SOURCES.txt +0 -0
  100. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx.egg-info/dependency_links.txt +0 -0
  101. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx.egg-info/requires.txt +0 -0
  102. {shancx-1.9.33.232 → shancx-1.9.33.234}/shancx.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: shancx
3
- Version: 1.9.33.232
3
+ Version: 1.9.33.234
4
4
  Summary: A simple timer decorator
5
5
  Home-page: https://gitee.com/shancx
6
6
  Author: shancx
@@ -3,7 +3,7 @@
3
3
  from setuptools import setup, find_packages
4
4
  setup(
5
5
  name="shancx",
6
- version="1.9.33.232",
6
+ version="1.9.33.234",
7
7
  packages=find_packages(),
8
8
  description="A simple timer decorator",
9
9
  long_description=open("README.md").read(),
@@ -45,7 +45,8 @@ def getGrib(filepath):
45
45
  'lons': lons
46
46
  }
47
47
  finally:
48
- os.unlink(tmp_path)
48
+ if filepath.endswith('.gz'):
49
+ os.unlink(tmp_path)
49
50
 
50
51
  """
51
52
  input_Path = './Composite_00.50_20250701-010044.grib2.gz'
@@ -107,4 +108,41 @@ if __name__ == "__main__":
107
108
  print("参数单位:", result['metadata']['units'])
108
109
  """
109
110
 
110
-
111
+ """
112
+ # 方法1:查看GRIB文件的元信息
113
+ import xarray as xr
114
+ import cfgrib
115
+ # 尝试用xarray打开GRIB文件查看元数据
116
+ try:
117
+ # 直接打开文件查看
118
+ ds = xr.open_dataset(pathGPH, engine='cfgrib')
119
+ print("=== GRIB文件元数据 ===")
120
+ print(ds)
121
+ # 查看维度信息
122
+ print("\n=== 维度信息 ===")
123
+ for dim in ds.dims:
124
+ print(f"{dim}: {ds.dims[dim]}")
125
+ # 查看坐标信息
126
+ print("\n=== 坐标信息 ===")
127
+ for coord in ds.coords:
128
+ print(f"{coord}: {ds.coords[coord].values[:5]}...")
129
+
130
+ except Exception as e:
131
+ print(f"无法用xarray打开: {e}")
132
+ # 方法2:使用pygrib直接读取
133
+ try:
134
+ import pygrib
135
+ grbs = pygrib.open(pathGPH)
136
+ for grb in grbs[:5]: # 查看前5个消息
137
+ print(f"\n消息 {grb.messagenumber}:")
138
+ print(f" 参数: {grb.parameterName}")
139
+ print(f" 层次: {grb.level}")
140
+ print(f" 层次类型: {grb.typeOfLevel}")
141
+ print(f" 预报时效: {grb.endStep}")
142
+ print(f" 数据形状: {grb.values.shape}")
143
+ grbs.close()
144
+ except ImportError:
145
+ print("pygrib未安装,使用: pip install pygrib")
146
+ except Exception as e:
147
+ print(f"pygrib读取错误: {e}")
148
+ """
File without changes
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: shancx
3
- Version: 1.9.33.232
3
+ Version: 1.9.33.234
4
4
  Summary: A simple timer decorator
5
5
  Home-page: https://gitee.com/shancx
6
6
  Author: shancx
@@ -1,3 +0,0 @@
1
- def getSimple(df,n=1000)
2
- df = df.sample(n=n, replace=True, random_state=42)
3
- return df
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes