shancx 1.9.33.174__tar.gz → 1.9.33.176__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.174 → shancx-1.9.33.176}/PKG-INFO +1 -1
- {shancx-1.9.33.174 → shancx-1.9.33.176}/setup.py +1 -1
- shancx-1.9.33.176/shancx/geosProj.py +80 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx.egg-info/PKG-INFO +1 -1
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx.egg-info/SOURCES.txt +1 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/README.md +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/setup.cfg +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/3D/__init__.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Algo/Class.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Algo/CudaPrefetcher1.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Algo/Fake_image.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Algo/Hsml.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Algo/L2Loss.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Algo/MetricTracker.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Algo/Normalize.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Algo/OptimizerWScheduler.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Algo/Rmageresize.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Algo/Savemodel.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Algo/SmoothL1_losses.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Algo/Tqdm.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Algo/__init__.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Algo/checknan.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Algo/dsalgor.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Algo/iouJU.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Algo/mask.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Algo/psnr.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Algo/ssim.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Algo/structural_similarity.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Algo/tool.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Calmetrics/__init__.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Calmetrics/calmetrics.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Calmetrics/calmetricsmatrixLib.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Calmetrics/rmseR2score.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Clip/__init__.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Cmd.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Df/DataFrame.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Df/__init__.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Df/tool.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Diffm/Psamples.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Diffm/__init__.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Diffm/test.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Doc/__init__.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/E/__init__.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Fillmiss/__init__.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Fillmiss/imgidwJU.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Fillmiss/imgidwLatLonJU.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Gpu/__init__.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/H9/__init__.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/H9/ahi_read_hsd.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/H9/ahisearchtable.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/H9/geometry.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Hug/__init__.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Inst.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Lib.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Mos/__init__.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/NN/__init__.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Path1.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Plot/GlobMap.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Plot/Gray2RGB.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Plot/__init__.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Plot/border.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Plot/draw_day_CR_PNG.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Plot/exam.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Plot/radarNmc.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Plot/single_china_map.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Point.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/QC.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/RdPzl/__init__.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Read.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/SN/__init__.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Time/GetTime.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Time/__init__.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Time/timeCycle.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Time/tool.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Train/__init__.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Train/makelist.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Train/multiGpu.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Train/prepare.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/Train/renet50.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/ZR.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/__init__.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/args.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/bak.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/cmp.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/df2database.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/getResponse.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/info.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/netdfJU.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/sendM.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/tensBoard/__init__.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/tool.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx/wait.py +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx.egg-info/dependency_links.txt +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx.egg-info/requires.txt +0 -0
- {shancx-1.9.33.174 → shancx-1.9.33.176}/shancx.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import numpy as np
|
|
2
|
+
import warnings
|
|
3
|
+
|
|
4
|
+
class goesProj():
|
|
5
|
+
def __init__(self,lonD=-75.2,resolution=2000):
|
|
6
|
+
|
|
7
|
+
self.ea=6378.137
|
|
8
|
+
self.eb=6356.7523
|
|
9
|
+
self.h=42164
|
|
10
|
+
self.lambdaD=np.radians(lonD)
|
|
11
|
+
|
|
12
|
+
OFF = {500: 10991.5, 1000: 5495.5, 1250: 4576, 2000: 2747.5, 4000: 1373.5, 5000: 1144}
|
|
13
|
+
FAC = {500: 81865099, 1000: 40932549, 1250: 32746038, 2000: 20466274, 4000: 10233137, 5000: 8186510}
|
|
14
|
+
|
|
15
|
+
self.COFF=OFF[resolution]
|
|
16
|
+
self.LOFF=OFF[resolution]
|
|
17
|
+
self.CFAC=FAC[resolution]
|
|
18
|
+
self.LFAC=FAC[resolution]
|
|
19
|
+
|
|
20
|
+
def transform(self,latD,lonDe,RO=22):
|
|
21
|
+
lat=np.radians(latD)
|
|
22
|
+
lon=np.radians(lonDe)
|
|
23
|
+
ba2=np.square(self.eb/self.ea)
|
|
24
|
+
phie=np.arctan(ba2*np.tan(lat))
|
|
25
|
+
diffLon0=lon-self.lambdaD
|
|
26
|
+
re=self.eb/np.sqrt(1-(1-ba2)*np.square(np.cos(phie)))
|
|
27
|
+
|
|
28
|
+
r1=self.h-re*np.cos(phie)*np.cos(diffLon0)
|
|
29
|
+
r2= -re*np.cos(phie)*np.sin(diffLon0)
|
|
30
|
+
r3=re*np.sin(phie)
|
|
31
|
+
rn=np.sqrt(np.square(r1)+np.square(r2)+np.square(r3))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
x= np.degrees(np.arctan(-r2/r1))
|
|
35
|
+
y= np.degrees(np.arcsin(-r3/rn))
|
|
36
|
+
|
|
37
|
+
c=(self.COFF+x*np.power(2.0,-16)*self.CFAC -RO).astype(np.int32)
|
|
38
|
+
l=(self.LOFF+y*np.power(2.0,-16)*self.LFAC -RO).astype(np.int32)
|
|
39
|
+
return (l,c)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
import numpy as np
|
|
43
|
+
import warnings
|
|
44
|
+
|
|
45
|
+
class goesProjMSG10():
|
|
46
|
+
def __init__(self,lonD=-75.2,resolution=2000):
|
|
47
|
+
|
|
48
|
+
self.ea=6378.137
|
|
49
|
+
self.eb=6356.7523
|
|
50
|
+
self.h=42164
|
|
51
|
+
self.lambdaD=np.radians(lonD)
|
|
52
|
+
|
|
53
|
+
OFF = {500: 10991.5, 1000: 5495.5, 1250: 4576, 2000: 2747.5, 4000: 1373.5, 5000: 1144}
|
|
54
|
+
FAC = {500: 81865099, 1000: 40932549, 1250: 32746038, 2000: 20466274, 4000: 10233137, 5000: 8186510}
|
|
55
|
+
|
|
56
|
+
self.COFF=OFF[resolution]
|
|
57
|
+
self.LOFF=OFF[resolution]
|
|
58
|
+
self.CFAC=FAC[resolution]
|
|
59
|
+
self.LFAC=FAC[resolution]
|
|
60
|
+
|
|
61
|
+
def transform(self,latD,lonDe,ROC=5,ROL=-30):
|
|
62
|
+
lat=np.radians(latD)
|
|
63
|
+
lon=np.radians(lonDe)
|
|
64
|
+
ba2=np.square(self.eb/self.ea)
|
|
65
|
+
phie=np.arctan(ba2*np.tan(lat))
|
|
66
|
+
diffLon0=lon-self.lambdaD
|
|
67
|
+
re=self.eb/np.sqrt(1-(1-ba2)*np.square(np.cos(phie)))
|
|
68
|
+
|
|
69
|
+
r1=self.h-re*np.cos(phie)*np.cos(diffLon0)
|
|
70
|
+
r2= -re*np.cos(phie)*np.sin(diffLon0)
|
|
71
|
+
r3=re*np.sin(phie)
|
|
72
|
+
rn=np.sqrt(np.square(r1)+np.square(r2)+np.square(r3))
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
x= np.degrees(np.arctan(-r2/r1))
|
|
76
|
+
y= np.degrees(np.arcsin(-r3/rn))
|
|
77
|
+
|
|
78
|
+
c=(self.COFF+x*np.power(2.0,-16)*self.CFAC -ROC).astype(np.int32)
|
|
79
|
+
l=(self.LOFF+y*np.power(2.0,-16)*self.LFAC -ROL).astype(np.int32)
|
|
80
|
+
return (l,c)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|