MAPGCI(3NCARG)
β¨ MAPGCI β¨
okay bestie, welcome to the NCAR GRAPHICS corner of the manual β this one lives in section 3NCARG and it's literally the glow-up your globe needed π
πΈ NAME πΈ
MAPGCI β gives you back a whole set of points sitting on the shortest great circle route between two points you picked on the globe. it's giving βοΈ but make it math.
π SYNOPSIS π
CALL MAPGCI(ALAT,ALON,BLAT,BLON,NOPI,RLTI,RLNI)
π¦ C-BINDING SYNOPSIS π¦
#include <ncarg/ncargC.h>
void c_mapgci( float alat, float alon, float blat,
float blon, int nopi, float *rlti, float *rlni)
π DESCRIPTION π
ALATandALONβ (input expressions, typeREAL) the latitude and longitude of the point where your great circle route starts. the origin story, if you will π«ΆBLATandBLONβ (input expressions, typeREAL) the latitude and longitude of the point where that great circle route ends. the destination era.NOPIβ (an input expression, typeINTEGER) how many equally-spaced points you want interpolated along the great circle route. you choose the count, queen πRLTIandRLNIβ (output arrays of typeREAL, each dimensioned at leastNOPI) these are the arrays holding the latitudes and longitudes of the points interpolated along the great circle route. each lat/lon pair = one point, no cap. they show up in order of increasing distance along the great circle route. and listen β the positions of the first point and the last point are NOT returned in these arrays. only the interpolated ones. so don't come for me when A and B aren't in there π
π C-BINDING DESCRIPTION π
the C-binding argument descriptions are literally the same as the FORTRAN argument descriptions. same facts, different font. periodt π
β USAGE β
this statement right here:
CALL MAPGCI (ALAT,ALON,BLAT,BLON,NOPI,RLTI,RLNI)
defines the positions of two points, A and B, on the globe, plus the number of equally-spaced points, NOPI, to be interpolated along the great circle route from A to B. the latitudes and longitudes of those interpolated points get returned to the caller in the arrays RLTI and RLNI. simple, clean, iconic β¨
π¨ okay so important: if the points A and B are exactly opposite one another on the globe, the code does not fail β but the direction of the great circle route will be somewhat unpredictable. that's because in that case there is more than one great circle route joining the two points. so it's not a bug, it's just the universe being mysterious π
π₯ EXAMPLES π₯
use the ncargex command to see the following relevant example: cmpgci. go look, it slays.
π ACCESS π
to use MAPGCI or c_mapgci, 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, 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, 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.
and that's the whole page, bestie π«Ά this was MAPGCI(3NCARG) from the UNIX manual, dated March 1993 β yeah she's vintage, she's an icon, she's been serving great circles since before we were born πβ¨
π¦ 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