Donna L Gresh wrote:
> 
> pass the two scalar fields into the first two inputs of Compute. The
> compute expression should be "[a,b]". This will give you what you want
> as the output.

This indeed was what I needed.

Thanks very much Donna.  

Steve

> 
> Donna L. Gresh
> Optimization and Mathematical Software Group
> IBM T.J. Watson Research Center
> (914) 945-2472
> http://www.research.ibm.com/people/g/donnagresh
> [EMAIL PROTECTED]
> 
>  Steve Cousins <[EMAIL PROTECTED]>                                            
>   To
>  Sent by:                                  opendx 
> <[email protected]>
>  [EMAIL PROTECTED]
>                                                                               
>         cc
>  08/31/2004 03:06 PM                                                          
>    Subject
>  Please respond to                         [opendx-users] How to create a 2D 
> vector
>     opendx-users                           field from 2 1D fields?
> 
> I have a couple of instances where I'd like to create a vector field
> from two scalar fields.
> 
> In the first case I have two 180 x 120 arrays that hold Latitudes and
> Longitudes respectively.  I'd like to create a single 180 x 120 array
> that has [lat, lon] vectors (I feel funny about calling these vectors
> but I think that is the correct OpenDX terminology).  I think I need
> to
> do this in order to more realistically present our grid in OpenDX
> since
> it isn't a uniform grid.
> 
> The second case is where I have two 180 x 120 x 22 arrays.  One holds
> velocity in the X direction and the other holds velocity in the Y
> direction.  I'd like to create an single 180 x 120 x 22 array of [u,v]
> vectors (now this is what I call a vector!).
> 
> I want to use this one to create vector plots at various water depths.
> 
> I think this must be a simple thing to do but I haven't been able to
> get
> it to work.
> 
> Thanks for your help.
> 
> Steve
> 
> P.S. If anyone has any ideas about my previous post about using
> CollectSeries to create a 3D field from a 2D field I'd appreciate
> hearing from you.  I'm at a stand-still on it.  I can make it
> available
> to you if you are interested in helping.
> --
> ______________________________________________________________________
> Steve Cousins, Ocean Modeling Group    Email: [EMAIL PROTECTED]
> Marine Sciences, 208 Libby Hall        http://rocky.umeoce.maine.edu
> Univ. of Maine, Orono, ME 04469        Phone: (207) 581-4302

-- 
______________________________________________________________________
 Steve Cousins, Ocean Modeling Group    Email: [EMAIL PROTECTED]
 Marine Sciences, 208 Libby Hall        http://rocky.umeoce.maine.edu
 Univ. of Maine, Orono, ME 04469        Phone: (207) 581-4302

Reply via email to