SIGCLEAR Program reference

sgloadbin

import binary records into a SIGCLEAR dataset

Package: sigclear-io · Version: 1.0.1-3 Download JSON

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

sgloadbin parameters
ParameterTypeDefaultDescription
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
Allowed: MSB LSB
in.skip long 0 number of bytes to skip before the first input record
#data.format enum s32 binary representation of the input field
Allowed: s8 u8 s16 u16 s32 u32 s64 u64 fp16 fp32 ibm32 fp64
#data.endian enum endian byte order of this input field
Allowed: MSB LSB
#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
Allowed: char short int long float double cfloat cdouble
#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