cdflib.getNumgAttributes
グローバル スコープをもつ属性の数
構文
ngatts = cdflib.getNumgAttributes(cdfId)
説明
ngatts = cdflib.getNumgAttributes(cdfId)
は、CDF (Common Data Format) ファイルのグローバル属性の合計数を返します。cdfId
は CDF ファイルを識別します。
例
例の CDF を開き、ファイル内のグローバル属性の数を確認します。
cdfId = cdflib.open("example.cdf"); % Determine the number of global attributes in the file numgAttrs = cdflib.getNumgAttributes(cdfId)
numgAttrs = 3
% Clean up cdflib.close(cdfId) clear cdfId
参照
この関数は、CDF ライブラリ C API のルーチン CDFgetNumgAttributes
に相当します。
この関数を使用するには、CDF C インターフェイスに関する知識を必要とします。CDF のドキュメンテーションは CDF の Web サイトで参照できます。