Segy-master

所属分类:能源行业(电力石油煤炭)
开发工具:C#
文件大小:3494KB
下载次数:12
上传日期:2018-01-13 20:17:46
上 传 者亚星
说明:  该程序使用c#进行编写,可以轻松的实现地震数据segy格式的读取工作,方便快捷
(The program is written with c#. It can easily realize the reading of the segy format of seismic data, which is convenient and quick.)

文件列表:
CodeAnalysisDictionary.xml (224, 2015-02-11)
Local.testsettings (1132, 2015-02-11)
TraceAndTestImpact.testsettings (2136, 2015-02-11)
Unplugged.Segy.MonoTouch.Tests (0, 2015-02-11)
Unplugged.Segy.MonoTouch.Tests\AppDelegate.cs (1439, 2015-02-11)
Unplugged.Segy.MonoTouch.Tests\Images (0, 2015-02-11)
Unplugged.Segy.MonoTouch.Tests\Images\icon114.png (27042, 2015-02-11)
Unplugged.Segy.MonoTouch.Tests\Images\icon144.png (38423, 2015-02-11)
Unplugged.Segy.MonoTouch.Tests\Images\icon57.png (9490, 2015-02-11)
Unplugged.Segy.MonoTouch.Tests\Images\icon72.png (13597, 2015-02-11)
Unplugged.Segy.MonoTouch.Tests\Info.plist (1115, 2015-02-11)
Unplugged.Segy.MonoTouch.Tests\Main.cs (459, 2015-02-11)
Unplugged.Segy.MonoTouch.Tests\Unplugged.Segy.MonoTouch.Tests.csproj (4167, 2015-02-11)
Unplugged.Segy.MonoTouch (0, 2015-02-11)
Unplugged.Segy.MonoTouch\Unplugged.Segy.MonoTouch.csproj (3745, 2015-02-11)
Unplugged.Segy.NUnitTests (0, 2015-02-11)
Unplugged.Segy.NUnitTests\SegyReading.cs (3074, 2015-02-11)
Unplugged.Segy.NUnitTests\Unplugged.Segy.NUnitTests.csproj (2411, 2015-02-11)
Unplugged.Segy.NUnitTests\packages.config (135, 2015-02-11)
Unplugged.Segy.Tests (0, 2015-02-11)
Unplugged.Segy.Tests\Examples (0, 2015-02-11)
Unplugged.Segy.Tests\Examples\bigEndianIEEEFloat.sgy (392880, 2015-02-11)
Unplugged.Segy.Tests\Examples\lineE.sgy (474684, 2015-02-11)
Unplugged.Segy.Tests\ImageWriterTest.cs (11559, 2015-02-11)
Unplugged.Segy.Tests\Properties (0, 2015-02-11)
Unplugged.Segy.Tests\Properties\AssemblyInfo.cs (1418, 2015-02-11)
Unplugged.Segy.Tests\SegyOptionsTest.cs (1395, 2015-02-11)
Unplugged.Segy.Tests\SegyReaderTest.cs (24036, 2015-02-11)
Unplugged.Segy.Tests\Unplugged.Segy.Tests.csproj (3664, 2015-02-11)
Unplugged.Segy.Tests\packages.config (214, 2015-02-11)
Unplugged.Segy (0, 2015-02-11)
Unplugged.Segy\FileHeader.cs (223, 2015-02-11)
Unplugged.Segy\FormatCode.cs (299, 2015-02-11)
Unplugged.Segy\IFileHeader.cs (185, 2015-02-11)
Unplugged.Segy\IReadingProgress.cs (155, 2015-02-11)
Unplugged.Segy\ISegyFile.cs (184, 2015-02-11)
Unplugged.Segy\ISegyOptions.cs (602, 2015-02-11)
Unplugged.Segy\ITrace.cs (181, 2015-02-11)
... ...

# SEG-Y Reading Library in C# # SEG-Y is a file format for seismic image data. It is also known as SEGY or SGY. Issues and sample data welcome. ### Example ```C# using System; using Unplugged.Segy; ``` ```C# var reader = new SegyReader(); ISegyFile line = reader.Read(@"RMOTC Seismic data set\2D_Seismic\NormalizedMigrated_segy\lineA.sgy"); ITrace trace = line.Traces[0]; double mean = 0; double max = double.MinValue; double min = double.MaxValue; foreach (var sampleValue in trace.Values) { mean += sampleValue / trace.Values.Count; if (sampleValue < min) min = sampleValue; if (sampleValue > max) max = sampleValue; } Console.WriteLine(min); Console.WriteLine(max); Console.WriteLine(mean); ``` ### Supported Sample Formats - IBM Floating Point 4 (Big Endian) - IEEE Floating Point 4 (Little Endian) - Two's Complement Integer 4 (Big and Little Endian) - Two's Complement Integer 2 (Big and Little Endian) - Two's Complement Integer 1 ### Current Known Limitations - Assumed to be built on Little Endian architecture - Sample Format not supported: Fixed Point With Gain 4 - Extended Text Headers are not supported - Writing SEGY files is not supported If you have example files of unsupported formats or feature requests, they would be appreciated! Please, send to ### Acknowledgements Example data is courtesy of the [Rocky Mountian Oilfield Testing Center](http://www.rmotc.doe.gov/) and the U.S. Department of Energy Resources on the SEG-Y format: - http://walter.kessinger.com/work/segy.html - http://en.wikipedia.org/wiki/SEG_Y - http://www.seg.org/documents/10161/77915/seg_y_rev1.pdf

近期下载者

相关文件


收藏者