int planeindex(string planename)
Returns the index of the plane specified by the parameter, starting at zero.