SFSETI(3NCARG)

πŸ’– SFSETI πŸ’– β€” it's giving "set that integer parameter, bestie"

okay so real talk, this is a page from the NCAR GRAPHICS manual, and it's about SFSETI, a lil FORTRAN routine that sets the current integer value of a parameter you pick. no cap, it's that simple. let's go ✨


🌸 NAME 🌸

SFSETI β€” bestie, this is the one you call to set the current integer value of whatever internal parameter you point at. that's the whole job. iconic behavior honestly πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

CALL SFSETI (CNP, IVP)

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

#include <ncarg/ncargC.h>

void c_sfseti (char *cnp, int ivp)

✨ DESCRIPTION ✨

  • CNP β€” an input expression of type CHARACTER. it's gotta be one of these strings: 'AN', 'CH', 'DO', 'SP', or 'TY'. or, lowkey, it can be a longer string that begins with one of those. and what do they mean?? so glad you asked 🫢
    • 'AN' β†’ "ANgle"
    • 'CH' β†’ "CHaracter"
    • 'DO' β†’ "DOts"
    • 'SP' β†’ "SPacing"
    • 'TY' β†’ "TYpe"
  • IVP β€” an input expression of type INTEGER, and it's the shiny new value you want for the parameter that CNP named. this value sticks around and gets used until the next call comes along and resets it. important detail alert 🚨 if the internal parameter is inherently of type REAL, then the value "REAL(IVP)" is what actually gets handed to it. so like, it gets converted. noted. πŸ’œ

🌈 C-BINDING DESCRIPTION 🌈

the C-binding argument descriptions are literally the same as the FORTRAN argument descriptions. same vibes, different syntax. periodt πŸ’…


πŸ”₯ USAGE πŸ”₯

this routine lets you set the current value of Softfill parameters. that's the whole point, bestie.

if you want the complete list of parameters available in this utility, go read the softfill_params man page. it's all there. iykyk ✨


πŸ“ EXAMPLES πŸ“

run the ncargex command and you'll see these relevant examples:

  • agex12
  • cpex01
  • cpex02
  • cpex03
  • cpex04
  • cpex05
  • elblba
  • sfex01
  • sfex02
  • vvex01
  • tlblba
  • tsoftf
  • fsfsgfa

go look at them, they ate πŸ’…


πŸ‘‘ ACCESS πŸ‘‘

to use SFSETI or c_sfseti, you gotta load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β€” and preferably in that exact order, okay?? don't be chaotic about it πŸ™ˆ


πŸ’€ MESSAGES πŸ’€

for a description of all the Softfill error messages and/or informational messages, check out the softfill man page. everything lives there.


🧚 SEE ALSO 🧚

Online: softfill, softfill_params, sfgetc, sfgeti, sfgetp, sfgetr, sfsetc, sfseti, sfsetp, sfsetr, sfsgfa, sfwrld, ncarg_cbind

Hardcopy: 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.

fr fr, that license agreement is not a vibe to skip. read it bestie 🫢

and that's the whole page!! mwah πŸ’‹ this little legend dropped on UNIX back in March 1993, and it's still out here living its best life as SFSETI(3NCARG). slay forever, periodt 🌟