Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
Loads the entire nexus tree structure into memory. Note that this does not
necessarily load the contents of every dataset within the nexus file into memory,
as some may be ILazyDatasets.
public static int[] estimateChunking(int[] expectedMaxShape,
int dataByteSize,
int[] fixedChunkDimensions,
NexusUtils.ChunkingStrategy strategy)
Estimate suitable chunk parameters based on the expected final size of a dataset
Parameters:
expectedMaxShape - expected final size of the dataset
dataByteSize - size of each element in bytes
fixedChunkDimensions - provided dimensions in a chunk to be kept constant (-1 for no provided chunk)
strategy - strategy to use for estimating
Returns:
chunk estimate
estimateChunking
public static int[] estimateChunking(int[] expectedMaxShape,
int dataByteSize,
NexusUtils.ChunkingStrategy strategy)
Estimate suitable chunk parameters based on the expected final size of a dataset
Parameters:
expectedMaxShape - expected final size of the dataset
dataByteSize - size of each element in bytes
strategy - strategy to use for estimating
Returns:
chunk estimate
estimateChunking
public static int[] estimateChunking(int[] expectedMaxShape,
int dataByteSize,
int[] fixedChunkDimensions)
Estimate suitable chunk parameters based on the expected final size of a dataset
Parameters:
expectedMaxShape - expected final size of the dataset
dataByteSize - size of each element in bytes
fixedChunkDimensions - provided dimensions in a chunk to be kept constant (-1 for no provided chunk)
Returns:
chunk estimate
estimateChunking
public static int[] estimateChunking(int[] expectedMaxShape,
int dataByteSize)
Estimate suitable chunk parameters based on the expected final size of a dataset
Parameters:
expectedMaxShape - expected final size of the dataset
dataByteSize - size of each element in bytes
Returns:
chunk estimate
getAxisNames
public static java.util.List<java.lang.String> getAxisNames(java.lang.String filePath,
java.lang.String nexusPath,
int dimension)
throws java.lang.Exception
Returns names of axes in group at same level as name passed in.
This opens and safely closes a nexus file if one is not already open for this
location.
Parameters:
filePath -
nexusPath - - path to signal dataset
dimension, - the dimension we want the axis for starting with 1
Returns:
Throws:
java.lang.Exception
compareScalarToString
public static int compareScalarToString(java.lang.Object a,
java.lang.String b)
throws java.lang.NumberFormatException
Compare object a as a scalar to String b by first converting b to a type
that matches a.
Throws:
java.lang.NumberFormatException - if b can not be converted to the same type as a
See Also:
Comparable.compareTo(Object)
compareScalars
public static int compareScalars(java.lang.Object a,
java.lang.Object b)
Compares the two scalar objects if they are the same type and Comparable
using their compareTo method, else compares the toString value.
See Also:
Comparable.compareTo(Object)
extractScalarFromDataset
public static java.lang.Object extractScalarFromDataset(java.lang.Object value)
Convert the size == 1 array to a scalar. Works on January data types Dataset
Parameters:
value - a January Dataset is expected
Returns:
the scalar value, or null if no scalar can be
extracted
Append data to a dataset in group node. If data node does not exist then create one. This assumes
that data is of a consistent rank R and will be appended to a shape with rank R+1 along the first
dimension