WINDSTR
Name
windstr
Purpose (one Line Only)
Convert a wind direction angle to a string name (or back).
Description
Category
Miscellaneous
Calling Sequence
wname = windstr(wdir)
Inputs
wdir - Wind direction in degrees, scalar or vector
if numbers are provided, these are converted to strings
if strings are provided, they are converted to integers
Optional Input Parameters
Keyword Input Parameters
Outputs
return value is the name of the wind direction (string) or the numeric
value depending in the input.
Keyword Output Parameters
Common Blocks
Side Effects
Restrictions
Note that the names are coarser than numbers. If you start with numbers,
convert to names and then back to numbers you probably won't get the same
answer.
Procedure
Modification History
Written by Marc W. Buie, Lowell Observatory, 2005/03/26
2008/02/03, MWB, changed to allow reverse transformation.