Create the grid big enough for both meshes and then use Map.

David

Hi,
I have several rectangular 2D scalar fields (intensity vs. 2D coordinate,
regular square grid), all with the same step size (i.e. they live on the same
mesh, but in different areas and only partially overlap). I would now like to
merge them into one field, so that I can e.g. transpose and and then average
them. CollectMultiGrid does not create a single field as output, so doesn't
work. When I try to first regrid the input fields on the same field made by
construct, the areas where no data exist are not zero, but some interpolated
value, and adding the input fields afterwards will add that interpolated
intensity to the other patches. The approach with compute that works e.g.
with merging two scalar fields that live on the same grid to obtain a vector
field does not work, since the grids of the input fields are not the same and
overlap at best partially. Making a large field encompassing the area of the
input fields, filling it with zeroes and then trying to add the individual
fields to it fails since the sizes of the grids do not match.
So I ran out of ideas. Am I missing something obvious?
Thanks for any hints,
Wolfgang
--
Dr. Wolfgang Braun
Paul-Drude-Institut
für Festkörperelektronik
Hausvogteiplatz 5-7
D-10117 BERLIN

phone (downtown office): +49-(0)30-20377-366
phone (BESSY): +49-(0)30-6392-3436
fax (downtown): +49-(0)30-20377-201
fax (BESSY): +49-(0)30-6392-2969
mobile: +49-(0)160-99882210


--
.............................................................................
David L. Thompson                   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]    5515 Skyway Drive, Missoula, MT 59804
                                    Phone : (406)756-7472

Reply via email to