help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: netcdf_open mode


From: xuelei feng
Subject: Re: netcdf_open mode
Date: Thu, 1 Feb 2024 14:19:07 -0700

Thanks for your reply Santiago.

Best Regards,
Xuelei


On Thu, Feb 1, 2024 at 11:04 AM Santiago Higuera <shiguera@mercatorlab.com> wrote:
Hi:

I didn't found 'modes'. Take a look on [1]. It says that netcdf_open()
and netcdf_defDim() are deprecated.

Perhaps you can write the author through [2].

Regards

Santiago Higuera

[1] https://octave.sourceforge.io/netcdf/package_doc/

[2] https://github.com/Alexander-Barth/octave-netcdf



El 1/2/24 a las 16:32, xuelei feng escribió:
> Dear Sir/Madam,
>
> This is Xuelei Feng. I am to add a new dimension to an existing NetCDF
> file. I used netcdf_open(filename,'NC_WRITE') to open the file, and
> then used netcdf_defDim(ncid, 'my_dim', 50). to define a new
> dimension. However, an error "NetCDF: Operation not allowed in data
> mode" arose when I ran the commands. I think that is because I didn't
> use the correct mode. I used the "help" command to search. It doesn't
> show the mode options. What mode should I use for this case? And how
> can I find the mode options?
>
> Thanks in advance,
> Xuelei
>
>
> ----------
> We are transitioning to a web based forum
> for community help discussions at
> https://octave.discourse.group/c/help

reply via email to

[Prev in Thread] Current Thread [Next in Thread]