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

Home » Public Forums » archive » Re: Help about IDL
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: Help about IDL [message #78151] Tue, 25 October 2011 10:39
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
On 10/25/11 12:45 PM, Waleria wrote:
> Hi all,
>
> I need to use a binary file created in IDL to read in JAVA, but i'm
> having trouble.
>
> My code in IDL: http://pastebin.com/183KXxke
>
>
> My code in JAVA: http://pastebin.com/nbscx7sM
>
> I created a matrix: mat=[[0.10000000, 0.20000000],[0.40000000,
> 0.50000000]]
>
> So, when i do: print, mat[0,0] ...the result is 0.100000 that is
> correct
>
> But in the JAVA when i do: System.out.println("The value is "+ aux[i]
> [j]);
> The result is
> O valor da aux -4.29492128E8
> O valor da aux -4.28443584E8
> O valor da aux -4.2949216E8
> O valor da aux 8.8E-44
>
> That is incorrect.
>
> But i don't know what is wrong
>
> Can you help me??
>
> Thanks,

In your java code, you read the values into "mat" but then print out the
values of the uninitialized varaiable "aux".

-Jeremy.
[Message index]
 
Read Message
Previous Topic: Re: How to determine if ENVI is loaded?
Next Topic: cgcolor load color to the current color table.

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

Current Time: Wed Oct 08 13:59:39 PDT 2025

Total time taken to generate the page: 0.00385 seconds