MAPTRN(3NCARG)
β¨ MAPTRN β¨
okay bestie, so you know how we've been talking about NCAR Graphics? This is MAPTRN, a routine from the NCAR Graphics library (that's the 3NCARG manual, if you're keeping track π
). And like β plot twist β SUPCON is literally just an alternate name for the routine MAPTRN. Same girl, different name. Iconic.
It projects points. That's the whole job. She's a projector. π₯
πΈ NAME πΈ
MAPTRN β projects points, fr fr.
SUPCON</p> is an alternate name for the routine MAPTRN. So if you see SUPCON somewhere, don't panic, it's the same thing wearing a different outfit. π
π¦ SYNOPSIS π¦
CALL MAPTRN (RLAT, RLON, UVAL, VVAL)
π C-BINDING SYNOPSIS π
#include <ncarg/ncargC.h>
void c_maptrn (float rlat, float rlon, float *uval,
float *vval)
β¨ DESCRIPTION β¨
okay so let's get into it, because this part is actually so important:
RLATandRLONβ these are input expressions, of typeREAL.RLATis the latitude andRLONis the longitude of a point on the globe. And listen β there are rules, okay?RLATmust be between-90.and+90., inclusive.RLONmust be between-540.and+540., inclusive. Like, don't try it. The range is the range. π«ΆUVALandVVALβ these are output variables, of typeREAL, and they define the point(UVAL,VVAL)that is the projection in the u/v plane of(RLAT,RLON). And here's the thing: the units ofUVALandVVALdepend on the projection. So don't come for me about units, it's projection-dependent, iykyk.
Now, the β¨special casesβ¨ β because of course there are special cases:
- If the point is not projectable,
UVALis returned equal to1.E12. That's the "nope, can't do it" number. π - If the point is projectable, but outside the boundary of the map (as defined by the last call to
MAPSETand by the value of the parameter'EL'), thenMAPTRNβ unlikeMAPTRAβ still returns its u and v coordinates. Yes, she's generous like that. She's giving main character energy and she's giving you the numbers anyway. π
π C-BINDING DESCRIPTION π
The C-binding argument descriptions are the same as the FORTRAN argument descriptions. No notes. Periodt. π
π EXAMPLES π
Use the ncargex command to see the following relevant examples: cpex03, mpex09.
Like, go look at them, they're right there, they're free. π
π₯ ACCESS π₯
To use MAPTRN or c_maptrn, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β preferably in that order. The order is not a vibe suggestion, bestie, it's the order. π§
π MESSAGES π
See the ezmap man page for a description of all EZMAP error messages and/or informational messages. Everything you need to know lives over there. β¨
π 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, 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, I know, but I promised I wouldn't skip a single one, and I didn't, because that's the kind of friend I am π)
π 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 thing!! πβ¨ this page is from the MAPTRN(3NCARG) manual β UNIX flavour, dated March 1993 β and honestly? she's still slaying all these years later. go project some points bestie, you got this π¦πΈπ
π¦ 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