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 #39758 is a reply to message #39757] Wed, 09 June 2004 05:52 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Aleks writes:

> I'm very new to IDL. I was on Mr. Fanning's website and trying to
> figure out the code. This is the website for 3D imaging (exactly what
> I'm required to do)
> http://www.dfanning.com/graphics_tips/mesh.html
>
> 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? I have winXP and I have
> been battling this for nearly 3 hours (and i know this isn't even the
> IDL problem =/)

Oh, dear. There are several ways to figure out the size
of a TIFF file. Without reading it, you can use the QUERY_TIFF
function to find out:

IDL> ok = Query_Tiff('test_01.tif', info)
IDL> Print, info.dimensions
375 150

Or, you can just read one of the files and use the
SIZE function to get the dimensions:

IDL> image = Read_TIFF('test_01.tif')
IDL> Print, Size(image, /Dimensions)
375 150

(Assuming the file was 375 by 150. :-)

Cheers,

David




--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[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 00:13:16 PDT 2025

Total time taken to generate the page: 0.00410 seconds