爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 5254|回复: 0

变量没有定义

[复制链接]

新浪微博达人勋

发表于 2017-6-23 10:05:15 | 显示全部楼层 |阅读模式

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

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

x
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"      ;********************************************************************; Utility functions to get (1) date information (2) facilitate netCDF ;********************************************************************function parseFileName ( fNam:string ); parse the file names and extract data information;           1         2; 01234567890123456789012345678; MYDATML2.A2005364.1820.005.nclocal onNam, n, output, tmp_cbegin   nNam = dimsizes( fNam )   if (nNam.eq.1) then       output    = new( 4,integer,"No_FillValue")       tmp_c     = stringtochar(fNam)              output(0) = stringtointeger((/tmp_c(10:13)/))   ; YYYY        output(1) = stringtointeger((/tmp_c(14:16)/))   ; MM       output(2) = stringtointeger((/tmp_c(18:19)/))   ; HH       output(3) = stringtointeger((/tmp_c(20:21)/))   ; MN           else       output = new( (/nNam,4/),integer,"No_FillValue")       do n=0,nNam-1          tmp_c       = stringtochar(fNam(n))                 output(n,0) = stringtointeger((/tmp_c(10:13)/))   ; YYYY           output(n,1) = stringtointeger((/tmp_c(14:16)/))   ; MM          output(n,2) = stringtointeger((/tmp_c(18:19)/))   ; HH          output(n,3) = stringtointeger((/tmp_c(20:21)/))   ; MN               end do   end if      return (output)   end我运行的时候说Variable (fNam) is undefined,不知道为什么,运行的是官网的脚本啊,求各位大神指点。
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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