MPLNDR(3NCARG)
π MPLNDR β bestie's guide to drawing map boundary lines π
okay so welcome to MPLNDR, a lil routine from the NCAR Graphics manual (that's the 3NCARG section, iykyk) and honestly? it's giving cartographer. it reads a map database and draws boundary lines out of it. that's the whole vibe. πΊοΈβ¨
πΈ NAME πΈ
MPLNDR β reads a specified EZMAP database and draws boundary lines from it. literally that's it, that's the job, and she does it gorgeously π
β¨ SYNOPSIS β¨
CALL MPLNDR (FLNM,ILVL)
π¦ C-BINDING SYNOPSIS π¦
#include <ncarg/ncargC.h>
void c_mplndr (char *flnm, int ilvl)
π DESCRIPTION π
FLNMβ an input expression of type CHARACTER, and she's the name of the database you wanna use. here's the tea on how MPLNDR goes looking for it: first she checks the current working directory for the files of the database you named. if they're not there? no worries bestie, she then checks the NCAR Graphics database directory. also, the database that got created back in 1998 and shipped as part of Version 4.1 of NCAR Graphics is named"Earth..1"β iconic name, no notes π«ΆILVLβ an input expression of type INTEGER, and it picks the level at which the database gets used. the lore:1β land/water boundaries only, the bare minimum, the clean girl aesthetic2β adds continental boundaries (like the one separating Africa from Eurasia, fr fr)3β adds the boundaries of countries4β adds states- and
5? that value will eventually be used to add counties. not yet bestie. someday. π
π C-BINDING DESCRIPTION π
the C-binding argument description is the same as the FORTRAN argument description. same energy, different syntax, we love a consistent queen π
π USAGE π
okay so MPLNDR draws the lines defined by the map database whose name is FLNM. and get this β the EZMAP internal parameter 'DO' is the one deciding whether you get solid lines or dotted lines. she's the main character of this decision.
if EZMAP currently needs initialization, MPLNDR does nothing except read some information from the map database β so that subsequent calls to EZMAPB functions will work properly. she's just prepping the vibes for later, okay? respectful.
the outlines get drawn using calls to MAPIT and MAPIQ. by default, MPLNDR forces the value of the internal parameter 'DL' equal to the value of the internal parameter 'DO', and she also hands the dash package a solid-line dash pattern. here's the breakdown:
- when
'DO'is zero, the outlines get drawn using calls toFRSTDandVECTD, in the dash package β and that gives you solid lines β¨ - when
'DO'is non-zero, the outlines get drawn using calls to the SPPS routinePOINTSβ and that gives you dotted lines π«§
before returning control to you, MAPLOT restores the original value of 'DL' and the original dash pattern. put it back how you found it, that's just manners.
and if you wanna be extra? you can supply your own user version of the routine MPCHLN to change the way in which the outlines are drawn. customize ur life π«
π EXAMPLES π
use the ncargex command to see the following relevant example: tezmpb. go look, it eats π₯
π ACCESS π
to use MPLNDR or c_mplndr, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β preferably in that order. order matters bestie, don't freestyle it π
πΈ 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, mpchln, mpfnme, mpgetc, mpgeti, mpgetl, mpgetr, mpglty, mpiaty, mpifnb, mpilnb, mpiola, mpiosa, mpipai, mpipan, mpipar, mpisci, mplnam, mplndm, mplnri, mpname, mprset, mpsetc, mpseti, mpsetl, mpsetr, supmap, supcon, ncarg_cbind
(the whole friend group, honestly. a whole squad of map routines π«Ά)
π 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 page bestie!! slay π this was the UNIX manual, April 1998 edition, and the whole thing is filed under MPLNDR(3NCARG). go draw some boundaries, ily, mwah ππ¦β¨
π¦ 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