NGGCOG(3NCARG) | NCAR GRAPHICS | NGGCOG(3NCARG) |
NGGCOG - Returns the latitudes and longitudes of a set of points approximating a circle at a given point on the surface of the globe.
CALL NGGCOG (CLAT,CLON,CRAD,ALAT,ALON,NPTS)
#include <ncarg/ncargC.h>
void c_nggcog(float clat, float clon, float crad, float *alat,
float *alon, int npts)
The C binding argument descriptions are the same as the FORTRAN argument descriptions.
Let C represent (CLAT,CLON) and let O represent the center of the globe. The circle is the set of all points P on the globe such that the angle POC is of the size specified by CRAD.
SIN and COS are used to generate points representing a circle having the desired radius and centered at the North Pole. These points are then subjected to two rotations - one that brings the circle down to the desired latitude, and another that carries it to the desired longitude.
Use the ncargex command to see the following relevant example: cpex10.
To use NGGCOG or c_nggcog, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order.
None.
Online: nggsog(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 |