scipy.io.netcdf_file.

createDimension#

netcdf_file.createDimension(name, length)[source]#

将维度添加到 NetCDF 数据结构的维度部分。

请注意,此函数仅添加变量可以引用的新维度。如果需要,维度的值应使用 createVariable 作为变量添加,并引用此维度。

参数:
namestr

维度名称(例如,“lat”或“time”)。

lengthint

维度的长度。