NGPICT(3NCARG)
β¨ NGPICT β¨
okay bestie, gather round π this one lives in the NCAR GRAPHICS corner of the 3NCARG manuals and it is genuinely so useful. it's the move where you go "pause the whole picture-drawing situation for a sec" inside a FORTRAN program that's using GKS.
and here's the tea: what actually happens depends on whether the workstation you point at is a metafile or an output/input workstation. plus there's an option that prompts the user when an output/input workstation is all ready and just... waiting after a pause. main character energy tbh π
πΈ NAME πΈ
NGPICT β effects a break in the picture drawing sequence in a FORTRAN code using GKS. The actions taken depend on whether the designated workstation is a metafile or an output/input workstation. An option is provided for prompting the user when an output/input workstation is ready and waiting after a pause.
π¦ SYNOPSIS π¦
CALL NGPICT(WKID,ACTION)
π C-BINDING SYNOPSIS π
#include <ncarg/ncargC.h>
void c_ngpict(int wkid, int action)
π DESCRIPTION π
WKIDβ an input parameter of typeINTEGERwhich designates the workstation identifier of a workstation as it was specified in aGOPWKcall.ACTIONβ an input parameter of typeINTEGERthe value of which specifies the action to be taken on the workstationWKID. Legal values are:- Execute an
UPDATE WORKSTATIONonWKID. - Execute an
UPDATE WORKSTATIONfollowed by aCLEAR WORKSTATION. - Execute an
UPDATE WORKSTATIONfollowed by a pause waiting for a mouse click or a key click. - Execute an
UPDATE WORKSTATIONfollowed by a pause followed by aCLEAR WORKSTATIONafter the pause has been terminated by a mouse click or a key click. - Same as 3 except a
"<READY>"prompt is issued in the lower left corner of the window after theUPDATE WORKSTATION.
- Execute an
π C-BINDING DESCRIPTION π
The C binding argument descriptions are the same as the FORTRAN argument descriptions. no notes, same vibe, slay β¨
π USAGE π
okay so here's the important part, bestie, listen up π
If WKID designates a metafile, then a CLEAR WORKSTATION is done which inserts an END PICTURE into the metafile. The result produced in this case would be the same as that resulting from a call to FRAME. The only valid actions for a metafile workstation are 0 and 1.
β οΈ literally only0and1for metafiles. don't try the others, they're not it. π
NGPICT is designed to be used when more precise control over individual workstations is desired than that offered by FRAME. This might be desirable, for example, when an application is controlling several simultaneously active workstations. To use NGPICT one should be opening GKS workstations with GOPWK rather than with OPNGKS.
π₯ EXAMPLES π₯
If WKID=2 designates a metafile workstation, then
CALL NGPICT(2,1)
would duplicate the action of a FRAME call.
If WKID=2 designates an X11 workstation, then
CALL NGPICT(2,4)
would cause a pause in the X11 window and wait for a key click or a mouse click. A "<READY>" prompt, indicating that the window is waiting for a mouse click or a key click, would appear at the lower left of the X11 window after the window has been updated. After a mouse click in the X11 window, that window will be cleared before program execution continues.
π«Ά ACCESS π«Ά
To use NGPICT or c_ngpict, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order. yes the order matters, do it in that order, trust π§
π MESSAGES π
Non-fatal errors are reported for values of ACTION out of range and for values of ACTION inappropriately applied to a metafile. Also, a non-fatal error is reported if NGPICT is called while a segment is open.
(not fatal, so like... you'll live, but it's giving a warning bestie π)
β SEE ALSO β
- Online:
frame(3NCARG),gflash(3NCARG),gopwk(3NCARG),opngks(3NCARG),gclrwk(3NCARG),gupwk(3NCARG),ncarg_cbind(3NCARG) - Online URL:
http://ngwww.ucar.edu/ngdoc/ng/gks/gkshome.html - Hardcopy: NCAR Graphics Contouring and Mapping Tutorial; 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 came out of the UNIX manual set, dated March 1993, and it's filed under NGPICT(3NCARG). 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