stumxy(3NCARG)


NAME

   STUMXY - Maps a single point on the streamline from data to user
   coordinate space.

SYNOPSIS

   CALL STUMXY(XDA,YDA,XUS,YUS,IST)

DESCRIPTION

   XDA         (REAL, input): The X coordinate of a point on the
               streamline in data coordinate space.

   YDA         (REAL, input): The Y coordinate of a point on the
               streamline in data coordinate space.

   XUS         (REAL, output): The X coordinate of the point in user
               coordinate space.

   YUS         (REAL, output): The Y coordinate of the point in user
               coordinate space.

   IST         (REAL, output) Status of the mapping operation: 0 indicates
               success, negative values indicate that the mapping failed;
               positive values are reserved and should not be used by the
               implementor of a mapping routine.

USAGE

   STUMXY is a user-modifiable routine provided to support custom mappings
   of the data coordinate space. The user does not invoke it directly.
   Instead, whenever the parameter MAP specifies a mapping not handled by
   Streamlines internally (i.e., when MAP is set to a value other than 0,
   1, or 2), Streamlines calls STUMXY as needed during the process of
   creating a streamline. The default version of STUMXY simply performs an
   identity mapping. In order to implement a custom mapping, you must pick
   a unique mapping code (a positive integer greater than 2), and then
   modify each of the three routines, STUMXY, STUIXY, and STUMTA to
   recognize and respond consistently to the chosen code. In the standard
   distribution of NCAR Graphics, these three routines reside in a single
   file, stumxy.f.  STUMXY maps a point from data to user coordinate
   space, STUIXY inversely maps a point from user to data coordinate
   space, and STUMTA, which is likely to be the most difficult to
   implement, finds the tangent angle of the streamline at a point in NDC
   space.

   STUMXY has access to a common block called STMAP that contains a number
   of variables used to record the current transformation state. In order
   to accommodate a variety of mapping implementations, STMAP provides
   more information than normally required. Consider the values stored in
   STMAP as strictly read-only. One essential member of this common block
   is IMAP, which contains the value currently assigned to the MAP
   parameter.

   In STUMXY, the implementor of a custom mapping needs to add code of the
   form:

        IF (IMAP .EQ. <chosen_map_code>) THEN

            ...map XDA to XUS

            ...map YDA to YUS

            ...if error, set IST to a negative value

            RETURN

        ENDIF

   Note that after the return from STUMXY, Streamlines checks to ensure
   that XUS and YUS are within the current boundaries of the user
   coordinate system.

   When implementing a custom mapping, you may wish to look at the coding
   of the pre-defined mappings (0, identity mapping; 1, Ezmap projections;
   and 2, polar coordinate mapping) in the file stmpxy.f. For these
   mappings, the subroutine STMPXY is the equivalent of STUMXY; it has an
   identical interface and may serve as a model for your implementation.

ACCESS

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

SEE ALSO

   Online: stgetc, stgeti, stgetr, stinit, stream, streamlines,
   streamlines_params, strset, stsetc, stseti, stsetr, stuixy, stumsl,
   stumta, stumxy, ncarg_cbind.

   Hardcopy: NCAR Graphics Fundamentals, UNIX Version

COPYRIGHT

   Copyright (C) 1987-2009
   University Corporation for Atmospheric Research
   The use of this Software is governed by a License Agreement.





Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.





Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.


Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.





Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.


Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.





Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.


Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.