netcdf_open mode
xuelei feng <[email protected]> Thu, 1 Feb 2024 08:32:11 -0700
| Newsgroups | gmane.comp.gnu.octave.general |
|---|---|
| Message-ID | <CAPeZ6uinzCB2UmHvstpKkP1VLVyaxQ8iGQcdze0Hh21Bv2uaRw@mail.gmail.com> |
--===============8672234165857993987== Content-Type: multipart/alternative; boundary="0000000000009da07b061053b39f" --0000000000009da07b061053b39f Content-Type: text/plain; charset="UTF-8" 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 --0000000000009da07b061053b39f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Dear Sir/Madam,</div><div><br></div><div>This is Xuel= ei Feng. I am to add a new dimension to an existing NetCDF file. I used net= cdf_open(filename,'NC_WRITE') to open the file, and then used netcd= f_defDim(ncid, 'my_dim', 50). to define a new dimension. However, a= n 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 mod= e. I used the "help" command to search. It doesn't show the m= ode options. What mode should I use for this case? And how can I find the m= ode options?</div><div><br></div><div>Thanks in advance,</div><div>Xuelei</= div><div>=C2=A0<br></div></div> --0000000000009da07b061053b39f-- --===============8672234165857993987== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline Ci0tLS0tLS0tLS0KV2UgYXJlIHRyYW5zaXRpb25pbmcgdG8gYSB3ZWIgYmFzZWQgZm9ydW0KZm9y IGNvbW11bml0eSBoZWxwIGRpc2N1c3Npb25zIGF0Cmh0dHBzOi8vb2N0YXZlLmRpc2NvdXJzZS5n cm91cC9jL2hlbHAK --===============8672234165857993987==--