Returns the partition’s data array.
After a partition has been conformed, the partition must be closed (with the close method) before another partition is conformed, otherwise a memory leak could occur. For example:
>>> dimensions = partition_array._dimensions
>>> directions = partition_array._directions
>>> units = partition_array.units
>>> save = partition_array.save_to_disk()
>>> revert_to_file = True
>>> for partition in partition_array.flat():
...
... # Conform the partition
... partition.dataarray(**conform_args)
...
... # [ Some code to operate on the conformed partition ]
...
... # Close the partition
... partition.close()
...
... # Now move on to conform the next partition
...
>>>
Parameters : | dimensions : list directions : dict units : Units
|
||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns : |
|
||||||||||||
Raises : |
|