shancx 1.9.33.216__tar.gz → 1.9.33.218__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.216 → shancx-1.9.33.218}/PKG-INFO +1 -1
- {shancx-1.9.33.216 → shancx-1.9.33.218}/setup.py +1 -1
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Plot/plotGlobal.py +2 -46
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx.egg-info/PKG-INFO +1 -1
- {shancx-1.9.33.216 → shancx-1.9.33.218}/README.md +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/setup.cfg +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/3D/__init__.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Algo/Class.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Algo/CudaPrefetcher1.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Algo/Fake_image.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Algo/Hsml.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Algo/L2Loss.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Algo/MetricTracker.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Algo/Normalize.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Algo/OptimizerWScheduler.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Algo/Rmageresize.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Algo/Savemodel.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Algo/SmoothL1_losses.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Algo/Tqdm.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Algo/__init__.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Algo/checknan.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Algo/dsalgor.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Algo/iouJU.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Algo/mask.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Algo/psnr.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Algo/ssim.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Algo/structural_similarity.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Algo/tool.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Calmetrics/__init__.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Calmetrics/calmetrics.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Calmetrics/calmetricsmatrixLib.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Calmetrics/rmseR2score.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Clip/__init__.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Cmd.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Config_.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Df/DataFrame.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Df/__init__.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Df/tool.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Diffm/Psamples.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Diffm/__init__.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Diffm/test.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Doc/__init__.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/E/__init__.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Fillmiss/__init__.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Fillmiss/imgidwJU.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Fillmiss/imgidwLatLonJU.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Gpu/__init__.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/H9/__init__.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/H9/ahi_read_hsd.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/H9/ahisearchtable.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/H9/geometry.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Hug/__init__.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Inst.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Lib.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Mos/__init__.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/NN/__init__.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Path1.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Plot/GlobMap.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Plot/Gray2RGB.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Plot/__init__.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Plot/draw_day_CR_PNG.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Plot/exam.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Plot/radarNmc.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Plot/single_china_map.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Point.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/QC.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/RdPzl/__init__.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Read.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Resize.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/SN/__init__.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Time/GetTime.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Time/__init__.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Time/timeCycle.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Time/tool.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Train/__init__.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Train/makelist.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Train/multiGpu.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Train/prepare.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/Train/renet50.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/ZR.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/__init__.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/args.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/bak.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/cmp.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/df2database.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/geosProj.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/getResponse.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/info.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/netdfJU.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/sendM.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/tensBoard/__init__.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx/wait.py +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx.egg-info/SOURCES.txt +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx.egg-info/dependency_links.txt +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx.egg-info/requires.txt +0 -0
- {shancx-1.9.33.216 → shancx-1.9.33.218}/shancx.egg-info/top_level.txt +0 -0
|
@@ -240,10 +240,10 @@ def plotBorder(UTCstr, nclon, nclat, cr, fig_title,savepath="./plotBorder", data
|
|
|
240
240
|
cb.set_ticklabels([str(level) for level in clevels[:-1]], fontproperties=myfont)
|
|
241
241
|
for label in ax.get_xticklabels() + ax.get_yticklabels():
|
|
242
242
|
label.set_fontproperties(myfont)
|
|
243
|
-
mkDir(figpath)
|
|
244
243
|
plt.savefig(figpath, dpi=300, bbox_inches='tight')
|
|
245
244
|
print(f"{fig_title.split('_')[0]}绘制完成: {figpath}")
|
|
246
245
|
plt.close()
|
|
246
|
+
|
|
247
247
|
"""
|
|
248
248
|
latArr = np.linspace(27, -13, 2000 )
|
|
249
249
|
lonArr = np.linspace(70, 150, 4000)
|
|
@@ -322,48 +322,4 @@ fig_title = f"卫星反演雷达回波_{UTCstr}"
|
|
|
322
322
|
# base[20:1070,75:1625] = satCR
|
|
323
323
|
plot_fig(data,result['lats'],result['lons'],fig_title,datatype="radar")
|
|
324
324
|
"""
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
import numpy as np
|
|
328
|
-
import matplotlib.pyplot as plt
|
|
329
|
-
import cartopy.crs as ccrs
|
|
330
|
-
import cartopy.feature as cfeature
|
|
331
|
-
from mpl_toolkits.axes_grid1 import make_axes_locatable
|
|
332
|
-
import datetime
|
|
333
|
-
from shancx import crDir
|
|
334
|
-
def plotBorder(matrix,name='plotBorder',saveDir="plotBorder",extent=None,title='Matrix Plot', xlabel='X-axis', ylabel='Y-axis', color_label='Value', cmap='viridis'):
|
|
335
|
-
if extent is None:
|
|
336
|
-
lat_min, lat_max = -3, 13
|
|
337
|
-
lon_min, lon_max = -0, 28
|
|
338
|
-
else:
|
|
339
|
-
lat_min, lat_max, lon_min, lon_max = extent
|
|
340
|
-
now_str = datetime.datetime.now().strftime("%Y%m%d%H%M%S")
|
|
341
|
-
fig = plt.figure(figsize=(12, 8))
|
|
342
|
-
ax = fig.add_subplot(1, 1, 1, projection=ccrs.PlateCarree())
|
|
343
|
-
ax.set_extent([lon_min, lon_max, lat_min, lat_max], crs=ccrs.PlateCarree())
|
|
344
|
-
im = ax.imshow(
|
|
345
|
-
matrix,
|
|
346
|
-
extent=[lon_min, lon_max, lat_min, lat_max],
|
|
347
|
-
origin='upper',
|
|
348
|
-
cmap='viridis',
|
|
349
|
-
transform=ccrs.PlateCarree()
|
|
350
|
-
)
|
|
351
|
-
ax.add_feature(cfeature.COASTLINE, linewidth=0.5)
|
|
352
|
-
ax.add_feature(cfeature.BORDERS, linestyle=':', linewidth=0.5)
|
|
353
|
-
states = cfeature.NaturalEarthFeature(
|
|
354
|
-
category='cultural',
|
|
355
|
-
name='admin_1_states_provinces_lines',
|
|
356
|
-
scale='50m',
|
|
357
|
-
facecolor='none'
|
|
358
|
-
)
|
|
359
|
-
ax.add_feature(states, edgecolor='red', linewidth=0.5)
|
|
360
|
-
divider = make_axes_locatable(ax)
|
|
361
|
-
cax = divider.append_axes("right", size="5%", pad=0.1, axes_class=plt.Axes)
|
|
362
|
-
cbar = plt.colorbar(im, cax=cax, label='Data Values')
|
|
363
|
-
ax.set_title('Sat data Boundaries', fontsize=14)
|
|
364
|
-
plt.tight_layout()
|
|
365
|
-
outpath = f'./{saveDir}/{name}_{now_str}.png' if name=="plotBorder" else f"./{saveDir}/{name}.png"
|
|
366
|
-
crDir(outpath)
|
|
367
|
-
plt.savefig(outpath)
|
|
368
|
-
plt.close()
|
|
369
|
-
|
|
325
|
+
|
|
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
|