The "wcs" Package

These routines are meant to provide support for Astronomical sky-projections. NOTE: THIS PACKAGE IS WORK IN PROGRESS. THE INTERFACE MAY CHANGE IN THE NEXT RELEASE, POSSIBLY WITHOUT NOTICE.

Library: karma
Link With: -lkarma

Functions

wcs_astro_setupSetup for Astronomical Sky Co-ordinate projections.
wcs_astro_destroyDestroy KwcsAstro object.
wcs_astro_transformTransform between linear and projected co-ordinates.
wcs_astro_transform3Transform between linear and projected co-ordinates.
wcs_astro_format_raFormat a Right Ascension value into a string.
wcs_astro_format_decFormat a Declination value into a string.
wcs_astro_format_velFormat a velocity value into a string.
wcs_astro_formatFormat a value.
wcs_astro_format_extraFormat extra information.
wcs_format_allTransform and format all available information.


Functions


KwcsAstro wcs_astro_setup (CONST packet_desc *pack_desc, CONST char *packet)

Setup for Astronomical Sky Co-ordinate projections.

Parameters:

Returns: A KwcsAstro object on success, else NULL.
Multithreading Level: Unsafe


void wcs_astro_destroy (KwcsAstro ap)

Destroy KwcsAstro object.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


void wcs_astro_transform (KwcsAstro ap, unsigned int num_coords, double *ra, flag ra_to_linear, double *dec, flag dec_to_linear, double *vel, flag vel_to_linear, unsigned int num_restr, CONST char **restr_names, CONST double *restr_values)

Transform between linear and projected co-ordinates.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


void wcs_astro_transform3 (KwcsAstro ap, unsigned int num_coords, CONST char *name0, double *coords0, flag to_lin0, CONST char *name1, double *coords1, flag to_lin1, CONST char *name2, double *coords2, flag to_lin2, unsigned int num_restr, CONST char **restr_names, CONST double *restr_values)

This routine will convert up to three arrays of co-ordinates using an astronomical projection system. The co-ordinate arrays are named. If a co-ordinate array is not defined the co-ordinates are unchanged.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


void wcs_astro_format_ra (char *string, double ra)

Format a Right Ascension value into a string.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


void wcs_astro_format_dec (char *string, double dec)

Format a Declination value into a string.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


void wcs_astro_format_vel (KwcsAstro ap, char *string, double vel)

Format a velocity value into a string.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


void wcs_astro_format (KwcsAstro ap, CONST char *dim_name, char string[STRING_LENGTH], double value)

Format a value.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


void wcs_astro_format_extra (KwcsAstro ap, char string[STRING_LENGTH])

Format extra information.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


void wcs_format_all (KwcsAstro ap, char coord_string[STRING_LENGTH], CONST char *name0, double coord0, CONST char *name1, double coord1, CONST char *name2, double coord2, unsigned int num_restr, CONST char **restr_names, CONST double *restr_values, char other_string[STRING_LENGTH])

This routine will transform and format all available information. The data is transformed from linear to non-linear values.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


Contact: Richard Gooch
Web Development: Ariel Internet Services