爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 6083|回复: 0

[作图] ncl赋值变量经纬信息不识别,求大神们指点迷津

[复制链接]

新浪微博达人勋

发表于 2017-9-13 11:00:25 | 显示全部楼层 |阅读模式

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

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

x
本帖最后由 happymgj 于 2017-9-13 15:40 编辑

begin
temper=asciiread("F:/Matlab/zidongzhan/2017080818.000", (/301,301/),"float")

temper!0="lon"
lon=fspan(116,119,301)
lon@long_name="longitude"
lon@units="degrees_east"
temper&lon=lon
printVarSummary(temper&lon)

temper!1="lat"
lat=fspan(38,41,301)
lat@long_name="latitude"
lat@units="degrees_north"
temper&lat=lat
printVarSummary(temper&lat)

wks=gsn_open_wks("png","F:/Matlab/zidongzhan/2017080818")

res =True

plot=gsn_csm_contour_map(wks,temper,res)
end

错误提示:
$ ncl F:/Matlab/zidongzhan/test.ncl
Copyright (C) 1995-2017 - All Rights Reserved
University Corporation for Atmospheric Research
NCAR Command Language Version 6.4.0
The use of this software is governed by a License Agreement.
See http://www.ncl.ucar.edu/ for more details.

Variable: lon (coordinate)
Type: float
Total Size: 1204 bytes
            301 values
Number of Dimensions: 1
Dimensions and sizes:   [lon | 301]
Coordinates:
Number Of Attributes: 2
  long_name :   longitude
  units :       degrees_east

Variable: lat (coordinate)
Type: float
Total Size: 1204 bytes
            301 values
Number of Dimensions: 1
Dimensions and sizes:   [lat | 301]
Coordinates:
Number Of Attributes: 2
  long_name :   latitude
  units :       degrees_north
(0)     check_for_y_lat_coord: Warning: Data either does not contain
(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' 'degr                                     ees_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 at 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 east' '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)

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

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