GOPEN_WS(3NCARG)

πŸ“¦ version 6.6.2, in epel 9, fedora 43, fedora 44

✨ 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_id can 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 β€” NCGM
    • 3 β€” WISS
    • 7 β€” 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 type 1 open 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 type 3 open. you CAN have workstations of types 1 and 3 open 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 7 the 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 8 an X11 window gets created at open workstation time. the connection ID is irrelevant for type 8.
  • 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 (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