# How to plot a geographical surface temperature heat map?

조회 수: 28 (최근 30일)
Ashfaq Ahmed 2022년 7월 13일
편집: Ashfaq Ahmed 2022년 7월 15일
Dear altruists,
I have this Temp_Data.mat file (attached) that contains Latitude (917x345), Longitude (917x345), and sea surface temperature (917x345) matrices. Everything is very straightforward. I want to plot the surface heat map.
But the problem is the Latitude and Longitude range is very small for this problem. It only covers 41.25°N to 41.75°N and -71.45°W to -71.20°W. So, I am facing problem plotting this heat map. Specially, the coastal boundaries are very bad when I use the geoshow or geoplot function.
I just want to know if it is possible to plot for such a small spatial domain in MATLAB. Please let me know. Any feedback from your side will be highly appreciated.
##### 댓글 수: 1이전 댓글 -1개 표시이전 댓글 -1개 숨기기
Ashfaq Ahmed 2022년 7월 14일
@Chad Greene I know you are an expert in this field. I will really appreciate if you advice me anything on this :)

댓글을 달려면 로그인하십시오.

### 채택된 답변

Hi Ashfaq, as per my understanding, you have three matrices namely Lat, Lon and Temp, and you want to create a heatmap from them. Since the range of longitudes and latitudes is small, you want some method that creates plot with narrower lat. and long. limits on the axes. For achieving that, you can try using the geolimits method like this:
geolimits([41.25 41.75], [-71.45 -71.20])
##### 댓글 수: 1이전 댓글 -1개 표시이전 댓글 -1개 숨기기
Ashfaq Ahmed 2022년 7월 14일
Hi! Yes, actuyally now I can see the better coastal area borders when I zoom in. However, it seems like this geolimit function works for a table with a single column information. Do you know if it possible to plot the temperature data in a 2D lat/lon grid?

댓글을 달려면 로그인하십시오.

### 카테고리

Help CenterFile Exchange에서 Map Display에 대해 자세히 알아보기

### Community Treasure Hunt

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

Start Hunting!

Translated by