Main Page Class Hierarchy Compound List File List Compound Members File Members

# geo_to_km.c File Reference

`#include <stdio.h>`
`#include <math.h>`

Go to the source code of this file.

## Defines
#define | PI 3.14159265358979323846
## Functions
int | geo_to_km (double lat1, double lon1, double lat2, double lon2, double *dist, double *azm)
int | geo_to_km_deg (double lat1, double lon1, double lat2, double lon2, double *dist, double *xdeg, double *azm)
| distaz_geo (olat, olon, dist, azimuth, lat, lon) double olat
## Variables
| olon
| azimuth
| dist
* | lat
* | lon

## Define Documentation

#define PI 3.14159265358979323846

| Definition at line 5 of file geo_to_km.c. Referenced by cftrig(), convertWave(), fftrig(), ftaper(), geo_to_km(), geo_to_km_deg(), gma(), makeInt(), makePsa(), respLen(), response(), and taper().

## Function Documentation

distaz_geo | ( | olat | ,
|  | olon | ,
|  | dist | ,
|  | azimuth | ,
|  | lat | ,
|  | lon |
| ) |

int geo_to_km | ( | double | lat1,
|  | double | lon1,
|  | double | lat2,
|  | double | lon2,
|  | double * | dist,
|  | double * | azm
| ) |

| Definition at line 7 of file geo_to_km.c. References dist, and PI. Referenced by SACPABase_write_stainfo().

int geo_to_km_deg | ( | double | lat1,
|  | double | lon1,
|  | double | lat2,
|  | double | lon2,
|  | double * | dist,
|  | double * | xdeg,
|  | double * | azm
| ) |

| Definition at line 187 of file geo_to_km.c. References dist, and PI.

## Variable Documentation

azimuth

| Definition at line 414 of file geo_to_km.c.

dist

| Definition at line 414 of file geo_to_km.c. Referenced by geo_to_km(), geo_to_km_deg(), and SACPABase_write_stainfo().

* lat

| Definition at line 414 of file geo_to_km.c. Referenced by FlEngLookup(), and read_glevt_sumcard().

* lon

| Definition at line 414 of file geo_to_km.c. Referenced by read_glevt_sumcard().

olon

| Definition at line 414 of file geo_to_km.c.