Re: [visad] Transformation and/or resampling


thanks for your hint. So i have to iterate over all sequence and check if there is a point near my coordinate. After that, i have to check which result is the nearest, right?
Or is there a better solution?

I try to clarify my question:
1b) convet a flat field with the the mathtype (time->(lat,lon)->temperature) to (lat,lon)->temperature (convert the data to a linear grid)

2) How can i calculate the clipping parameter? I need a user defined clipping area. So how can i calculate from an axis value (like x=70) to the clipping parameter X_POS and/or X_NEG?
dr.setClip(0, true,  1.0f,  0.0f,  0.0f, -1.01f);  // X_POS face
dr.setClip(1, true, -1.0f,  0.0f,  0.0f, -1.01f);  // X_NEG face

Thanks a lot,
Stefan Below

On 18.01.2014 10:29, Ghansham Sangar wrote:
Hi Stefan

Regarding point 1, the visad data object corresponding to the function type that you mentioned is a FieldImpl. You can extract the flatfield with the FunctionType ((lat,lon)->Temperature)
by using following FieldImpl method:
It will get you the first flatfield (or let say first image) in the sequence.

Regarding second one, I am not able to understand the query exactly.


On 01/18/2014 12:30 AM, visad-request@xxxxxxxxxxxxxxxx wrote:
Send visad mailing list submissions to

To subscribe or unsubscribe via the World Wide Web, visit
or, via email, send a message with subject or body 'help' to

You can reach the person managing the list at

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

Today's Topics:

    1. Transformation and/or resampling (Stefan Below)


Message: 1
Date: Fri, 17 Jan 2014 11:54:08 +0100
From: Stefan Below<stefanbelow@xxxxxx>
To: visad@xxxxxxxxxxxxxxxx
Subject: [visad] Transformation and/or resampling
Content-Type: text/plain; charset=ISO-8859-1; format=flowed


i have some question about data transformation or resampling.

1) I have some data that are defined like this
          a) Is it possible to transform/resample the data to
(The result should be a n x m grid with temperature values.

          b) I want to get the value information for a specific
coordinate (in  this case lat/lon).
field.evaluate(LatLonRealtupleType) is not working, because
of the wrong mathtype.

2) I'am using screenbased axis with TwoDDisplayRendererJ3D . Now i want
to set the clipping area to the bounds of the screen based axis. But i
have no clue how to calculate the clipping area. For testing, i tried
to use the cursor position as a clipping boundary.

double[] cursor = getCursor();
float tmpXMAX=(float)cursor[0];
setClip(0, true, tmpXMAX, 0.0f, 0.0f, -1.0f);

But it is not working as aspected. The boundary is only correct if the
cursor is exactly over the right side of the box (cursor position = 1).
I think i missed some kind of transformation. Maybe someone can give me
a hint.

Thanks a lot
Stefan Below


visad mailing list
For list information, to unsubscribe, visit:

End of visad Digest, Vol 48, Issue 3

visad mailing list
For list information, to unsubscribe, visit: