Nathaniel, the ReadSingle() or ReadDouble() methods of the System.IO
BinaryReader class may do your job. Give those a try. If they don't work,
try ReadBytes() in conjunction with those BitConverter methods you've been
working with. Key, though: you probably want to be using BinaryReader.
--
Rando
Hi Nathaniel,
The binary output of dctimestep is just a dump of float (or double) values in
memory, and can be read into a float (or double) array using fread(), or the
Radiance equivalent, getbinary().
I don't know what System.Text.Encoding.ASCII.GetBytes() does, but it's probably
the wrong t
Hi all,
I'm trying to read the binary output from dctimestep run with the -od
argument. The idea is that the binary files appear to be a lot faster to
save and load than text. However, I'm having a problem reading the binary
values.
Values less than 512 read in just fine. However, binary values g