CONREC(3NCARG)
π CONREC β it's giving "contour map, but make it 1987" π
NCAR GRAPHICS Β· manual page CONREC(3NCARG)
okay bestie, sit down, grab a strawberry π, because we're about to talk about CONREC, the NCAR Graphics routine that draws a two-dimensional contour map from data in a rectangular array, and β say it with me β the contour lines are labeled. iconic behavior. π
β¨ NAME β¨
CONREC β draws a two dimensional contour map from data stored in a rectangular array. The contour lines are labeled. π
π§° UTILITY π§°
This routine is part of the conrec utility in NCAR Graphics. To see the overview man page for this utility, type:
man conrec_family
π STATUS π
ngl, this is the part where I have to break some news. π«
CONREC is obsolete. It has been superseded by the contouring package, Conpack. See the Conpack entry CPCNRC for a simple CONREC replacement. For more complex examples, refer to the conpack and conpack_params man pages, as well as the NCAR Graphics Contouring and Mapping Tutorial.
CONREC continues to be provided for compatibility of early NCAR Graphics codes. If you are writing new code, we suggest that you use the more general and rigorous Conpack contouring package. All CONREC options can be duplicated by the proper selection of Conpack parameters. fr fr, all of them. π
π Obsolete alert: this thing is legacy. It still works, it's just not the moment anymore.
π SYNOPSIS π
CALL CONREC(Z,L,M,N,FLO,HI,FINC,NSET,NHI,NDOT) - draws a contour map
using options specified as input arguments.
π DESCRIPTION π
here come the arguments, bestie, and there are ten of them. no skipping. not me listing every single one. π
Zβ an input array of typeREALdefining a two-dimensional field to be contoured. A subset ofZof extentMbyNcan be contoured. π¦Lβ an input parameter of typeINTEGERwhich is the first dimension of theZarray.Mβ an input parameter of typeINTEGERwhich is the extent of the first dimension of arrayZto be contoured. This allows for a sub-array ofZto be contoured.Mmust be less than or equal toL. βNβ an input parameter of typeINTEGERwhich is the extent of the second dimension of arrayZto be contoured. This allows for a sub-array ofZto be contoured.Nmust be less than or equal to the second dimension ofZ.FLOβ an input parameter of typeREALdefining a lowest level for contouring. IfFLO = HI = 0., a value rounded up from the minimum value ofZwill be generated byCONREC. πΈHIβ an input parameter of typeREALdefining a highest level for contouring. IfHI = FLO = 0., a value rounded down from the maximum value ofZwill be generated byCONREC.FINCβ an input parameter of typeREALwhich defines how the contour levels are to be selected. it's giving "pick your own adventure": β¨> 0., use this value for the increment between contour levels. There will be(HI-FLO)/FINCcontour lines generated.= 0., causesCONRECto generate a value which will result in between 10 and 30 contours.< 0., the number of contour levels is the integer absolute value of this number (FINC.)
NSETβ an input parameter of typeINTEGERwhich controls plot scaling according to:= 0,CONRECautomatically sets the window and viewport sizes. The viewport becomes by default.05to.95in the larger dimension (MorN), and.05to a proportionately smaller number in the smaller dimension. The window becomes1.toFLOAT(M)in X, and1.toFLOAT(N)in Y. ThePERIMentry of the Gridall utility is called to generate a plot boundary with tick marks placed at the data grid points. π> 0,CONRECassumes the window and viewport have been set by the user. No plot boundary is drawn.< 0,CONRECuses the existing viewport and sets the window to1.toFLOAT(M)in X, and1.toFLOAT(N)in Y. No plot boundary is drawn.
NHIβ an input parameter of typeINTEGERwhich controls the printing of extra information on the plot.= 0, SymbolsHandLare written where highs and lows occur and the value of the high or low is written under the symbol. π¦> 0, TheZdata values are printed, centered at each grid point.< 0, Neither of the above is done.
NDOTβ an input parameter of typeINTEGERwhich specifies the line patterns to be used in drawing the contours. Only the last 10 binary bits ofNDOTare used in creating a binary pattern is which0's are no-line and1's are line segments. If the absolute value ofNDOTis0,1, or1023a solid line is drawn.1023in decimal converts to1777octal, or1111111111in binary. π> 0, TheNDOTpattern is used to draw all contours.< 0, The absolute value ofNDOTis used for negative-valued contours and solid lines are drawn for positive contours.
π§ͺ EXAMPLES π§ͺ
Use the ncargex command to see the relevant examples tconre, tcnqck, tcnsmt, and tcnsup. four examples, four little icons of the conrec world. π
π ACCESS π
CONREC can be invoked in four different ways to create contour plots which vary considerably in appearance. The four variations include quick, normal, smooth, and super contour lines. This progression represents a tradeoff between speed of computation and the appearance of the contour plots. These variations are specified through selected command line options of the ncargf77 command.
To use CONREC, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order. in that order, bestie, don't be chaotic. Other optional libraries to create the quick, smooth, and super contours will automatically be linked by the ncargf77 command. To run a code called mycode.f which has one or more calls to entry CONREC, 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.
- QUICK β Command:
ncargf77 -quick mycode.f
The contours will be drawn as unsmoothed dashed or solid lines without characters along the lines. The QUICK drawing algorithm is faster and cruder than that used for NORMAL contour lines. QUICK uses a cell-by-cell analysis rather than following each contour line to completion in sequence as is done in the NORMAL algorithm. β‘
- SMOOTH β Command:
ncargf77 -smooth mycode.f
The contours will be drawn as smoothed dashed or solid lines using splines under tension. There may be characters along the lines. π§
- SUPER β Command:
ncargf77 -super mycode.f
The contours will be drawn as smoothed dashed or solid lines using splines under tension. There may be characters along the lines. Crowded lines can be thinned. β¨
π MESSAGES π
When error conditions are detected, the support routine SETER is called in such a way that it writes a message to the standard error file (as defined by I1MACH(4)) and then terminates execution. The possible error messages are as follows:
CONREC - DIMENSION ERROR - M*N .GT. (2**IARTH)
The array to be contoured is dimensioned M by N. This is larger than the address space on this computer (2**IARTH) where IARTH is the size of an address integer. Check your dimension sizes. π
heads up: this one is a full stop. it writes to standard error and then terminates execution. no soft landing, no vibe check. π
π SEE ALSO π
Online: ezcntr, conrec_family_params, conrec_family, conpack, conpack_params, cpcnrc, gridall, dashline_family, ncargf77
Hardcopy: NCAR Graphics Contouring and Mapping Tutorial; NCAR Graphics Fundamentals, UNIX Version; User's Guide for NCAR GKS-0A Graphics
π 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 one shipped on the UNIX manual, dated March 1993, under the title CONREC(3NCARG) β yes, the same name we opened with, because the man page said it first and it's gonna say it last too. π
go contour something cute, and remember: if you're writing new code, use Conpack. periodt. πβ¨
π¦ 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