Hello,
I've been searching for clues in order to solve my problem but couldn't find anything and since I just start with Matlab, I'm a bit lost.
Here's the thing :
I need to create a .mat file which would contain the following arrays :
  • lattitude (1-10980)
  • longitude (ID)
  • time (43 dates)
  • the data (10980,10980,43)
The data are Sentinel 2 images (.tif) that I would like to stack in order to conduct Time Series analyses.
The script I've been provided with is EOF, and the data they use in their example are organised as previously (only, with less data).
Since I'm not familiar with .mat files, I think I only understood that they are organised like .nc or .hdf files (might not be though).
Anyway, even if they are, I clearly can't tell how to end up with my arrays organised like that.
Could somebody help ?
Thank you.

댓글 수: 2

Stephen23
Stephen23 2019년 7월 22일
편집: Stephen23 2019년 7월 22일
"The script I've been provided with is EOF, and the data they use in their example are organised as previously (only, with less data)."
What does this mean ?
What do the tags "eof" (End Of File?) and "stack" refer to?
Thomas
Thomas 2019년 7월 22일
편집: Thomas 2019년 7월 22일
EOF is a method of Time series analyse and stands for Empirical Orthogonal Functions. It allows the user to decompose the trends in his data according to its variance. The stack well... I mean by this organise my satellite images in a cube. A 3D matrix with y=latitude, x=longitude and z=temporal evolution of the quantified data in each image whatever it is.

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

 채택된 답변

Stephen23
Stephen23 2019년 7월 22일
편집: Stephen23 2019년 7월 22일

0 개 추천

"How to create a .mat file"
Use save, which is the MATLAB command explicitly designed to write .mat files.
"I need to create a .mat file which would contain the following arrays..."
That is easy using save:
lat = [...]
lon = [...]
time = [...]
data = [...]
save('myFile.mat','lat','lon','time','data')

댓글 수: 2

Thomas
Thomas 2019년 7월 22일
Thank you !
V Prakash
V Prakash 2020년 11월 6일
Thank Thomas and Stephen for your answers. I think it will helpful for small data. How could it work for large dataset with more parameters? Is there any command to work with large dataset? Comment if any.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Standard File Formats에 대해 자세히 알아보기

제품

릴리스

R2017b

질문:

2019년 7월 22일

댓글:

2020년 11월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by