CONRAN(3NCARG)

πŸ’– CONRAN πŸ’–

okay bestie, pull up a chair, we're talking CONRAN from NCAR GRAPHICS (that's the 3NCARG corner of the manual, iykyk) β€” and she draws a two dimensional contour map from irregularly distributed data. and the contour lines? they may be smoothed. slay. ✨


🌸 NAME 🌸

CONRAN β€” draws a two dimensional contour map from irregularly distributed data. The contour lines may be smoothed. πŸ¦‹


⚠️ STATUS ⚠️

ngl, CONRAN is approaching obsolescence. not me delivering bad news first thing 😭

So like β€” if you happen to have an interpolation package lying around that can do a random to gridded interpolation equal to the one built into the Conran_family, then the recommendation is: grid your dataset and use the Conpack utility instead. fr fr.

Go read the conpack and conpack_params man pages, plus the NCAR Graphics Contouring and Mapping Tutorial. the lore is all there πŸ“š


🧚 UTILITY 🧚

This routine is part of the Conran_family in NCAR Graphics. To see the overview man page for this utility, type:

man conran_family

✨ SYNOPSIS ✨

CONRAN (XD,YD,ZD,NDP,WK,IWK,SCRARR)

πŸ’… DESCRIPTION πŸ’…

okay here's the cast of characters, one by one, no skips:

  • XD β€” Input, real array β€” of dimension NDP containing the X coordinates of the data points. πŸ“
  • YD β€” Input, real array β€” of dimension NDP containing the Y coordinates of the data points.
  • ZD β€” Input, real array β€” of dimension NDP containing the data values at the points. this is the main character honestly.
  • NDP β€” Input, integer β€” is the number of data points to be contoured. NDP must be 4 or larger. 🚨
  • WK β€” Input, real array β€” workspace of dimension 15*NDP.
  • IWK β€” Input, integer array β€” workspace which must be dimensioned at least IWK((27+NCP)*NDP).
    • The parameter NCP controls the number of data points to be used in the interpolation. Increasing NCP causes more of the surrounding data to influence the point of interpolation. In the case of linear interpolation NCP is always 4. In the case of C1 interpolation, NCP can vary from 2 to 25 with 4 as the default.
    • The interpolation option is selected using parameter ITP. See the conran_family_params man page for a description of all internal parameters. πŸ‘‘
  • SCRARR β€” Real work array of dimension at least (RESOLUTION**2) where RESOLUTION is 40 by default.
    • Alternate resolutions are set using parameter SSZ. See the conran_family_params man page.

🌈 USAGE 🌈

The contours will be drawn as smoothed dashed or solid lines using splines under tension. There may be characters along the lines. 😌 and like, SO many other options are available through the use of internal parameters β€” see the conran_family_params man page for the whole menu.

Quick and super versions of the Conran_family are also available through entries CONRAQ and CONRAS, respectively. yes bestie, they made variants. iconic behaviour. πŸ”₯


πŸŽ€ EXAMPLES πŸŽ€

Use the ncargex command to see the relevant example tconan. 🫢


πŸ¦‹ ACCESS πŸ¦‹

CONRAN can be invoked in two different ways. choose your fighter:

  • The standard version produces contour plots which connect interpolated values on the boundary of the interpolation triangles.
  • The smooth version produces contours which are smoothed using splines under tension.

To use standard CONRAN, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order. order matters, don't be chaotic about it πŸ’…

To run the smooth option an additional library, dashsmth, is needed. It can be loaded by the user directly, along with the above three standard libraries, or loaded implicitly through the use of the -smooth option of the ncargf77 command.

To run a code called mycode.f which has one or more calls to entry CONRAN, issue one of the commands:

NORMAL β€” Command:

ncargf77 mycode.f

The contours will be drawn as unsmoothed dashed or solid lines that can include characters along the lines.

SMOOTH β€” Command:

ncargf77 -smooth mycode.f

The contours will be drawn as smoothed dashed or solid lines that can include characters along the lines.


😭 MESSAGES 😭

See the conran_family man page for a description of all Conran_family error messages and/or informational messages. if something screams at you, that's where the translation lives.


⭐ SEE ALSO ⭐

  • Online: conraq, conras, conran_family_params, conran_family, conop1, conop2, conop3, conop4, conpack, conpack_params, bivar, dashline_family, ncargf77
  • 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.

and that's the whole vibe check, bestie 🫢 this was the UNIX flavour, dated March 1993, filed under CONRAN(3NCARG). go draw something pretty. periodt. πŸ’–βœ¨πŸŽ€