dap4/d4core/src/main/java/dap4/core/util/DapUtil.java
static public List<Slice>
    indexToSlices(Index indices, DapVariable template)
            throws dap4.core.util.DapException
    {
        List<DapDimension> dims = template.getDimensions();
        List<Slice> slices = indexToSlices(indices, dims);
        return slices;
    }
static public List<Slice>
    indexToSlices(Index indices, DapVariable template)
            throws dap4.core.util.DapException
    {
        List<DapDimension> dims = template.getDimensions();
        List<Slice> slices = indexToSlices(indices, dims);
        return slices;
    }
static public List < Slice > indexToSlices ( Index indices , DapVariable template ) throws dap4 . core . util . DapException { List < DapDimension > dims = template . getDimensions ( ) ; List < Slice > slices = indexToSlices ( indices , dims ) ; return slices ; }
Provide a helper function to convert an Index object to
a slice list.

@param indices  indicate value to read
@param template variable template
@return corresponding List<Slice>
@throws DapException
Provide a helper function to convert an Index object to a slice list .