xdas.DataSequence#
- class xdas.DataSequence(data, name=None)[source]#
A collection of dataarrays.
A data sequence is a list whose values are dataarray objects.
Methods
__init__(data[, name])append(object, /)Append object to the end of the list.
clear()Remove all items from list.
copy([deep])Return a copy of the data collection.
count(value, /)Return number of occurrences of value.
equals(other)Return
Trueif other is aDataSequencewith identical elements.extend(iterable, /)Extend list by appending elements from the iterable.
from_mapping(data)Build a
DataSequencefrom the values of aDataMapping.from_netcdf(fname[, group])Lazily read a
DataSequencefrom a NetCDF file.index(value[, start, stop])Return first index of value.
insert(index, object, /)Insert object before index.
isel([indexers])Perform index selection to each data array of the data collection.
ismapping()Return
Trueif this is aDataMapping.issequence()Return
Trueif this is aDataSequence.load()Load in memory each data array of the data collection.
map(atom)Apply an atom to each data array of the data collection.
pop([index])Remove and return item at index (default last).
query([indexers])Query a given subset from a data collection.
remove(value, /)Remove first occurrence of value.
reverse()Reverse IN PLACE.
sel([indexers, method, endpoint])Perform labeled selection to each data array of the data collection.
sort(*[, key, reverse])Sort the list in ascending order and return None.
Convert to an integer-keyed
DataMapping.to_netcdf(fname[, mode, group, virtual, ...])Write this
DataSequenceto a NetCDF file by converting to a mapping first.Attributes
emptyTrueif the collection contains no elements.fieldsOrdered, deduplicated tuple of node names at this level and its immediate children.