爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 7182|回复: 0

关于ncl坐标设定问题

[复制链接]
发表于 2020-5-1 10:35:58 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
我想给一组数据添加经纬度属性,画图的时候报错,想请问各位是哪里出错了,部分程序如下


f = asciiread("/home/yxli/slp.txt",(/72,37,12,155/),"float")

;printVarSummary(f)
slp2 = f1->Press
slp1 = f
;printVarSummary(slp2)
slp = new((/72,37,12,163/),float)


slp!0 = "lon"
slp!1 = "lat"
slp!2 = "month"
slp!3 = "year"
lon_p = ispan(-180,175,5)
lat_p = ispan(-90,90,5)
month_p = ispan(1,12,1)
year_p = ispan(1850,2004,1)
lon_p@units = "degrees_east"
lat_p@units = "degrees_north"
slp&lon = lon_p
slp&lat = lat_p
;slp&lon@units = "degrees_east"
;slp&lat@units = "degrees_north"


报错为
(0) check_for_y_lat_coord: Warning: Data either does not contai
n(0) a valid latitude coordinate array or doesn't contain one at
all.(0) A valid latitude coordinate array should have a 'units'
(0) attribute equal to one of the following values:
(0)     'degrees_north' 'degrees-north' 'degree_north' 'degrees
north' 'degrees_N' 'Degrees_north' 'degree_N' 'degreeN' 'degreesN' 'deg north'(0) check_for_lon_coord: Warning: Data either does not contain
(0) a valid longitude coordinate array or doesn't contain one a
t all.(0) A valid longitude coordinate array should have a 'units'
(0) attribute equal to one of the following values:
(0)     'degrees_east' 'degrees-east' 'degree_east' 'degrees ea
st' 'degrees_E' 'Degrees_east' 'degree_E' 'degreeE' 'degreesE' 'deg east'


密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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