dap4/d4cdm/src/main/java/dap4/cdm/CDMUtil.java
static public List<Slice>
    createSlices(List<Range> rangelist)
            throws dap4.core.util.DapException
    {
        List<Slice> slices = new ArrayList<Slice>(rangelist.size());
        for(int i = 0; i < rangelist.size(); i++) {
            Range r = rangelist.get(i);
            // r does not store last
            int stride = r.stride();
            int first = r.first();
            int n = r.length();
            int stop = first + (n * stride);
            Slice cer = new Slice(first, stop - 1, stride);
            slices.add(cer);
        }
        return slices;
    }
static public List<Slice>
    createSlices(List<Range> rangelist)
            throws dap4.core.util.DapException
    {
        List<Slice> slices = new ArrayList<Slice>(rangelist.size());
        for(int i = 0; i < rangelist.size(); i++) {
            Range r = rangelist.get(i);
            // r does not store last
            int stride = r.stride();
            int first = r.first();
            int n = r.length();
            int stop = first + (n * stride);
            Slice cer = new Slice(first, stop - 1, stride);
            slices.add(cer);
        }
        return slices;
    }
Convert a list of ucar.ma2.Range to a list of Slice
More or less the inverst of create CDMRanges

@param rangelist the set of ucar.ma2.Range
@result the equivalent list of Slice