ENVI_TRANSLATE_PROJECTION_UNITS
ENVI Classic supports a number of different projection units. This function translates between the projection units string and the projection units integer value.
Syntax
Result = ENVI_TRANSLATE_PROJECTION_UNITS(Val)
Arguments
Val
Val can be either an integer or a string. If Val is an integer, the function returns the string-format description of the projection units. If Val is a string, the function returns the integer code describing the projection units.
Because additional unit types may be added in future releases of ENVI Classic, we strongly recommend that you use string descriptors rather than integer descriptors when referring to projection units, as shown in the following example.
Example
units = envi_translate_projection_units('Meters')
API Version
4.2