Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #3344 > unrolled thread
| Started by | Ted Sariyski <tsariysk@craft-tech.com> |
|---|---|
| First post | 2011-06-29 21:26 +0000 |
| Last post | 2011-06-29 21:26 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
BinaryRead question Ted Sariyski <tsariysk@craft-tech.com> - 2011-06-29 21:26 +0000
| From | Ted Sariyski <tsariysk@craft-tech.com> |
|---|---|
| Date | 2011-06-29 21:26 +0000 |
| Subject | BinaryRead question |
| Message-ID | <iug5ag$9dk$1@smc.vnet.net> |
Hi, I have data which are available both in ASCII and binary formats. Importing ASCII data is really slow, between 3 and 5 minutes and I have many files. I tried BinaryRead but I need help here. Binary data consists of records. The first 32 bytes are the variable name, followed by numberOfPoints real*4. The first record in the file is numberOfPoints (integer*4): numberOfPoints var1 dataVar1(1:numberOfPoints) var2 dataVar2(1:numberOfPoints) ... Data are stored on Linux x86_64 machine in big-endian byte order. Could someone provide a template how the code should look like, please? I have another related question. I was thinking to use pipe (BinaryRead["!readData",...]), but I am confused because Mathematica is running on Windows7 and data are on Unix. I see two options: 1) to compile readData on Windows, or 2) to execute readData remotly e.g. "ssh remoteMachine readData dataFn". I prefer the second way because i already have utilities to handle these data on Unix. Is there a document which provides examples for this type of data import? Thanks in advance, --Ted
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web