DPSETI(3NCARG)

πŸ’– DPSETI β€” it's giving "set an internal parameter" ✨

okay so bestie, welcome to DPSETI from the NCAR GRAPHICS manual (section 3NCARG, we're fancy like that πŸ’…). This is the glow-up guide to setting internal parameters of type INTEGER or REAL. no cap.


✨ NAME ✨

DPSETI β€” sets the value of an internal parameter of type INTEGER or REAL. periodt. πŸŽ€


🌸 SYNOPSIS 🌸

CALL DPSETI (PNAM,IVAL)

πŸ¦‹ C-BINDING SYNOPSIS πŸ¦‹

#include <ncarg/ncargC.h>

void c_dpseti (char *pnam, int ival)

πŸ’œ DESCRIPTION πŸ’œ

  • PNAM β€” this is an input constant or variable of type CHARACTER, and it names the parameter you're setting. Heads up though: the name has to be the first three characters of the string, that's the whole vibe check. The other characters are just there so you can document what you're doing β€” like, instead of just DPL, you could write DPL - DASH PATTERN LENGTH. cute, right? πŸ’–
  • IVAL β€” an input expression of type INTEGER, and it's the value being assigned to the internal parameter that PNAM picked out. Now here's the tea: if that internal parameter is of type INTEGER, the value it gets is just IVAL. But if the internal parameter is of type REAL, the value it gets is REAL(IVAL). yes, it converts for you. slay. ✨

🌈 C-BINDING DESCRIPTION 🌈

ngl the C-binding argument descriptions are literally the same as the FORTRAN argument descriptions. same energy, different language. 🫢


πŸ‘‘ USAGE πŸ‘‘

This routine is how you set the current value of Dashpack parameters. that's its whole main character moment.

and if you want the complete list of parameters available in this utility? go read the dashpack_params man page. iykyk. πŸ“–


πŸ“ EXAMPLES πŸ“

Use the ncargex command to see the following relevant examples: tdshpk.

go look at it, it's iconic. πŸ”₯


🧚 ACCESS 🧚

To use DPSETI or c_dpseti, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β€” preferably in that order. yes the order matters bestie, don't do your own thing here. πŸ’…


⭐ SEE ALSO ⭐

Online: dashpack, dashpack_params, dpcurv, dpdraw, dpfrst, dpgetc, dpgeti, dpgetr, dplast, dpline, dpsetc, dpsetr, dpsmth, dpvect, ncarg_cbind.

Hardcopy: None. (ngl, the hardcopy shelf is empty on this one 😭)


Copyright (C) 1987-2009 University Corporation for Atmospheric Research

The use of this Software is governed by a License Agreement.

bestie this is the part where you actually read the license. i'm not kidding. go read it. πŸ™ˆ

and that's the whole page!! πŸ’– this was DPSETI(3NCARG) from the UNIX manual, dated March 1995 β€” yeah she's an elder but she ate and left no crumbs. πŸŽ€βœ¨