Thanks much for the help - it looks like this will do the trick. Since
I'm a fairly new user, I will have to read up on using macros so that I
can integrate this into my program.
-Karl
Lloyd A Treinish wrote:
This is a common situation.
I wrote the following over a decade ago. Perhaps it may help.
http://www.research.ibm.com/dx/bonuspak/contrib/macros/ConvertToCellCentered.net
Here's a description:
This program converts a field from positions-dependent to
connections-dependent without interpolating data as would be the case for
Post. This program is intended to be used for cases where data can only be
imported as positions-dependent because the original structure does not
make a distinction between positions-dependent and connections-dependent
and Data Explorer assumes a default of positions-dependent (i.e., CDF,
netCDF and HDF). Since that information is not typically imbedded in the
file, only the user would be aware that such a transformation would be
required. In such cases, the bounding box for the data is not exactly
correct, which Post preserves. This program would make the appropriate
adjustment.
|---------+---------------------------------------->
| | Karl Pohlmann <[EMAIL PROTECTED]> |
| | Sent by: |
| | [EMAIL PROTECTED]|
| | son.ibm.com |
| | |
| | |
| | 06/28/2004 07:57 PM |
| | Please respond to |
| | opendx-users |
| | |
|---------+---------------------------------------->
>-----------------------------------------------------------------------------------------------------|
|
|
| To: [email protected]
|
| cc:
|
| Subject: [opendx-users] HDF format files, connection based
(cell-centered) data |
|
|
>-----------------------------------------------------------------------------------------------------|
I'm working with a colleague that produces 3-D simulation results in HDF
format. When I import these files into DX, it appears that they are
imported as position-dependent data. The problem is that the results
are actually cell-centered (connection-dependent). Is it possible to
"switch" the position-dependent data to connection-dependent *after*
importing the HDF file into DX, or should I convert the HDF files to
native dx format and import as I normally would?
Thanks in advance.
Karl Pohlmann