- 积分
- 215
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-10-21
- 最后登录
- 1970-1-1
|

楼主 |
发表于 2012-10-22 14:53:41
|
显示全部楼层
膘膘 发表于 2012-10-22 00:20
matlab读取nc文件时会自动转置哦,不知道你matlab的版本,还有就是要把程序拿出来看看才知道为什么这种图
刚刚转置了数据,简单的绘了图,图像因为分辨率低很难看,但主要问题是我想把图像和坐标对应起来,但不知道怎么和这两个经纬度数据(附件里)对应起来。。。。还请各位帮忙看下,谢谢!
clear all;
clc;
cd ~
%I have scp a ncfile here
temp=ncread('diff.0699.nc','TEMP');
lon=ncread('diff.0699.nc','TLONG');
lat=ncread('diff.0699.nc','TLAT');
%Just take the 30th layer.
temp0=temp(:,:,30); %取了数据第30层
temp0=rot90(fliplr(temp0));
pcolor(temp0);
shading flat |
|