Skip to content

DataArray subset #21

Open
Open

Description

@peendebak

At the moment there is no functionality to make a subset of a DataSet or DataArray, e.g. if data have a DataSet with a 2D data array amplitude and setpoint arrays x, y one should be able to do

subdataset = dataset.subset('amplitude', 0:10, 0:30) 

assert(subdataset.x.size==10)
assert(subdataset.y.shape==(10, 30) )

Some questions

  • Which notation do we want to use?
  • Do we copy the metadata, or just create an empty metadata?

Activity

  1. AdriaanRol commented on Sep 7, 2016

    @AdriaanRol

    @peendebak I think this is indeed an important feature, to answer your qeustions.

    1. I don't know what notation to use, also keep in mind that we may want this to support more abstract operations than just taking one array slicing it.
    2. I'd say the metadata should be copied, potentially with the addition of referencing the original file and the commands used to subset it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions