DOUBLE-ASC(1)
π double-asc(1) π β the BRL-CAD glow-up where numbers become words
okay bestie, welcome to double-asc(1), the BRL-CAD tool that takes your scary binary double soup and turns it into text you can actually look at with your own eyeballs πβ¨
π NAME π
double-asc β convert a stream of IEEE doubles to ASCII text π«Ά
β¨ SYNOPSIS β¨
double-asc [-a] [-c] [-f format] [-s squaresize] [-w width] [-n height] [-# depth] [file.d]
π¦ DESCRIPTION π¦
So here's the vibe: double-asc reads a stream of binary, network-order (big-endian) IEEE double-precision floating-point values and writes them out as human-readable ASCII text, one logical sample per line. That's the whole personality π
Input comes from the file you name as file.d β or, if you don't name a file at all, it just reads from standard input. Either way, the formatted text goes to standard output. slay.
By default each line holds a single value formatted with " %g". The -# option groups several doubles together as one multi-column sample (think: a 3-tuple per pixel, iconic), and the -f option overrides the output format string. And the image-size options (-a, -s, -w, -n)? They exist so that, with -c, each sample can be labelled with its column and row coordinates within an image of the given dimensions. coords on coords, we love to see it π
This command is the inverse companion of tools that emit raw IEEE double data, and it's genuinely useful for inspecting or post-processing such streams with text utilities. lowkey a bridge between worlds ngl π
β οΈ Note: double-asc is deprecated and scheduled for removal. Contact the developers if you rely on it. no cap β if this tool is your main character, speak up now π
π OPTIONS π
-aβ Autosize the input. When reading from a file, it attempts to infer the image width and height from the file size. let it figure itself out, honestly π-cβ Prepend the column and row cell coordinates to each output line. The coordinates wrap according to the configured image width. so every line gets its little address π·οΈ-f formatβ Set theprintf(3)-style format string applied to each double. The default is" %g". you want a different look? go off β¨-s squaresizeβ Set both the input width and height tosquaresizepixels. square era πͺ-w widthβ Set the input width in pixels (default512).-n heightβ Set the input height in pixels (default512).-# depthβ Set the number of doubles per logical sample (output line). The default is1. bundle those doubles, bestie π-h,-?β Print a usage message and exit. the classic "help me" duo π
π EXAMPLES π
πΈ Example 1. Inspect a raw double-precision data file as text
double-asc samples.d | head
Dumps the contents of a binary IEEE-double file as plain numbers so the first few values can be eyed quickly. literally just a peek, no commitment π
πΈ Example 2. Label each pixel of a 256x256 three-channel double image
double-asc -c -w 256 -n 256 -# 3 image.d > image.txt
Treats the input as a 256-wide by 256-high image with three doubles per pixel, and writes β for every pixel β its column and row followed by the three component values. The result is easy to filter with awk(1) or load into a plotting tool. this is the one, fr fr π₯π
π« SEE ALSO π«
brlcad(1), asc2dsp(1), printf(3) β go read the friends of the family π«Ά
π AUTHOR π
BRL-CAD Team π
β COPYRIGHT β
This software is Copyright (c) 1989-2026 by the United States Government as represented by U.S. Army Research Laboratory.
π BUG REPORTS π
Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org π¬ β they're nice, promise, just tell them what happened π
and that's the whole page bestie π§ββοΈ β brought to you by the fine humans of BRL-CAD, filed under DOUBLE-ASC(1) in your friendly neighborhood manual set. now go turn some doubles into text β¨π
π¦ where this page comes from
- nixpkgs unstable: brlcad 7.44.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms