帮助中心帮助中心
本页翻译不是最新的。点击此处可查看最新英文版本。
返回 netCDF 变量的 Fletcher32 校验和设置
checksumSetting = netcdf.inqVarFletcher32(ncid,varid)
示例
checksumSetting = netcdf.inqVarFletcher32(ncid,varid) 返回由 ncid 所指定的文件或组中的 varid 所指定的 netCDF 变量的 Fletcher32 校验和设置。该函数返回校验和设置为 'FLETCHER32' 或 'NOCHECKSUM'。
checksumSetting
ncid
varid
'FLETCHER32'
'NOCHECKSUM'
全部折叠
打开示例 netCDF 文件,获取变量的 Fletcher32 校验和设置。在本例中,变量的 Fletcher32 校验和错误检测未启用。
ncid = netcdf.open("example.nc","NOWRITE"); varid = netcdf.inqVarID(ncid,"temperature"); checksumSetting = netcdf.inqVarFletcher32(ncid,varid)
checksumSetting = 'NOCHECKSUM'
关闭 netCDF 文件。
netcdf.close(ncid)
NetCDF 文件或组标识符,指定为非负整数标量。您可以使用 netcdf.create 或 netcdf.open 函数来返回文件标识符。您可以使用 netcdf.defGrp 函数来返回组标识符。
netcdf.create
netcdf.open
netcdf.defGrp
数据类型: double
double
NetCDF 变量标识符,指定为非负整数标量。您可以使用 netcdf.defVar 函数返回变量标识符。
netcdf.defVar
此函数对应于 netCDF 库 C API 中的 nc_inq_var_fletcher32 函数。
nc_inq_var_fletcher32
在 R2010b 中推出
netcdf.defVarFletcher32
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office