Chris Pelkie:
 |>Is there a way to adjoin grids in DX without interpolation?
 |
 |This might be terribly memory inefficient, but here's the concept I'd
 |explore (it appears to work on the back of an envelope: your mileage may
 |vary). I know I've done this on smaller cases, but I bet you have a big
 |case so it might not work.
 |
 |Slab off all but the overlapping column from the second grid (Slab starts
 |at position 1 in the row dimension).
 |
 |The trick is to linearize the data (or other dependent arrays) for the two
 |grids. This is easy: just Extract them. Then List them one after the other
 |(List is a very cool module that is so simple people overlook its power).
 |
 |Then Construct a new base grid with the correct concatenated dimensions (a
 |few Inquires and Computes to get the numbers you need) and simply feed the
 |List(ed arrays) into the data input of Construct. If necessary, Replace
 |other dependent arrays onto this field with successive serial Replaces.

That's pretty slick.  Appending is easy with this thanks to List, and I
found that a couple Reorients before and after would even let me
re-interleave the data for butting-up regular grids side-by-side.

But as you suspected, the problem is the dataset size.  There are several
temp datasets created in doing this, and at 50-100MB a pop even with
caching off it's going to take a while and a bit of memory to construct the
merged grid.  Time and memory are constraints since I'm aiming this for a
24-7 server.

Thanks for the List trick though.  I'll remember that one.

Randall

-- 
Randall Hopper (mailto:[EMAIL PROTECTED])
EPA Scientific Visualization Center
US EPA MD/24 ERC-1A; RTP, NC 27711

Reply via email to