Recent Changes - Search:

Homepage

This is the old Camino website, please visit our new page to download the code and get the latest documentation.









UCL MIG Home

UCL CS Home

UCL Home

edit SideBar

Man /

Shredder

Content-type: text/html Manpage of shredder

shredder

Section: User Commands (1)
Index Return to Main Contents

 

NAME

shredder - Extracts periodic chunks from a data stream.

 

SYNOPSIS

shredder <offset> <chunksize> <space>

 

DESCRIPTION

Shredder makes an initial offset of offset bytes. It then reads and outputs chunksize bytes, skips space bytes, and repeats until there is no more input.

If the chunksize is negative, chunks of size |chunksize| are read and the byte ordering of each chunk is reversed. The whole chunk will be reversed, so the chunk must be the same size as the data type, otherwise the order of the values in the chunk, as well as their endianness, will be reversed.

 

EXAMPLES

Output every third double (8-byte) in the file test.Bdouble

cat test.Bdouble | shredder 0 8 16

Extract and reverse the byte ordering of every third double (8-byte)

cat test.Bdouble | shredder 0 -8 16

Extract and reverse byte ordering of values 0, 1, 4, 5, 8, 9...

cat test.Bdouble | shredder 0 16 16 | shredder 0 -8 0

Output the doubles in positions 4, 7, 10, ..., 3i+4, ...

cat test.Bdouble | shredder 32 8 16

Output as text just the Dxx entry of the diffusion tensor in each voxel for the diffusion-weighted data file A.Bfloat acquired using the acquisition scheme detailed in A.scheme:

cat A.Bfloat | dtfit - A.scheme | shredder 16 8 56 | double2txt

 

AUTHORS

Daniel Alexander <camino@cs.ucl.ac.uk>

 

SEE ALSO

double2txt(1), float2txt(1), byte2txt(1), char2txt(1), short2txt(1), int2txt(1), long2txt(1).

 

BUGS


 

Index

NAME
SYNOPSIS
DESCRIPTION
EXAMPLES
AUTHORS
SEE ALSO
BUGS

This document was created by man2html, using the manual pages.
Time: 02:07:11 GMT, December 04, 2017

Edit - History - Print - Recent Changes - Search
Page last modified on October 26, 2009, at 03:05 PM