필터 지우기
필터 지우기

How to merger multiple.nc files consists of 2D matrix into 3D matrix

조회 수: 2 (최근 30일)
denny malang
denny malang 2024년 4월 1일
답변: Cris LaPierre 2024년 4월 2일
I have already download daily data from Global Ocean Gridded L 4 Sea Surface Heights And Derived Variables Reprocessed Copernicus Climate Service. The daily data in December 2022 downloaded from this link (https://data.marine.copernicus.eu/product/SEALEVEL_GLO_PHY_CLIMATE_L4_MY_008_057/files?path=SEALEVEL_GLO_PHY_CLIMATE_L4_MY_008_057%2Fc3s_obs-sl_glo_phy-ssh_my_twosat-l4-duacs-0.25deg_P1D_202112%2F2022%2F12%2F&subdataset=c3s_obs-sl_glo_phy-ssh_my_twosat-l4-duacs-0.25deg_P1D_202112). Actually I want merger all data in a file Dec2022. The size matrix data from 1440x720x1 become 1440x720x31. From data I can calculate mean monthly data from daily. The same logic finally I can merger data monthly on 2022 with a size matrix 1440x720x12 (jan to dec).
Thank you

답변 (1개)

Cris LaPierre
Cris LaPierre 2024년 4월 2일
Load each file indiviudally, extract the variable you want, and use the cat function to concatenate each one along the 3rd dimension.

카테고리

Help CenterFile Exchange에서 Oceanography and Hydrology에 대해 자세히 알아보기

태그

제품


릴리스

R2014b

Community Treasure Hunt

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

Start Hunting!

Translated by