Dashline_params(3NCARG)

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

πŸ’– NAME πŸ’–

Dashline_params β€” the girl who spills ALL the tea on every single internal parameter of the Dashline utility. We're in the NCAR GRAPHICS manual, section 3NCARG, and yes bestie, it's giving reference page energy. πŸŽ€


✨ DESCRIPTION ✨

Okay so first thing's first, and it's a little tragic: there are NO parameter-access routines for Dashline. None. Zero. Nada. πŸ™ˆ The parameters get set through the common blocks SMFLAG, INTPR, and DASHD1, and that's just how it is. iykyk.

Also, plot twist: there are four different versions of Dashline β€” normal, quick, smooth, and super. Which one you get depends on the options you used on the ncargf77 command line. And the lines drawn by the different versions can vary <em>considerably</em> in appearance. like, considerably considerably. 😭

Here's the whole set of common blocks you can use to access any of Dashline's internal parameters:

COMMON /SMFLAG/ IOFFS

COMMON /INTPR / IPAU,FPART,TENSN,NP,SMALL,L1,ADDLR,ADDTB,MLLINE,
+                ICLOSE

COMMON /DASHD1/ ISL,L,ISIZE,IP(100),NWDSM1,IPFLAG(100),MNCSTR,IGP

And now, the vibe check on which parameters actually do something in which version. Y = it has an effect, N = no effect, no notes:

  • ADDLR β€” QUICK: N, NORMAL: N, SMOOTH: N, SUPER: Y
  • ADDTB β€” QUICK: N, NORMAL: N, SMOOTH: N, SUPER: Y
  • FPART β€” QUICK: N, NORMAL: Y, SMOOTH: Y, SUPER: Y
  • ICLOSE β€” QUICK: Y, NORMAL: Y, SMOOTH: Y, SUPER: Y
  • IGP β€” QUICK: N, NORMAL: Y, SMOOTH: Y, SUPER: Y
  • IOFFS β€” QUICK: N, NORMAL: N, SMOOTH: Y, SUPER: Y
  • IPAU β€” QUICK: Y, NORMAL: Y, SMOOTH: Y, SUPER: Y
  • L1 β€” QUICK: N, NORMAL: N, SMOOTH: Y, SUPER: Y
  • MLLINE β€” QUICK: N, NORMAL: N, SMOOTH: N, SUPER: Y
  • NP β€” QUICK: N, NORMAL: N, SMOOTH: Y, SUPER: Y
  • SMALL β€” QUICK: N, NORMAL: N, SMOOTH: Y, SUPER: Y
  • TENSN β€” QUICK: N, NORMAL: N, SMOOTH: Y, SUPER: Y

🌸 PARAMETER DESCRIPTIONS 🌸

Time for the main character moment. Every parameter, explained, no skips. 🫢

  • ADDLR β€” the amount of free space to be left on the left and on the right of each character string, stated as the desired number of NDCs (Normalized Device Coordinates) times 1023. This only affects the "super" version of Dashline; it changes the size of the area marked around a label in the bit map that is used for culling crowded lines. [Default = 2. (2./1023. NDCs)]
  • ADDTB β€” the amount of free space to be left on the top and on the bottom of each character string, stated as the desired number of NDCs (Normalized Device Coordinates) times 1023. This only affects the "super" version of Dashline; it changes the size of the area marked around a label in the bit map that is used for culling crowded lines. [Default = 2. (2./1023. NDCs)]
  • FPART β€” a multiplication factor for the length of the first solid line segment on any curve. You can use this to offset labels, iconic behaviour honestly. For example, if FPART = .5, the first solid line segment is only one-half as long as the other solid line segments. This will move all labels on the current curve towards the beginning of the curve and thereby reduce the probability of a label being written on top of a label on a nearby curve drawn with FPART = 1. [Default = 1.]
  • ICLOSE β€” an internal or external call to move the "drawing pen" (pen-up) to a specific position is executed only if the position is more than ICLOSE units away from the current pen position (the distance is measured as the absolute difference in X-coordinates plus the absolute difference in Y-coordinates). The unit of measurement is 32767 integer units in each of the X and Y dimensions. [Default = 6]
  • IGP β€” flag to control whether gaps are left for labels along a curve. If no gaps are left, the labels don't look as good, but you can be sure of what the curve is doing in the regions occupied by the labels. Tradeoffs, bestie. πŸ’…
    • 9 β€” a gap is left.
    • 0 β€” no gap is left.

[Default = 9]

  • IOFFS β€” flag used to turn smoothing off.
    • 0 β€” smoothing.
    • 1 β€” no smoothing.

[Default = 0]

  • IPAU β€” the length of the gap or solid line associated with each element of a dash pattern defined by a call to DASHDB, given as the desired value in NDCs (Normalized Device Coordinates) times 1023. Such a dash pattern is repeated approximately every REAL(IPAU)/64. NDC units along the length of a curve. [Default = 3 (3./1023. NDCs)]
  • L1 β€” the maximum number of points to be saved at one time. If there are more than L1 points on a given line, L1 points are processed, then the next L1, and so on, until the entire line is processed. Smoothness between segments is maintained automatically, we love that for us. ⭐ If L1 is increased, the dimensions of XSAVE, YSAVE, XP, YP, TEMP, and SLEN in the routine FDVDLD must be increased to the new value of L1. [Default = 70]
  • MLLINE β€” the maximum length in either coordinate of a single line segment to be processed by the crowded line algorithm. Line segments longer than MLLINE units in either coordinate are broken into smaller segments, each of which is processed separately. This is done to prevent anomalies in the removal of long line segments, since only the starting point and end point of each line segment is checked in that process. The unit of measurement is 32767 integer units in each of the X and Y dimensions. [Default = 384]
  • NP β€” determines how many points are used to draw each smoothed curve. The value of NP is twice the maximum number of interpolated points on a horizontal curve with length equal to that of the width of the grid. More points per unit length are interpolated for short lines than for long lines. [Default = 150]
  • SMALL β€” when the points on a line are being processed, only the first of two consecutive points is saved if the points are less than SMALL units apart. This procedure is to prevent cusps. The unit of measurement is 32767 integer units in each of the X and Y dimensions. [Default = 128.]
  • TENSN β€” tension factor. Must be greater than 0. A large tension factor (30.) would essentially turn off smoothing. [Default = 2.5]

πŸ‘€ SEE ALSO πŸ‘€

Online: dashline, curved, dashdb, dashdc, frstd, lastd, lined, reset, vectd, ncarg_cbind

Hardcopy: NCAR Graphics Contouring and Mapping Tutorial; NCAR Graphics Fundamentals, UNIX Version; User's Guide for NCAR GKS-0A Graphics


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, we ate and left no crumbs πŸ’– this was the UNIX release from March 1993, filed under Dashline_params(3NCARG). go forth and dash, bestie πŸ¦‹βœ¨

πŸ“¦ where this page comes from