'getenv' behavior in NCL not as advertised...

From: Gary Strand (strandwg@XXXXXX)
Date: Wed Feb 21 2001 - 11:20:06 MST


According to http://ngwww.ucar.edu/ngdoc/ng/ref/ncl/functions/getenv.html,

"The getenv function returns either an empty string when the shell environment
variable does not exist, or the string value of the environment parameter
requested."

However, if I do a getenv on an undefined environment variable, I get a fatal
error:

fatal:getenv : (NDAYS) is not a defined environment parameter

Something of a curioisity.

--
Gary Strand                Climate Change Research Section, NCAR (303) 497-1336
strandwg AT ucar.edu                          http://www.cgd.ucar.edu/ccr/strandwg



This archive was generated by hypermail 2b29 : Tue Feb 19 2002 - 09:06:05 MST