how to merge multi netcdf files in single

36 views (last 30 days)
HN
HN on 18 Jun 2019
Commented: Kevin Bislip on 15 Sep 2020
Hello all, I have downloaded the mean sea level pressure data from the ECMWF dataset for 12 month. I am trying to create single combined file e.g. msl.2007.nc of separate monthly files e.g. msl.2007_jan.nc, ms.2007_feb.nc.
Thanks a lot.

Answers (1)

KSSV
KSSV on 18 Jun 2019
  1. REad the first file for lat, lon , data dimensions.
  2. Run a loop for each file.
  3. Read data using ncread inside loop for every file.
  4. Write this data into output nc file.
YOu need to know only two functions ncread and ncwrite.
  6 Comments
Kevin Bislip
Kevin Bislip on 15 Sep 2020
I need to do the same can you please show me how you did it?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by