netcdf.inqGrpParent
親グループの ID を返す
説明
は、parentGroupID
= netcdf.inqGrpParent(ncid
)ncid
によって指定された子グループの場所に基づいて、親グループの ID を返します。
例
親グループのパスの取得
この例では、netCDF サンプル ファイルを開き、指定グループの親の絶対パスを取得します。
ncid = netcdf.open("example.nc",'NOWRITE'); gid = netcdf.inqNcid(ncid,"grid2"); parentId = netcdf.inqGrpParent(gid); fullName = netcdf.inqGrpNameFull(parentId); netcdf.close(ncid);
入力引数
ncid
— NetCDF ファイル識別子
整数
関数 netcdf.create
または関数 netcdf.open
によって返される netCDF ファイルの識別子、または関数 netcdf.defGrp
によって返される netCDF グループの識別子。
データ型: double
出力引数
parentGroupID
— 親グループのファイル識別子
整数
指定されたファイルまたはグループの親である netCDF グループまたはファイルの識別子。整数として返されます。
データ型: double
バージョン履歴
R2010b で導入
MATLAB コマンド
次の 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:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)