AACGMConvert
Syntax | ||
int AACGMConvert(double ilat,double ilon,double hgt,double *olat,double *olon,double *r,int flg); | ||
Header | ||
analysis/aacgm.h | ||
Library | ||
aacgm | ||
Description | ||
The The arguments ilat, ilon, and hgt give the input latitude and longitude in degrees, and height of the conversion in kilometers. The latitude and longitude after the conversion are stored at the locations pointed to by the arguments olat and olon. The accuracy of the transformation is measured in terms of how close the conversion came to the unit circle, and ideal conversion being (1.0). This value is stored at the location pointed to by the argument r. The argument flg indicates what kind of transformation should be performed, a value of (0) will convert from geographic to geomagnetic coordinates, and a value of (1) will convert back from geomagnetic to geographic coordinates. | ||
Returns | ||
Returns zero on success. On error, a (-1) is returned. | ||
Errors | ||
On error, a (-1) is returned. | ||
Example | ||
|