NCGM2CGM(1NCARG)

πŸ’– NCGM2CGM β€” the 1NCARG era, NCAR GRAPHICS πŸ’–

okay bestie, sit down, hydrate, and let me tell you about two lil filter programs that are basically the translators of the vintage graphics world 🫢 they live in the 1NCARG manual, they're part of NCAR GRAPHICS, and they do exactly one job each and they do it well. iconic behaviour, honestly. πŸ’…


✨ NAME ✨

  • ncgm2cgm β€” filter NCAR CGM to vanilla CGM 🍦
  • cgm2ncgm β€” filter NCAR CGM from vanilla CGM 🍦➑️🌸

like. they're a matched set. soulmates, even. 😭


🌈 SYNOPSIS 🌈

ncgm2cgm [ -s output block size ] [ -V ]

cgm2ncgm [ -s input block size ] [ -V ]

look at them. symmetrical. we love to see it. ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

so ncgm2cgm and cgm2ncgm are filters β€” and what they filter is the conversion back and forth between NCAR Computer Graphics Metafile (CGM) and vanilla CGM. no cap, that's the whole gig. πŸŽ€

here's the tea:

  • ncgm2cgm strips the wrapper from NCAR CGM records 🧚
  • cgm2ncgm restores it πŸ’œ

and I/O? it's done from standard in / standard out respectively. so you pipe in, you pipe out, you don't touch a single file path, it's giving main character energy on the command line. periodt. πŸ”₯


πŸ’… OPTIONS πŸ’…

both of them take these, and the vibes are immaculate:

  • -s size β€” set the block size in bytes for reads/writes of vanilla CGM. the default blocking factor is 1024. ⭐ (yes bestie, one thousand twenty-four, write it down.)
  • -V β€” print the version number and then exit. that's it. that's the option. she's short, she's sweet, she slays. πŸ‘‘

🌸 SEE ALSO 🌸

  • ISO/DIS 8632 CGM Functional Specification (Nov. 1985) β€” the OG source material, the blueprint, the blueprint-est. if you want the real lore, go here. πŸ“šβœ¨

πŸ’€ BUGS πŸ’€

okay so this is the part where we get real, because the drama is real:

Some vanilla metafile interpretors take advantage of shortcuts provided by their CGM generators. In effect, they are not true CGM interpretors. 😭

read that again. not true CGM interpretors. the audacity. πŸ™ˆ

so here's what that means for you, fr fr:

  • it will still be possible to convert these metafiles to NCAR format, and those may be interpreted by NCAR Graphics translators. 🫢
  • but it may not be the case that the aforementioned interpreters will be able to translate true vanilla metafiles β€” such as those produced by ncgm2cgm. πŸ’€

so like. the shortcut-takers can receive, but can they give? unclear. possibly not. lowkey a red flag ngl. 🚩


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

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

(put some respect on it, it's been around since 1987 and it's still here πŸ’œ)


and that's the whole page bestie!! πŸŽ€ this beauty comes to you from the NCARG manual, dated January 1993 β€” a true vintage queen β€” and the source line says NCGM2CGM(1NCARG) at the bottom, so you know exactly where to find her again. mwah. πŸ’–βœ¨πŸ¦‹πŸŒΈπŸ«Ά