RASSPLIT(1NCARG)

πŸ“¦ version 6.6.2, in epel 9, fedora 43, fedora 44

πŸ’– rassplit β€” NCAR VIEW, bestie edition πŸ’–

okay so real talk, this one's from the NCAR VIEW manual and it's genuinely iconic. it's called rassplit, and it does exactly one thing but it does it so well: it takes a multi-frame rasterfile and splits it into single-frame rasterfiles. one frame per file. main character energy for real. πŸŽ€


✨ NAME ✨

rassplit β€” split a multi-frame rasterfile into single-frame rasterfiles. periodt. πŸ’…


🌸 SYNOPSIS 🌸

rassplit [-f f1 f2 f3 ...]  [-ofmt output-format] [-verbose] [-Version]
rasterfile

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the vibe. rassplit opens up rasterfile and copies each frame into its own separate output file. that's it. that's the whole job. she's focused. 🫢

by default, all frames get extracted β€” no cap, every single one. but if you're picky (love that for you), you can ask for a specific set of frames using the -f option. your call, bestie.

the output format defaults to the same as the input format, because she's not gonna assume. but you can optionally pick a whole new output format with the -ofmt option if you're feeling spicy. ✨

the names of the output rasterfiles are derived from three things:

  • the name of the source rasterfile
  • the output format
  • the frame numbers

the examples down below will demonstrate this, so keep scrolling. πŸ‘‘


πŸ’… OPTIONS πŸ’…

  • -f f1 f2 f3 ... β€” this one lets you specify a list of frames to be extracted from the input rasterfile. you want frames 2 and 3? say it. be specific. πŸ’–
  • -ofmt output-format β€” lets you specify output-format to be the desired format, e.g. hdf, rgb, etc. glow-up for your file format, honestly. 🌈
  • -help β€” print help information. she's helpful like that. πŸŽ€
  • -verbose β€” print a message each time an output rasterfile is written. so you get a lil notification every time she serves. πŸ”₯
  • -Version β€” print the version number. gotta know which era of her you're dealing with. ⭐

🌟 EXAMPLES 🌟

πŸ“ example one: the classic

assume you have a file called temp.nrif that has three frames, and you'd like to split it into three separate frames, also in NRIF format.

rassplit temp.nrif

this will result in three output files named temp.0001.nrif, temp.0002.nrif, and temp.003.nrif.

yes bestie, temp.003.nrif β€” that's literally what the page says, so we're keeping it exactly as-is. i don't make the rules, i just vibe with them. πŸ’€

🧚 example two: choosey edition

assume you only want frames two and three, and you want them produced in HDF format instead of NRIF.

rassplit -fmt hdf -f 2 3 temp.nrif

this will result in two output files named temp.0001.hdf and temp.0002.hdf.


😭 CAVEATS 😭

okay listen up, this part matters. if you're splitting an HDF file, ask for a non-HDF output format. otherwise you'll just get the first frame over and over again. like, genuinely. the same frame. forever. it's giving glitch. it's giving nightmare. don't do it. πŸ™ˆ


πŸ‘‘ SEE ALSO πŸ‘‘

  • rasview(1NCARG)
  • rascat(1NCARG)
  • rasls(1NCARG)
  • rasgetpal(1NCARG)
  • ras_formats(5NCARG)
  • ras_palette(5NCARG)

Hardcopy: NCAR Graphics Fundamentals, UNIX Version


Copyright (C) 1987-2009 University Corporation for Atmospheric Research

The use of this Software is governed by a License Agreement.


and that's the whole page, bestie!! this lil masterpiece comes to you from NCARG, dated January 1993, and honestly? she ate. go split some frames. i'm obsessed. πŸ«Άβœ¨πŸŽ€

πŸ“¦ where this page comes from