提交 586c785c 编辑于 作者: Mijian Xu's avatar Mijian Xu 😷
浏览文件

update mgmat

上级 f938b6ca
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="edeb6f02-0e8c-4c72-8baa-b897be95e5dc" name="Default" comment="" />
<list default="true" id="edeb6f02-0e8c-4c72-8baa-b897be95e5dc" name="Default" comment="update" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
......@@ -46,8 +46,8 @@
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/mag_up0_diff1.dat">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="580">
<caret line="47" column="37" selection-start-line="47" selection-start-column="37" selection-end-line="47" selection-end-column="37" />
<state relative-caret-position="620">
<caret line="58" column="41" lean-forward="true" selection-start-line="58" selection-start-column="41" selection-end-line="58" selection-end-column="41" />
</state>
</provider>
</entry>
......@@ -80,6 +80,11 @@
</findStrings>
</component>
<component name="Git.Settings">
<option name="PREVIOUS_COMMIT_AUTHORS">
<list>
<option value="xumi1993 &lt;mijian.xu@smail.nju.edu.cn&gt;" />
</list>
</option>
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="IdeDocumentHistory">
......@@ -275,6 +280,14 @@
<option name="presentableId" value="Default" />
<updated>1520774698022</updated>
</task>
<task id="LOCAL-00001" summary="update">
<created>1547219782967</created>
<option name="number" value="00001" />
<option name="presentableId" value="LOCAL-00001" />
<option name="project" value="LOCAL" />
<updated>1547219782967</updated>
</task>
<option name="localTasksCounter" value="2" />
<servers />
</component>
<component name="ToolWindowManager">
......@@ -300,6 +313,10 @@
<window_info anchor="right" id="Data View" order="3" />
</layout>
</component>
<component name="VcsManagerConfiguration">
<MESSAGE value="update" />
<option name="LAST_COMMIT_MESSAGE" value="update" />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/mgpro/xy2mat.py" />
<entry file="file://$PROJECT_DIR$/new.dat">
......@@ -357,8 +374,8 @@
</entry>
<entry file="file://$PROJECT_DIR$/mag_up0_diff1.dat">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="580">
<caret line="47" column="37" selection-start-line="47" selection-start-column="37" selection-end-line="47" selection-end-column="37" />
<state relative-caret-position="620">
<caret line="58" column="41" lean-forward="true" selection-start-line="58" selection-start-column="41" selection-end-line="58" selection-end-column="41" />
</state>
</provider>
</entry>
......
......@@ -4,6 +4,7 @@ import matplotlib.pyplot as plt
import matplotlib.colors as colors
from scipy.fftpack import fft2, fftshift, ifft2, ifftshift
from scipy.interpolate import griddata
import argparse
def cal_pos(max_len, len_x, len_y):
......@@ -115,6 +116,10 @@ class mgmat(object):
f.write('{:.4f}\t{:.4f}\t{:f}\n'.format(x, y, self.result[j, i]))
def exec():
pass
if __name__ == '__main__':
filename = '../mag_geod.dat'
mg = mgmat(filename, 2000, 2000)
......
支持 Markdown
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册