MAPITA(3NCARG)
π MAPITA π
okay so real talk: this is a page from the NCAR Graphics manual, section 3NCARG, and it's all about MAPITA and its little sister MAPIQA. if you've ever wanted to scribble lat/lon lines onto an area map without your pen yeeting itself across the planet, this is your moment. slay. β¨
πΈ NAME πΈ
MAPITA β adds to an area map the projections of lines defined by a series of lat/lon coordinates. that's the whole vibe: you feed it points, it draws lines, area map gets updated. iconic.
π SYNOPSIS π
CALL MAPITA (RLAT,RLON,IFST,IAMA,IGID,IAIL,IAIR)
CALL MAPIQA (IAMA,IGID,IAIL,IAIR)
π¦ C-BINDING SYNOPSIS π¦
#include <ncarg/ncargC.h>
void c_mapita (float rlat, float rlon, int ifst,
int *iama, int igid, int iail, int iair)
void c_mapiqa (int *iama, int igid, int iail, int iair)
β¨ DESCRIPTION β¨
okay bestie, here's the cast of characters, one by one, no skipping π
RLATandRLONβ input expressions, of typeREAL. these are the latitude and longitude of the point where the "pen" is getting moved to. both are in degrees.RLATmust be between-90.and+90., inclusive;RLONmust be between-540.and+540., inclusive. yes, that longitude range is huge. it's giving generous. no cap.IFSTβ an input expression, of typeINTEGER. here's the tea:0β do a "pen-up" move1β do a "pen-down" move only if the distance from the last point to the new point is greater than'MV'plotter units2or greater β do a "pen-down" move regardless of the distance from the last point to the new one
IAMAβ an input/output array of typeINTEGER, dimensioned as specified in a call to the AREAS initialization routineARINAM. it's the area map that the lines sitting inMAPITA's buffer are getting added to. the main character, honestly πIGIDβ an input expression of typeINTEGER. this is the group identifier that gets passed to the AREAS routineAREDAMwhen the lines inMAPITA's buffer are added to the area map inIAMA.IAILβ an input expression of typeINTEGER. the left area identifier, passed to the AREAS routineAREDAMwhen the lines inMAPITA's buffer are added to the area map inIAMA.IAIRβ an input expression of typeINTEGER. the right area identifier, passed to the AREAS routineAREDAMwhen the lines inMAPITA's buffer are added to the area map inIAMA.
π C-BINDING DESCRIPTION π
the C-binding argument descriptions are the same as the FORTRAN argument descriptions. that's it. same energy, different wrapper. fr fr. π«Ά
π₯ USAGE π₯
so the routines MAPITA and MAPIQA let you add lines defined by a set of user-specified latitudes and longitudes to an area map. they attempt to omit non-visible portions of lines and to handle "cross-over", in the same way that MAPIT does. lowkey doing the most, highkey serving.
MAPITA is called like the EZMAP routine MAPIT, but it's got some extra arguments:
CALL MAPITA (RLAT,RLON,IFST,IAMA,IGID,IAIL,IAIR)
the additional arguments are the area map array IAMA, a group identifier IGID, and left and right area identifiers IAIL and IAIR. MAPIQA is called like the EZMAP routine MAPIQ, to terminate a series of calls to MAPITA and to flush the buffers; it has the same additional arguments:
CALL MAPIQA (IAMA,IGID,IAIL,IAIR)
the additional arguments are passed by MAPITA and MAPIQA to the routine AREDAM, in the package named AREAS.
for more info, go see the man page for the routine MAPIT. iykyk π
π EXAMPLES π
use the ncargex command to see the following relevant examples: cmpita, cpex08. go look at them, they're cute.
π ACCESS π
to use MAPITA or c_mapita, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order. do not rearrange them, bestie, order matters here. π
π 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, 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
π COPYRIGHT π
Copyright (C) 1987-2009
University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
heads up bestie: this whole thing is from theNCAR Graphicsmanual, section3NCARGβ theUNIXflavour, dated March 1993. old but gold, and still serving. πβ¨π
bye ily, go draw some lines π¦
π¦ 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