skeleton_keys.layer_alignment.layer_aligned_y_values#
- skeleton_keys.layer_alignment.layer_aligned_y_values(x, y, avg_layer_depths, layer_list, depth_field, gradient_field, snapped_polys_surfs)#
Point depths for a morphology aligned to a set of layer thicknesses.
- Parameters:
x (array (n_points, )) – Array of x-coordinates
y (array (n_points, )) – Array of y-coordinates
avg_layer_depths (dict) – Dictionary of distances from top of layer to pia (in microns)
layer_list (dict) – List of layers
depth_field (xarray DataArray) – Data array of the depth field
gradient_field (xarray DataArray) – Data array of the depth field
snapped_polys_surfs (dict) – Dictionary of surface and layer drawings
- Returns:
y_values – Dictionary of node ids (keys) and layer-aligned depths (values)
- Return type:
array (n_points, )