地面穿透雷达(GPR)的Python库:IO、处理和可视化
项目描述
Siina
描述
Python库,用于地面穿透雷达(GPR)数据处理:IO、滤波器和可视化。
与Python 3.6测试。
安装
siina
可以用pip
安装
pip install siina
最新Github版本
要么克隆仓库并用setup.py
安装
git clone https://github.com/ahartikainen/siina
cd siina
python setup.py install
或者用pip
python -m pip install git+https://github.com/ahartikainen/siina
底层数据结构
头部信息以字典形式保存:obj.header
测量数据以ndarray列表的形式保存:obj.data_list
主要通道可以通过.data
方法访问
示例用法
import siina
# create RadarFile object
meas = siina.Radar()
# read in the data
meas.read_file("./example_path/example_file.DZT")
# set the center frequency for GPR (in Hertz) if not done
if meas.header.get('frequency', None) is None:
meas.header['frequency'] = 1e9 # 1 GHz
# print dimensions for the data
print("points in samples={}, samples={}, channels={}".format(meas.nrows, meas.ncols, meas.nchan)
# strip markers (important step with .DZT files)
meas.read_markers()
# center each sample (for each trace do func(trace[500:])
meas.func_dc(start=500)
# apply lowpass filter with cutoff= 6 * frequency
# if cutoff is float -> cutoff = cutoff
# if cutoff is str -> cutoff = float(cutoff) * frequency
meas.func_filter(cutoff='6')
import matplotlib.pyplot as plt
# plot mean function for the first channel
# all channels are found under obj.data_list
plt.plot(meas.data.mean(1))
plt.show()
# plot radargram with plt.imshow
# be careful with the profile size (meas.ncols < 5000)
plt.imshow(meas.data, aspect='auto')
plt.show()
开发
pip install -r requirements-test.txt
black siina
pylint siina
pydocstyle --convention=numpy siina
项目详情
下载文件
下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于安装软件包的信息。
源代码分发
siina-19.8.28.tar.gz (10.1 kB 查看哈希)
构建分布
siina-19.8.28-py3-none-any.whl (14.0 kB 查看哈希值)
关闭
siina-19.8.28.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | da6dabd03189c45df047d38ed649cfad7ecd1559ed2a8a35a71d5c9647d0011b |
|
MD5 | 3aa1a825be00bd8755b0c9946da33fa1 |
|
BLAKE2b-256 | fdeaab74cf4c9d2fa4cdec7972e998837c3a9dc9b8986da44281157718cabc7d |
关闭
siina-19.8.28-py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 48ac40523bb75e844945439d97ad794cdba38d45fae5584315e6af8ceca01a3d |
|
MD5 | c0e7d226fea977d29b5ded5fa0e14980 |
|
BLAKE2b-256 | 491c093bb5b6a1113bd303cbc30980611c02db0f3ab56d2b70d313ee975f811d |