HDFTOR8(1)
π HDFTOR8(1) π
okay bestie, welcome to the General Commands Manual era β this one's hdftor8, and she's a whole vibe β¨
πΈ NAME πΈ
hdftor8 β extract 8-Bit raster images and palettes from an HDF file π
π¦ SYNOPSIS π¦
hdftor8 hdf-file [-i] [-v] [-r raster-image-file] [-p pallette-file]
like. that's it. that's the whole invitation π
β¨ DESCRIPTION β¨
so hdftor8 goes into an HDF file and extracts the raster images and/or the palettes out of it, then stores them in one file that holds the raster image data</> and another one that holds the palette data</>. two files, two destinies, iconic behavior honestly π«Ά
now here's the part you actually need to clock, bestie β the way hdftor8 reads the names you give it for the raster image file and the palette file is very specific:
- for each raster image file β the file name gets the extension
.#.@.%slapped on it, where#is the raster image number from the HDF file,@is the x-dimension of the raster image, and%is the y-dimension of the raster image π - for each palette file β the file name gets the extension
.#, where#is the palette number from the HDF format file π
and if you're like "bestie I don't feel like naming anything today"? totally valid. if you give no name for the raster image file, the default name img.#.@.% gets assigned, where #, @, and % mean exactly what they meant in the paragraph right above this one π and the default name for a palette file is pal.# π
π OPTIONS π
-iβ run the program in interactive mode. it's giving conversation β¨-vβ run in verbose mode. it'll show you diagnostic messages during the session, so you're never left guessing what's happening π-rraster-image-file β specify the name of the raster image file πΌοΈ-ppallette-file β specify the name of the palette file π¨
yes, the option really is spelled pallette-file up there. we don't fix it, we respect it π
π EXAMPLES π
say you've got a file named denm.hdf that contains three 512 x 256 raster images and three palettes. to store these images and palettes in separate raster image and palette files, you'd run this hdftor8 command:
hdftor8 denm.hdf
and boom β six files appear, named:
img1.512.256img2.512.256img3.512.256pal.1pal.2pal.3
six files. no cap. the naming scheme really said "let me introduce myself" π
π§ SEE ALSO π§
r8tohdf(1), hdf(5) β go read those too, they're part of the friend group π
and that's the whole page, bestie β this one's from the General Commands Manual, dated November 6, 1999, and it ate, fr fr. mwah π
β¨
π¦ where this page comes from
- debian bookworm: hdf4-tools 4.2.15-5 Β· HDF4
- debian trixie: hdf4-tools 4.3.0-1+b1 Β· HDF4
- ubuntu jammy: hdf4-tools 4.2.15-4 Β· HDF4
- ubuntu noble: hdf4-tools 4.2.16-4build1 Β· HDF4
- ubuntu questing: hdf4-tools 4.3.0-1
- ubuntu resolute: hdf4-tools 4.3.1-2 Β· HDF4
- ubuntu stonking: hdf4-tools 4.3.1-3 Β· HDF4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms