FL2INT(3NCARG)
π FL2INT π
okay bestie, so this is a page from the NCAR Graphics manual β it's FL2INT(3NCARG) β and it's all about turning your cute little X and Y coordinates from the User Coordinate System into the Metacode Coordinate System. yes queen, coordinate conversions, we love a glow-up β¨
πΈ NAME πΈ
FL2INT β converts X and Y coordinates from the User Coordinate System to the Metacode Coordinate System. literally its whole job π
π STATUS π
ngl bestie, this one's a bit of a fossil. Metacode units are no longer used in NCAR Graphics, so FL2INT is considered an obsolete routine. not me showing up to the party after everyone left π
The coordinate systems that are currently recognized are:
- GKS world coordinates
- GKS normalized device coordinates
- NCAR Graphics fractional coordinates
- NCAR Graphics user coordinates
For the full tea on these coordinate systems, go read the NCAR Graphics document "NCAR Graphics Fundamentals, UNIX Version" π«Ά
FL2INT is still hanging around for compatibility with early NCAR Graphics codes. If you're writing new code, we suggest you use user coordinates and fractional coordinates instead. The routines CUFX and CUFY will convert from user coordinates to fractional coordinates. And CFUX and CFUY will convert fractional coordinates to user coordinates. slay, that's your modern pipeline π
The following definition of the Metacode Coordinate System is included so you can interpret and convert codes:
The metacode coordinates of a point are integers IMX and IMY between 0 and 32767 inclusive. The area addressed is a square in a "metacode space" that is usually mapped into a square subset of the addressable area of the plotting device. Metacode coordinates were used in calls to the routine PLOTIT and are returned in calls to FL2INT. so that's the whole vibe of the system, no cap π¦
β¨ SYNOPSIS β¨
CALL FL2INT (PX,PY,IX,IY)
π DESCRIPTION π
PXβ (an input expression of typeREAL) is the X coordinate of a point in user coordinates. your x bestie going in πPYβ (an input expression of typeREAL) is the Y coordinate of a point in user coordinates. and your y bestie going in πIXβ (an output variable of typeINTEGER) is the X coordinate of the point in metacode coordinates. comes back all glowed up as an integer β¨IYβ (an output variable of typeINTEGER) is the Y coordinate of the point in metacode coordinates. same energy, y-flavored β¨
π ACCESS π
To use FL2INT, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β preferably in that order. yes, order matters, don't be chaotic about it π
π₯ SEE ALSO π₯
Online: spps, plotit, cmfx, cmfy, cmux, cmuy, kfmx, kfmy, kmpx, kmpy, kpmx, kpmy, kumx, kumy
Hardcopy: NCAR Graphics Fundamentals, UNIX Version; User's Guide for NCAR GKS-0A Graphics
π 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! every flag, every number, every routine name β all here, all intact, no crumbs left behind π
mwah π this was the UNIX version, dated March 1993, and yes it's still filed under FL2INT(3NCARG) β iconic behavior honestly π
π¦ 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