MATLAB 帮助中心
组的完整路径名
groupName = netcdf.inqGrpNameFull(ncid)
groupName = netcdf.inqGrpNameFull(ncid) 返回 ncid 指定的组的完整路径名。
groupName
ncid
注意
此函数对应于 netCDF 库 C API 中的 nc_inq_grpname_full 函数。
nc_inq_grpname_full
示例
全部折叠
打开 netCDF 示例文件并检索所有组的名称。
ncid = netcdf.open("example.nc","NOWRITE"); gid = netcdf.inqNcid(ncid,"grid2"); fullName = netcdf.inqGrpNameFull(gid)
fullName = '/grid2'
关闭文件。
netcdf.close(ncid)
由 netcdf.create 函数或 netcdf.open 函数返回的 NetCDF 文件的标识符,或由 netcdf.defGrp 函数返回的 NetCDF 组的标识符。
netcdf.create
netcdf.open
netcdf.defGrp
数据类型: double
double
组的完整路径,以字符向量形式返回。根组的名称为 '/'。父组的名称和子组的名称使用正斜杠 '/' 分隔符,和 UNIX 文件夹名称一样,例如,'/group1/subgrp2/subsubgrp3'。
'/'
'/group1/subgrp2/subsubgrp3'
数据类型: char
char
在 R2010b 中推出
netcdf.inqGrpName | netcdf.create | netcdf.open | netcdf.defGrp
netcdf.inqGrpName
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 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处