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 Morton/Z-order ids back to xyz-like coordinates using offset+scale.

decode_world_coordinates

Alias for decode_frame_coordinates() for global spatial identifiers.

encode_coordinates

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

encode_frame_coordinates

Encode xyz-like coordinates with quantization + 3D Morton/Z-order bit interleaving.

encode_world_coordinates

Alias for encode_frame_coordinates() for global spatial identifiers.

encoded_index_to_multiindex

Convert an encoded integer Index back to a MultiIndex.

get_id_encoding_params

Return (offset_xyz, scale_xyz, axis_bits_xyz) from encoding metadata.

get_world_id_encoding_params

Alias for get_id_encoding_params().

is_integer

multiindex_to_encoded_index

Convert a MultiIndex to an encoded integer Index.