MATLAB Answers

Error reading NetCDF files

8 views (last 30 days)
Thodoris Ptrks
Thodoris Ptrks on 13 Jan 2020
Commented: Thodoris Ptrks on 13 Jan 2020
Hello! I'm trying to read a NetCDF file using this:
but it shows an error message, something like this:
Error using netcdflib
The NetCDF library encountered an error during execution of 'inqFormat' function - 'Not a valid ID
Error in netcdf.inqFormat (line 29)
fmt = netcdflib('inqFormat',ncid);
Error in (line 1281)
this.Format = lower(netcdf.inqFormat(this.ncRootid));
Error in (line 121)
Error in ncread (line 53)
ncObj =;
Any ideas of what is going wrong! Thank you!


Show 4 older comments
Thodoris Ptrks
Thodoris Ptrks on 13 Jan 2020
yes i have set the direction folder from the beginning and imported the file... it crushes with ncdisp or ncread and all nc commands... i have 2018a version
Behzad Navidi
Behzad Navidi on 13 Jan 2020
I think maybe your NetCDF file is corrupted. can you open the attached NetCDF file which I sent to you?
Thodoris Ptrks
Thodoris Ptrks on 13 Jan 2020
no.. by the way thanks for your time..!

Sign in to comment.

Answers (0)

Sign in to answer this question.