static public List < Slice > offsetToSlices ( long offset , DapVariable template ) throws DapException { List < DapDimension > dims = template . getDimensions ( ) ; long [ ] dimsizes = DapUtil . getDimSizes ( dims ) ; return indexToSlices ( offsetToIndex ( offset , dimsizes ) , template ) ; }
Provide a helper function to convert an offset to a slice list .