public class ZarrUtils extends Object
| Constructor and Description |
|---|
ZarrUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getDataFileName(String filePath)
Get name of an file within a Zarr object, i.e.
|
static String |
getObjectNameFromPath(String filePath)
Get the name of the current Zarr object (variable or group)
Defined as the name of the current directory
|
static String |
getParentGroupNameFromPath(String filePath,
String rootPath)
Get the name of the parent Group of an object
Defined as the name of the directory two level up
|
static int |
subscriptsToIndex(int[] subs,
int[] nChunks)
Converts subscripted chunk number to a flat index
|
static String |
trimLocation(String location)
Remove characters outside logical filepath, e.g.
|
public static int subscriptsToIndex(int[] subs,
int[] nChunks)
subs - - chunk index in each dimensionnChunks - number of chunks per dimensionpublic static String getDataFileName(String filePath)
filePath - public static String getObjectNameFromPath(String filePath)
filePath - public static String getParentGroupNameFromPath(String filePath, String rootPath)
filePath -