ヘルプ センターヘルプ センター
netCDF 変数のチェックサム パラメーターを返す
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