Function

NumCosmoMathutil_great_circle_distance

Declaration [src]

gdouble
ncm_util_great_circle_distance (
  gdouble ra1,
  gdouble dec1,
  gdouble ra2,
  gdouble dec2
)

Description [src]

Compute the great circle distance (or separation, as defined in astropy) between poistion 1 (ra1, dec1) and position 2 (ra2, dec2). See Great-circle distance, in particular the Vincenty equation (implemented here). The input coordinates ((ra1, dec1), (ra2, dec2)) must be given in decimal degrees.

Parameters

ra1

Type: gdouble

Right ascension of object 1.

dec1

Type: gdouble

Declination of object 1.

ra2

Type: gdouble

Right ascension of object 2.

dec2

Type: gdouble

Declination of object 2.

Return value

Type: gdouble

The great circle distance in decimal degrees.