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 type REAL) is the X coordinate of a point in user coordinates. your x bestie going in πŸ’–
  • PY β€” (an input expression of type REAL) is the Y coordinate of a point in user coordinates. and your y bestie going in πŸ’–
  • IX β€” (an output variable of type INTEGER) is the X coordinate of the point in metacode coordinates. comes back all glowed up as an integer ✨
  • IY β€” (an output variable of type INTEGER) 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 (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 πŸ‘‘