maximilianherde
commited on
Commit
•
6b676ca
1
Parent(s):
56f292a
Update assemble_data.py
Browse files- assemble_data.py +2 -2
assemble_data.py
CHANGED
@@ -35,11 +35,11 @@ def assemble_data(input_dir, output_file):
|
|
35 |
out_nc.createDimension("y", y_size)
|
36 |
if num_channels is not None:
|
37 |
out_nc.createVariable(
|
38 |
-
nc_files[0].split("_")[0], dtype, ("sample", "time", "channel", "x", "y")
|
39 |
)
|
40 |
else:
|
41 |
out_nc.createVariable(
|
42 |
-
nc_files[0].split("_")[0], dtype, ("sample", "time", "x", "y")
|
43 |
)
|
44 |
|
45 |
for i, nc_file in enumerate(nc_files):
|
|
|
35 |
out_nc.createDimension("y", y_size)
|
36 |
if num_channels is not None:
|
37 |
out_nc.createVariable(
|
38 |
+
nc_files[0].split("_")[0], dtype, ("sample", "time", "channel", "x", "y"), chunksizes=(1, 1, num_channels, x_size, y_size)
|
39 |
)
|
40 |
else:
|
41 |
out_nc.createVariable(
|
42 |
+
nc_files[0].split("_")[0], dtype, ("sample", "time", "x", "y"), chunksizes=(1, 1, x_size, y_size)
|
43 |
)
|
44 |
|
45 |
for i, nc_file in enumerate(nc_files):
|