# Is it possible to easily extract Swath profiles with PARAVIEW?

**URL:** https://discourse.paraview.org/t/is-it-possible-to-easily-extract-swath-profiles-with-paraview/9362
**Category:** ParaView Support
**Tags:** vtk
**Created:** [April 5, 2022, 2:10pm UTC](https://discourse.paraview.org/t/is-it-possible-to-easily-extract-swath-profiles-with-paraview/9362 "2022-04-05T14:10:32Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![benjamin\_GERARD](https://discourse.paraview.org/user_avatar/discourse.paraview.org/benjamin_gerard/32/8972_2.png) [@benjamin\_GERARD](https://discourse.paraview.org/u/benjamin_GERARD)
#### Post date: [April 5, 2022, 2:10pm UTC](https://discourse.paraview.org/t/is-it-possible-to-easily-extract-swath-profiles-with-paraview/9362/1 "2022-04-05T14:10:32Z")

</div>

(Technical issue, but can be useful for many of us).

For geosciences purpose, it is common to extract swath profiles from DEM in order to extract topographic and relief information. In the same logic, do you know if it could be easily done with vtk files in Paraview (with synthetic DEM in .vtk)? It is obvious to extract data along a line and I would like to know if someone succeeded in doing it along a swath (with min, mean and max elevation data for instance)?

Thanks in advance for your answers,

All the best,

Benjamin Gérard

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [April 6, 2022, 12:34pm UTC](https://discourse.paraview.org/t/is-it-possible-to-easily-extract-swath-profiles-with-paraview/9362/2 "2022-04-06T12:34:00Z")

</div>

My gut tells me it should be doable. Do you a sample dataset so I can play with it a bit and determine what could work.

---

<div class="post-metadata">

### Author: ![benjamin\_GERARD](https://discourse.paraview.org/user_avatar/discourse.paraview.org/benjamin_gerard/32/8972_2.png) [@benjamin\_GERARD](https://discourse.paraview.org/u/benjamin_GERARD)
#### Post date: [April 6, 2022, 12:57pm UTC](https://discourse.paraview.org/t/is-it-possible-to-easily-extract-swath-profiles-with-paraview/9362/3 "2022-04-06T12:57:01Z")

</div>

Thank you very much for your answer. The data you can use is attached to this reply.  
best, Benjamin  
[test\_1\_bg.vtk](https://discourse.paraview.org/uploads/short-url/84tQafxCN4hXzlIeNSn96ArVYkx.vtk) (1.8 MB)

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [April 6, 2022, 1:54pm UTC](https://discourse.paraview.org/t/is-it-possible-to-easily-extract-swath-profiles-with-paraview/9362/4 "2022-04-06T13:54:12Z")

</div>

Alas, AFAICT, don’t think this can be done out of the box. It’s conceivable, however, to put together a Python programmable filter that produces a vtkTable with min/max/mean columns for the fields along a particular axis and then plot that table using a line chart view. but that’d need some prototyping.

---

<div class="post-metadata">

### Author: ![benjamin\_GERARD](https://discourse.paraview.org/user_avatar/discourse.paraview.org/benjamin_gerard/32/8972_2.png) [@benjamin\_GERARD](https://discourse.paraview.org/u/benjamin_GERARD)
#### Post date: [April 6, 2022, 1:56pm UTC](https://discourse.paraview.org/t/is-it-possible-to-easily-extract-swath-profiles-with-paraview/9362/5 "2022-04-06T13:56:55Z")

</div>

That’s what I thought, thanks very much for your feedback.  
best,  
B.
