# Vertical profile of salinity for 1D model run - axis orientation

**URL:** https://discourse.paraview.org/t/vertical-profile-of-salinity-for-1d-model-run-axis-orientation/5817
**Category:** ParaView Support
**Created:** [November 16, 2020, 6:38pm UTC](https://discourse.paraview.org/t/vertical-profile-of-salinity-for-1d-model-run-axis-orientation/5817 "2020-11-16T18:38:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![\_Marco](https://discourse.paraview.org/user_avatar/discourse.paraview.org/_marco/32/5242_2.png) [@\_Marco](https://discourse.paraview.org/u/_Marco)
#### Post date: [November 16, 2020, 6:38pm UTC](https://discourse.paraview.org/t/vertical-profile-of-salinity-for-1d-model-run-axis-orientation/5817/1 "2020-11-16T18:38:08Z")

</div>

Dear ParaView forum,

I am animating my model results (converted to netcdf). My model run is a simple 1D run, of two water masses, with different salinity, interacting and mixing over a slope.

At, say, `x0 = 0.5*Lengtht_x` I want to extract a vertical profile of salinity (S):

```
                           `S(x=x0, z, t)`

```

The vertical coordinate is discretized (99 vertical layers) and in the datafile I have attached, I have 20 time-steps. What I did so far, when trying to plot a profile, is not satisfactory as I have salinity on my vertical axis, and x (or depth) on horizontal axis. _Instead I want depth on vertical axis and salinity on (top) horizontal axis_.

_How can I achieve this_? Can I pick more extraction points? Or just once at the time?  
Note: For future runs, vertical level heights might fluctuate significantly (here, almost constant over time).

Thank you so much for dedicating time to my question  
Ciao

Attachments:

1. [**Salk.nc**] actual dataset, netcdf. The variable to be animated and extracted: “Salk” (make sure you are NOT using shperical coords when importing it; use second netcdf type of reader: “NetCDF Reader”)
2. [**zLev.py**] programmable filter to remap time-varying coordinate of vertical levels AND to rotate domain (from x,y to x,z). The fiilter should be copy-pasted into the programmable filter “script” section. Once applied, chose xz view instead of xy view.

[Salk.nc](https://discourse.paraview.org/uploads/short-url/fib7ZJsmJ5xFiYrTNYMNM34ijpF.nc) (4.0 MB)  
[zLev.py](https://discourse.paraview.org/uploads/short-url/A9MaZzM4hKsfmwyZTcx64d6DyY7.py) (674 Bytes)
