Table of Contents

NAME

asciitodat - convert file from ASCII to DAT format

SYNOPSIS

asciitodat [-d vector_dimension] asciifile datfile

OPTIONS

-d vector_dimension
Integer. Vector dimension of output DAT file. Default = 1.

DESCRIPTION

asciitodat reads floating-point numbers in ASCII from asciifile, converts them to binary form, and then writes them to datfile. The binary numbers in datfile are stored as 4 bytes with the most-significant byte stored first. A header is added to datfile so that datfile is a DAT-format file specifying N vectors, each of which have vector_dimension components. Here, N is N = floor(M / vector_dimension) where M is the total number of floating-point values in asciifile.

SEE ALSO

dattoascii(3) , QccDataset(3) , QccPack(3)

AUTHOR

Copyright (C) 1997-2021 James E. Fowler


Table of Contents



Get QccPack at SourceForge.net. Fast, secure and Free Open Source software downloads