필터 지우기
필터 지우기

How to extract multiple location data from a netCDF file

조회 수: 1 (최근 30일)
Ojo Olusola
Ojo Olusola 2022년 11월 25일
답변: Ojo Olusola 2022년 11월 27일
I have a netCDF .nc file, the contains two varables such as SIS and SISC. I want to extract about 20 locations whose names, latitudes and longitudes are saved in an excel workbook. Can some help me with a matlab codes to do this please. Thanks.

답변 (2개)

KSSV
KSSV 2022년 11월 25일
To know the variables in ncfile use ncdisp, ncinfo.
To load variables from nc to matlab use ncread.
To load data from excel file use readtable.
To get the data at your locations use interp2.

Ojo Olusola
Ojo Olusola 2022년 11월 27일

Dear KSSV, thank you for your response. Kindly give example of codes using above commands. Thanks.

카테고리

Help CenterFile Exchange에서 NetCDF에 대해 자세히 알아보기

태그

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by