Hello
I have read the sides about NetCDF in the User Guide and have written
a small test-netcdf-file to import in dx.
I want to viualize a scalar (Density) on an irregular grid, defined by
'locations'.
For simplificy I defined the array of vectors explicitly, later on I want to
collect the single coordinates to the vector 'locftions'.
By importing in DX I get the Message:
ERROR: Import: Bad type: bad positions/box type in bounding box
What's the problem?
Below you find my testfile, composed like the Example 'Irregular Surface' in
the User Guide.
How can I create the vector 'locations' by its single coordinates?
Be very pleasant for help
Martin Liu
netCDF irregular {
dimensions:
no_of_points = 25;
naxes = 3;
variables:
double locations(no_of_points, naxes);
double density(no_of_points);
//specific attributes:
density:field = "Dichte";
density:positions = "locations";
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;
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;
}
On Monday 11 February 2002 14:03, you wrote:
> > ----------
> > Von: Lloyd A Treinish[SMTP:[EMAIL PROTECTED]
> > Gesendet: Montag, 11. Februar 2002 14:03:07
> > An: [email protected]
> > Betreff: Re: [opendx-users] NetCDF and DX
> > Diese Nachricht wurde automatisch von einer Regel weitergeleitet.
>
> It looks like Import read the arrays, but hasn't created the fields you
> need.
>
> There are limitations in what the netCDF importer handles, as has been
> discussed in this e-mail group. There are specific conventions, which are
> outlined in the documentation, which can also help. (See
> http://www.research.ibm.com/dx/docs/legacyhtml/pages/usrgu067.htm and
> http://www.research.ibm.com/dx/docs/legacyhtml/pages/usrgu068.htm for
> details.)
>
> It looks like your first group has the positions component you need and the
> second group various data components. I assume somewhere you have
> connectivity information. You'll need to define the grid (positions and
> connections) on which the different variables are defined.
>
>
> Martin Liu <[EMAIL PROTECTED]>@opendx.watson.ibm.com on 02/11/2002 07:47:46
> AM
>
> Please respond to [email protected]
>
> Sent by: [EMAIL PROTECTED]
>
>
> To: [email protected]
> cc:
> Subject: [opendx-users] NetCDF and DX
>
>
>
> Hello,
>
> I want to display Grids and datas from CFD by using DX with NetCDF support
> under Linux.
> To do this, I compiled a DX version of my own. First I installed a
> netcdf-version.
> Also I tried the binary-version of DX for suse-linux.
>
> My problem: netcdump and netgen are working and DX also do.
> But I can't read any kind of NetCDF-file with DX. Mostly I get the
> following
> messages:
>
>
> 0: WARNING: no 'field' attributes; importing all netCDF variables
> Object Description:
> Input object is a Group which contains 7 members.
> member 0 is named points_of_tetraeders
> member 1 is named points_of_surfacetriangles
> member 2 is named boundarymarker_of_surfaces
> member 3 is named boundarypanel_of_surfaces
> member 4 is named points_xc
> member 5 is named points_yc
> member 6 is named points_zc
>
> Input is not ready to be rendered because 7 Fields in the Input object do
> not
> have colors yet.
> Use the `AutoColor', `AutoGreyScale', or `Color' modules to add colors.
>
> ---------------------------------------------------------
>
> Input object is a Group which contains 27 members.
> member 0 is named aa
> member 1 is named bb
> member 2 is named cc
> member 3 is named cd
> member 4 is named ce
> ...
> member 22 is named vv
> member 23 is named uu
> member 24 is named tt
> member 25 is named tu
> 0: WARNING: no 'field' attributes; importing all netCDF variables
> member 26 is named yet_another_variable
> Each group member is a Field, the basic data carrying structure in DX.
> Data range is:
> minimum = -2.14748e+09, maximum = 9.96921e+36, average = 8.40545e+33
> Input is not ready to be rendered because 9 Field(s) in the Input object
> have
> bad positions (less than 1D or greater than 3D).
> If > 3D, use the `Slice' module or `Mark' and `Compute' to reduce them to
> 3D
> or less.
>
> ECHO:
> Begin Execution
> Begin Execution
> 0: WARNING: no 'field' attributes; importing all netCDF variables
> Begin Execution
> 0: WARNING: no 'field' attributes; importing all netCDF variables
> ERROR: MapToPlane: Invalid data: lines is an invalid connections type
>
> --------------------------------------------------------
>
> Also the testfile coming with the tar-file of NetCDF doesn't work.
>
> Is this a problem of the Binary-Version or is it all allrigth, but I have
> to
> give special options to DX?
>
> Be very pleasant for help,
> Greetings
>
> Martin Liu
>
> P.S.
>
> I have used the following packages:
>
> NetCDF-3.5.0
> DX-4.1.3
> gcc-2.95.2-98
> no fortran99-compiler
> suse-linux 7.0, kernel-version 2.2.16
>
> and on the other hand:
> opendx-4.1.0-1.suse63.i586.rpm
>
>
>
> --
> ------------------------------------------------------------------
>
> 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
>
> ------------------------------------------------------------------
--
------------------------------------------------------------------
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
------------------------------------------------------------------