How do we know the density of one specific coordinate ?

Yun Wang
  • 17 Aug '20

Hi Dylan,
After download snapshot files, I read the DM's density data using Python scripts that you provided.
I found that the density data is a one-dimensional array, and we all know that density should be depend
on spatial coordinates. So, how do we relate the density to the coordinate?

Dylan Nelson
  • 1
  • 18 Aug '20

Hi Yun,

The snapshot values of Density provide the values at a set of (x,y,z) positions, given by Coordinates.

You can think the of the dataset as a "scattered point set" or "scattered data", as opposed to a "grid" or "gridded data", which it is not.

Yun Wang
  • 18 Aug '20

So, if I want to obtain information about the density field, I should load "Density" and "Coordinates" simultaneously.
Is this right?

Dylan Nelson
  • 18 Aug '20

If you want to analyze how the density field varies in space, then yes.

Yun Wang
  • 18 Aug '20

Thank you, I got it!

  • Page 1 of 1