1FL2INT(3NCARG) NCAR GRAPHICS FL2INT(3NCARG)
2
3
4
6 FL2INT - converts X and Y coordinates from the User Coordinate System
7 to the Metacode Coordinate System.
8
10 Metacode units are no longer used in NCAR Graphics; thus, FL2INT is
11 considered an obsolete routine.
12
13 The current recognized coordinate systems are GKS world coordinates,
14 GKS normalized device coordinates, NCAR Graphics fractional
15 coordinates, and NCAR Graphics user coordinates. See the NCAR Graphics
16 document "NCAR Graphics Fundamentals, UNIX Version" for a description
17 of these coordinate systems.
18
19 FL2INT continues to be provided for compatibility of early NCAR
20 Graphics codes. If you are writing new code, we suggest that you use
21 user coordinates and fractional coordinates. The routines CUFX and
22 CUFY will convert from user coordinates to fractional coordinates.
23 CFUX and CFUY will convert fractional coordinates to user coordinates.
24
25 The following definition of the Metacode Coordinate System is included
26 for the purpose of interpreting and converting codes:
27
28 The metacode coordinates of a point are integers IMX and IMY between 0
29 and 32767 inclusive. The area addressed is a square in a "metacode
30 space" that is usually mapped into a square subset of the addressable
31 area of the plotting device. Metacode coordinates were used in calls
32 to the routine PLOTIT and are returned in calls to FL2INT.
33
35 CALL FL2INT (PX,PY,IX,IY)
36
38 PX (an input expression of type REAL) is the X coordinate of a
39 point in user coordinates.
40
41 PY (an input expression of type REAL) is the Y coordinate of a
42 point in user coordinates.
43
44 IX (an output variable of type INTEGER) is the X coordinate of
45 the point in metacode coordinates.
46
47 IY (an output variable of type INTEGER) is the Y coordinate of
48 the point in metacode coordinates.
49
51 To use FL2INT, load the NCAR Graphics libraries ncarg, ncarg_gks, and
52 ncarg_c, preferably in that order.
53
55 Online: spps, plotit, cmfx, cmfy, cmux, cmuy, kfmx, kfmy, kmpx, kmpy,
56 kpmx, kpmy, kumx, kumy
57
58 Hardcopy: NCAR Graphics Fundamentals, UNIX Version; User's Guide for
59 NCAR GKS-0A Graphics
60
62 Copyright (C) 1987-2007
63 University Corporation for Atmospheric Research
64
65 This documentation is free software; you can redistribute it and/or
66 modify it under the terms of the GNU General Public License as
67 published by the Free Software Foundation; either version 2 of the
68 License, or (at your option) any later version.
69
70 This software is distributed in the hope that it will be useful, but
71 WITHOUT ANY WARRANTY; without even the implied warranty of
72 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
73 General Public License for more details.
74
75 You should have received a copy of the GNU General Public License along
76 with this software; if not, write to the Free Software Foundation,
77 Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
78
79
80
81UNIX March 1993 FL2INT(3NCARG)