xdas#
Opening files#
|
Open one or several files as a data array or collection. |
|
Open a dataarray. |
|
Open a multiple file dataset. |
|
Open a directory tree structure as a data collection. |
|
Open a DataCollection from a file. |
|
Open a multiple file DataCollection. |
Data manipulation#
|
Given any number of data arrays, returns new objects with aligned dimensions. |
|
Try to convert given object to a dataarray. |
|
Combine several data arrays by coordinates. |
|
Combine data collections by field along a dimension. |
|
Concatenate data arrays along a given dimension. |
|
Concatenate data arrays along a given dimension. |
|
Concatenate coordinate objects. |
|
Split a data array along a dimension. |
|
Plot the availability of a given dimension in a timeline chart. |
Mathematical and statistical functions#
|
Return the cumulative product of elements along a given dimension. |
|
Return the cumulative sum of elements along a given dimension. |
|
Test whether all elements along a given dimension evaluate to True. |
|
Test whether any element along a given dimension evaluates to True. |
|
Compute the maximum of an array or maximum along an dimension. |
|
Compute the minimum of an array or minimum along an dimension. |
|
Return the indices of the maximum values along an dimension. |
|
Return the indices of the minimum values along an dimension. |
|
Compute the median along the specified dimension. |
|
Compute the range of values along the specified dimension. |
|
Compute the arithmetic mean along the specified dimension. |
|
Compute the product of array elements along the specified dimension. |
|
Compute the standard deviation along the specified dimension. |
|
Compute the sum of array elements along the specified dimension. |
|
Compute the variance along the specified dimension. |
|
Compute the q-th percentile of the data along the specified dimension. |
|
Compute the q-th quantile of the data along the specified dimension. |
|
Compute the weighted average along the specified dimension. |
|
Count the number of non-zero values along the specified dimension. |
|
Calculate the n-th order discrete difference along given axis. |
Data Structures#
DataArray#
|
N-dimensional array with labeled coordinates and dimensions. |
Attributes
The underlying array (numpy, dask, or |
|
The |
|
Tuple of dimension names in axis order. |
|
Shape tuple of the underlying data array. |
|
NumPy dtype of the underlying data array. |
|
Number of dimensions. |
|
Total number of elements. |
|
Dict-like mapping from dimension name to its size. |
|
Total byte size of the underlying data. |
|
Materialised numpy array of all values. |
|
|
|
Label-based indexer; supports |
|
Transposed array with dimension order reversed. |
|
Return the complex conjugate, element-wise. |
|
Return the complex conjugate, element-wise (alias of |
Methods
|
Return |
Return axis number corresponding to dimension in this array. |
|
|
Return a new DataArray selecting indexes along the specified dimension(s). |
|
Return a new DataArray selecting index labels along the specified dimension(s). |
|
Return a new |
|
Return a new |
|
Return a copy of this array. |
|
Return a new DataArray with renamed coordinates, dimensions or a new name. |
|
Assign new coordinates to this object. |
|
Return a new DataArray with swapped dimensions. |
|
Return a new DataArray object with transposed dimensions. |
|
Add an additional dimension at a given axis position. |
Load the data into memory and return a new |
|
Convert to the xarray implementation of the DataArray structure. |
|
Build a |
|
|
Convert a data array into an obspy stream. |
|
Convert an obspy stream into a data array. |
|
Write DataArray contents to a netCDF file. |
|
Lazily read a data array from a NetCDF file. |
Convert the DataArray to a dictionary. |
|
|
Create a DataArray from a dictionary. |
|
Plot a DataArray. |
DataCollection#
Constructor
|
Nested collection of dataarray. |
Attributes
|
Methods
|
Query a given subset from a data collection. |
Return |
|
Return |
|
|
Lazily read a data collection from a NetCDF file. |
DataMapping#
Constructor
|
A Mapping of dataarrays. |
Methods
|
Return a copy of the data collection. |
|
Return |
|
Perform index selection to each data array of the data collection. |
|
Perform labeled selection to each data array of the data collection. |
Load in memory each data array of the data collection. |
|
|
Apply an atom to each data array of the data collection. |
|
Write this |
|
Lazily read a |
DataSequence#
Constructor
|
A collection of dataarrays. |
Methods
|
Return a copy of the data collection. |
|
Return |
|
Perform index selection to each data array of the data collection. |
|
Perform labeled selection to each data array of the data collection. |
Load in memory each data array of the data collection. |
|
|
Apply an atom to each data array of the data collection. |
Convert to an integer-keyed |
|
Build a |
|
|
Write this |
|
Lazily read a |