Plot time series analysis from multiple netcdf files

3 views (last 30 days)
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 Comments
Mir Talas Mahammad Diganta
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.

Sign in to comment.

Answers (2)

millercommamatt
millercommamatt on 22 Jul 2021
Read each netCDF file. Concatenate the arrays. Plot the concatenated arrays.

Peter Perkins
Peter Perkins on 27 Jul 2021
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 Comment
Mir Talas Mahammad Diganta
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

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!