GOPWK(3NCARG)
β¨ GOPWK β okay bestie, let's open a workstation π
so this is GOPWK from NCAR GRAPHICS (that's the manual, the NCARG one, hi π). Full name of the vibe? Open workstation. Yeah. It opens a GKS workstation. That's it, that's the job. π
πΈ SYNOPSIS πΈ
CALL GOPWK (WKID, CONID, WKTYPE)
π¦ C-BINDING SYNOPSIS π¦
like, if you're in C, you're calling this instead:
#include <ncarg/gks.h>
void gopen_ws(Gint ws_id, const char *conn_id, Gint ws_type);
π DESCRIPTION π
okay so here are your three inputs, and yes you have to give all three, no skipping:
WKIDβ (Integer, Input) β this is the little name tag π·οΈ you give your workstation. Every single GKS function that needs to know which workstation you mean will ask for this number later, so remember it. And in NCAR GKS?WKIDcan be any non-negative integer. any. go feral.CONIDβ (Integer, Input) β the connection identifier. bestie, this one is a shapeshifter: it means completely different things depending on which workstation type you picked. the whole tea is in the USAGE section below, don't skip it. πWKTYPEβ (Integer, Input) β tells GKS which kind of output device you're targeting. every GKS package has its own implementation-dependent set of workstation types it supports. the legal ones in NCAR GKS are, in all their glory: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.
twenty-one flavors of workstation, we love a menu πβ¨
π USAGE π
okay this is where CONID finally explains itself. buckle up.
π types 1 (CGM) and 3 (WISS)
for workstation types 1 (CGM) or 3 (WISS), the connection ID is used as a Fortran logical unit number.
you can have at most one workstation of type 1 open at a time, and the same rule applies to workstations of type 3. (one each. that's the limit. respect it π)
but β plot twist β you can have workstations of types 1 and 3 open simultaneously, and they must have distinct connection IDs. so like, share the love but not the unit number.
π«Ά also: to use the GFLASH package or any GKS segmentation functions, WISS must be opened first. opening order matters, bestie, it's giving prerequisite.
π§ type 7
for workstations of type 7, the connection ID is the X11 window ID for the existing window (you can grab it from xwininfo, for example). it's a pre-existing window, so you gotta hand over its ID. periodt.
π type 8
for workstations of type 8, an X11 window gets created at open-workstation time. so the connection ID is irrelevant for type 8. just pass whatever, it's not the moment.
β type 10
for workstations of type 10, the ASCII text is written to standard output and the connection ID is irrelevant here too. text dump goes brrr onto stdout.
π and the ceiling: there can be a maximum of fifteen simultaneously open workstations of all types. fifteen. that's the whole budget, across every type combined. no cap.
π ACCESS π
to use GKS routines, load the NCAR GKS-0A library: ncarg_gks.
πΈ 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
π COPYRIGHT π
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 one's a UNIX manpage, GOPWK(3NCARG), dated March 1993 β iconic, vintage, still slaying. go open that workstation. β¨π¦π
π¦ where this page comes from
- epel 9: ncl-devel 6.6.2-59.el9 Β· LicenseRef-Callaway-BSD
- fedora 43: ncl-devel 6.6.2-58.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: ncl-devel 6.6.2-62.fc44 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms