netcdf.inqNcid
グループの ID を返す
説明
例
グループ ID の取得
サンプル netCDF ファイルを開き、グループの ID を取得します。
ncid = netcdf.open("example.nc","NOWRITE"); gid = netcdf.inqNcid(ncid,"grid1")
gid = 65537
netCDF ファイルを閉じます。
netcdf.close(ncid)
入力引数
ncid
— NetCDF ファイルまたはグループの識別子
非負の整数スカラー
NetCDF ファイルまたはグループの識別子。非負の整数スカラーとして指定します。関数 netcdf.create
または netcdf.open
を使用してファイル識別子を返すことができます。関数 netcdf.defGrp
を使用してグループ識別子を返すことができます。
データ型: double
gname
— NetCDF グループ名
string スカラー | 文字ベクトル
NetCDF グループ名。string スカラーまたは文字ベクトルとして指定します。
ヒント
この関数は、NetCDF ライブラリ C API の関数
nc_inq_ncid
に相当します。
バージョン履歴
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)