-
Notifications
You must be signed in to change notification settings - Fork 0
das2c_free
C. Piker edited this page Dec 7, 2023
·
2 revisions
das2c_free
Delete resources associated with a single das2 query result from memory
num_left = das2c_free(result)
Parameter | Type | Purpose |
---|---|---|
result | DAS2C_RESULT Long |
An integer result ID, or a DAS2C_RESULT structure as return by das2c_results or das2c_readhttp |
Returns the number of results still in memory.
All structures that have been returned by das2c_datasets, das2c_pdims, and das2c_vars, no longer map to objects in the internal result database. Any copies in user code of the structures themselves are still valid, but since there IDs map to nothing, they are no longer useful for retrieving data.
Any arrays that have been returned by das2c_data are not deleted automatically if still held in an IDL user-space variable. These are cleaned up IDL itself.
Free a query result after it's no longer useful
n_elements(das2c_results())
das2c_free(1)
n_elements(das2c_results())
C. Piker, 2020-03-12 - Initial Version