66 if os.environ.get(
'LIBDIR')
is not None:
67 sys.path.append(os.environ[
'LIBDIR'])
76 name =
"Example-01-python.hdf5",
77 mode = ioda.Engines.BackendCreateModes.Truncate_If_Exists)
89 g1 = grpFromFile.create(
'g1')
90 g2 = grpFromFile.create(
"g2")
97 g8 = g6.create(
"g7/g8")
110 if g1.exists(
'g3') !=
True:
111 raise Exception(
"g3 does not exist in /g1")
115 if g1.exists(
'g3/g4') !=
True:
116 raise Exception(
"g1/g3/g4 does not exist")
127 if len(g3.list()) != 1:
128 raise Exception(
"Wrong size for g3!")
130 if len(g4.list()) != 2:
131 raise Exception(
"Wrong number of children in g4!")
139 opened_g3 = g1.open(
"g3")
140 opened_g6 = opened_g3.open(
"g4/g6")
IODA_DL Group createFile(const std::string &filename, BackendCreateModes mode, HDF5_Version_Range compat=defaultVersionRange())
Create a ioda::Group backed by an HDF5 file.