I want to convert hdf4 file to hdf5 in python, and I think this tool h4toh5
could be used to solve this problem, but I have no idea how to use it in python, anyone knows?
Tool available at https://www.hdfgroup.org/h4toh5/
You can download h4toh5 from https://www.hdfeos.org/software/h4toh5-def-download.php
Then you can run the binary using subprocess
import subprocess
args = ("./h4toh5", filepath)
p = subprocess.Popen(args, stdout=subprocess.PIPE)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.