shancx 1.9.33.214__tar.gz → 1.9.33.215__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.
- {shancx-1.9.33.214 → shancx-1.9.33.215}/PKG-INFO +1 -1
- {shancx-1.9.33.214 → shancx-1.9.33.215}/setup.py +1 -1
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Plot/plotGlobal.py +8 -8
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx.egg-info/PKG-INFO +1 -1
- {shancx-1.9.33.214 → shancx-1.9.33.215}/README.md +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/setup.cfg +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/3D/__init__.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Algo/Class.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Algo/CudaPrefetcher1.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Algo/Fake_image.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Algo/Hsml.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Algo/L2Loss.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Algo/MetricTracker.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Algo/Normalize.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Algo/OptimizerWScheduler.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Algo/Rmageresize.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Algo/Savemodel.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Algo/SmoothL1_losses.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Algo/Tqdm.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Algo/__init__.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Algo/checknan.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Algo/dsalgor.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Algo/iouJU.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Algo/mask.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Algo/psnr.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Algo/ssim.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Algo/structural_similarity.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Algo/tool.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Calmetrics/__init__.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Calmetrics/calmetrics.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Calmetrics/calmetricsmatrixLib.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Calmetrics/rmseR2score.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Clip/__init__.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Cmd.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Config_.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Df/DataFrame.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Df/__init__.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Df/tool.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Diffm/Psamples.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Diffm/__init__.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Diffm/test.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Doc/__init__.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/E/__init__.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Fillmiss/__init__.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Fillmiss/imgidwJU.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Fillmiss/imgidwLatLonJU.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Gpu/__init__.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/H9/__init__.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/H9/ahi_read_hsd.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/H9/ahisearchtable.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/H9/geometry.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Hug/__init__.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Inst.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Lib.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Mos/__init__.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/NN/__init__.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Path1.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Plot/GlobMap.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Plot/Gray2RGB.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Plot/__init__.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Plot/draw_day_CR_PNG.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Plot/exam.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Plot/radarNmc.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Plot/single_china_map.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Point.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/QC.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/RdPzl/__init__.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Read.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Resize.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/SN/__init__.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Time/GetTime.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Time/__init__.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Time/timeCycle.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Time/tool.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Train/__init__.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Train/makelist.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Train/multiGpu.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Train/prepare.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/Train/renet50.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/ZR.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/__init__.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/args.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/bak.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/cmp.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/df2database.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/geosProj.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/getResponse.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/info.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/netdfJU.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/sendM.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/tensBoard/__init__.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx/wait.py +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx.egg-info/SOURCES.txt +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx.egg-info/dependency_links.txt +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx.egg-info/requires.txt +0 -0
- {shancx-1.9.33.214 → shancx-1.9.33.215}/shancx.egg-info/top_level.txt +0 -0
|
@@ -180,8 +180,7 @@ def plotScatter(df1, title = "Total number ",saveDir="plotScatter", map_backgrou
|
|
|
180
180
|
plotScatter(df2,title = f" Total number of stations ", saveDir="scatter_maps")
|
|
181
181
|
"""
|
|
182
182
|
|
|
183
|
-
|
|
184
|
-
myfont = mpl.font_manager.FontProperties(fname = font_path, size = 12)
|
|
183
|
+
|
|
185
184
|
import ssl
|
|
186
185
|
import urllib.request
|
|
187
186
|
ssl._create_default_https_context = ssl._create_unverified_context
|
|
@@ -192,7 +191,7 @@ import cartopy.crs as ccrs
|
|
|
192
191
|
import cartopy.feature as cfeature
|
|
193
192
|
from cartopy.mpl.ticker import LongitudeFormatter, LatitudeFormatter
|
|
194
193
|
from hjnwtx.colormap import cmp_hjnwtx
|
|
195
|
-
def plotfigPlus(UTCstr, nclon, nclat, cr, fig_title, datatype):
|
|
194
|
+
def plotfigPlus(UTCstr, nclon, nclat, cr, fig_title, datatype,myfont,shp_file="./"):
|
|
196
195
|
figpath = f"{savepath}/fig/{UTCstr[:4]}/{UTCstr[:8]}/{fig_title}.PNG"
|
|
197
196
|
lonmin = np.min(nclon)
|
|
198
197
|
lonmax = np.max(nclon)
|
|
@@ -216,7 +215,7 @@ def plotfigPlus(UTCstr, nclon, nclat, cr, fig_title, datatype):
|
|
|
216
215
|
ax.yaxis.set_major_formatter(LatitudeFormatter())
|
|
217
216
|
ax.tick_params(axis='both', labelsize=10)
|
|
218
217
|
# 3. 叠加自定义的省界矢量(显示在基础地理要素之上)
|
|
219
|
-
if os.path.exists(shp_file):
|
|
218
|
+
if os.path.exists(shp_file) and shp_file[-4:]==".shp" :
|
|
220
219
|
try:
|
|
221
220
|
shp = gpd.read_file(shp_file).boundary
|
|
222
221
|
# 使用较细的线宽,避免与国界线混淆
|
|
@@ -225,8 +224,7 @@ def plotfigPlus(UTCstr, nclon, nclat, cr, fig_title, datatype):
|
|
|
225
224
|
print(f"警告:读取矢量文件 {shp_file} 失败: {e}")
|
|
226
225
|
else:
|
|
227
226
|
print(f"警告:矢量文件 {shp_file} 不存在,将只绘制Cartopy地理要素。")
|
|
228
|
-
ax.set_title(fig_title, fontsize=12, loc='center', fontproperties=myfont)
|
|
229
|
-
|
|
227
|
+
ax.set_title(fig_title, fontsize=12, loc='center', fontproperties=myfont)
|
|
230
228
|
# 5. 绘制雷达或降雨数据(在最上层)
|
|
231
229
|
if datatype == 'radar':
|
|
232
230
|
clevels = [0, 10, 20, 30, 40, 50, 60, 70]
|
|
@@ -248,9 +246,11 @@ def plotfigPlus(UTCstr, nclon, nclat, cr, fig_title, datatype):
|
|
|
248
246
|
latArr = np.linspace(27, -13, 2000 )
|
|
249
247
|
lonArr = np.linspace(70, 150, 4000)
|
|
250
248
|
|
|
251
|
-
|
|
249
|
+
font_path = '/mnt/wtx_weather_forecast/scx/sever7/微软雅黑.ttf'
|
|
250
|
+
myfont = mpl.font_manager.FontProperties(fname = font_path, size = 12)
|
|
251
|
+
fig_title = f"实况雷达回波_{UTCstr}_test"
|
|
252
252
|
baseCR[:,900:3700] = CR
|
|
253
|
-
|
|
253
|
+
plotfigPlus(UTCstr,lonArr,latArr,baseCR,fig_title,datatype="radar",myfont=myfont)
|
|
254
254
|
fig_title = f"卫星反演雷达回波_{UTCstr}"
|
|
255
255
|
"""
|
|
256
256
|
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|