爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 6772|回复: 3

帮我看看这个错误该怎么调

[复制链接]
发表于 2014-8-20 11:46:50 | 显示全部楼层 |阅读模式

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

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

x
数据描述:
float UGRD_P0_L100_GLL0 ( lv_ISBL0, lat_0, lon_0 )
         center :       US National Weather Service - NCEP (WMC)
         production_status :    Operational products
         long_name :    U-component of wind
         units :        m s-1
         _FillValue :   1e+20
         grid_type :    Latitude/longitude
         parameter_discipline_and_category :    Meteorological products, Momentum
         parameter_template_discipline_category_number :        ( 0, 0, 2, 2 )
         level_type :   Isobaric surface (Pa)
         forecast_time :        0
         forecast_time_units :  hours
         initial_time : 04/11/2011 (00:00)
代码:
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
begin
;read data from four files
diri = "/home/liuzhe/fnl_data/"
fils = systemfunc("ls "+diri +"fnl_20110411*.grib2")
f = addfiles(fils ,"r")
ListSetType(f ,"join")
; u is U-component of wind
u = f[:]->UGRD_P0_L100_GLL0
;v is V-component of wind
v = f[:]->VGRD_P0_L100_GLL0
;r is rain
r = f[:]->PWAT_P0_L200_GLL0
; u is four demenion array, 1st is the number of the file in files , 2st is pa ,3st is lat ,4st is lo
u!1 = "lv"
u&1 = f[0]->UGRD_P0_L100_GLL0&lv_ISBL0
end
错误:
liuzhe@nmicnwp:~> ncl rainWind-820.ncl
Copyright (C) 1995-2013 - All Rights Reserved
University Corporation for Atmospheric Research
NCAR Command Language Version 6.1.2
The use of this software is governed by a License Agreement.
See http://www.ncl.ucar.edu/ for more details.
fatal:syntax error: line 18 in file rainWind-820.ncl before or near &
u&
--^
fatal:error in statement
fatal:Syntax Error in block, block not executed
fatal:error at line 19 in file rainWind-820.ncl

密码修改失败请联系微信:mofangbao
发表于 2014-8-20 12:19:34 | 显示全部楼层
u&1——》u&lv
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2014-8-20 14:22:52 | 显示全部楼层

噢是啊,是个这个原因
密码修改失败请联系微信:mofangbao
发表于 2014-9-2 21:29:24 | 显示全部楼层
T!0 = "lat"
T!1 = "lon"
T&lat = (/-90.,-85.,...,85.,90./)
T&lon = fspan(0.,355.,72)         
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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