spine.data.larcv.Meta

spine.data.larcv.Meta

Methods

__init__(lower, upper, size, count)

as_dict([lite, include_derived])

Returns the data class as dictionary of (key, value) pairs.

attr_names([include_derived, ...])

Return the names of valid attributes on this data class.

from_dict(cls_dict)

Builds and returns an object of the class from a dictionary of attributes.

from_larcv(meta)

Factory function for creating ImageMeta from LArCV metadata.

index(coords)

Unique pix associated with individual axis indexes.

inner_mask(coords)

Computes a boolean mask of which coordinates are within the image bounds.

scalar_dict([attrs, lengths, lite])

Returns the data class attributes as a dictionary of scalars.

set_precision([precision])

Casts all the vector attributes to a different precision.

shift_indexes(shifts)

Apply offsets to index attributes in place.

to_cm(coords[, center])

Converts pixel coordinates to detector coordinates in cm.

to_px(coords[, floor])

Converts detector coordinates in cm to pixel coordinates.

value_with_units(attr)

Fetch an attribute value with its documented units.

Attributes

dimension

Number of dimensions in the image.

enum_attrs

Fetches HDF5-friendly enumerator descriptors for enum-backed fields.

enum_dicts

Fetches the dictionary of enumerated attributes and their enumerator descriptors.

enum_values

Fetches reverse enum lookups from stored values to symbolic names.

field_units

Fetches the documented units for each field.

index_attrs

Return the tuple of index-bearing attributes.

index_multipliers

Get the index multipliers for converting between pixel coordinates and unique pixel indices.

num_elements

Total number of pixel in the image.

lower

upper

size

count

alias of ImageMeta3D