Hi Nils,
thank you for anwsering my question.
The example-file you send is nearly the same as I have tried.
Now I have tested a new example-file of mine with the connections option you
mentioned:
netCDF irregular {
dimensions:
no_of_tetraeders = 32;
points_per_tetraeder = 4;
no_of_points = 25;
naxes = 3;
variables:
double locations(no_of_points, naxes);
double density(no_of_points);
long connect(no_of_tetraeders, points_per_tetraeder);
//global attributes:
//specific attributes:
density:field = "Dichte";
density:positions = "locations";
density:connections = "connect, tetraeder";
data:
locations =
0, 0, 0,
0, 0, 2,
0, 1, 1,
0, 2, 0,
[...]
My problem: it does not work, too.
Dx stopped with the message:
Begin Execution
ERROR: Import: Bad type: bad positions/box type in bounding box
Begin Execution
0: WARNING: /main:0/Collect:2 contains only NULL and/or invalid inputs
0: WARNING: /main:0/Collect:1 contains only NULL and/or invalid inputs
What' s wrong with my positions?
Greetings
Martin
P.S. The full example file is attached on this mail
On Sunday 17 February 2002 16:07, you wrote:
> Martin,
>
> You need to follow the netCDF naming that OpenDX uses (at least for
> easiest access to your data).
>
> The concept is described in <OPENDX_DIR>/html/pages/usrgu068.htm#HDRAPE
>
> Something in the spirit of below would import:
>
> netCDF irregular {
> dimensions:
> pointnums = 25;
> axes = 3;
> // nodesperelem = 4;
> // tetranums = 16; // Number of tetrahedra in the mesh
> variables:
> float locations(pointnums, axes);
> float density(pointnums);
> // long connect(tetranums,nodesperelem); // If you want to specify a
> connectivity //specific attributes:
> density:field = "Dichte";
> density:positions = "locations";
> // density:connections = "connect, tetrahedra"; // This defines
> connectivity data:
>
> locations =
> 0, 0, 0,
> [...]
--
------------------------------------------------------------------
Martin Liu
Deutsches Zentrum
für Luft- und Raumfahrt e.V.
Institut für Verbrennungstechnik Tel: +49 (0)711 / 6862 210
Pfaffenwaldring 38-40 Fax: +49 (0)711 / 6862 578
D-70569 Stuttgart e-mail: [EMAIL PROTECTED]
Germany http://www.dlr.de/VT
------------------------------------------------------------------
netCDF irregular {
dimensions:
no_of_tetraeders = 32;
points_per_tetraeder = 4;
no_of_points = 25;
naxes = 3;
variables:
double locations(no_of_points, naxes);
double density(no_of_points);
long connect(no_of_tetraeders, points_per_tetraeder);
//global attributes:
//specific attributes:
density:field = "Dichte";
density:positions = "locations";
density:connections = "connect, tetraeder";
data:
locations =
0, 0, 0,
0, 0, 2,
0, 1, 1,
0, 2, 0,
0, 2, 2,
1, 0, 0,
1, 0, 2,
1, 1, 1,
1, 2, 0,
1, 2, 2,
2, 0, 0,
2, 0, 2,
2, 1, 1,
2, 2, 0,
2, 2, 2,
3, 0, 0,
3, 0, 2,
3, 1, 1,
3, 2, 0,
3, 2, 2,
4, 0, 0,
4, 0, 2,
4, 1, 1,
4, 2, 0,
4, 2, 2;
connect=
3, 1, 4, 6,
3, 1, 2, 7,
3, 2, 5, 10,
3, 5, 4, 9,
3, 6, 7, 8,
3, 7, 10, 8,
3, 10, 9, 8,
3, 9, 6, 8,
8, 6, 9, 11,
8, 6, 7, 12,
8, 7, 10, 15,
8, 10, 9, 14,
8, 11, 12, 13,
8, 12, 15, 13,
8, 15, 14, 13,
8, 14, 11, 13,
13, 11, 14, 16,
13, 11, 12, 17,
13, 12, 15, 20,
13, 15, 14, 19,
13, 16, 17, 18,
13, 17, 20, 18,
13, 20, 19, 18,
13, 19, 16, 18,
18, 16, 19, 21,
18, 16, 17, 22,
18, 17, 20, 25,
18, 20, 19, 24,
18, 21, 22, 23,
18, 22, 25, 23,
18, 25, 24, 23,
18, 24, 21, 23;
density =
0, 0, 5, 0, 0,
0, 3, 5, 3, 0,
5, 5, 5, 5, 5,
0, 3, 5, 3, 0,
0, 0, 5, 0, 0;
}