I tried to open esacci global soil moisture data files with NetCDF format in matlab, but unfortunately I couldn't. I need a matlab code for open and read data with .nc format. A sample file is attached.
Matlab has a set of functions to deal with NetCDF files. Can you use 'ncinfo' in your Matlab version? If so, try the following code snipped on your .nc file.
Matlab has a set of functions to deal with NetCDF files. Can you use 'ncinfo' in your Matlab version? If so, try the following code snipped on your .nc file.
You are going to have to deal with computers when using NetCDF files and that means you want to learn to figure out basic problems.
1) does your Matlab version have an ncinfo() function? If not, you need to get that function through an add on library.
2) If you have ncinfo(), then get a sample .nc file and make sure that it works.This verifies that everything is working.
3) If your particular .nc file still does not work, then you can figure out the version of the file. Many .nc files are made by individuals and they may have incompatibility problems among differing programs. In this case, you will probably be best served by talking to the people who created that file and ask them what program they use to look at it.