xsf_parser

Parsing for .xsf files. The goal is to extract volumetric data.

The .xsf file format offers a lot of information, we are only interested in the volumetric data for now.

read_xsf(filename)[source]

Read xsf file into numpy array.

Parameters:

filename (string) – filename of xsf file.

Returns:

  • data (numpy.array) – Data from xsf file.

  • meta (dict) – Metadata from xsf file - empty for now, and provided for compatibility reasons.