- ncread to read from you NetCDF files.
- dir function with the dir name syntax to get a list all the files in your folder.
- save to save the data that has been read into a MAT File.
How to extract perticular variable from multiple netcdf files (daily data). And merge them together as a one .mat file.
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Dushantha Sandaruwan WIJENDRA NAIDHELAGE
el 16 de Mayo de 2021
Comentada: Dushantha Sandaruwan WIJENDRA NAIDHELAGE
el 25 de Jun. de 2021
I have sst daily data in .netCDF format from 1990 to 2020. some files have 365 days, some have 366. How can I extract sst variable from each file and make a one single .mat file.
Then how can I calculate climatalogy for each day for 31 years.
file ='sst.day.mean.1990.nc'
following figure shows the 'sst' variable.
I hope to have final .mat file as
total (at least) = '1440*720*11315'
0 comentarios
Respuesta aceptada
Asvin Kumar
el 25 de Jun. de 2021
Editada: Asvin Kumar
el 25 de Jun. de 2021
I'm not sure if there is a single function to do that. Here are some functions you can use to create a script for yourself.
You can concatenate the matrices along the third dimension before saving them. Admittedly, it will be a large matrix. You can explore tall arrays and other options mentioned on this page about handling Large Files and Big Data.
1 comentario
Más respuestas (0)
Ver también
Categorías
Más información sobre NetCDF en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!