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

Home » Public Forums » archive » Re: .dat file size
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: .dat file size [message #39757 is a reply to message #39740] Wed, 09 June 2004 06:04 Go to previous messageGo to previous message
btt is currently offline  btt
Messages: 345
Registered: December 2000
Senior Member
Aleks wrote:

>
> this is the part of the code i don't quiet understand
>
> volume = BytArr(80,100,50)
> FOR j=0,49 DO BEGIN
>
> I know the 50 comes from the fact that there are 50 different images
> so we are going to stack them(I have 81 in my own test project). Now
> the 80 and a 100 comes from some other place and I know that is the
> size of the array ie its a 80x100 array. I have a test_01.tif file how
> would I figure out the size of the array?

Hello,

I think you are asking how to determine the size of the image in the
tiff file(s). You can use the QUERY_**** routines to get basic
information regarding the image before you read it into an IDL variable.

Something like this should work if your slices are stored in separate
files (you can easily modify this for multi-tiff format.)


nImages = n_elements(file)

ok = QUERY_TIFF(file[0], info)

If ok Then Begin

volume = BytArr([info.dimensions, nImages], /noZero)

for i = 0, nimages-1 Do $
Volume[*,*,i] = READ_IMAGE(file[i])

EndIf



Ben
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: do dlms work in vm?
Next Topic: common blocks

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

Current Time: Sat Oct 11 10:26:00 PDT 2025

Total time taken to generate the page: 0.96247 seconds