爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
楼主: koala54

[作图] 使用NCL画风云卫星TBB数据

  [复制链接]

新浪微博达人勋

发表于 2016-12-1 21:57:48 | 显示全部楼层
我想问下楼主[img]卫星资料变量名是有空格的,读TBB时一直报错,在变量名两边加$也不行,想了各种办法都不行,大家没遇到这样的问题吗?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-12-2 09:24:37 | 显示全部楼层
Stay。。。 发表于 2016-12-1 21:57
我想问下楼主卫星资料变量名是有空格的,读TBB时一直报错,在变量名两边加$也不行,想了各种办法都不行,大 ...

有空格的就要加下划线。
比方说某个变量名叫AA BB。
那么读取的时候要写成AA_BB。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-12-2 13:43:49 | 显示全部楼层
好东西啊,感谢
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2016-12-3 10:59:51 | 显示全部楼层
心中的太阳dd_hm 发表于 2016-12-1 19:31
楼主,我用你的程序把AWX格式转成grd格式,grads画图的时候没有错误,但图是空白的,你能把ctl和gs文件发给 ...

ctl和gs可以参见帖子http://bbs.06climate.com/forum.p ... p;extra=&page=1
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-12-3 19:14:23 | 显示全部楼层
学习了,谢谢!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-12-3 20:35:37 | 显示全部楼层
koala54 发表于 2016-12-3 10:59
ctl和gs可以参见帖子http://bbs.06climate.com/forum.php?mod=viewthread&tid=17896&extra=&page=1

已经参考了,但是图很怪,中间大部分都没有数值,角落里有一点,不知道错在哪。。。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-12-11 16:08:59 | 显示全部楼层
本帖最后由 liliknn 于 2016-12-11 16:12 编辑

求助楼主
也是奇了怪,运行NCL提示:
[liliknn@dellr710 TBB_FY]$ ncl TBB_FY_T03.ncl
Copyright (C) 1995-2015 - All Rights Reserved
University Corporation for Atmospheric Research
NCAR Command Language Version 6.3.0
The use of this software is governed by a License Agreement.
See http://www.ncl.ucar.edu/ for more details.
fatal:["Execute.c":132]:variable (FY2E_TBB_Hourly_Product) is not in file (FY2E_TBB_IR1_NOM_20100717_1800.hdf)
fatal:["Execute.c":6316]:variable (FY2E_TBB_Hourly_Product) is not in file (f)
fatal:["Execute.c":8575]:Execute: Error occurred at or near line 11 in file TBB_FY_T03.ncl


[liliknn@dellr710 TBB_FY]$ ncl_filedump -c FY2E_TBB_IR1_NOM_20100717_1800.hdf
Copyright (C) 1995-2015 - All Rights Reserved
University Corporation for Atmospheric Research
NCAR Command Language Version 6.3.0
The use of this software is governed by a License Agreement.
See http://www.ncl.ucar.edu/ for more details.

Variable: f
Type: file
filename:        FY2E_TBB_IR1_NOM_20100717_1800
path:        FY2E_TBB_IR1_NOM_20100717_1800.hdf

dimensions:
    phony_dim_0        = 2288

variables:
    Variable: FY2E TBB Hourly Product
    Type: float
    Total Size: 5234944 values
                20939776 bytes
    Number of Dimensions: 2
    Dimensions and sizes:        [ 2288 <phony_dim_0> x 2288 <phony_dim_0> ]
    Coordinates:
        Number of Attributes:        6
            LayerName        :         FY2E TBB Hourly Product
            Unit        :         K?
                                   1
            LowerValidRange        :         160
            UpperValidRange        :         340
            FillValue        :          0
            QualityIndex        :         

Coordinates:


密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-12-11 16:12:56 | 显示全部楼层
谢谢楼主分享
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-12-16 15:33:25 | 显示全部楼层
版主可否也能把geodiag.ncl的脚本发我下,我的邮箱是446891800@qq.com~~万分感谢
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-12-31 21:58:11 | 显示全部楼层
感谢楼主分享
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表