Defined as:
sdynpy.core.sdynpy_data.data_arrayModule:
sdynpy.core.sdynpy_dataSource: GitHub
Signature¶
def sdynpy.data_array(data_type, abscissa, ordinate, coordinate, comment1='', comment2='', comment3='', comment4='', comment5='')Helper function to create a data array object.
All input arguments to this function are allowed to broadcast to create the final data in the NDDataArray object.
Parameters¶
data_type : FunctionTypes Type of data array that will be created
abscissa : np.ndarray Numpy array specifying the abscissa of the function
ordinate : np.ndarray Numpy array specifying the ordinate of the function
coordinate : CoordinateArray Coordinate for each data in the data array
comment1 : np.ndarray, optional Comment used to describe the data in the data array. The default is ‘’.
comment2 : np.ndarray, optional Comment used to describe the data in the data array. The default is ‘’.
comment3 : np.ndarray, optional Comment used to describe the data in the data array. The default is ‘’.
comment4 : np.ndarray, optional Comment used to describe the data in the data array. The default is ‘’.
comment5 : np.ndarray, optional Comment used to describe the data in the data array. The default is ‘’.
Returns¶
obj : NDDataArray or subclass The constructed NDDataArray (or subclass) object