imas.backends.netcdf.nc2ids.NC2IDS

class imas.backends.netcdf.nc2ids.NC2IDS(group: Group, ids: IDSToplevel, ids_metadata: IDSMetadata, nbc_map: NBCPathMap | None)

Bases: object

Class responsible for reading an IDS from a NetCDF group.

__init__(group: Group, ids: IDSToplevel, ids_metadata: IDSMetadata, nbc_map: NBCPathMap | None)

Initialize NC2IDS converter.

Parameters:
group: Group

NetCDF group that stores the IDS data.

ids: IDSToplevel

Corresponding IDS toplevel to store the data in.

ids_metadata: IDSMetadata

Metadata corresponding to the DD version that the data is stored in.

nbc_map: NBCPathMap | None

Path map for implicit DD conversions.

Methods

__init__(group, ids, ids_metadata, nbc_map)

Initialize NC2IDS converter.

run(lazy)

Load the data from the netCDF group into the IDS.

validate_variables()

Validate that all variables in the netCDF Group exist and match the DD.

Attributes

group

NetCDF Group that the IDS is stored in.

ids

IDS to store the data in.

ids_metadata

Metadata of the IDS in the DD version that the data is stored in

nbc_map

Path map for implicit DD conversions.

ncmeta

NetCDF related metadata.

variables

List of variable names stored in the netCDF group.

homogeneous_time

True iff the IDS time mode is homogeneous.

group

NetCDF Group that the IDS is stored in.

homogeneous_time

True iff the IDS time mode is homogeneous.

ids

IDS to store the data in.

ids_metadata

Metadata of the IDS in the DD version that the data is stored in

nbc_map

Path map for implicit DD conversions.

ncmeta

NetCDF related metadata.

run(lazy: bool) None

Load the data from the netCDF group into the IDS.

validate_variables() None

Validate that all variables in the netCDF Group exist and match the DD.

variables

List of variable names stored in the netCDF group.


Last update: 2026-01-28