Getter for the dimensions of an array directed along dir where data would be located on data_loc
dir
data_loc
mesh_t