Store differents size of .fits into one single array [message #86178] |
Wed, 16 October 2013 10:21  |
a.clovirola
Messages: 6 Registered: June 2013
|
Junior Member |
|
|
Hello everyone,
My question is about dealing with multiple size of image before any operation.
I have several .fits file of different size : 1050x800, 525x400 mainly.
i use file_search to list the different names and create an empty array (1050,800,n-elements(filelist).
My problem is with the smaller array, he refuses to write it due to the different size.
Is there a way to trick IDL to write 0 instead of nothing for the smaller images ?
Thank your for your time :)
|
|
|
|
Re: Store differents size of .fits into one single array [message #86192 is a reply to message #86179] |
Thu, 17 October 2013 05:19  |
a.clovirola
Messages: 6 Registered: June 2013
|
Junior Member |
|
|
> If you have IDL8+ you could use a list to store your images. If not, you
>
> could use a pointer array (PTRARR)
Thanks for the list tip, i used it and it works, i have now a liste containing my arrays :)
fich=file_search(dir+'*'+format)
image=list()
for i=0,n_elements(fich)-1 do image.add,readfits(file[i])
if someone is interessed :)
|
|
|