Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9010353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:26:01+00:00 2026-06-16T02:26:01+00:00

I have a parallelepiped volume data defined by three vector: a 2.468000 0.000000 0.000000

  • 0

I have a parallelepiped volume data defined by three vector:

a 2.468000 0.000000 0.000000

b -1.234000 2.137351 0.000000

c 0.000000 0.000000 32.000000

my grid is described by 40 40 500 points, respectively for the axes a,b,c. As you can see the three vectors are not mutually orthogonal and this causes a lot of problems for the reading of the grid.

My original plan was to read my raw data and then to extract several volumetric slices to be processed with sagemath to produce super nice pictures. Regrettably I looked in the python documentation for something like that and I found several command that can be used for an orthogonal volume (ndgrid, easyviz.slice_) but none for not-mutually orthogonal volume data.

In the Scitools package and numpy I found the following command

Numpy provides:

  • mgrid
  • ogrid
  • meshgrid

Scitools provides:

  • ndgrid
  • boxgrid

then I was looking also among the matplotlib functions but they are so many that I simply gave up.

Is there some friendly programmer that can put me in the right way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T02:26:03+00:00Added an answer on June 16, 2026 at 2:26 am

    What exactly are you after?

    You can easily create an array of shape (40, 40, 500, 3) where the item at position [a, b, c] is a 3 element array holding the x, y, z coordinates of the corresponding parallelepiped grid point as follows:

    a = np.array([2.468000, 0.000000, 0.000000]).reshape(1, 1, 1, 3)
    b = np.array([-1.234000, 2.137351, 0.000000]).reshape(1, 1, 1, 3)
    c = np.array([0.000000, 0.000000, 32.000000]).reshape(1, 1, 1, 3)
    A = np.linspace(0, 1, num=40).reshape(40, 1, 1, 1)
    B = np.linspace(0, 1, num=40).reshape(1, 40, 1, 1)
    C = np.linspace(0, 1, num=500).reshape(1, 1, 500, 1)
    grid = a * A + b * B + c * C
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have two tables say ABC and XYZ and contain one column which data will
Have been trying for hours - unfortunately I'm stuck on this three-table join. The
Have a look at this snippet: #include <string> #include <iostream> #include <vector> using namespace
Have some runtime defined schedule for one week, for example: <schedule> <s day=Monday, time=1:00:00></s>
Have a text box which get data for price. If someone enter something like
have written this little class, which generates a UUID every time an object of
Have a procedure which looks like Procedure TestProc(TVar1, TVar2 : variant); Begin TVar1 :=
Have done quite a bit of searching for a guide (of any substance) for
Have deployed numerous report parts which reference the same view however one of them
have a problem. At first look at this HTML <div id=map style=background-image: url(map.png); width:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.