nsrdb.utilities.file_utils.convert_directory
- convert_directory(path4, path5, n_workers=1)[source]
Convert a directory of hdf4 files to hdf5 in a new directory.
- Parameters:
path4 (str) – Path of directory containing hdf4 files to be converted. Files with .hdf or .h4 extensions in this directory will be converted.
path5 (str) – Path of target directory to dump converted hdf5 files (directory structure matching path4 will be created).
n_workers (int) – Number of workers to use. 1 converts all files in serial, >1 has each worker convert a file. None uses all available workers on the node.