comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Unable to allocate memory: to make an array. Not enough space
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Unable to allocate memory: to make an array. Not enough space [message #91764] Mon, 24 August 2015 13:43 Go to previous message
fd_luni is currently offline  fd_luni
Messages: 66
Registered: January 2013
Member
Hi

I have a 4D array A = [240,256,256,10] and I call this array into FOR loops as a 3D array.

Data = A

FOR k=0L, 9 DO BEGIN ;looping over levels
A = A[*,*,*,k]

FOR l=0L,n_elements(N)-1 DO BEGIN

FOR iter=1L,1 DO BEGIN

ENDFOR
ENDFOR
A = Data
ENDFOR

I set the A=Data because in the next level (k=1) I wanted the matrix to be 4D otherwise it's 3D [240,256,256] and I've got the following error. 'Attempt to subscript ARRAYSOURCE with K is out of range.'

Once I set the A = Data I got this error 'Unable to allocate memory: to make an array. Not enough space'. Can anyone please help with this?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Plot and Legend problem
Next Topic: Mean = NaN if NaN present

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:49:36 PDT 2025

Total time taken to generate the page: 0.00771 seconds