cdms2.tvariable

asVariable(s, writeable=1)[source]

As Variable

Returns
s if s is a Variable; if writeable is 1,
return s if s is a TransientVariable.
If s is not a variable of
the desired type, attempt to make it so and return that.
If we fail raise CDMSError