getEffDims function

Extract effective dimensions