Concatenating multiple NetCDF files

조회 수: 6 (최근 30일)
Tim Holgate
Tim Holgate 2020년 12월 4일
댓글: Tim Holgate 2020년 12월 8일
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?

채택된 답변

Swetha Polemoni
Swetha Polemoni 2020년 12월 7일
Hi Tim Holgate,
You may find this answer helpful.
  댓글 수: 1
Tim Holgate
Tim Holgate 2020년 12월 8일
Thank you so much!! this has solved a large deal of my issues

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 NetCDF에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by