Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #1444 > unrolled thread

skip binary data

Started byKurt Sterau <kurt.sterau@trash-mail.com>
First post2012-10-29 17:06 +0100
Last post2012-10-29 21:39 +0100
Articles 4 — 2 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  skip binary data Kurt Sterau <kurt.sterau@trash-mail.com> - 2012-10-29 17:06 +0100
    Re: skip binary data sfeam <sfeam@users.sourceforge.net> - 2012-10-29 10:58 -0700
      Re: skip binary data Kurt Sterau <kurt.sterau@trash-mail.com> - 2012-10-29 20:26 +0100
        Re: skip binary data Kurt Sterau <kurt.sterau@trash-mail.com> - 2012-10-29 21:39 +0100

#1444 — skip binary data

FromKurt Sterau <kurt.sterau@trash-mail.com>
Date2012-10-29 17:06 +0100
Subjectskip binary data
Message-ID<874nlddzzs.fsf@kerstf.org>
Hi,

I plot some binary data:

plot 'data.bin' binary format='%int8' u ($0):($1) with line lt 1

This works as expected, but unfortunately the file has 2507 Bytes and I
have to skip the first 6 Bytes und the last one. Only 2500 Bytes are of
interest. Can this be achieved within gnuplot 4.6 patchlevel 0 on Linux?
Or is there any other tool to achieve this?

-- 
Kurt

[toc] | [next] | [standalone]


#1447

Fromsfeam <sfeam@users.sourceforge.net>
Date2012-10-29 10:58 -0700
Message-ID<k6mg4n$b72$1@dont-email.me>
In reply to#1444
Kurt Sterau wrote:

> Hi,
> 
> I plot some binary data:
> 
> plot 'data.bin' binary format='%int8' u ($0):($1) with line lt 1
> 
> This works as expected, but unfortunately the file has 2507 Bytes and I
> have to skip the first 6 Bytes und the last one. Only 2500 Bytes are of
> interest. Can this be achieved within gnuplot 4.6 patchlevel 0 on Linux?
> Or is there any other tool to achieve this?


   help binary skip

[toc] | [prev] | [next] | [standalone]


#1450

FromKurt Sterau <kurt.sterau@trash-mail.com>
Date2012-10-29 20:26 +0100
Message-ID<87txtdnkph.fsf@kerstf.org>
In reply to#1447
>> plot 'data.bin' binary format='%int8' u ($0):($1) with line lt 1
>> 
>> This works as expected, but unfortunately the file has 2507 Bytes and I
>> have to skip the first 6 Bytes und the last one. Only 2500 Bytes are of
>> interest. Can this be achieved within gnuplot 4.6 patchlevel 0 on Linux?
>> Or is there any other tool to achieve this?
>
>
>    help binary skip

plot 'data.bin' binary skip=6 format='%int8' u ($0):($1) with line lt 1

The first 6 Bytes are skipped now, thanks. But what about the last byte?
How can I suppress this?

-- 
Kurt

[toc] | [prev] | [next] | [standalone]


#1452

FromKurt Sterau <kurt.sterau@trash-mail.com>
Date2012-10-29 21:39 +0100
Message-ID<87pq41nhbr.fsf@kerstf.org>
In reply to#1450
> plot 'data.bin' binary skip=6 format='%int8' u ($0):($1) with line lt 1
>
> The first 6 Bytes are skipped now, thanks. But what about the last byte?
> How can I suppress this?

plot 'data.bin' binary record=2500 skip=6 format='%int8' u ($0):($1)
with line lt 1

This does now what I want, but I don't understand why...

-- 
Kurt

[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web