shancx 1.9.33.216__py3-none-any.whl → 1.9.33.217__py3-none-any.whl

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/Plot/plotGlobal.py CHANGED
@@ -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
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: shancx
3
- Version: 1.9.33.216
3
+ Version: 1.9.33.217
4
4
  Summary: A simple timer decorator
5
5
  Home-page: https://gitee.com/shancx
6
6
  Author: shancx
@@ -70,7 +70,7 @@ shancx/Plot/Gray2RGB.py,sha256=yDXu1xWVi7OtrS8_ExxK_ev1988kj1ZxoNCWf-kl4Zc,2734
70
70
  shancx/Plot/__init__.py,sha256=_fmDFZfh9HzDPBPKCMPrDT2DsblLVfrO-uFvUg76a74,19194
71
71
  shancx/Plot/draw_day_CR_PNG.py,sha256=ftOYdk80Xmry_H1uaypjrTUA0mJZBV7EGt5T7JfVg0E,7267
72
72
  shancx/Plot/exam.py,sha256=XXyBQp1Eb1siNiu7FY8ACiWH0g43ZSLTOGLqs3aKomE,3966
73
- shancx/Plot/plotGlobal.py,sha256=yLRVJK6fS1xi0i7tFqkY0M95Y4ZpZ8WfDCXVZDEZ92E,17062
73
+ shancx/Plot/plotGlobal.py,sha256=Sen5zJ9NE8sO-CSt0bFW-RaMt4uVMPJiFdNBepiLkj8,15288
74
74
  shancx/Plot/radarNmc.py,sha256=ixmoDaoT6whmmrv4wD4p7H_DiNsyOEb2tUoz2KQgDeM,1273
75
75
  shancx/Plot/single_china_map.py,sha256=cRmZW6TtLBwLb-Y3syim_K1jM350CmB5zkK1nrAcaRQ,2116
76
76
  shancx/RdPzl/__init__.py,sha256=I5Isz3KfDgFZAdlRk4D-Hvp-8xH4F2Dl0XGxYGzUcKc,1166
@@ -85,7 +85,7 @@ shancx/Train/multiGpu.py,sha256=D_oZeiSc7VWktpnVDwrFOC1CYZSt9rxOKY5lngE5vFg,820
85
85
  shancx/Train/prepare.py,sha256=vL_8UOA66oZCBIwCICtihsGibivtNgaVJGulJxfNdn8,6793
86
86
  shancx/Train/renet50.py,sha256=wEhYk1X96WE5zuqHqVxWLJa-A5jDNkz4z6edORNufnA,6428
87
87
  shancx/tensBoard/__init__.py,sha256=ga2C5YyJITvvQA1ocpxna_KNFnNRJVwkTjLoIglLZUQ,993
88
- shancx-1.9.33.216.dist-info/METADATA,sha256=kNcoHNXr6l-AOv4jSt28YlurGA6PuhEnC3WnMpTkTWA,850
89
- shancx-1.9.33.216.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
90
- shancx-1.9.33.216.dist-info/top_level.txt,sha256=akfCS1vKWz3pNmEN_yN9ZiGp-60IQY5ET38mRx_i_-4,7
91
- shancx-1.9.33.216.dist-info/RECORD,,
88
+ shancx-1.9.33.217.dist-info/METADATA,sha256=R9m3JOOcqvVDkRY-CNE6lDAx7t8Hnv53OEoget7hzbw,850
89
+ shancx-1.9.33.217.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
90
+ shancx-1.9.33.217.dist-info/top_level.txt,sha256=akfCS1vKWz3pNmEN_yN9ZiGp-60IQY5ET38mRx_i_-4,7
91
+ shancx-1.9.33.217.dist-info/RECORD,,