How do I create an animation with a coloured sphere changing in time? (for climate modelling)

2 ビュー (過去 30 日間)
Victor Couplet
Victor Couplet 2017 年 4 月 6 日
回答済み: Joseph Cheng 2017 年 4 月 6 日
Hello, I'm trying to do some simple climate modelling. I would like to create a short animation with my data (temperature means) represented on a sphere ( divided in different regions) with different colours evolving in time. What should I use?
  2 件のコメント
KSSV
KSSV 2017 年 4 月 6 日
What data you have?
Victor Couplet
Victor Couplet 2017 年 4 月 6 日
編集済み: Victor Couplet 2017 年 4 月 6 日
I have an algorithm that calculates the temperature of different regions of the earth in time given an initial temperature and a bunch a values for different parameters. The earth is divided in ten regions separated by 9 parallels of different latitudes. All the algorithmic part is ok, and I get arrays of temperatures depending on time for each region of the earth. I would like to map this data on a sphere, divided in ten regions (same way i divided the earth for my algorithm) by coloring each region of the sphere in a certain color depending on the temperature. That's for the first step. The second step is to create a small movie where we see these colors evolve in time and eventually reach a steady state.

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

回答 (1 件)

Joseph Cheng
Joseph Cheng 2017 年 4 月 6 日
you can do something like this
[x,y,z] = sphere(30);
[sx sy]=meshgrid(-1:.01:1,-1:.01:1);
I=3*sin(2*pi*2*sx)+cos(2*pi*4*sy);
figure(1),clf
subplot(2,1,1),imagesc(I),colormap('hsv')
subplot(2,1,2),surf(x,y,z,'FaceColor','texturemap','EdgeColor','none','Cdata',I);

カテゴリ

Help Center および File ExchangeClimate Science and Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by