MAPIQM(3NCARG)
π MAPIQM π
okay bestie, so this is MAPIQM, and it lives in the NCAR GRAPHICS manual (section 3NCARG, for the record). Think of it as the little "ok we're DONE here" button. β¨
β¨ NAME β¨
MAPIQM β the routine that terminates a string of calls to its bestie routine, MAPITM. it's giving "closing the group chat" energy. π
β¨ SYNOPSIS β¨
CALL MAPIQM (IAMA,XCRA,YCRA,MCRA,IAAI,IAGI,NOGI,ULPR)
π C-BINDING SYNOPSIS π
#include <ncarg/ncargC.h>
void c_mapiqm (int *iama, float *xcra, float *ycra,
int mcra, int *iaai, int *iagi, int nogi,
int (*ulpr)(float *xcra, float *ycra, int *mcra,
int *iaai, int *iagi, int *nogi))
π DESCRIPTION π
okay so here's the whole cast of characters, one by one, no skips:
IAMAβ an input/output array of typeINTEGER, dimensioned exactly as you specified back when you called the AREAS initialization routineARINAM. it's the array holding the area map that the lines drawn byMAPIQMare gonna get masked against. so yeah, it matters. πXCRAandYCRAβ scratch arrays of typeREAL, each dimensionedMCRA.MAPIQMhands these off to the AREAS routineARDRLN, which uses them when it calls your user line-processing routineULPR. they hold the X and Y coordinates of points in the fractional coordinate system defining some portion of the projection of a user-defined polyline on the globe. fancy, right? πMCRAβ an input expression of typeINTEGER, and it's the size of each of the arraysXCRAandYCRA.MCRAmust be at least two. and ngl, for most applications the value100works nicely. that's the vibe. β¨IAAIandIAGIβ scratch arrays of typeINTEGER, each dimensionedNOGI. same deal as before:MAPIQMpasses these to the AREAS routineARDRLN, which uses them when calling your user line-processing routineULPR. they hold area identifier/group identifier pairs for the area containing the polyline fragment defined byXCRAandYCRA. π«ΆNOGIβ an input expression of typeINTEGER, the size of each of the arraysIAAIandIAGI. heads up:NOGImust be greater than or equal to the number of groups of edges placed in the area map inIAMA. don't skimp on it, bestie, it's not the moment. πULPRβ the name of a user-provided line-processing routine. and listen, this name must appear in anEXTERNALstatement in the routine that callsMAPITM, so the compiler and loader know it's the name of a routine to be called, and not just some random variable name. don't skip theEXTERNAL, it's lowkey essential. π₯
πΈ C-BINDING DESCRIPTION πΈ
the C-binding argument descriptions are the same as the FORTRAN argument descriptions. that's it, that's the whole section. matching outfits. iconic. π
π¦ USAGE π¦
here's the rule, and it's simple:
- you must call
MAPITMonce for each point along the line. - after the last call to
MAPITMfor a given line, you must callMAPIQMto signal the end of the line.
that's the whole choreography. MAPITM MAPITM MAPITM β¦ then MAPIQM to close it out. periodt. π
for more info, go check the man pages for the routines MAPIT and MAPITM. they're right there, go be nosy. π
SH EXAMPLES
use the ncargex command to see the following relevant example: cmpitm,
β ACCESS β
to use MAPIQM or c_mapiqm, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β preferably in that order. order matters, bestie, it's giving load-bearing. π«Ά
π SEE ALSO π
Online: ezmap, ezmap_params, mapaci, mapbla, mapblm, mapdrw, mapeod, mapfst, mapgci, mapgrd, mapgrm, mapgtc, mapgti, mapgtl, mapgtr, mapint, mapiq, mapiqa, mapiqd, 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, mplndr, mplnri, mpname, mprset, mpsetc, mpseti, mpsetl, mpsetr, supmap, supcon, ncarg_cbind
Hardcopy: NCAR Graphics Contouring and Mapping Tutorial
that list is long enough to be its own friend group, and honestly? respect. π
π COPYRIGHT π
Copyright (C) 1987-2009 University Corporation for Atmospheric Research The use of this Software is governed by a License Agreement.
β οΈ real talk, bestie: this whole page is the property of the University Corporation for Atmospheric Research, and using the Software is governed by a License Agreement β so read that license, fr fr. no cap.
and that's the whole page, mwah π this little write-up came to you from the UNIX manual, dated March 1993, filed under MAPIQM(3NCARG) β vintage but still slaying. πβ¨π¦
π¦ 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