cdds_scale - retrieve units conversion scale factors

SYNOPSIS

#include "cdds.h"

double cdds_scale(out, in);

const char *out
const char *in

DESCRIPTION

cdds_scale retrieves the scale factor needed to convert from in units to out units. For time conversion units can be "sec","msec","usec","nsec" or of the form "xxx sec" where "xxx" is the number of seconds which can be any integer or floating point value. For distance conversions, units can be "meters" or "feet".

EXAMPLES

float scale, scale2;
const char units[100];

cdds_scanf("units.axis(1)","%s", units);
scale = cdds_scale("meters",units);

scale2 = cdds_scale("feet","meters");
    

AUTHOR

R. L. Selzler, EPTG (Oct 1995)