Пример #1
0
        public void FillTextHeader(TextHeaderEncoding TextHeaderEncoding, BinaryReader InSgyBinReader)
        {
            InSgyBinReader.BaseStream.Seek(0, SeekOrigin.Begin);
            var bytes = InSgyBinReader.ReadBytes(3200);

            Text = (TextHeaderEncoding == TextHeaderEncoding.ASCII) ?
                   ASCIIEncoding.Default.GetString(bytes) :
                   IbmConverter.ToString(bytes);
        }
Пример #2
0
 public SegyDataVarTr(string filePath, TextHeaderEncoding textHeaderEncoding = TextHeaderEncoding.EBCDIC, int numOfExtTextHeaders = 0, bool suppressFillingTracesAdresses = false) : base(filePath, textHeaderEncoding, numOfExtTextHeaders)
 {
     TracesAdresses    = new Dictionary <int, long>(NumOfTraces);
     TracesLengths     = new Dictionary <int, short>(NumOfTraces);
     TracesAdresses[0] = SegyBinHeaderPositions.BinHeaderEnd + SegyBinHeaderPositions.ExtTextHeaderSizes * numOfExtTextHeaders;
     InSgyStream.Seek(TracesAdresses[0] + SegyTraceHeaderPositions.TraceLength, SeekOrigin.Begin);
     TracesLengths[0] = Fields16ReadFunc();
     if (!suppressFillingTracesAdresses)
     {
         FillTracesAdresses();
     }
 }
Пример #3
0
 public TextHeader(TextHeaderEncoding TextHeaderEncoding, BinaryReader InSgyBinReader)
 {
     FillTextHeader(TextHeaderEncoding, InSgyBinReader);
     this.TextHeaderEncoding = TextHeaderEncoding;
 }
Пример #4
0
 public TextHeader()
 {
     Text = "";
     TextHeaderEncoding = TextHeaderEncoding.EBCDIC;
 }
Пример #5
0
 public SegyDataStandart(string filePath, TextHeaderEncoding textHeaderEncoding = TextHeaderEncoding.EBCDIC,
                         int numOfExtTextHeaders = 0) : base(filePath, textHeaderEncoding, numOfExtTextHeaders)
 {
 }
Пример #6
0
        }                                             //Now is not valid for variable tracesize filetypes

        protected SegyData(string filePath, TextHeaderEncoding textHeaderEncoding = TextHeaderEncoding.EBCDIC, int numOfExtTextHeaders = 0)
        {
            InitializeFields(filePath, numOfExtTextHeaders);
        }
Пример #7
0
 public void FillTextHeader(TextHeaderEncoding textHeaderEncoding)
 {
     TextHeader.FillTextHeader(textHeaderEncoding, SegyDataBinReader);
 }