dap4/d4cdm/src/main/java/dap4/cdm/CDMUtil.java
static public boolean
    isWhole(List<Range> rangelist, Variable var)
            throws dap4.core.util.DapException
    {
        List<Dimension> dimset = var.getDimensions();
        if(rangelist.size() != dimset.size())
            return false;
        for(int i = 0; i < rangelist.size(); i++) {
            Range r = rangelist.get(i);
            Dimension dim = dimset.get(i);
            if(r.stride() != 1 || r.first() != 0 || r.length() != dim.getLength())
                return false;
        }
        return true;
    }
static public boolean
    isWhole(List<Range> rangelist, Variable var)
            throws dap4.core.util.DapException
    {
        List<Dimension> dimset = var.getDimensions();
        if(rangelist.size() != dimset.size())
            return false;
        for(int i = 0; i < rangelist.size(); i++) {
            Range r = rangelist.get(i);
            Dimension dim = dimset.get(i);
            if(r.stride() != 1 || r.first() != 0 || r.length() != dim.getLength())
                return false;
        }
        return true;
    }
Test a List<Range> against the CDM variable's dimensions
to see if the range list is whole
wrt the dimensions

@param rangelist the set of ucar.ma2.Range
@param var       the cdm var
@result true if rangelist is whole wrt slices; false otherwise.