imas_paraview.util

Functions

cart_to_pol(x, y)

Convert from cartesian to polar coordinates.

create_first_ggd(ids)

Creates and returns the first GGD within IDS.

create_first_grid(ids)

Creates and returns the first grid_ggd within IDS.

find_closest_indices(values_to_extract, ...)

Find indices of the closest values in source_array that are less than or equal to each value in values_to_extract.

format_units(node)

Return the unit of the node surrounded by square brackets.

get_ggd_grid_path(ids_metadata)

Finds the path of the GGD grid node within IDS metadata.

get_ggd_path(ids_metadata)

Finds the path of the GGD node within IDS metadata.

get_grid_ggd(ids[, time, parent_idx])

Returns the GGD grid within IDS at a specific time.

has_imas_core()

Check whether imas-core is available.

int32array(int_list)

Converts a list of ints to a numpy array containing values of type int32.

iter_metadata_tree(meta)

load_vtpc(file_path)

Load a vtkPartitionedDataSetCollection from disk.

load_vtu(file_path)

Load a vtkUnstructuredGrid from a .vtu file and wrap it in a vtkPartitionedDataSetCollection so it is compatible with VTK2GGDConverter.

points_to_vtkpoly(points[, is_closed, is_filled])

Convert a list of 3D points to a vtkPoints and vtkCellArray, which are combined into a single VtkPolyData object.

pol_to_cart(rho, phi)

Convert from polar (or cylindrical) coordinates to cartesian.

vtk_cells_to_nodes(cell_array)

Convert a VTK cell array into a list of node index (1-based) arrays.


Last update: 2026-03-11