MPIPAI(3NCARG)

✨ MPIPAI β€” the "is this place inside that place" bestie detector ✨

NCAR GRAPHICS Β· manual page MPIPAI(3NCARG) Β· yes we're in the FORTRAN/C corner of the NCAR universe and it's lowkey iconic πŸ’…


🌸 NAME 🌸

MPIPAI β€” okay so picture this: you've got two area identifiers, both from whatever database was last read by the EZMAPB routines MPLNAM, MPLNDM, MPLNDR, and MPLNRI. You hand those two IDs to this function and it gives you back a non-zero value if and only if the first area is a part of the second. That's it. That's the whole vibe. 🫢


🌈 SYNOPSIS 🌈

IPRT=MPIPAI(IAIN,IAIP)

πŸ¦‹ C-BINDING SYNOPSIS πŸ¦‹

#include <ncarg/ncargC.h>

int c_mpipai (int iain, int iaip)

πŸ’– DESCRIPTION πŸ’–

  • IAIN β€” an input expression of type INTEGER, specifying the area identifier of a particular area of interest. (She's the one we're asking about, bestie. πŸ‘‘)
  • IAIP β€” an input expression of type INTEGER, specifying the area identifier of a second area of interest. (She's the potential container. The motherland, if you will. 🌍)

✨ C-BINDING DESCRIPTION ✨

The C-binding argument description is the same as the FORTRAN argument description. No notes, no drama, no extra lore. Same energy, different language. 😌


πŸ’… USAGE πŸ’…

So the statement

IPRT=MPIPAI(IAIN,IAIP)

sets IPRT non-zero if and only if the area having area identifier IAIN is a part of the area having area identifier IAIP.

Not me about to give you the most iconic geography example ever conceived 🏝️ β€” say IMAD is the area identifier of the little island in Lake Superior called "Lake Madeline", ICUS is the area identifier of the area called 'Conterminous US', and IRUS is the area identifier of the area called 'Russia'. Then:

  • MPIPAI(IMAD,ICUS) β†’ has a non-zero value. She's in there. Slay. βœ…
  • MPIPAI(IMAD,IRUS) β†’ does not. Different continent, babes. πŸ’€

πŸŽ€ EXAMPLES πŸŽ€

None. Literally none. The manpage said what it said and I respect the honesty. πŸ™ˆ


πŸ”₯ ACCESS πŸ”₯

To use MPIPAI or c_mpipai, 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, mpipan, mpipar, mpisci, mplnam, mplndm, mplndr, mplnri, mpname, mprset, mpsetc, mpseti, mpsetl, mpsetr, supmap, supcon, ncarg_cbind

(That's the whole squad. Go read them all, iykyk. πŸ‘‘)


Copyright (C) 1987-2009 University Corporation for Atmospheric Research The use of this Software is governed by a License Agreement.


Heads up bestie: that License Agreement is real and it is governing the use of this Software. Not optional. Read it. 🫢

kisses from the UNIX manual, dated <b>April 1998</b>, signed MPIPAI(3NCARG) πŸ’‹βœ¨ β€” go check if your island is part of your continent, ily, bye!! πŸ¦‹πŸ’–