How to change or modify variable that already exists netcdf ?

19 vues (au cours des 30 derniers jours)
min wong
min wong le 3 Oct 2016
Modifié(e) : Chad Greene le 5 Avr 2023
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.

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Mathematics dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by