shancx 1.9.33.229__tar.gz → 1.9.33.230__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.229 → shancx-1.9.33.230}/PKG-INFO +1 -1
- {shancx-1.9.33.229 → shancx-1.9.33.230}/setup.py +1 -1
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Plot/__init__.py +9 -8
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx.egg-info/PKG-INFO +1 -1
- {shancx-1.9.33.229 → shancx-1.9.33.230}/README.md +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/setup.cfg +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/3D/__init__.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Algo/Class.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Algo/CudaPrefetcher1.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Algo/Fake_image.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Algo/Hsml.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Algo/L2Loss.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Algo/MetricTracker.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Algo/Normalize.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Algo/OptimizerWScheduler.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Algo/Rmageresize.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Algo/Savemodel.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Algo/SmoothL1_losses.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Algo/Tqdm.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Algo/__init__.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Algo/checknan.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Algo/dsalgor.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Algo/iouJU.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Algo/mask.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Algo/psnr.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Algo/ssim.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Algo/structural_similarity.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Algo/tool.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Calmetrics/__init__.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Calmetrics/calmetrics.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Calmetrics/calmetricsmatrixLib.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Calmetrics/rmseR2score.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Clip/__init__.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Cmd.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Config_.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Df/DataFrame.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Df/__init__.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Df/tool.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Diffm/Psamples.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Diffm/__init__.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Diffm/test.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Doc/__init__.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/E/__init__.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Fillmiss/__init__.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Fillmiss/imgidwJU.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Fillmiss/imgidwLatLonJU.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Gpu/__init__.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/H9/__init__.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/H9/ahi_read_hsd.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/H9/ahisearchtable.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/H9/geometry.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Hug/__init__.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Inst.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Lib.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Mos/__init__.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/NN/__init__.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/NN/chainMul.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Path1.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Plot/GlobMap.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Plot/Gray2RGB.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Plot/draw_day_CR_PNG.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Plot/exam.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Plot/plotGlobal.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Plot/radarNmc.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Plot/single_china_map.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Point.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/QC.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/RdPzl/__init__.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Read.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Resize.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/SN/__init__.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Time/GetTime.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Time/__init__.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Time/timeCycle.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Time/tool.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Train/__init__.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Train/makelist.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Train/multiGpu.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Train/prepare.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/Train/renet50.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/ZR.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/__init__.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/args.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/bak.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/cmp.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/df2database.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/geosProj.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/getResponse.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/info.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/netdfJU.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/npz.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/sendM.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/tensBoard/__init__.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx/wait.py +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx.egg-info/SOURCES.txt +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx.egg-info/dependency_links.txt +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx.egg-info/requires.txt +0 -0
- {shancx-1.9.33.229 → shancx-1.9.33.230}/shancx.egg-info/top_level.txt +0 -0
|
@@ -394,13 +394,13 @@ def plotDrawpic(basedata, save_dir="plotDrawpic_com", name="temp", cmap="summer"
|
|
|
394
394
|
"""
|
|
395
395
|
drawpic_com(Data_con, save_dir="plotDrawpic_com", name=timeList )
|
|
396
396
|
"""
|
|
397
|
-
from hjnwtx.colormap import cmp_hjnwtx
|
|
398
397
|
import matplotlib.pyplot as plt
|
|
399
398
|
from mpl_toolkits.axes_grid1 import make_axes_locatable
|
|
400
399
|
import numpy as np
|
|
401
400
|
import os
|
|
402
401
|
import datetime
|
|
403
|
-
|
|
402
|
+
from hjnwtx.colormap import cmp_hjnwtx
|
|
403
|
+
def plot_grid_data(data, titles=None, saveDir="plots", name="temp", cmap="summer",radarnmc=1,minMax=True):
|
|
404
404
|
if not isinstance(data, np.ndarray) or data.ndim != 3:
|
|
405
405
|
raise ValueError("The input data must be a three-dimensional NumPy array [num_images, height, width]")
|
|
406
406
|
num_images = data.shape[0]
|
|
@@ -416,12 +416,12 @@ def plot_grid_data(data, titles=None, saveDir="plots", name="temp", cmap="summer
|
|
|
416
416
|
for i in range(num_images):
|
|
417
417
|
ax = axes_flat[i]
|
|
418
418
|
if i >= num_images - radarnmc:
|
|
419
|
-
im = ax.imshow(data[i], cmap=cmp_hjnwtx["radar_nmc"])
|
|
419
|
+
im = ax.imshow(data[i], cmap=cmp_hjnwtx["radar_nmc"],vmin=0,vmax=70 ) if minMax else ax.imshow(data[i], cmap=cmp_hjnwtx["radar_nmc"])
|
|
420
420
|
else:
|
|
421
|
-
im = ax.imshow(data[i],
|
|
421
|
+
im = ax.imshow(data[i],cmap=cmap,vmin=180,vmax=310 ) if minMax else ax.imshow(data[i])
|
|
422
422
|
ax.set_title(titles[i])
|
|
423
423
|
ax.axis('off')
|
|
424
|
-
divider = make_axes_locatable(ax)
|
|
424
|
+
divider = make_axes_locatable(ax)
|
|
425
425
|
cax = divider.append_axes("right", size="5%", pad=0.05)
|
|
426
426
|
plt.colorbar(im, cax=cax)
|
|
427
427
|
for j in range(num_images, len(axes_flat)):
|
|
@@ -433,7 +433,7 @@ def plot_grid_data(data, titles=None, saveDir="plots", name="temp", cmap="summer
|
|
|
433
433
|
plt.savefig(os.path.join(saveDir, filename), dpi=300)
|
|
434
434
|
plt.close()
|
|
435
435
|
|
|
436
|
-
def plotTr(base_up, base_down, name="plotTr", saveDir="plotTr",cmap="summer",radarnmc=1):
|
|
436
|
+
def plotTr(base_up, base_down, name="plotTr", saveDir="plotTr",cmap="summer",radarnmc=1,minMax = True):
|
|
437
437
|
data_all = np.concatenate([base_up, base_down], axis=0)
|
|
438
438
|
titles = [f"Pic_{i}" for i in range(base_up.shape[0])] + [f"Pic_{i+1}" for i in range(base_down.shape[0])]
|
|
439
439
|
plot_grid_data(
|
|
@@ -442,14 +442,15 @@ def plotTr(base_up, base_down, name="plotTr", saveDir="plotTr",cmap="summer",rad
|
|
|
442
442
|
name=name,
|
|
443
443
|
saveDir=saveDir,
|
|
444
444
|
cmap=cmap,
|
|
445
|
-
radarnmc = radarnmc
|
|
445
|
+
radarnmc = radarnmc,
|
|
446
|
+
minMax = minMax
|
|
446
447
|
)
|
|
447
448
|
|
|
448
449
|
"""
|
|
449
450
|
if __name__ == "__main__":
|
|
450
451
|
base_up = np.random.rand(10, 50, 50) * 70
|
|
451
452
|
base_down = np.random.rand(1, 50, 50) * 70
|
|
452
|
-
plotTr(base_up, base_down, name="radar_plot",
|
|
453
|
+
plotTr(base_up, base_down, name="radar_plot",radarnmc=1) # radar_mask.detach().cpu().numpy() tensor转numpy
|
|
453
454
|
"""
|
|
454
455
|
|
|
455
456
|
import numpy as np
|
|
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
|
|
File without changes
|
|
File without changes
|