- 积分
- 2590
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2019-1-22
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
想问老师如何设置x坐标轴为时间轴的问题,我的数据本身是纯二维数据,现在要设置x轴的时间是 4:30到7:30,时间间隔为30s,一共有361个。希望老师能有抽空帮我解答,以下是我现有的程序和图,x轴还没有设置,其他程序是按照您之前处理calipso数据来的。
sys.path.append('D:/data_mpl')
import CALIPSO_colors
import datetime
data = asciiread('D:/data_mpl/data1.csv',delimiter=',' ,headerlines=0,shape=(658,361))
h1 = 0 # km
h2 = 20 # km
nz = 658 # Number of pixels in the vertical
x = arange(x1, x2)
h = linspace(h1, h2, nz)
levs = [0.0001,0.0002,0.0003,0.0004,0.0005,0.0006,0.0007,0.0008,0.0009,\
0.001,0.0015,0.002,0.0025,0.003,0.0035,0.004,0.0045,0.005,0.0055,0.006,\
0.0065,0.007,0.0075,0.008,0.01,0.02,0.03,0.04,0.05,0.06,0.07,0.08,0.09,01]
colors = CALIPSO_colors.makecolors()
layer = imshow(x, h, data, levs, colors=colors)
ylabel('Altitude (km)')
colorbar(layer, extendrect=False, label=r'$\rm{km}^{-1}$ \rm{sr}$^{-1}$')
title('MPL_2016-7-26 Total_Attenuated_Backscatter ')
|
-
x轴还没有设置好时间
|