DPSMTH(3NCARG)
π DPSMTH π β it's giving NCAR GRAPHICS, bestie β¨
okay so you found the DPSMTH page in the NCAR Graphics manual and you're like "what is this" β don't worry, I got you π«Ά. Short version: it draws a curve when you've got your points in fractional coordinates and you want the thing smoothed. That's it. That's the vibe.
β¨ NAME β¨
DPSMTH β used to draw a curve when fractional coordinates are available and smoothing is to be done. π
πΈ SYNOPSIS πΈ
CALL DPSMTH (XCPF,YCPF,IFVL)
π¦ C-BINDING SYNOPSIS π¦
#include <ncarg/ncargC.h>
void c_dpsmth (float xcpf, float ycpf, int ifvl);
π DESCRIPTION π
okay so here are the three lil arguments, no cap:
XCPFβ an input expression of type REAL that specifies the X coordinate of a point in the fractional coordinate system. It gets ignored whenIFVL = 2. πYCPFβ an input expression of type REAL that specifies the Y coordinate of a point in the fractional coordinate system. Also ignored whenIFVL = 2.IFVLβ an input expression of type INTEGER that tells you what kind of call this is:"0"implies a "first-point" call,"1"implies a "vector" call, and"2"implies a "last-point" or "buffer-flush" call. periodt. π
π C-BINDING DESCRIPTION π
The C-binding argument descriptions are the same as the FORTRAN argument descriptions. literally identical, bestie, no notes. β¨
π USAGE π
Use "CALL DPSMTH(XCPF,YCPF,0)" to do a "pen-up" move to the first point in a sequence of points defining a curve.
Use "CALL DPSMTH(XCPF,YCPF,1)" to do "pen-down" moves to the second and following points in a sequence of points defining a curve. ποΈ
Use "CALL DPSMTH(0.,0.,2) to terminate a sequence of calls, finish drawing the curve, and flush internal buffers. (yes bestie, that quote is doing its own thing in the source, we move on π
)
DPSMTH accumulates points until it has an internal buffer-load or until the last one has been received. Then it does the main character move: it creates a smooth curve passing through all the points, interpolates points along that smooth curve, and passes those points along to the routine DPDRAW. iconic behaviour, honestly.
And here's the tea on the smoothing π΅ β if the internal parameter 'TCS' has a value less than or equal to zero, the smoothing is done using simple cubic splines; if 'TCS' has a value greater than zero, the smoothing is done using cubic splines under tension, and 'TCS' specifies the desired tension. π«Ά
π EXAMPLES π
Use the ncargex command to see the following relevant examples: tdshpk.
go look at tdshpk, bestie, it's right there, it's free β¨
π ACCESS π
To use DPSMTH or c_dpsmth, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order. order matters, don't be chaotic π
π SEE ALSO π
Online: dashpack, dashpack_params, dpcurv, dpdraw, dpfrst, dpgetc, dpgeti, dpgetr, dplast, dpline, dpsetc, dpseti, dpsetr, dpvect, ncarg_cbind.
Hardcopy: None. (the hardcopy said "not me" π)
π 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 was DPSMTH(3NCARG) from the UNIX manual, dated March 1995 β yes she's vintage, yes she still ate, we love a classic ππ
π¦ 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