Hi Chris

there is little misunderstanding... from very begining:
I have plot3d grid file, stepsize of the the grid varies along every direcrion 
(irregular grid in OpenDX notion, but not scattered points, just every 
gridcell is improper parallelogram), gridpoints in it saved like (Fortran):
      write (nfile) (((x(i,j,k),i=1,npx),j=1,1),k=1,npz),
     +                  (((y(i,j,k),i=1,npx),j=1,1),k=1,npz),
     +                  (((z(i,j,k),i=1,npx),j=1,1),k=1,npz)
so that first index varies fast. now I want to read this grid into OpenDX 
using Native File Format. I have to specify order of indexes for proper 
reading this array into OpenDX with Native File Format. but how? in General 
Array Importer I can, but it is impossible there to read grid from one file 
and data from another (as it done in plot3d format). 

actually I do not understand how to use your advice: it is for regular grid, 
where stepsize is constant along the direction.

best
Maxim

> http://opendx.npaci.edu/docs/html/pages/usrgu025.htm#HDRARRAYS
>
> The 'trick' (and it is somewhat obscure) is revealed in Figure 11 on
> this URL.
>
> Rearrange the delta clauses.
>
> If Z varies fastest, you might write:
> delta 1 0 0  # for X
> delta 0 1 0 # for Y
> delta 0 0 1 # for Z
>
> But if X varies fastest, write:
> delta 0 0 1 # for X
> delta 0 1 0 # for Y
> delta 1 0 0 # for Z
>
>
>
> On Tuesday, Jun 24, 2003, at 04:45 America/New_York, Maxim Loginov
>
> wrote:
> > Hi all
> >
> > from OpenDX User Guide (appendix "B.2 Data Explorer Native Files",
> > paragraph
> > "Syntax of the Native File Format", subparagraph "Data section"):
> > The Data Explorer file format is flexible enough to describe many
> > existing
> > data formats without having to reformat the data. It allows you to
> > specify
> > byte order, which index varies fastest, whether the data type is
> > floating
> > point or byte, and whether the file format is binary or ASCII.
> >
> > but I have not found how to specify _which_index_varies_fastest_. is it
> > possible at all in Native File Format? or I have to use General Array
> > Importer? last is not convinient, because my grid and field data in
> > different
> > files (actually I visualize Plot3D data and do not want to use
> > converter)
> >
> > best regards
> > Maxim
> > --
> > Loginov Maxim
> > Institute of Fluid Mechanics
> > Department of Mechanical Engineering
> > Dresden University of Technology
> > 01062  Dresden, Germany
> > ph.: +49(0)351 463 34910
> > fax: +49(0)351 463 35246
> > email: [EMAIL PROTECTED]
>
> _______________________________
> Chris Pelkie
> Scientific Visualization Producer
> 622 Rhodes Hall, Cornell Theory Center
> Ithaca, NY 14853

Reply via email to