How to skip specific bytes at the beginning of a binary in Gnuplot?

Let's say I have a binary file that has the following format: 4 * sizeof (double), 4 * sizeof (size_t), (Ny * Nx) * dizeof (double).

The first 4 doubles and 4 size_ts are the file meta information. The rest is the data I want to build using gnuplot.

Right now I need to convert the file to another without a header for building using the command:

plot "convertedfile.data" binary format='%double' array=(Ny, Nx) u 1 w image

Q: Is there a way to tell gnuplot to ignore the start bytes of the Nbinary and then display the rest as if its matrix?

+3
source share
2 answers

plot "convertedfile.data" binary skip=16 format='%double' array=(Ny, Nx) u 1 w image

16 .

+6

, , , C, .

0

Source: https://habr.com/ru/post/1761022/


All Articles