This function converts a length measurement into a stock's internal length group index

getLenGrpIdx(stockName, len)

Arguments

stockName

a string of the stock name

len

the source length

Value

a length group index identifier