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); }
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(); } }
public TextHeader(TextHeaderEncoding TextHeaderEncoding, BinaryReader InSgyBinReader) { FillTextHeader(TextHeaderEncoding, InSgyBinReader); this.TextHeaderEncoding = TextHeaderEncoding; }
public TextHeader() { Text = ""; TextHeaderEncoding = TextHeaderEncoding.EBCDIC; }
public SegyDataStandart(string filePath, TextHeaderEncoding textHeaderEncoding = TextHeaderEncoding.EBCDIC, int numOfExtTextHeaders = 0) : base(filePath, textHeaderEncoding, numOfExtTextHeaders) { }
} //Now is not valid for variable tracesize filetypes protected SegyData(string filePath, TextHeaderEncoding textHeaderEncoding = TextHeaderEncoding.EBCDIC, int numOfExtTextHeaders = 0) { InitializeFields(filePath, numOfExtTextHeaders); }
public void FillTextHeader(TextHeaderEncoding textHeaderEncoding) { TextHeader.FillTextHeader(textHeaderEncoding, SegyDataBinReader); }