How to convert climate data in .grib format to netCDF?

Sometimes climate data, such as those produced by Copernicus, are shipped in .grib format. This format is appreciated by some climate…