跳转到主要内容

将HDF5文件转换为EDF文件

项目描述

h52edf/h5_to_edf 是ESRF开发的一个工具,用于将HDF5文件转换为EDF文件。

安装

pip install h5_to_edf

使用

usage: h52edf [-h] [-o EDF_DIRECTORY] [--report] [--debug] [--dry-run] [-V]
              [--no-dark] [--no-flat] [--yml] [--no-xml] [--current CURRENT]
              h5_names

positional arguments:
  h5_names

options:
  -h, --help         show this help message and exit
  -o EDF_DIRECTORY   Output directory for EDF files
  --report           Display report without data processing
  --debug            Display debug information
  --dry-run          Process the data without writing it
  -V, --version      show program's version number and exit
  --no-dark          If the h5 does not contains darks, will skip dark creation
  --no-flat          If the h5 does not contains flats, will skip flat creation
  --yml              Create a .yml file containing all the metadata from the h5 file
  --no-xml           Do not generate a .xml file containing few metadata from the h5 file
  --current CURRENT  Use a current text file containing the machine current

如何使用

转换器需要转换的hdf5文件名称以及创建EDF文件的目标目录。

h52edf "path/file_001.h5" -o output_directory

您还可以使用以下命令一次性转换多个hdf5文件

h52edf "path/file_0*.h5" -o output_directory

项目发布

# ~/.pypirc
[h5-to-edf]
repository = https://upload.pypi.org/legacy/
username = __token__
password = pypi-...
pip wheel . --wheel-dir=dist
twine upload dist/h5_to_edf-*.whl -r h5-to-edf

项目细节


下载文件

下载适用于您平台文件的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源分布

此版本没有提供源分布文件。请参阅生成分布归档的教程。

构建分布

h5_to_edf-1.5.3-py3-none-any.whl (31.3 kB 查看哈希值)

上传时间 Python 3

由以下机构支持