# Inverted z-axis

**URL:** <https://vapor.discourse.group/t/inverted-z-axis/24>\
**Category:** Uncategorized\
**Created:** [September 10, 2020, 2:14am UTC](https://vapor.discourse.group/t/inverted-z-axis/24 "2020-09-10T02:14:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fundy\_whale](https://avatars.discourse-cdn.com/v4/letter/f/7feea3/32.png) [@Fundy\_whale](https://vapor.discourse.group/u/Fundy_whale)\
**Post date:** [September 10, 2020, 2:14am UTC](https://vapor.discourse.group/t/inverted-z-axis/24/1 "2020-09-10T02:14:48Z")

</div>

I am trying to plot a netcdf file as a volume with an inverted z-axis that is in units of pressure. Thus, 10 mb is the top of the atmosphere and 1000 mb is the bottom. However, VAPOR is reading my data backwards from 10-1000. I have created the dataset in pyferret, for anyone familiar with that program. In it the netcdf is specified as a depth plot, but apparently, VAPOR does not understand whatever indication is given in the netcdf to communicate this.

I could easily input the data in meaningless, vertical axis with increasing values going up, but then I would have to re-label the axis somehow. Does anyone have any suggestions?

Thank You!

---

<div class="post-metadata">

**Author:** ![clyne](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@clyne](https://vapor.discourse.group/u/clyne)\
**Post date:** [September 10, 2020, 2:15pm UTC](https://vapor.discourse.group/t/inverted-z-axis/24/2 "2020-09-10T14:15:01Z")

</div>

What version of VAPOR are you using? Is there any way that you could share a smallish copy of one of your files?

---

<div class="post-metadata">

**Author:** ![Fundy\_whale](https://avatars.discourse-cdn.com/v4/letter/f/7feea3/32.png) [@Fundy\_whale](https://vapor.discourse.group/u/Fundy_whale)\
**Post date:** [September 10, 2020, 3:21pm UTC](https://vapor.discourse.group/t/inverted-z-axis/24/3 "2020-09-10T15:21:59Z")

</div>

I am using VAPOR 3.2.0.

Here is the link to a subsection of the file: [https://drive.google.com/file/d/1R1SNgZ5qIS9LwOk1\_789s0GeiixARn09/view?usp=sharing](https://drive.google.com/file/d/1R1SNgZ5qIS9LwOk1_789s0GeiixARn09/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![clyne](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@clyne](https://vapor.discourse.group/u/clyne)\
**Post date:** [September 19, 2020, 5:16pm UTC](https://vapor.discourse.group/t/inverted-z-axis/24/4 "2020-09-19T17:16:22Z")

</div>

Hi, so sorry for not getting back to you sooner. I somehow missed your reply. I’ve sent you a request for access to the file you shared.

---

<div class="post-metadata">

**Author:** ![clyne](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@clyne](https://vapor.discourse.group/u/clyne)\
**Post date:** [September 20, 2020, 9:05pm UTC](https://vapor.discourse.group/t/inverted-z-axis/24/5 "2020-09-20T21:05:36Z")

</div>

You can invert the vertical coordinate system by multiplying the data set scaling factor by -1. This can be done for all of the renderers under the Navigation/Viewpoint tab. Alternatively you can do this on a per render basis under each Renderer’s Geometry subtab. Does that do what you want it to do?

---

<div class="post-metadata">

**Author:** ![Fundy\_whale](https://avatars.discourse-cdn.com/v4/letter/f/7feea3/32.png) [@Fundy\_whale](https://vapor.discourse.group/u/Fundy_whale)\
**Post date:** [September 21, 2020, 1:32pm UTC](https://vapor.discourse.group/t/inverted-z-axis/24/6 "2020-09-21T13:32:06Z")

</div>

I tried that, yet my rendering disappears when I do so using either method mentioned above.

---

<div class="post-metadata">

**Author:** ![clyne](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@clyne](https://vapor.discourse.group/u/clyne)\
**Post date:** [September 28, 2020, 4:00pm UTC](https://vapor.discourse.group/t/inverted-z-axis/24/7 "2020-09-28T16:00:43Z")

</div>

Hmm. It seems to be working for me. I’ve attached two images, one with the default scaling set under Navigation/Viewpoint (44496.9), and one where I’ve negated the scaling (-44496.9).

 ![NegativeScale](https://global.discourse-cdn.com/free1/uploads/vapor/original/1X/0b41f50081172f6858d4a7ceafc35ee1fedd55ac.jpeg) ![PositiveScale](https://global.discourse-cdn.com/free1/uploads/vapor/original/1X/acfae335be190c6a4ad306cb460c2cb76ae21c99.jpeg)
