I am trying to read in a number of files from the ERA Interim netcdf into matlab. I need these variables to run some calculations. So here is the problem:
I have the following files from ECMWF ERA Interim Renalysis:
Ta.nc -air temperature,
Rs_in_t.nc -thermal incoming radiation,
Rs_in_s.nc -surface shortwave incoming radiation,
wind.nc -wind speed,
I have folders from 2003-2012 each containing the Renalysis data variables shown above. All these files are in one folder for each year beginning 2003-2012. So I have to retrieve and load the same variables from each file before I can start with the analysis.
When I use this script (https://nl.mathworks.com/matlabcentral/fileexchange/31284-read-netcdf-files-and-display-variable-information) repeatedly for the different files some of the variables are overwritten even though some are just same e.g. latitude, longitude and time in some cases.
Is there an efficient and faster way of reading all these into MATLAB?