GOPWK(3NCARG)
π GOPWK β bestie we're opening a GKS workstation π
okay so this is gopwk, from the NCAR Graphics crew (that's the 3NCARG manual, if you're keeping track). it's the glow-up moment where a workstation literally gets born. let's get into it π
β¨ NAME β¨
gopwk β opens a GKS workstation
like. it opens it. that's the whole job. and it does it flawlessly. π
β¨ SYNOPSIS β¨
CALL GOPWK (WKID, CONID, WKTYPE)
β¨ C-BINDING SYNOPSIS β¨
for my C girlies, there's a binding π«Ά
#include <ncarg/gks.h>
void gopen_ws(Gint ws_id, const char *conn_id, Gint ws_type);
β¨ DESCRIPTION β¨
so here are the three arguments, and yes you have to give all three, no shortcuts bestie π
WKID(Integer, Input) β this is the little name tag you give your workstation, its identifier, and it's the one you'll be shouting back at every single future GKS function call that wants a workstation identifier. and in NCAR GKS?WKIDcan literally be any non-negative integer. any of them. go wild. β¨CONID(Integer, Input) β the connection identifier. and here's the thing, it means completely different things depending on which workstation type you picked. it's giving "context dependent" fr fr. the USAGE section below spills all the tea. πWKTYPE(Integer, Input) β the identifier that says exactly which kind of output device you're aiming at. every GKS package has its own implementation-dependent set of workstation types it supports, so don't assume. but the legal workstation types in NCAR GKS are, and I'm listing all of them because I would never gatekeep:1β NCGM3β WISS7β pre-existing X11 window.8β non-existing X11 window.10β text dump of graphics output.11β PDF in portrait mode.12β PDF in landscape mode.20β color PostScript in portrait mode.21β color Encapsulated PostScript (EPS) in portrait mode.22β color Encapsulated PostScript Interchange format (EPSI) in portrait mode.23β monochrome PostScript in portrait mode.24β monochrome Encapsulated PostScript (EPS) in portrait mode.25β monochrome Encapsulated PostScript Interchange format (EPSI) in portrait mode.26β color PostScript in landscape mode.27β color Encapsulated PostScript (EPS) in landscape mode.28β color Encapsulated PostScript Interchange format (EPSI) in landscape mode.29β monochrome PostScript in landscape mode.30β monochrome Encapsulated PostScript (EPS) in landscape mode.31β monochrome Encapsulated PostScript Interchange format (EPSI) in landscape mode.
like ok twenty types?? she's versatile. main character energy for real π
β¨ USAGE β¨
this is where the CONID lore lives. buckle up π¦
- for workstation types of
1(CGM) or3(WISS), the connection ID gets used as a Fortran logical unit number. and listen, you can have at most one workstation of type1open at a time, and the exact same rule applies to workstations of type3. but β plot twist β you can have workstations of types1and3open simultaneously, they just have to have distinct connection IDs. no sharing. π also, if you wanna use the GFLASH package or literally any GKS segmentation functions, WISS must be opened first. that's the rule, i don't make them. - for workstations of type
7, the connection ID is the X11 window ID of the existing window (you can grab that fromxwininfofor example). it's giving "i already have a window, i just need you to vibe with it". - for workstations of type
8, an X11 window gets created right at open-workstation time. so the connection ID? irrelevant. it does not care. it will not read it. π - for workstations of type
10, the ASCII text gets written to standard output, and again, the connection ID is irrelevant.
and here's the hard limit bestie, no cap: there can be a maximum of fifteen simultaneously open workstations of all types. fifteen. that's it. that's the ceiling. π
β¨ ACCESS β¨
to use GKS routines, you load the NCAR GKS-0A library ncarg_gks. that's the vibe. go get her. π
β¨ SEE ALSO β¨
Online: gopks, gacwk, gdawk, gclwk, gclks, opngks, clsgks, gopen_ws
Hardcopy: User's Guide for NCAR GKS-0A Graphics; NCAR Graphics Fundamentals, UNIX Version
iykyk, go read the friends too, they're all part of the same friend group π
β¨ COPYRIGHT β¨
Copyright (C) 1987-2009 University Corporation for Atmospheric Research The use of this Software is governed by a License Agreement.
okay that's the whole page!! π thank you for coming to my ted talk, now go open a workstation and slay. this was GOPWK(3NCARG) from the UNIX manual, dated March 1993, and it ate. periodt. πβ¨π
π¦ where this page comes from
- debian bookworm: libncarg-dev 6.6.2.dfsg.1-1
- debian trixie: libncarg-dev 6.6.2.dfsg.1-10+b2
- ubuntu jammy: libncarg-dev 6.6.2-10build2
- ubuntu questing: libncarg-dev 6.6.2.dfsg.1-10build2
- ubuntu resolute: libncarg-dev 6.6.2.dfsg.1-12
- ubuntu stonking: libncarg-dev 6.6.2.dfsg.1-12build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms