Reading recorder -binary output

Forum for OpenSees users to post questions, comments, etc. on the use of the OpenSees interpreter, OpenSees.exe

Moderators: silvia, selimgunay, Moderators

Post Reply
ja_abell
Posts: 43
Joined: Tue Nov 03, 2009 1:22 pm
Location: Universidad de los Andes
Contact:

Reading recorder -binary output

Post by ja_abell »

I am outputting huge ammounts of 'node disp recorder ' and I am using binary file output to minimize disk usage. I haven't been able to figure out the format of this output though to read it back into some other code for plotting.

What is the output format for the binary mode recorders?

Thanks!
vesna
Posts: 3033
Joined: Tue May 23, 2006 11:23 am
Location: UC Berkeley

Re: Reading recorder -binary output

Post by vesna »

If you are using MatLab for plotting, you can read data of binary files by using fread command. Check this:
http://www.mathworks.com/help/techdoc/ref/fread.html
ja_abell
Posts: 43
Joined: Tue Nov 03, 2009 1:22 pm
Location: Universidad de los Andes
Contact:

Re: Reading recorder -binary output

Post by ja_abell »

Thank you!

I am using python (matplotlib) inspired in MatLab for plotting.

After a few tests I found out that even though the output is binary (doubles) the recorder still outputs a newline '\n' character before starting a new time. This could be helpful to anyone out there not willing to read the source code.

Best luck!
JA
Post Reply