Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Function readArray

    • Read a whole array, or a slice selection of it, into a typed array.

      Type Parameters

      • D extends DataType
      • Store extends Readable

      Parameters

      • array: Array<D, Store>

        Opened zarr array.

      • Optionalselection: Slice[]

        Per-dimension slice selection; omit to read the whole array.

      • Optionaloptions: GetOptions

        Get options, e.g. an abort signal built by abortOptions.

      Returns Promise<{ data: TypedArray<D>; shape: number[]; stride: number[] }>

      The decoded data with the selection's shape and stride.