Re: netcdf_open mode
xuelei feng <[email protected]> Thu, 1 Feb 2024 14:19:07 -0700
| Newsgroups | gmane.comp.gnu.octave.general |
|---|---|
| Message-ID | <CAPeZ6uieg8sWr3s36x2o9QPVjDPBQqx_YKeryPibyHD9TBjB9A@mail.gmail.com> |
--===============3622170441226194194== Content-Type: multipart/alternative; boundary="0000000000005f6ac50610588cb1" --0000000000005f6ac50610588cb1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks for your reply Santiago. Best Regards, Xuelei On Thu, Feb 1, 2024 at 11:04=E2=80=AFAM Santiago Higuera <shiguera@mercator= lab.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=C3=B3: > > 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 > --0000000000005f6ac50610588cb1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Thanks for your reply Santiago.</div><div><br></div><= div>Best Regards,</div><div>Xuelei</div><div><br></div></div><br><div class= =3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Thu, Feb 1, 2024 = at 11:04=E2=80=AFAM Santiago Higuera <<a href=3D"mailto:shiguera@mercato= rlab.com">[email protected]</a>> wrote:<br></div><blockquote clas= s=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid r= gb(204,204,204);padding-left:1ex">Hi:<br> <br> I didn't found 'modes'. Take a look on [1]. It says that netcdf= _open() <br> and netcdf_defDim() are deprecated.<br> <br> Perhaps you can write the author through [2].<br> <br> Regards<br> <br> Santiago Higuera<br> <br> [1] <a href=3D"https://octave.sourceforge.io/netcdf/package_doc/" rel=3D"no= referrer" target=3D"_blank">https://octave.sourceforge.io/netcdf/package_do= c/</a><br> <br> [2] <a href=3D"https://github.com/Alexander-Barth/octave-netcdf" rel=3D"nor= eferrer" target=3D"_blank">https://github.com/Alexander-Barth/octave-netcdf= </a><br> <br> <br> <br> El 1/2/24 a las 16:32, xuelei feng escribi=C3=B3:<br> > Dear Sir/Madam,<br> ><br> > This is Xuelei Feng. I am to add a new dimension to an existing NetCDF= <br> > file. I used netcdf_open(filename,'NC_WRITE') to open the file= , and <br> > then used netcdf_defDim(ncid, 'my_dim', 50). to define a new <= br> > dimension. However, an error "NetCDF: Operation not allowed in da= ta <br> > mode" arose when I ran the commands. I think that is because I di= dn't <br> > use the correct mode. I used the "help" command to search. I= t doesn't <br> > show the mode options. What mode should I use for this case? And how <= br> > can I find the mode options?<br> ><br> > Thanks in advance,<br> > Xuelei<br> ><br> ><br> > ----------<br> > We are transitioning to a web based forum<br> > for community help discussions at<br> > <a href=3D"https://octave.discourse.group/c/help" rel=3D"noreferrer" t= arget=3D"_blank">https://octave.discourse.group/c/help</a><br> </blockquote></div> --0000000000005f6ac50610588cb1-- --===============3622170441226194194== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline Ci0tLS0tLS0tLS0KV2UgYXJlIHRyYW5zaXRpb25pbmcgdG8gYSB3ZWIgYmFzZWQgZm9ydW0KZm9y IGNvbW11bml0eSBoZWxwIGRpc2N1c3Npb25zIGF0Cmh0dHBzOi8vb2N0YXZlLmRpc2NvdXJzZS5n cm91cC9jL2hlbHAK --===============3622170441226194194==--