shancx 1.9.33.215__tar.gz → 1.9.33.217__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.215 → shancx-1.9.33.217}/PKG-INFO +1 -1
- {shancx-1.9.33.215 → shancx-1.9.33.217}/setup.py +1 -1
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Plot/plotGlobal.py +7 -50
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx.egg-info/PKG-INFO +1 -1
- {shancx-1.9.33.215 → shancx-1.9.33.217}/README.md +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/setup.cfg +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/3D/__init__.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Algo/Class.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Algo/CudaPrefetcher1.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Algo/Fake_image.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Algo/Hsml.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Algo/L2Loss.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Algo/MetricTracker.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Algo/Normalize.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Algo/OptimizerWScheduler.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Algo/Rmageresize.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Algo/Savemodel.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Algo/SmoothL1_losses.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Algo/Tqdm.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Algo/__init__.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Algo/checknan.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Algo/dsalgor.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Algo/iouJU.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Algo/mask.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Algo/psnr.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Algo/ssim.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Algo/structural_similarity.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Algo/tool.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Calmetrics/__init__.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Calmetrics/calmetrics.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Calmetrics/calmetricsmatrixLib.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Calmetrics/rmseR2score.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Clip/__init__.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Cmd.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Config_.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Df/DataFrame.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Df/__init__.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Df/tool.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Diffm/Psamples.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Diffm/__init__.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Diffm/test.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Doc/__init__.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/E/__init__.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Fillmiss/__init__.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Fillmiss/imgidwJU.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Fillmiss/imgidwLatLonJU.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Gpu/__init__.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/H9/__init__.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/H9/ahi_read_hsd.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/H9/ahisearchtable.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/H9/geometry.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Hug/__init__.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Inst.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Lib.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Mos/__init__.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/NN/__init__.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Path1.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Plot/GlobMap.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Plot/Gray2RGB.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Plot/__init__.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Plot/draw_day_CR_PNG.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Plot/exam.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Plot/radarNmc.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Plot/single_china_map.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Point.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/QC.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/RdPzl/__init__.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Read.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Resize.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/SN/__init__.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Time/GetTime.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Time/__init__.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Time/timeCycle.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Time/tool.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Train/__init__.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Train/makelist.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Train/multiGpu.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Train/prepare.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/Train/renet50.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/ZR.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/__init__.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/args.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/bak.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/cmp.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/df2database.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/geosProj.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/getResponse.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/info.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/netdfJU.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/sendM.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/tensBoard/__init__.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx/wait.py +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx.egg-info/SOURCES.txt +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx.egg-info/dependency_links.txt +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx.egg-info/requires.txt +0 -0
- {shancx-1.9.33.215 → shancx-1.9.33.217}/shancx.egg-info/top_level.txt +0 -0
|
@@ -180,7 +180,6 @@ 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
183
|
import ssl
|
|
185
184
|
import urllib.request
|
|
186
185
|
ssl._create_default_https_context = ssl._create_unverified_context
|
|
@@ -191,8 +190,11 @@ import cartopy.crs as ccrs
|
|
|
191
190
|
import cartopy.feature as cfeature
|
|
192
191
|
from cartopy.mpl.ticker import LongitudeFormatter, LatitudeFormatter
|
|
193
192
|
from hjnwtx.colormap import cmp_hjnwtx
|
|
194
|
-
|
|
193
|
+
from shancx import crDir
|
|
194
|
+
def plotBorder(UTCstr, nclon, nclat, cr, fig_title,savepath="./plotBorder", datatype=None,font_path=None,shp_file="./"):
|
|
195
|
+
myfont = mpl.font_manager.FontProperties(fname = font_path, size = 12)
|
|
195
196
|
figpath = f"{savepath}/fig/{UTCstr[:4]}/{UTCstr[:8]}/{fig_title}.PNG"
|
|
197
|
+
crDir(figpath)
|
|
196
198
|
lonmin = np.min(nclon)
|
|
197
199
|
lonmax = np.max(nclon)
|
|
198
200
|
latmin = np.min(nclat)
|
|
@@ -245,12 +247,11 @@ def plotfigPlus(UTCstr, nclon, nclat, cr, fig_title, datatype,myfont,shp_file=".
|
|
|
245
247
|
"""
|
|
246
248
|
latArr = np.linspace(27, -13, 2000 )
|
|
247
249
|
lonArr = np.linspace(70, 150, 4000)
|
|
248
|
-
|
|
249
250
|
font_path = '/mnt/wtx_weather_forecast/scx/sever7/微软雅黑.ttf'
|
|
250
|
-
|
|
251
|
+
|
|
251
252
|
fig_title = f"实况雷达回波_{UTCstr}_test"
|
|
252
253
|
baseCR[:,900:3700] = CR
|
|
253
|
-
|
|
254
|
+
plotBorder(UTCstr,lonArr,latArr,baseCR,fig_title,datatype="radar",font_path=font_path)
|
|
254
255
|
fig_title = f"卫星反演雷达回波_{UTCstr}"
|
|
255
256
|
"""
|
|
256
257
|
|
|
@@ -321,48 +322,4 @@ fig_title = f"卫星反演雷达回波_{UTCstr}"
|
|
|
321
322
|
# base[20:1070,75:1625] = satCR
|
|
322
323
|
plot_fig(data,result['lats'],result['lons'],fig_title,datatype="radar")
|
|
323
324
|
"""
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
import numpy as np
|
|
327
|
-
import matplotlib.pyplot as plt
|
|
328
|
-
import cartopy.crs as ccrs
|
|
329
|
-
import cartopy.feature as cfeature
|
|
330
|
-
from mpl_toolkits.axes_grid1 import make_axes_locatable
|
|
331
|
-
import datetime
|
|
332
|
-
from shancx import crDir
|
|
333
|
-
def plotBorder(matrix,name='plotBorder',saveDir="plotBorder",extent=None,title='Matrix Plot', xlabel='X-axis', ylabel='Y-axis', color_label='Value', cmap='viridis'):
|
|
334
|
-
if extent is None:
|
|
335
|
-
lat_min, lat_max = -3, 13
|
|
336
|
-
lon_min, lon_max = -0, 28
|
|
337
|
-
else:
|
|
338
|
-
lat_min, lat_max, lon_min, lon_max = extent
|
|
339
|
-
now_str = datetime.datetime.now().strftime("%Y%m%d%H%M%S")
|
|
340
|
-
fig = plt.figure(figsize=(12, 8))
|
|
341
|
-
ax = fig.add_subplot(1, 1, 1, projection=ccrs.PlateCarree())
|
|
342
|
-
ax.set_extent([lon_min, lon_max, lat_min, lat_max], crs=ccrs.PlateCarree())
|
|
343
|
-
im = ax.imshow(
|
|
344
|
-
matrix,
|
|
345
|
-
extent=[lon_min, lon_max, lat_min, lat_max],
|
|
346
|
-
origin='upper',
|
|
347
|
-
cmap='viridis',
|
|
348
|
-
transform=ccrs.PlateCarree()
|
|
349
|
-
)
|
|
350
|
-
ax.add_feature(cfeature.COASTLINE, linewidth=0.5)
|
|
351
|
-
ax.add_feature(cfeature.BORDERS, linestyle=':', linewidth=0.5)
|
|
352
|
-
states = cfeature.NaturalEarthFeature(
|
|
353
|
-
category='cultural',
|
|
354
|
-
name='admin_1_states_provinces_lines',
|
|
355
|
-
scale='50m',
|
|
356
|
-
facecolor='none'
|
|
357
|
-
)
|
|
358
|
-
ax.add_feature(states, edgecolor='red', linewidth=0.5)
|
|
359
|
-
divider = make_axes_locatable(ax)
|
|
360
|
-
cax = divider.append_axes("right", size="5%", pad=0.1, axes_class=plt.Axes)
|
|
361
|
-
cbar = plt.colorbar(im, cax=cax, label='Data Values')
|
|
362
|
-
ax.set_title('Sat data Boundaries', fontsize=14)
|
|
363
|
-
plt.tight_layout()
|
|
364
|
-
outpath = f'./{saveDir}/{name}_{now_str}.png' if name=="plotBorder" else f"./{saveDir}/{name}.png"
|
|
365
|
-
crDir(outpath)
|
|
366
|
-
plt.savefig(outpath)
|
|
367
|
-
plt.close()
|
|
368
|
-
|
|
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
|