imas.backends.netcdf.nc2ids.NC2IDS¶
- class imas.backends.netcdf.nc2ids.NC2IDS(group: Group, ids: IDSToplevel, ids_metadata: IDSMetadata, nbc_map: NBCPathMap | None)¶
Bases:
objectClass 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 that all variables in the netCDF Group exist and match the DD.
Attributes
NetCDF Group that the IDS is stored in.
IDS to store the data in.
Metadata of the IDS in the DD version that the data is stored in
Path map for implicit DD conversions.
NetCDF related metadata.
List of variable names stored in the netCDF group.
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.
- variables¶
List of variable names stored in the netCDF group.