gc_polr

edge_pydb.conversion.gc_polr(ra, dec, ra_gc, dec_gc, pa, inc, reject=89)[source]

Returns galactocentric polar coordinates (radius in arcsec, azimuthal angle in degrees from receding major axis).

Parameters:
rafloat or numpy.array

The RA coordinate(s) to transform, in degrees

decfloat or numpy.array

The DEC coordinate(s) to transform, in degrees

ra_gcfloat

The RA of the galaxy center, in degrees

dec_gcfloat

The DEC of the galaxy center, in degrees

pafloat

The position angle of the galaxy’s receding major axis, in degrees

incfloat

The inclination of the galaxy disk, in degrees (0 = face-on)

rejectfloat

Return NaNs for inclinations larger than this (default=89)

Returns:
pair of floats or numpy.array [radius, azang]