Re: [visad] Strange rendering depending on axis range

Dear Gransham,

I tried to download the class and run the program, but I receive the following 
exception:

Exception in thread "main" java.lang.ClassFormatError: Unknown constant tag 0 
in class file visad/bom/ShadowImageByRefFunctionTypeJ3D
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at VisadTestDumpGraham3.main(VisadTestDumpGraham3.java:80)

What version of java did you use to compile the class? I have Java 6, so if you 
used Java 7, it could be the cause.
Can you send the source code of the class, so I can compile it myself?

Thank you!

Tomas


On May 29, 2012, at 9:10 PM, Ghansham Sangar wrote:

Respected Tom Rink Sir and Tomas Pluskal Sir.

I have tried to access the latest visad source code from the SVN.
And added support into byRef renderer to take care
Range->ZAxis and Range->RGB Mapping.


Pluskal Sir, kindly preseve the current jar file and
update your jar with the attached class file, it should work for you.
Use jar command with -uvf option.

Attached herewith the modified program VisadTestDump.java.
I am putting the class file on 
ftp.ssec.wisc.edu/pub/incoming<http://ftp.ssec.wisc.edu/pub/incoming>.
I am not able to send it through my office mail.

Kindly see my comments in the program.

Sort of a disclaimer notice, but still to say.
This is just a TEMPORARY (NOT PROPERLY TESTED) SOLUTION but still QUITE 
EFFICIENT ;-).

Just give it a try.

I hope it helps you a bit.

with regards
Ghansham

On 05/25/2012 11:30 PM, 
visad-request@xxxxxxxxxxxxxxxx<mailto:visad-request@xxxxxxxxxxxxxxxx> wrote:
Send visad mailing list submissions to
visad@xxxxxxxxxxxxxxxx<mailto:visad@xxxxxxxxxxxxxxxx>

To subscribe or unsubscribe via the World Wide Web, visit
http://mailman.unidata.ucar.edu/mailman/listinfo/visad
or, via email, send a message with subject or body 'help' to
visad-request@xxxxxxxxxxxxxxxx<mailto:visad-request@xxxxxxxxxxxxxxxx>

You can reach the person managing the list at
visad-owner@xxxxxxxxxxxxxxxx<mailto:visad-owner@xxxxxxxxxxxxxxxx>

When replying, please edit your Subject line so it is more specific
than "Re: Contents of visad digest..."


Today's Topics:

   1. Re: Strange rendering depending on axis range (Tom Rink)
   2. Re: Strange rendering depending on axis range (Tomas Pluskal)


----------------------------------------------------------------------

Message: 1
Date: Fri, 25 May 2012 00:16:39 -0500
From: Tom Rink<rink@xxxxxxxxxxxxx<mailto:rink@xxxxxxxxxxxxx>>
To: visad@xxxxxxxxxxxxxxxx<mailto:visad@xxxxxxxxxxxxxxxx>
Subject: Re: [visad] Strange rendering depending on axis range
Message-ID:<4FBF15B7.70709@xxxxxxxxxxxxx<mailto:4FBF15B7.70709@xxxxxxxxxxxxx>>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"

On 5/25/12 12:00 AM, Tomas Pluskal wrote:
Hi Tom,

I was experimenting with your VisadTest.java source, and discovered this:

                        double xMin = 1.0;
                        double xMax = 1.0007;
                        double yMin = 0.0;
                        double yMax = 100.0;
                        int xRes = 1000;
                        int yRes = 10;

formally setting the ranges to decimal values fixes the problem for me.
We are visualizing mass spectrometry data, and if the user wants to
plot a single mass signal, we need to visualize a narrow range of m/z
values, such as 179.0551 ~ 179.0558.

1.0  to 1.00007  did not work, I think this can be expected.
Hmm, why this can be expected?
0.00007/1000 is possibly too small for float precision.



Tomas


===============================================
Tom?s( Pluskal
G0 Cell Unit, Okinawa Institute of Science and Technology Graduate
University
1919-1 Tancha, Onna-son, Okinawa 904-0495, Japan
TEL: +81-98-966-8684
Fax: +81-98-966-2890



_______________________________________________
visad mailing list
visad@xxxxxxxxxxxxxxxx<mailto:visad@xxxxxxxxxxxxxxxx>
For list information, to unsubscribe, visit: 
http://www.unidata.ucar.edu/mailing_lists/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:<http://mailman.unidata.ucar.edu/mailing_lists/archives/visad/attachments/20120525/ddf98eaa/attachment.html>

------------------------------

Message: 2
Date: Fri, 25 May 2012 05:41:16 +0000
From: Tomas Pluskal<pluskal@xxxxxxx<mailto:pluskal@xxxxxxx>>
To: 
"visad@xxxxxxxxxxxxxxxx<mailto:visad@xxxxxxxxxxxxxxxx>"<visad@xxxxxxxxxxxxxxxx<mailto:visad@xxxxxxxxxxxxxxxx>>
Subject: Re: [visad] Strange rendering depending on axis range
Message-ID:<DD0D6ACD-8B55-4FA4-BAC0-EB8B2B5D7640@xxxxxxx<mailto:DD0D6ACD-8B55-4FA4-BAC0-EB8B2B5D7640@xxxxxxx>>
Content-Type: text/plain; charset="windows-1252"


0.00007/1000 is possibly too small for float precision.

I see.

But 7000 / 10000 is not that small... (xMin = 10000000, xMax = 10007000, xRes = 
10000 shows the same issue).

Tomas


===============================================
Tom?? Pluskal
G0 Cell Unit, Okinawa Institute of Science and Technology Graduate University
1919-1 Tancha, Onna-son, Okinawa 904-0495, Japan
TEL: +81-98-966-8684
Fax: +81-98-966-2890

-------------- next part --------------
An HTML attachment was scrubbed...
URL:<http://mailman.unidata.ucar.edu/mailing_lists/archives/visad/attachments/20120525/4d2b06d0/attachment.html>

------------------------------

_______________________________________________
visad mailing list
visad@xxxxxxxxxxxxxxxx<mailto:visad@xxxxxxxxxxxxxxxx>
For list information, to unsubscribe, visit: 
http://www.unidata.ucar.edu/mailing_lists/

End of visad Digest, Vol 30, Issue 11
*************************************


<VisadTestDump.java>_______________________________________________
visad mailing list
visad@xxxxxxxxxxxxxxxx<mailto:visad@xxxxxxxxxxxxxxxx>
For list information, to unsubscribe, visit: 
http://www.unidata.ucar.edu/mailing_lists/

===============================================
Tomáš Pluskal
G0 Cell Unit, Okinawa Institute of Science and Technology Graduate University
1919-1 Tancha, Onna-son, Okinawa 904-0495, Japan
TEL: +81-98-966-8684
Fax: +81-98-966-2890