Using JPythonMethod's data rearrange and extract functions

May, 2001
updated Sept. 2002

Introduction

Complex Data objects are easily represented in VisAD; however, to use them in your application, you may want to rearrange them. The following methods are available to help with this:

Functions to make a domain sampling set

If you plan on resampling your data, you will need to define the domain -- either by using the domain of an existing Data object, or creating a new one. Several helper functions are available:

Some examples

Suppose you have a multi-channel image and just want to draw a quick scatter plot of the brightness values in channel 0 versus channel 2.
a=load("../data/mcidas/AREA0008")
graph.scatter( extract(a,0), extract(a,2))
This will show you:

Picture of scatter plot


Back to the home page