How to change or modify variable that already exists netcdf ?

9 ビュー (過去 30 日間)
min wong
min wong 2016 年 10 月 3 日
編集済み: Chad Greene 2023 年 4 月 5 日
i Want to 'nc_sst_with_cj' repalce oringal variable 'SST'.
both of them are same three dimensional.
My code is
nc=netcdf.open('F:\tt\wrflowinp_d01','write')
nc=ncwrite('wrflowinp_d01','SST','nc_sst_with_cj');
but show error
Too many output arguments.

採用された回答

Matthew Eicholtz
Matthew Eicholtz 2016 年 10 月 3 日
There should be no output arguments for ncwrite. Check the documentation here.
The function call should be of the form
ncwrite(filename,varname,vardata);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by