interp2での補間について
10 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hiroki Takeda
le 20 Avr 2022
Commenté : Hiroki Takeda
le 20 Avr 2022
interp2を使って、海面温度の緯度経度grid dataを、別のgridのものに変換したいと思っています。
・元のデータ
LonとLatは2251×4500、iLon,iLatは90×73のデータです。
[Lon,Lat] = meshgrid(-180:0.08:179.92, -90:0.08:90);
[iLon,iLat]=meshgrid(-177.5:5:177.5, -89.5:2:89.5);
・ほしいデータ
下記のようなibを欲しいと思っています。
bは90×73のデータです。
ib=interp2(Lat(31:31:end,50:50:end), Lon(31:31:end,50:50:end), b(:,1:72)',iLat,iLon);
・Error
入力グリッドは有効な MESHGRID ではありません。
こちら、どのようにすれば解決しますでしょうか。ご教示くださると幸いです。
よろしくお願いいたします。
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur 表面プロットとメッシュ プロット dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!