NGGSOG(3NCARG) | NCAR GRAPHICS | NGGSOG(3NCARG) |
NGGSOG - Returns the latitudes and longitudes of six points defining a five-pointed star at a given point on the surface of the globe.
CALL NGGSOG (SLAT,SLON,SRAD,ALAT,ALON)
#include <ncarg/ncargC.h>
void c_nggsog(float slat, float slon, float srad, float *alat,
float *alon)
The C binding argument descriptions are the same as the FORTRAN argument descriptions.
Let C represent (CLAT,CLON), let O represent the center of the globe, and let P represent the end of one point of the star. Then, the angle POC has the magnitude specified by SRAD.
SIN, COS, and TAN are used to generate points representing a star having the desired radius and centered at the the point with latitude 0 and longitude 0. These points are then subjected to two rotations - one that brings the star up to the desired latitude, and another that carries it to the desired longitude.
NGGSOG is intended to be used for relatively small stars marking points of interest on the surface of the globe; using SRAD = 90 degrees is guaranteed to get you into trouble and SRAD < 10 degrees is recommended.
Use the ncargex command to see the following relevant example: cpex10.
To use NGGSOG or c_nggsog, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order.
None.
Online: nggcog(3NCARG), ngritd(3NCARG).
Copyright (C) 1987-2009
University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
March 1993 | UNIX |