xdas.DataSequence#

class xdas.DataSequence(data, name=None)[source]#

A collection of dataarrays.

A data sequence is a list whose values are dataarray objects.

__init__(data, name=None)[source]#

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 True if other is a DataSequence with identical elements.

extend(iterable, /)

Extend list by appending elements from the iterable.

from_mapping(data)

Build a DataSequence from the values of a DataMapping.

from_netcdf(fname[, group])

Lazily read a DataSequence from 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 True if this is a DataMapping.

issequence()

Return True if this is a DataSequence.

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.

to_mapping()

Convert to an integer-keyed DataMapping.

to_netcdf(fname[, mode, group, virtual, ...])

Write this DataSequence to a NetCDF file by converting to a mapping first.

Attributes

empty

True if the collection contains no elements.

fields

Ordered, deduplicated tuple of node names at this level and its immediate children.