How can I make an image with both ocean and land information?

5 ビュー (過去 30 日間)
Chelle Gentemann
Chelle Gentemann 2016 年 5 月 8 日
回答済み: Chad Greene 2019 年 3 月 9 日
I would like to make images like this... I normally use imagesc and just set the top part of the colormap to black for land. I have ocean data, for example sea surface temperature, SST, and a landmask, but would like to upgrade the image to include land details like below.... any ideas or suggestions? Thanks, Chelle
  1 件のコメント
Image Analyst
Image Analyst 2016 年 5 月 8 日
There is nothing "below". You forgot to attach the image with "land information."

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

回答 (1 件)

Chad Greene
Chad Greene 2019 年 3 月 9 日
This is very easy with the Climate Data Toolbox for Matlab! First, plot the base image with earthimage, then overlay it with a pcolor or imagescn plot of SSTs. Just make sure the land values of the SST grid are NaN, which will make them transparent. If you need to, use the island function to determine which grid cells are land, and set them to NaN.

カテゴリ

Help Center および File ExchangeOceanography and Hydrology についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by