Converting hdf5 file to nc file using Python

284 Views Asked by At

guys I have a list of hdf5 files in my directory and I want to convert hdf5 files to nc files. Is there a way to do this in Python?

I tried using bash but encountered a lot of problems in the wsl. So I want to do this in Python. I suppose there's a way to do this with netCDF library. Can you please help?

1

There are 1 best solutions below

0
On

Thanks @Micheal Delgado

xr.open_dataset

ds.to_netcdf