フィルターのクリア

How to subset an irregular region of the earth from a global dataset using four points

4 ビュー (過去 30 日間)
How can I pull out a subset from a dataset named "global_data" using the following four coordinates and then find the average or size?
lat_A=-10;lat_B=-15;lat_C=-13;lat_D=-9;
lon_A=110;lon_B=112;lon_C=117;lon_D=117;

採用された回答

KSSV
KSSV 2022 年 4 月 13 日
REad about inpolygon.
  2 件のコメント
Opeyemi Kehinde
Opeyemi Kehinde 2022 年 5 月 18 日
Thank you, that is helpful.
Walter Roberson
Walter Roberson 2022 年 5 月 18 日
Depending on how the data is gridded, you might need to do a coordinate transformation step. For example if the data is UTM then a quadrilateral of lat/long maps to a curved shape in UTM space.
The particular example coordinates of the original question span 6 degrees latitude not so far from the equator, so perhaps for the purpose of the original post, approximation as a rectangle might have been good enough (even if the data did happen to be UTM gridded.)

サインインしてコメントする。

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by