GOPEN_WS(3NCARG)
β¨ GOPEN_WS π (aka Open workstation)
okay bestie, so this is a page from the NCAR GRAPHICS manual, and the function is gopen_ws β which literally just opens a GKS workstation. that's the whole job. it's giving "small but mighty" π
π SYNOPSIS π
#include <ncarg/gks.h>
void gopen_ws(Gint ws_id, const char *conn_id, Gint ws_type);
πΈ DESCRIPTION πΈ
ws_id(Input) β bestie this is just a number you're assigning to a workstation, like a little name tag π·οΈ so you can refer back to it. every single subsequent call to a GKS function that needs a workstation identifier is gonna use this. in NCAR GKS,ws_idcan be any non-negative integer. periodt.conn_id(Input) β a connection identifier, and no it does NOT mean the same thing for every workstation type. it's lowkey a chameleon π¦ (check the USAGE section below, i got you).ws_type(Input) β this one says 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 ones in NCAR GKS are: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 π¦
- for workstation types of
1(CGM) the connection ID is the name of the CGM file. and bestie, 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. also β if you wanna use the GFLASH package or any GKS segmentation functions, WISS must be opened first. no skipping the line ποΈ - for workstations of type
7the connection ID is the X11 window ID for the existing window. pass that number as a string, okay? like,"3"for an X11 window ID of 3. quotes matter, bestie β¨ - for workstations of type
8an X11 window gets created at open workstation time. the connection ID is irrelevant for 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. that's your whole roster. no more main characters. π
π 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.
okay that's the whole page, you ate that π and just so you know the source vibe on this one is UNIX, dated March 1993 β yeah she's an elder icon but she still slays ππ bye bestie!!
π¦ 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