how to merge multi netcdf files in single

조회 수: 7 (최근 30일)
HN
HN 2019년 6월 18일
댓글: HN 2019년 6월 19일
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.

답변 (1개)

KSSV
KSSV 2019년 6월 18일
  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.
  댓글 수: 5
KSSV
KSSV 2019년 6월 18일
Attache few files here in a zip.
HN
HN 2019년 6월 19일
Required files are attached.
thanks a lot

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

카테고리

Help CenterFile Exchange에서 Data Import and Export에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by