X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 16 Jan 2008 01:19 PM by  anon
Simple question: Vector Fields and the length of corresponding vector arrows
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
16 Jan 2008 01:19 PM
    I am working on a project in which we would like to compare IDL generated vector fields based on their magnitude, but the magnitude(represented by length of vector arrow) of each vector visually depends upon the maximum magnitude in each dataset. This is a problem because on one vector field a value of 20 could be the longest arrow (fi highest magnitude in set), but on the next vector field only be half the maximum size (if the magnitude max was 40, for example). Is there a way to set a fixed index for the length of the all of the vector fields so that a visual comparison of the arrows can be made between plots with the same scale? I have only started working on IDL this past weekend, so I apologize for such a simple question.

    Deleted User



    New Member


    Posts:
    New Member


    --
    16 Jan 2008 01:19 PM
    The universal solution for this kind of problem is to "normalize" all the data. Every dataset, then, would be rescaled to a span of 0.0 to 1.0 - typically by subracting from each value the min value that you want to represent in your visualization (frequently 0) and dividing each result by the real span (max(data) - thatMinValue). After such a treatment, two datasets, normalized separately, one with a max value of 20, the other with a max value of 40, could be visualized in the same dataspace with range of 0.0 to 1.0 in all directions, and the 20 magnitude vector in the first dataset would display with the same magnitude as the 40 magnitude vector in the second dataset. (IDL Object Graphics has a routine set of keywords [XYZ]COORDCONV for all its plottable graphics objects, which is specifically designed to aid in this kind of normalization. In IDL Direct Graphics, however, you have to create more of your own variables to manage the scaling and mapping of the different graphics elements.) James Jones
    You are not authorized to post a reply.