MPCHLN(3NCARG)
π MPCHLN β the boundary-line glow-up routine π
okay bestie, welcome to the NCAR GRAPHICS corner of the manual pages, this one's MPCHLN(3NCARG) and she is literally the little hook that lets you touch every boundary line as it goes by. π¦
β¨ NAME β¨
MPCHLN β this routine gets called over and over again while boundary lines are being processed by MPLNAM, MPLNDM, and MPLNDR. The default version of the routine? Does absolutely nothing, she's just vibing. But a user-supplied version may take action to change various characteristics of the lines. that's the whole point, that's the assignment. π
β¨ SYNOPSIS β¨
CALL MPCHLN (IACT,ILTY,IOAL,IOAR,NPTS,PNTS)
β¨ C-BINDING SYNOPSIS β¨
None. π (that's it. that's the section. no C binding here, bestie.)
β¨ DESCRIPTION β¨
IACTβ an input expression of typeINTEGER, and she's the one who tells you which of the EZMAPB routines calledMPCHLNand what that routine is doing or has done with the boundary line defined by the argumentsNPTSandPNTS. Here's the tea:IACTis positive if the line is about to be processed, negative if the line was just processed. And its absolute value? That's your caller ID:1if the call comes fromMPLNAM(which puts lines into an area map),2if the call comes fromMPLNDM(which draws lines masked by some area map), and3if the call comes fromMPLNDR(which just draws lines). πILTYβ an input expression of typeINTEGER, and she specifies the type of the line, so let's run the vibe check:1=> a line separating land from water π2=> a line separating one "continent" from another (as, for example, Africa from Eurasia, North America from Central America, or Central America from South America) π3=> a line separating one country from another πΊοΈ4=> a line separating one state from another π5=> a line separating one county from another π§
IOALandIOARβ input/output variables of typeINTEGER, and they are the identifiers of the areas to the left and right, respectively, of the line. (Left and right are defined from the standpoint of a viewer standing at point 1 of the line and looking toward point 2 β so like, imagine you're standing there, that's the whole deal.) The values ofIOALandIOARmay be changed by a knowledgeable user. πNPTSβ an input/output variable of typeINTEGER, and on entry she is the number of points defining the line.NPTSmay be zeroed byMPCHLNto suppress any use of the line by the calling routine. (zero her out and the line simply does not happen, iconic.) πPNTSβ an input/output array, dimensioned2*NPTS, of typeREAL, and she's an array of point coordinates. So:PNTS(1)andPNTS(2)are the latitude and longitude of the first point,PNTS(3)andPNTS(4)the latitude and longitude of the second point, ... andPNTS(2*NPTS-1)andPNTS(2*NPTS)the latitude and longitude of the last point. All values are in degrees. Longitudes are all between-180and+180; no segment crosses the meridian at-180(+180) degrees. β
β¨ C-BINDING DESCRIPTION β¨
The C-binding argument description is the same as the FORTRAN argument description. fr fr, same thing, no notes. π
β¨ USAGE β¨
So here's how she moves: MPCHLN is called by each of the routines MPLNAM, MPLNDM, and MPLNDR just before and just after the processing of each boundary line read from a specified map database. π
A user-supplied version may take action to change various characteristics of the lines. For example:
- the area identifiers to be used for the line can be changed
- the line can be deleted entirely
- and line styles, colors, and widths can be set
like, that's a whole glow-up pipeline, bestie. π β¨
β¨ EXAMPLES β¨
Use the ncargex command to see the following relevant example: mpex11. go look, it's right there. π
β¨ ACCESS β¨
To use the default version of MPCHLN, load the NCAR Graphics libraries ncarg, and ncarg_gks, preferably in that order. (order matters, don't be chaotic.) π§
To supply your own version, just compile it and load it. that's it. main character energy. π
β¨ SEE ALSO β¨
Online: ezmap, ezmap_params, mapaci, mapbla, mapblm, mapdrw, mapeod, mapfst, mapgci, mapgrd, mapgrm, mapgtc, mapgti, mapgtl, mapgtr, mapint, mapiq, mapiqa, mapiqd, mapiqm, mapit, mapita, mapitd, mapitm, maplbl, maplmb, maplot, mappos, maproj, maprs, maprst, mapsav, mapset, mapstc, mapsti, mapstl, mapstr, maptra, maptri, maptrn, mapusr, mapvec, mpfnme, mpgetc, mpgeti, mpgetl, mpgetr, mpglty, mpiaty, mpifnb, mpilnb, mpiola, mpiosa, mpipai, mpipan, mpipar, mpisci, mplnam, mplndm, mplndr, mplnri, mpname, mprset, mpsetc, mpseti, mpsetl, mpsetr, supmap, supcon, ncarg_cbind
β¨ COPYRIGHT β¨
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, bestie. go forth and process those boundary lines. no cap. π
this one came from the UNIX manual pages, dated April 1998, page MPCHLN(3NCARG) β mwah, love her, bye. πππ
π¦ where this page comes from
- epel 9: ncl-devel 6.6.2-59.el9 Β· LicenseRef-Callaway-BSD
- fedora 43: ncl-devel 6.6.2-58.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: ncl-devel 6.6.2-62.fc44 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms