def open_store_variable ( self , name , var ) : data = indexing . LazilyOuterIndexedArray ( CDMArrayWrapper ( name , self ) ) return Variable ( var . dimensions , data , { a : getattr ( var , a ) for a in var . ncattrs ( ) } )
how to store a list slice as a varable python numpy
Turn CDMRemote variable into something like a numpy . ndarray .
def open_store_variable(self, name, var):
        """Turn CDMRemote variable into something like a numpy.ndarray."""
        data = indexing.LazilyOuterIndexedArray(CDMArrayWrapper(name, self))
        return Variable(var.dimensions, data, {a: getattr(var, a) for a in var.ncattrs()})