Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Binary data file conversion

  • To: mathgroup at smc.vnet.net
  • Subject: [mg113058] Re: Binary data file conversion
  • From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
  • Date: Tue, 12 Oct 2010 04:27:28 -0400 (EDT)
  • References: <i8pgir$fjs$1@smc.vnet.net>

Looks correct to me. You will get a one-dimensional list in rawData.
If it's not too big you can show it using Row, Column or TableForm. If
you want to display it in 2D you could use Partition (if you want
sixtuples Partition[rawData,6] would be a good idea), and then use
TableForm, MatrixForm or Grid.

If the data set is too large you may consider using MatrixPlot or
ArrayPlot.

Cheers -- Sjoerd

 On Oct 9, 12:36 pm, Benjamin Lederfine Paskal <blpas... at gmail.com>
wrote:
> I have saved data in the binary format used to store the values in
> Real64 with big-endian byte ordering. This real value is then followed
> by sextuples of real values.  I have no program that is able to open
> this data and make it readable and am trying to decode it in
> Mathematica.  What I have so far:
>
> (* Function to Read binary output file *)
> ReadResults[filename_] := BinaryReadList[ filename, "Real64",
> ByteOrdering -> +1];
>
> (* Readouput file and store content in fileData *)
> rawData = ReadResults["fileName.dat"];
>
> But have no idea how to get an output that displays the data in a
> viewable table or matrix form?
>
> Please help, not even sure if the above is correct



  • Prev by Date: Re: Nested list - adding to each entry
  • Next by Date: Why I keep getting error exporting notebooks to HTML? Crashes Mathematica,
  • Previous by thread: Binary data file conversion
  • Next by thread: Further expanding d[xy]/dx in the output of a Dt calculation