Concatenating multiple NetCDF files

6 visualizaciones (últimos 30 días)
Tim Holgate
Tim Holgate el 4 de Dic. de 2020
Comentada: Tim Holgate el 8 de Dic. de 2020
Prior note: not much experience on MATLAB.
I have a folder of .cdf files each containing sattelite measured sea surface salinity measured every 3 days. To do anything useful with them, I need to concatenate them into a timeseries of data. I have no idea how to go about doing this except I have been given the following by my supervisor:
clear all
data_files = dir();
numfiles = length(data_files);
for i = 1:numfiles
data(SSS)=ncread(data_files(i),'SSS');
end
I'm not really sure where to go from here. Anyone got any words of wisdom?

Respuesta aceptada

Swetha Polemoni
Swetha Polemoni el 7 de Dic. de 2020
Hi Tim Holgate,
You may find this answer helpful.
  1 comentario
Tim Holgate
Tim Holgate el 8 de Dic. de 2020
Thank you so much!! this has solved a large deal of my issues

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by