This commit is contained in:
KenanZhu111 committed 2024-09-20 13:34:44 +08:00
commit 68362e984a
26 files changed
+400695

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
# 默认忽略的文件
/shelf/
/workspace.xml
+15
View File
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="jdk" jdkName="Python 3.8 (pygmt)" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="PyDocumentationSettings">
<option name="format" value="PLAIN" />
<option name="myDocStringFormat" value="Plain" />
</component>
<component name="TestRunnerService">
<option name="PROJECT_TEST_RUNNER" value="py.test" />
</component>
</module>
@@ -0,0 +1,6 @@
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>
+7
View File
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Black">
<option name="sdkName" value="Python 3.12" />
</component>
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8 (pygmt)" project-jdk-type="Python SDK" />
</project>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/GMT4SAT.iml" filepath="$PROJECT_DIR$/.idea/GMT4SAT.iml" />
</modules>
</component>
</project>
File diff suppressed because it is too large. Load diff
+98
View File
@@ -0,0 +1,98 @@
import os
from pygmt import project
os.environ["GMT_LIBRARY_PATH"] = "C:/programs/gmt6/bin"
import pygmt
fig = pygmt.Figure()
fig.coast(region="d",projection="Cyl_stere/12c",land="white",water="#C6E2FF",borders="1/0.2p",shorelines="1/0.2p",frame="ag")
f = open("LLA_result_for_PyGMT.txt","r")
f.readline()
string = f.readline()
epoch = 0
while epoch < 2880:
flag = string[0:1]
epoch = int(string[1:5])
if flag == ">":
gpsnum = 0
while gpsnum != 36:
string = f.readline()
flag = string[0:1]
if flag =="G":
gpsnum = gpsnum + 1
sPRN = int(string[1:3])
B = float(string[10:20])
L = float(string[21:31])
if sPRN == 1:
fig.plot(x = L,y = B,style = "c0.015c",fill = "blue",pen = "blue")
if sPRN == 2:
fig.plot(x = L,y = B,style = "c0.015c",fill = "blue",pen = "blue")
if sPRN == 3:
fig.plot(x = L,y = B,style = "c0.015c",fill = "blue",pen = "blue")
if sPRN == 4:
fig.plot(x = L,y = B,style = "c0.015c",fill = "blue",pen = "blue")
if sPRN == 5:
fig.plot(x = L,y = B,style = "c0.015c",fill = "blue",pen = "blue")
if sPRN == 6:
fig.plot(x = L,y = B,style = "c0.015c",fill = "blue",pen = "blue")
if sPRN == 7:
fig.plot(x = L,y = B,style = "c0.015c",fill = "blue",pen = "blue")
if sPRN == 8:
fig.plot(x = L,y = B,style = "c0.015c",fill = "blue",pen = "blue")
if sPRN == 9:
fig.plot(x = L,y = B,style = "c0.015c",fill = "blue",pen = "blue")
if sPRN == 10:
fig.plot(x = L,y = B,style = "c0.015c",fill = "blue",pen = "blue")
if sPRN == 11:
fig.plot(x = L,y = B,style = "c0.015c",fill = "blue",pen = "blue")
if sPRN == 12:
fig.plot(x = L,y = B,style = "c0.015c",fill = "blue",pen = "blue")
if sPRN == 13:
fig.plot(x = L,y = B,style = "c0.015c",fill = "blue",pen = "blue")
if sPRN == 14:
fig.plot(x = L,y = B,style = "c0.015c",fill = "blue",pen = "blue")
if sPRN == 15:
fig.plot(x = L,y = B,style = "c0.015c",fill = "blue",pen = "blue")
if sPRN == 16:
fig.plot(x = L,y = B,style = "c0.015c",fill = "blue",pen = "blue")
if sPRN == 17:
fig.plot(x = L,y = B,style = "c0.015c",fill = "blue",pen = "blue")
if sPRN == 18:
fig.plot(x = L,y = B,style = "c0.015c",fill = "blue",pen = "blue")
if sPRN == 19:
fig.plot(x = L,y = B,style = "c0.015c",fill = "blue",pen = "blue")
if sPRN == 20:
fig.plot(x = L,y = B,style = "c0.015c",fill = "blue",pen = "blue")
if sPRN == 21:
fig.plot(x = L,y = B,style = "c0.015c",fill = "blue",pen = "blue")
if sPRN == 22:
fig.plot(x = L,y = B,style = "c0.015c",fill = "blue",pen = "blue")
if sPRN == 23:
fig.plot(x = L,y = B,style = "c0.015c",fill = "blue",pen = "blue")
if sPRN == 24:
fig.plot(x = L,y = B,style = "c0.015c",fill = "blue",pen = "blue")
if sPRN == 25:
fig.plot(x = L,y = B,style = "c0.015c",fill = "blue",pen = "blue")
if sPRN == 26:
fig.plot(x = L,y = B,style = "c0.015c",fill = "blue",pen = "blue")
if sPRN == 27:
fig.plot(x = L,y = B,style = "c0.015c",fill = "blue",pen = "blue")
if sPRN == 28:
fig.plot(x = L,y = B,style = "c0.015c",fill = "blue",pen = "blue")
if sPRN == 29:
fig.plot(x = L,y = B,style = "c0.015c",fill = "blue",pen = "blue")
if sPRN == 30:
fig.plot(x = L,y = B,style = "c0.015c",fill = "blue",pen = "blue")
if sPRN == 31:
fig.plot(x = L,y = B,style = "c0.015c",fill = "blue",pen = "blue")
if sPRN == 32:
fig.plot(x = L,y = B,style = "c0.015c",fill = "blue",pen = "blue")
if flag !="G":
break
elif flag != ">":
break
fig.show()