Plot time series analysis from multiple netcdf files

조회 수: 2 (최근 30일)
Mir Talas Mahammad Diganta
Mir Talas Mahammad Diganta 2021년 7월 16일
Hello. I am new to MATLAB. I am interested in creating time series plot (like the attached figure) for chl a of a large area from six netcdf files. Each netcdf file corresponding a year. can anyone help me with the procedure or the MATLAB code to excute this task, please???
thank you in advanced.
  댓글 수: 3
Mir Talas Mahammad Diganta
Mir Talas Mahammad Diganta 2022년 3월 3일
Hi!
I resolved this issue by myself. I used Climate Data Operator (CDO), which is very handy in terms of handling netcdf data. After organizing the data through CDO, I used MATLAB for ploting.
Thank you.
Alejandra Uguet de Resayre
Alejandra Uguet de Resayre 2022년 3월 3일
Aww thank you so much! I'll try that one.

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

답변 (2개)

millercommamatt
millercommamatt 2021년 7월 22일
Read each netCDF file. Concatenate the arrays. Plot the concatenated arrays.
  댓글 수: 1
Mir Talas Mahammad Diganta
Mir Talas Mahammad Diganta 2021년 7월 24일
can you help me with the script, please? I am a new user here.
thank you.

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


Peter Perkins
Peter Perkins 2021년 7월 27일
Mir, I'm not very familiar with MATLAB's netCDF features, but there are ways to read the files and you should read the doc about that. Once you've gotten the data into MATLAB, I'd recommend converting to timetables with datetime row times, and then probably concatenating those, and plotting against time. Amybe use stackedplot if you have multiple variables. Don't know what you data look like, so can't really help more than that.
  댓글 수: 1
Mir Talas Mahammad Diganta
Mir Talas Mahammad Diganta 2021년 8월 2일
hello. thank you for your suggestion. you can access my netcdf data files by clicking this link below:
it will very helpful for me if you can provide me working solution for this problem. Thank you

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

카테고리

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