# Understanding coordinates

**URL:** <https://discourse.slicer.org/t/understanding-coordinates/24409>\
**Category:** Support\
**Created:** [July 20, 2022, 11:35am UTC](https://discourse.slicer.org/t/understanding-coordinates/24409 "2022-07-20T11:35:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anitakh1](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/anitakh1/32/3350_2.png) [@anitakh1](https://discourse.slicer.org/u/anitakh1)\
**Post date:** [July 20, 2022, 11:35am UTC](https://discourse.slicer.org/t/understanding-coordinates/24409/1 "2022-07-20T11:35:19Z")

</div>

Kindly let me know what these negative coordinated of coorX, coorY and coorZ means in this .csv file. when i open patient’s data in 3D slicer, I can view x,y,z coordinates in positive values

 ![Screenshot (98)](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/2/726cb8d301c0cf5c430587e59cb03a0f45601988.png)

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [July 21, 2022, 5:55pm UTC](https://discourse.slicer.org/t/understanding-coordinates/24409/2 "2022-07-21T17:55:11Z")

</div>

Can you describe where you got the csv file and what you expect the values to mean?

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [July 21, 2022, 10:00pm UTC](https://discourse.slicer.org/t/understanding-coordinates/24409/3 "2022-07-21T22:00:57Z")

</div>

This comes up quite often for new users. Slicer uses RAS internally to display the point coordinates, but writes them as LPS to disk (fcsv or json files) for compatibility with other software. RAS to LPS involves negation of the values of first two coordinates. In recent slicers, you can export a table of of these coordinates either LPS or RAS, using the export Table option.

**LPS Exported coordinates**

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/0/c0daec64730eb8300e1d66ab2a500eae7dd50032.jpeg)

**RAS Exported coords**

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/1/11d176300b935cdcd23f38307e38768820cbaa7c.png)

---

<div class="post-metadata">

**Author:** ![anitakh1](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/anitakh1/32/3350_2.png) [@anitakh1](https://discourse.slicer.org/u/anitakh1)\
**Post date:** [July 27, 2022, 5:23am UTC](https://discourse.slicer.org/t/understanding-coordinates/24409/4 "2022-07-27T05:23:50Z")

</div>

thanks for reply. But how to find “export coordinate system”. what about CoorZ values sir? Can I see images showing LPS coordinates and not RAS?

---

<div class="post-metadata">

**Author:** ![anitakh1](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/anitakh1/32/3350_2.png) [@anitakh1](https://discourse.slicer.org/u/anitakh1)\
**Post date:** [July 27, 2022, 5:25am UTC](https://discourse.slicer.org/t/understanding-coordinates/24409/5 "2022-07-27T05:25:02Z")

</div>

I am try to scan LUNA16 images and they have provided annotated .csv file to look for cancer location which i shared.  
thank you

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [July 27, 2022, 10:42am UTC](https://discourse.slicer.org/t/understanding-coordinates/24409/6 "2022-07-27T10:42:08Z")

</div>

LUNA16 sample data set providers have chosen ambiguous names in their coordinate system axes (`coordX`, `coordY`, and `coordZ`), but it seems that the coordinates are actually in LPS coordinate system.

Therefore, you can load these points by renaming the columns to `label`, `r`, `a`, `s`, and load them into Slicer as a table:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/0/7/07df691cd23b17be394d2796d9289b037f9618f9.png)

Then in Markups module create a new point list and import the table:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/0/202585dc584756f96ef4bbf63984d8b81be6a65b.png)

This makes all points to show up, which may be impractical (and very slow, unless you hide the point labels and/or disable interaction with the points).

Instead of dumping all points into a point list, you may want to display a sphere at the specified position. See an example code snippet for that in the [script repository](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#create-segmentation-from-a-model-node).
