Scroll to navigation

FL2INT(3NCARG) NCAR GRAPHICS FL2INT(3NCARG)

NAME

FL2INT - converts X and Y coordinates from the User Coordinate System to the Metacode Coordinate System.

STATUS

Metacode units are no longer used in NCAR Graphics; thus, FL2INT is considered an obsolete routine.

The current recognized coordinate systems are GKS world coordinates, GKS normalized device coordinates, NCAR Graphics fractional coordinates, and NCAR Graphics user coordinates. See the NCAR Graphics document "NCAR Graphics Fundamentals, UNIX Version" for a description of these coordinate systems.

FL2INT continues to be provided for compatibility of early NCAR Graphics codes. If you are writing new code, we suggest that you use user coordinates and fractional coordinates. The routines CUFX and CUFY will convert from user coordinates to fractional coordinates. CFUX and CFUY will convert fractional coordinates to user coordinates.

The following definition of the Metacode Coordinate System is included for the purpose of interpreting and converting 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.

SYNOPSIS

CALL FL2INT (PX,PY,IX,IY)

DESCRIPTION

(an input expression of type REAL) is the X coordinate of a point in user coordinates.
(an input expression of type REAL) is the Y coordinate of a point in user coordinates.
(an output variable of type INTEGER) is the X coordinate of the point in metacode coordinates.
(an output variable of type INTEGER) is the Y coordinate of the point in metacode coordinates.

ACCESS

To use FL2INT, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order.

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.

March 1993 UNIX