Added function to access variables directly as 3-D numpy array (get_np_array)