In the Interactive Data Language (IDL) there is the function TEMPORARY
:
https://www.harrisgeospatial.com/docs/TEMPORARY.html
This function allows things like the following:
A = TEMPORARY(B)
Which copies the information from B
into A
without doubling the used memory. That is, if A
amounts to 1GB of RAM, the task above does not need a computer with 2GB of RAM and it can be executed in a computer with 1GB of RAM.
I was wondering if such a function exists in Python.