Determine whether a unit string is parseable by the udunits library
确定是否一个单元字符串解析的的udunits库的
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Determine whether a unit string is parseable and recognized by the udunits library.
确定一个单位的字符串是解析的和确认的udunits库的。
用法----------Usage----------
ud.is.parseable(unit.string)
参数----------Arguments----------
参数:unit.string
A character string representing a type of units which may be parseable by the udunits library
一个字符串类型的单位,这可能是解析的的udunits库
Details
详细信息----------Details----------
ud.is.parseable uses udunit's function ut_parse to determine whether or not the given unit string is parseable. If ut_parse returns NULL, then ud.is.parseable will return FALSE.
ud.is.parseable使用udunit函数ut_parse,以确定是否给定单元的字符串是可解析。 ut_parse如果返回NULL,那么ud.is.parseable返回FALSE。
值----------Value----------
Returns a logical: True if the units is parseable and recognized by the udunits library, False otherwise.
返回一个符合逻辑的:True:“如果单位是解析的和确认的udunits库的,False否则。
注意----------Note----------
There is a note in the ut_parse docs about how the argument string must have no leading or trailing whitespace. We make sure in this package to always call ut_trim on any strings before they are passed to ut_parse. The package user need not strip whitespace before-hand.
ut_parse文档中的注释有关的参数字符串必须没有开头或结尾的空白。我们要确保在此包中总是调用ut_trim它们被传递给ut_parse之前的任何字符串。包用户不必条的空格前手。
(作者)----------Author(s)----------
James Hiebert <a href="mailto:hiebert@uvic.ca">hiebert@uvic.ca</a>
参考文献----------References----------
http://www.unidata.ucar.edu/software/udunits/ API guide for ut_parse: http://www.unidata.ucar.edu/software/udunits/udunits-2/udunits2lib.html#index-ut_005fparse-43