- 博客(6)
- 收藏
- 关注
原创 One-dimension forward modeling of MT(python, numerical)
One-dimension forward modeling of MTAssumptions:Layer mediumUniform, homogeneousHere is Python implementation:import cmath as cmimport numpy as npimport mathimport scipy.linalg as ladef mt1dte(freq, dz, sig): mu = 4.0E-7 * math.pi ii =
2022-04-17 21:48:26
735
1
原创 How do we plot .edi file in magnetotellurics(MT)?
We could use the bash code below, then a plot from GNU plot will be implemented. This script is written by my tutor Prof. Yang, welcome to find bugs in this script!Convert .edi to .ztab file#!/bin/bashif [ $# -ne 1 ] && [ $# -ne 2 ] &&
2022-04-17 21:26:09
622
原创 One-dimension forward modeling of MT(Python, Analytical)
One-dimension forward modeling of MTAssumptions:Layer mediumUniform, homogeneousHere is python implementation:import cmath as cmimport numpy as npimport mathdef mt1dan(freq, dz, sig): mu = 4e-7*math.pi ii = cm.sqrt(-1) nf = len(fre
2022-03-05 17:21:27
689
原创 把surfer的.grd文件改写为.txt
把surfer的.grd文件改写为.txtWhat is this script for?My tutor gave me a .grd file and ask me to deal with that with MATLAB, so I have to rewrite it into another form that I could make use of that afterward.So here is the code.filename: readte.mclear,clc;%Th
2021-08-02 20:11:48
762
原创 习题6-6 使用函数输出一个整数的逆序数 (20 分) (递归)
习题6-6 使用函数输出一个整数的逆序数 (20 分)本题要求实现一个求整数的逆序数的简单函数。函数接口定义:int reverse( int number );其中函数reverse须返回用户传入的整型number的逆序数。裁判测试程序样例:#include <stdio.h>int reverse( int number );int main(){ int n; scanf("%d", &n); printf("%d\n", reve
2021-07-18 13:41:27
1066
1
原创 习题6-2 使用函数求特殊a串数列和 (20 分)
习题6-2 使用函数求特殊a串数列和 (20 分)给定两个均不超过9的正整数a和n,要求编写函数求a+aa+aaa++⋯+aa⋯a(n个a)之和。函数接口定义:int fn( int a, int n );int SumA( int a, int n );其中函数fn须返回的是n个a组成的数字;SumA返回要求的和。裁判测试程序样例:#include <stdio.h>int fn( int a, int n );int SumA( int a, int n );int
2021-07-16 20:49:17
279
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人