1

I want to slice a 3D array

[-500:500]

to subarrays in sequence 100 subarrays of length 2 then one of length 50 then 100 of length 2 then one of length 50, and I wish every subarray is spaced by length one from the following.

2
  • 1
    Better add a toy example of the expected output Commented Oct 9, 2021 at 10:42
  • x = np.linspace(-500, 500,2) # I want to exclude 'x' from the array, then slice the rest to 100 and 100. # Note: I need to control steps 'size of array', and I need a space between resulted arrays, and all these arrays are 3D "volumes" Commented Oct 9, 2021 at 13:40

1 Answer 1

1

This solution is the only one that worked for me: The purpose of the slicing is to distribute particles inside the box. I used software called gsd to produce a GSD file.

*) get the xyz file, with the help of another software (I used jmol program ), then you have the orientations of the particles in the model. I wrote the orientations into my program to avoid overlapping.

Sign up to request clarification or add additional context in comments.

1 Comment

As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.