MATLAB 帮助中心
本页翻译不是最新的。点击此处可查看最新英文版本。
确定 netCDF 文件的格式
format = netcdf.inqFormat(ncid)
format = netcdf.inqFormat(ncid) 返回 netCDF 文件标识符 ncid 指定的文件格式。
format
ncid
示例
全部折叠
本例打开示例 netCDF 文件并确定格式。
ncid = netcdf.open("example.nc","NOWRITE"); fmt = netcdf.inqFormat(ncid)
fmt =
'FORMAT_NETCDF4'
netcdf.close(ncid);
由 netcdf.create 函数或 netcdf.open 函数返回的 netCDF 文件的标识符,或由 netcdf.defGrp 函数返回的 netCDF 组的标识符。
netcdf.create
netcdf.open
netcdf.defGrp
数据类型: double
double
netCDF 文件的格式,返回为下列值之一回。
'FORMAT_CLASSIC'
'FORMAT_64BIT'
'FORMAT_NETCDF4_CLASSIC'
在 R2010b 中推出
netcdf.getConstant
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处