cfdm.Data.to_memory

Data.to_memory()[source]

Bring data on disk into memory and retain it there.

There is no change to data that is already in memory.

Returns

None

Examples:

>>> f = cfdm.example_field(4)
>>> f.data
<Data(3, 26, 4): [[[290.0, ..., --]]] K>
>>> f.data.to_memory()