MAPTRN(3NCARG)
π« MAPTRN β it's giving "project points" β¨
okay bestie, welcome to MAPTRN from the NCAR GRAPHICS manual, section 3NCARG. this is the little routine that takes a spot on the globe and tells you where it lands in the u/v plane. lowkey iconic.
also!! heads up: SUPCON is an alternate name for the routine MAPTRN. same routine, two names, main character energy fr fr. π«Ά
β¨ 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 π
so here's the tea on the arguments:
RLATandRLONβ these are input expressions, typeREAL, and they're the latitude and longitude (respectively) of a point on the globe.RLATmust be between-90.and+90., inclusive.RLONmust be between-540.and+540., inclusive. no vibes-based out-of-range values, bestie, the range is the range. π€UVALandVVALβ these are output variables, typeREAL, and together they define the point(UVAL,VVAL)which is the projection of(RLAT,RLON)in the u/v plane. the units ofUVALandVVALdepend on the projection, so don't come for them expecting one universal unit. π
and now the important bit, listen up: if the point is not projectable,UVALis returned equal to1.E12. if the point is projectable but sits outside the boundary of the map (as defined by the last call toMAPSETand by the value of the parameter'EL'), thenMAPTRNβ unlikeMAPTRAβ still returns its u and v coordinates. yes, really. she's generous like that. β¨
πΈ C-BINDING DESCRIPTION πΈ
the C-binding argument descriptions are the same as the FORTRAN argument descriptions. that's it, that's the section. copy-paste but make it C. π
π₯ EXAMPLES π₯
use the ncargex command to see the following relevant examples: cpex03, mpex09, bnchmk.
go look at them, they ate. π
π ACCESS π
to use MAPTRN or c_maptrn, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β preferably in that order. order matters, don't be chaotic about it. π§
π MESSAGES π
see the ezmap man page for a description of all EZMAP error messages and/or informational messages. if something's yelling at you, that's where the answers live. π
π 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 and she knows it. bookmark it, iykyk. π)
π COPYRIGHT π
Copyright (C) 1987-2009 University Corporation for Atmospheric Research The use of this Software is governed by a License Agreement.
okay and that's the whole page!! this was MAPTRN(3NCARG) from the NCAR GRAPHICS manual, and the footer said UNIX, March 1993. periodt. go project some points, bestie. π¦πβ¨
π¦ 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