How to extract ECMWF data in specific point?

Thank you for
I need to extract ECMWF data in specific point and time.
ECMWF data that downloaded is in area of South China Sea (2021; 4-dimensional), I just need extract data from one point only.
Could you help me, please

回答 (1 件)

KSSV
KSSV 2021 年 12 月 20 日

0 投票

Let A be your 3d data. If you know the indices (i,j) just use:
iwant = squeeze(A(i,j,:)) ;
If you hvave the grid coordinates X, Y and the you want to extract points at (x,y) use:
idx = knnsearch([X(:) Y(:)],[x y]) ;
[i,j] = ind2sub(size(X),idx) ;
iwant = squeeze(A(j,i,:)) ;

カテゴリ

ヘルプ センター および File ExchangePolar Plots についてさらに検索

製品

リリース

R2021a

質問済み:

2021 年 12 月 20 日

回答済み:

2021 年 12 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by