Description
load fields from fixed-size binary records with configurable formats and byte order
Synopsis
sgloadbin out.fields="data" <stdin in.colsz=1 in.endian=LSB in.skip=0 #data.format=s32 #data.endian=endian #data.start=off #data.len=1 >stdout #data.type=format #data.s0=0.0 #data.ds=1.0
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
out.fields |
strs |
"data"
|
names of fields to create in the output dataset |
in |
ifile |
stdin
|
input binary file |
in.colsz |
long |
1
|
size of each input record in bytes |
in.endian |
enum |
LSB
|
default byte order for input fields |
in.skip |
long |
0
|
number of bytes to skip before the first input record |
#data.format |
enum |
s32
|
binary representation of the input field |
#data.endian |
enum |
endian
|
byte order of this input field |
#data.start |
long |
off
|
zero-based byte offset of this field within each input record |
#data.len |
int |
1
|
number of elements in this field |
out |
ofile |
stdout
|
output SIGCLEAR dataset |
#data.type |
enum |
format
|
data type used for the output field |
#data.s0 |
double |
0
|
sampling origin of vector field data |
#data.ds |
double |
1
|
sampling interval of vector field data |
Input and output
Input
input binary file
Output
output SIGCLEAR dataset