I am writing C# classes to export Seg-Y files for educational purposes. Seg-Y files are basically files written in a predefined format to store big chunks of binary Seismic data. In these files we define the format of numeric data in the header (for example,IbmFloatingPoint4
, TwosComplementInteger4
, TwosComplementInteger2
, FixedPointWithGain4
, IeeeFloatingPoint4
, etc.) so that the reader can read the file accordingly. Given one of these formats, how can I ensure that the data is being written properly?
Right now I am using BinaryWriter.Write(Value)
to write data in the file, but I am not sure which numeric format is being used to write the data.
Thanks