What you really want to do is to create a field with regular connections
and irregular positions defined as a product.  This is consistent with how
netCDF stores such data.  The netCDF importer will does this for you if you
have the right metadata (i.e., netCDF attributes).  The syntax is outlined
in the manuals and has been discussed in the e-mail group as well as the
netCDF e-mail group in the past.  You should add the attributes to your
netCDF so that Import will create the appropriate grid for your data.

I'm not familiar with Make3Field is not appropriate, but it sounds like
Compute is used to construct a 3d field.  All inputs to Compute in this
case must be the same size.  What you are importing are three 1d arrays
specifying the mesh points along each axis.  The full mesh is defined as a
product of the three.  The 3d data are then defined on each vertex of that
mesh.


Kate White <[EMAIL PROTECTED]>@opendx.watson.ibm.com on 01/03/2002 04:59:25
PM

Please respond to [email protected]

Sent by:    [EMAIL PROTECTED]


To:    [email protected]
cc:
Subject:    [opendx-users] netcdf and Make3dField



Hello all,

I am importing a netcdf file into dx with 4 different arrays:

x:  [x.0, x.1, ....., x.n]
y:  [y.0, y.1, ....., y.m]
z:  [z.0, z.1, ....., z.p]

data:  [data.(x.0, y.0, z.o), data.(x.1, y.0, z.0), ...., data.(x.n,
y.m, z.p)]

What I want to do is match each data point up to its corresponding
postion.  I have tried Make3DField (see attachment), but it gives the
following error :


ERROR: Make3dField: Compute:  Bad parameter: Inputs must be of same
length / Input 1 not matching the master (input 0)

The Make3dField module does not specify that the x, y, and z positions
must be the same dimensions, so I must be doing something else wrong.
Please help!

Katherine White



Reply via email to