GOPEN_WS(3NCARG)
π GOPEN_WS π
okay bestie, so this is a page from NCAR GRAPHICS β it's the manual for GOPEN_WS from the 3NCARG crew, and it's literally the function that opens you a GKS workstation. no cap, it's giving "let me in" energy. πͺβ¨
πΈ NAME πΈ
gopen_ws β opens a GKS workstation π«Ά
β¨ SYNOPSIS β¨
#include <ncarg/gks.h>
void gopen_ws(Gint ws_id, const char *conn_id, Gint ws_type);
π DESCRIPTION π
ws_id(Input) β a number you assign to a workstation, and it's the identifier used in every single later call to GKS functions that need a workstation identifier. In NCAR GKS,ws_idcan be any non-negative integer. literally any of them. go off. π’conn_id(Input) β a connection identifier, and bestie, its meaning changes depending on the workstation type (peep the USAGE section below, iykyk). πws_type(Input) β an identifier saying which specific type of output device you're targeting. every GKS package has its own implementation-dependent set of workstation types it supports. the legal workstation types in NCAR GKS are, and I'm not skipping a single one: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.
π USAGE π
okay so here's the tea on how conn_id behaves per type:
- for workstation types of
1(CGM) the connection ID is the name of the CGM file. and listen β you can have at most one workstation of type1open at a time. one. that's it. π« - for workstations of type
3(WISS) the connection ID is irrelevant. you can have at most one workstation of type3open. you can have workstations of types1and3open simultaneously, and they must have distinct connection IDs. and if you wanna use the GFLASH package or any GKS segmentation functions, WISS must be opened first. order matters, bestie. π - for workstations of type
7the connection ID is the X11 window ID for the existing window. this number should be passed as a string; for example,"3"for an X11 window ID of3. yes, as a string. in quotes. do not fight it. πͺ - for workstations of type
8an X11 window will be created at open workstation time. the connection ID is irrelevant for workstations of type8. β¨ - for workstations of type
10, the ASCII text is written to standard output and the connection ID is irrelevant. π
β οΈ heads up: there can be a maximum of fifteen simultaneously open workstations of all types. fifteen. not sixteen. don't push it. π
π ACCESS π
to use the GKS C-binding routines, load the ncarg_gks and ncarg_c libraries. that's the whole vibe check. π
π¦ SEE ALSO π¦
Online: gopen_gks(3NCARG), gactivate_ws(3NCARG), gdeactivate_ws(3NCARG), gclose_ws(3NCARG), gclose_gks(3NCARG), opngks(3NCARG), clsgks(3NCARG), gks(3NCARG), ncarg_gks_cbind(3NCARG)
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 β love that for you π this was the UNIX version, dated March 1993, filed under GOPEN_WS(3NCARG). go open a workstation and slay, 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