nmrglue.fileio.pipe.write_slice_3D¶
-
nmrglue.fileio.pipe.
write_slice_3D
(filemask, dic, data, shape, slices)[source]¶ Write a slice of a 3D data array to file.
Opens (or if necessary creates) a 2D NMRPipe file(s) to write data, where the total 3D file size is given by shape.
- Parameters
- filemaskstr
String of NMRPipe file with single formatting operator (%).
- dicdict
Dictionary of NMRPipe parameters.
- datandarray
3D array of NMR data.
- shapetuple
Tuple of 3 integers indicating the overall matrix shape.
- (sz, sy, sx)slices
Slice objects which specify the location of the to be written data.
See also
iter3D
Users should use this object, not this function.
Notes
This function memmaps 2D NMRPipe files for speed. It only writes dictionaries to file when created, leaving them unmodified if the file exists. Only error checking is that data is 3D.