[英]Converting hdf5 file to nc file using Python
guys I have a list of hdf5 files in my directory and I want to convert hdf5 files to nc files.伙计们,我的目录中有一个 hdf5 文件列表,我想将 hdf5 文件转换为 nc 文件。 Is there a way to do this in Python?
Python有没有办法做到这一点?
I tried using bash but encountered a lot of problems in the wsl.我尝试使用 bash 但在 wsl 中遇到了很多问题。 So I want to do this in Python. I suppose there's a way to do this with.netCDF library.
所以我想在 Python 中执行此操作。我想有一种方法可以使用 .netCDF 库来执行此操作。 Can you please help?
你能帮忙吗?
Thanks @Micheal Delgado谢谢@Michael Delgado
xr.open_dataset xr.open_dataset
ds.to.netcdf ds.to.netcdf文件
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.