U-A(1)
β¨ NAME β¨
u-a β and yes bestie, this is the BRL-CAD U-A(1) page β converts binary unsigned shorts to ASCII numbers. Thatβs the whole name vibe, and it ate π
π SYNOPSIS π
u-a < shorts > ascii
π DESCRIPTION π
Okay so picture this: u-a reads a stream of machine-native 16-bit unsigned short integers from standard input, then writes their decimal values, one per line, to standard output as ASCII text. Itβs giving humble little converter, but itβs literally iconic β¨
Each value is printed with the %hd format, which means values are rendered as signed short integers β so those above 32767 appear as negative numbers. Not a bug, bestie, thatβs the format doing its thing π
The command takes no options and no arguments; all data is passed through standard input and standard output. Related converters that read the same binary unsigned-short stream include u-bw(1), u-d(1), and u-f(1). Cute lil converter family π«Ά
β οΈ Heads up: this command is deprecated and is scheduled for removal. It prints a deprecation warning on startup. So maybe donβt build your whole main character arc around it, fr fr π
π§ͺ EXAMPLES π§ͺ
Example 1. Inspect raw 16-bit sample data as text
u-a < samples.u | head
Decodes the binary unsigned-short stream in samples.u and shows the first ten decimal sample values β a quick way to sanity-check captured 16-bit data. Literally the vibe check for your raw samples πΈ
Example 2. Compute statistics on a binary short stream
u-a < signal.u | dstats
Converts the binary shorts to ASCII and pipes them to dstats(1) to report the minimum, maximum, mean, and other descriptive statistics of the sample values. Stats girlies rise π
π SEE ALSO π
π AUTHOR π
BRL-CAD Team β the squad behind this whole thing π
Β©οΈ COPYRIGHT Β©οΈ
This software is Copyright (c) 1989-2026 by the United States Government as represented by U.S. Army Research Laboratory. Exact words, bestie, no edits π
π BUG REPORTS π
Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org. Spill the tea, but make it a bug report π§
Signing off from the BRL-CAD U-A(1) page π source/version: BRL-CAD; date: not shown on this page, so no invented date, no cap π
π¦ 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