You're close (See Appendix B.5 of the DX user's guide) for details, which
you may have seen before.  The positions component has to be float and get
rid of "locations:field = "locations, vector" ;"  Yes, what you suggest for
series should work but not with Slice.  Take the output of Sequencer to the
start/stop inputs of Import.

--------------------------
Lloyd A. Treinish
Deep Computing Institute
IBM Thomas J. Watson Research Center
P. O. Box 218
Yorktown Heights, NY 10598
914-945-2770 (voice)
914-945-3434 (facsimile)
[EMAIL PROTECTED]
http://www.research.ibm.com/people/l/lloydt/
http://www.research.ibm.com/weather


"Nick Shaw" <[EMAIL PROTECTED]>@opendx.watson.ibm.com on 05/15/2000
01:14:13 PM

Please respond to [email protected]

Sent by:  [EMAIL PROTECTED]


To:   <[email protected]>
cc:
Subject:  [opendx-users] Very novice like question (reading netCDF file)



Could someone help me please?
I would like to simply plot points (or spheres) at certain positions in 3D
space.
My idea was to use auto-glyph to plot spheres at positions (x,y,z) and give
each point a data value = 1.0 so that the glyphs are the same size. (Tell
me
if there is an easier way to do this)
I would like to do it using a netCDF file. (I have succeeded with a
spreadsheet but it is messy)
The problem is that I don't know how to get opendx to understand that the
positions are POSITIONS and not data.

I have read the manual (App. B) and read a post from last July, but still
cannot figure it out.

------my netCDF file-------------(doesn't work)
netcdf tst {
dimensions:
        npts = 10 ;
        three = 3 ;
variables:
        double locations(npts, three) ;
                locations:field = "locations, vector" ;
        double d(npts) ;
                d:field = "d, scalar" ;
                d:positions = "locations" ;
data:

 locations =
  3.97, 0.58, -0.62,        // numbers are truncated to make reading easier
  2.66, 0.89, 0.28,
  -4.39, 4.73, 0.017,
  -4.62, -2.81, -0.94,
  -3.57, 4.84, 0.056,
  3.94, 4.47, 0.16,
  3.04, -3.39, -0.097,
  -2.91, 3.18, 0.22,
  -3.96, 2.41, -0.54,
  -4.86, -4.03, -0.61 ;

 d = 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ;
}
------------------end of netCDF file----------------------

I get the error message: "ERROR: Import: Bad type: bad positions/box type
in
bounding box"
when I try to Test Import under Import Data (netCDF)


PS.  I would then like to make a time series of these points.
As I understand it, this involves putting an extra dimension t = UNLIMITED
s.t. I get:

    double locations(t, npts, three) ;
    double data(t, npts) ;

Then I can use slice to take each time frame and image it, with sequencer
playing through the sequence.

Reply via email to