How to regrid into different resolution without interpolation?

4 ビュー (過去 30 日間)
Subhodh Sharma
Subhodh Sharma 2021 年 9 月 7 日
コメント済み: Matt J 2022 年 4 月 27 日
I have a 2d data of resolution 0.5 deg. lat=-89.75:0.5:89.75 and lon=-179.75:0.5:179.75. data has dimension (720*360), first dim=lon, 2nd dim=lat.
I want to make data to a 2 deg resolution by taking 2 deg * 2 deg grid box. Averaging all the values coming inside this box. In this way it would be a 2 deg resolution without interpolation.
I have done it using griddata interpolation. I want to crossverify it with the above method.
Thanking you in advance.

回答 (1 件)

Matt J
Matt J 2021 年 9 月 7 日
  2 件のコメント
Deepshikha Dadhwal
Deepshikha Dadhwal 2022 年 4 月 27 日
Hello Matt, I want to do the same to my variable but it is not in uniform grid as in Subodh's statement. My variable is irregularly spaced and changes size per file. I want to collect all the datas falling into a 1*1 grid and count & average them. I used Griddata but it averages out sparse data as well and hence the data represntation is affected.
Matt J
Matt J 2022 年 4 月 27 日
It sounds like you need histcounts2() rather than any kind of interpolation.

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

カテゴリ

Help Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

製品


リリース

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by