parq_blockmodel.utils.spatial_encoding

parq_blockmodel.utils.spatial_encoding#

Functions

decode_coordinates

Decode the 64-bit integer or array of 64-bit integers back to the original coordinates.

decode_frame_coordinates

Decode uint64-compatible ids back to xyz-like coordinates using offset+scale.

decode_world_coordinates

Backward-compatible alias for decode_frame_coordinates().

encode_coordinates

Encode the coordinates into a 64-bit integer or an array of 64-bit integers.

encode_frame_coordinates

Encode xyz-like coordinates into uint64-compatible integers using offset+scale quantization.

encode_world_coordinates

Backward-compatible alias for encode_frame_coordinates().

encoded_index_to_multiindex

Convert an encoded integer Index back to a MultiIndex.

get_id_encoding_params

Return (offset_xyz, scale) from a metadata-like encoding payload.

get_world_id_encoding_params

Backward-compatible alias for get_id_encoding_params().

is_integer

multiindex_to_encoded_index

Convert a MultiIndex to an encoded integer Index.