I have longitude data from -280 to 80, latitude data -90 to +90. I need to plot a global spatial map of Temperature data. (-180, -90, 180, 90). How to do it
2 ビュー (過去 30 日間)
古いコメントを表示
I have longitude data from -280 to 80, latitude data -90 to +90. I need to plot a global spatial map of Temperature data. (-180, -90, 180, 90). How to do it?
0 件のコメント
回答 (1 件)
Austin M. Weber
2024 年 2 月 22 日
Are you sure that your longitude data goes from -280 to 80 and not -180 to 80? Or perhaps from -180 to 180? There is no such thing as -280 degrees longitude.
Also, what is the grid spacing of your data? That is, what is the distance between your longitude and latitude values? Is it 2 degrees, 1 degree, 0.5 degree, 0.25 degree, etc. ?
Here is an example of how you can plot global temperature data using the imagescn function from the Climate Data Toolbox:
load global_sst.mat
figure(1)
h = imagescn(lon,lat,sst-273.15);
xlabel('Longitude')
ylabel('Latitude')
yticks(-90:30:90)
axis equal tight
colormap(turbo)
cb=colorbar;
cb.Label.String = 'Temperature (^\circC)';
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Discrete Data Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!