copy netcdf file using python

前端 未结 5 1227
一整个雨季
一整个雨季 2020-12-19 10:45

I would like to make a copy of netcdf file using Python.

There are very nice examples of how to read or write netcdf-file, but perhaps there is also a good way how

5条回答
  •  囚心锁ツ
    2020-12-19 11:24

    If you are on Linux or macOS, this can be achived easily with nctoolkit (https://nctoolkit.readthedocs.io/en/latest/installing.html).

    import nctoolkit as nc
    data = nc.open_data("infile.nc")
    data.to_nc("outfile.nc")
    

提交回复
热议问题