How to project galaxy data in x y z coordinates? For a data visualization project, I want to extract galaxy data (in x y z coordinates) from galaxy catalogue of within 150 mpc and project each of those galaxies as dots and visualize them in a 2D projection of a spherical volume. Need your help in getting this data set and how to achieve it?

Would be grateful for any help in any way!
You could try the Hyperleda database. You will have to learn to use the database, which possibly means learning a little bit of SQL. For starters you could select all items with redshift $cz &lt; H_0\times 150$ km/s, using redshift as a distance indicator. This should be roughly ok at 150 Mpc (though I don't see any viable alternative).

The returned catalogue should have (at least) RA, Dec, redshift, possibly a size and morphology and, for a small subset of the galaxies, a redshift-independent distance estimate. Given that very nearby galaxies (in the local group or a $d &lt; 50 $Mpc) are not fully part of the "Hubble flow" you might choose to use these in preference to a redshift-distance where available.

X,Y,Z coordinates (based in the equatorial system) can be calculated using this prescription or in Galactic coordinates (with respect to the centre and orientation of our Galaxy can then be found using the operations defined in Johnson &amp; Soderblom (1987).

I have no idea how complete this database will be. Certainly there will be an issue with extinction near the Galactic plane.