# Create 3d topography from NetCDF

**URL:** https://discourse.paraview.org/t/create-3d-topography-from-netcdf/6261
**Category:** ParaView Support
**Created:** [January 21, 2021, 8:21am UTC](https://discourse.paraview.org/t/create-3d-topography-from-netcdf/6261 "2021-01-21T08:21:37Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![thomasvanderlinden](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/fbc32d/32.png) [@thomasvanderlinden](https://discourse.paraview.org/u/thomasvanderlinden)
#### Post date: [January 21, 2021, 8:21am UTC](https://discourse.paraview.org/t/create-3d-topography-from-netcdf/6261/1 "2021-01-21T08:21:38Z")

</div>

I would like to make a globe with topgraphy from a NetCDF. From these pages I get the impression that should be possible:

> **[Extrusion of topography and bathymetry — User Portal](https://www.dkrz.de/up/services/analysis/visualization/sw/paraview/tutorial/topography-extrusion)**

  
[https://earthmodels.org/date-and-tools/topography/exaggerated-topography-in-paraview](https://earthmodels.org/date-and-tools/topography/exaggerated-topography-in-paraview)

Problem I run into is that my calculator either provides the xyz-coordinates (on selecting point data) or the elevation (on selecting cell data). Never the two datatypes together, unlike the examples. I have converted the file to vtk (in Paraview), tried another reader (in an old version of Paraview).  
Making a 3d topography does work with a vtp file of ETOPO provided by earthmodels, but that is not the data I need. I couldn’t find information on how to convert NetCDF to the right vtp format.

Hope you can help me!

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [January 21, 2021, 9:36am UTC](https://discourse.paraview.org/t/create-3d-topography-from-netcdf/6261/2 "2021-01-21T09:36:12Z")

</div>

There is no reason for this not to work. Care to share your file ?

---

<div class="post-metadata">

### Author: ![thomasvanderlinden](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/fbc32d/32.png) [@thomasvanderlinden](https://discourse.paraview.org/u/thomasvanderlinden)
#### Post date: [January 21, 2021, 9:57am UTC](https://discourse.paraview.org/t/create-3d-topography-from-netcdf/6261/3 "2021-01-21T09:57:05Z")

</div>

> [@mwestphal](#):
>
> There is no reason for this not to work. Care to share your file ?

The files are too big (5.3 Mb or 25 Mb) to share or send in a private message. Can I email or upload another way?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [January 21, 2021, 10:31am UTC](https://discourse.paraview.org/t/create-3d-topography-from-netcdf/6261/4 "2021-01-21T10:31:13Z")

</div>

> **[WeTransfer](https://wetransfer.com/)**
>
> WeTransfer is the simplest way to send your files around the world

---

<div class="post-metadata">

### Author: ![thomasvanderlinden](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/fbc32d/32.png) [@thomasvanderlinden](https://discourse.paraview.org/u/thomasvanderlinden)
#### Post date: [January 21, 2021, 10:45am UTC](https://discourse.paraview.org/t/create-3d-topography-from-netcdf/6261/5 "2021-01-21T10:45:29Z")

</div>

Merci beaucoup Mathieu!

> **[SURFfilesender](https://filesender.surf.nl/?s=download&token=526a9d31-f67b-4c26-bb4d-c56eeea351e8)**

---

<div class="post-metadata">

### Author: ![thomasvanderlinden](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/fbc32d/32.png) [@thomasvanderlinden](https://discourse.paraview.org/u/thomasvanderlinden)
#### Post date: [January 22, 2021, 11:02am UTC](https://discourse.paraview.org/t/create-3d-topography-from-netcdf/6261/6 "2021-01-22T11:02:16Z")

</div>

@mwestphal My employer offers its own way of sending files. Does this work for you too?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [January 22, 2021, 11:04am UTC](https://discourse.paraview.org/t/create-3d-topography-from-netcdf/6261/7 "2021-01-22T11:04:37Z")

</div>

Yes, I’m able to open the file without issue:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/a/a16de56fe2fa889b87d9b83c20e55be93287e1a7.jpeg)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [January 22, 2021, 11:07am UTC](https://discourse.paraview.org/t/create-3d-topography-from-netcdf/6261/8 "2021-01-22T11:07:30Z")

</div>

You don’t even need a calculator for what you want:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/d/d2b066e7800ceb9d82d2c0bf50839907ad20463a.png)

[a.pvsm](https://discourse.paraview.org/uploads/short-url/id0AMRyGGp31P9YsuzyO1rY0g46.pvsm) (389.8 KB)

Also take a look at:

> **[A new Embossing Representations Plugin for ParaView - Kitware Blog](https://blog.kitware.com/a-new-embossing-representations-plugin-for-paraview/)**
>
> Context Besides being large, climate simulations are usually comprised of many different variables and quantities that often need to be visualized side by side. The ... Read More

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [January 22, 2021, 11:15am UTC](https://discourse.paraview.org/t/create-3d-topography-from-netcdf/6261/10 "2021-01-22T11:15:35Z")

</div>

You should then be able to use the calculator they want you may want to extrude your dataset.

---

<div class="post-metadata">

### Author: ![thomasvanderlinden](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/fbc32d/32.png) [@thomasvanderlinden](https://discourse.paraview.org/u/thomasvanderlinden)
#### Post date: [January 22, 2021, 11:15am UTC](https://discourse.paraview.org/t/create-3d-topography-from-netcdf/6261/11 "2021-01-22T11:15:48Z")

</div>

Thanks @mwestphal! I will look into that.

---

<div class="post-metadata">

### Author: ![florian.ziemen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/florian.ziemen/32/1672_2.png) [@florian.ziemen](https://discourse.paraview.org/u/florian.ziemen)
#### Post date: [January 22, 2021, 1:30pm UTC](https://discourse.paraview.org/t/create-3d-topography-from-netcdf/6261/12 "2021-01-22T13:30:32Z")

</div>

There’s a filter “Cell Data to Point Data” that would allow you to convert between the data types. Placing that between your source file and the calculator would allow you to access all fields (or a selected subset) as point data.  
The embossing representations featured by Mathieu might be the faster solution for your problem, though.

---

<div class="post-metadata">

### Author: ![thomasvanderlinden](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/fbc32d/32.png) [@thomasvanderlinden](https://discourse.paraview.org/u/thomasvanderlinden)
#### Post date: [January 22, 2021, 2:37pm UTC](https://discourse.paraview.org/t/create-3d-topography-from-netcdf/6261/13 "2021-01-22T14:37:17Z")

</div>

Thanks @mwestphal and @florian.ziemen I got the suggestions from both of you working! 🙂

---

<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: [January 24, 2021, 12:16pm UTC](https://discourse.paraview.org/t/create-3d-topography-from-netcdf/6261/14 "2021-01-24T12:16:16Z")

</div>

@thomasvanderlinden : hi - another possible way to go is downloading **global** high resolution topo/bathymetric data from gebco (15 arc-second):

> **[GEBCO - The General Bathymetric Chart of the Oceans](https://www.gebco.net/)**
>
> The General Bathymetric Chart of the Oceans (GEBCO) aims to provide the most authoritative, publicly available bathymetry data sets for the world’s oceans.

Data come in (very conveniently) lat/long and you have elevation in meters. The netcdf file you will download download, in its metadata description, contains all the info and details about measurements and references adopted when creating the dataset.

You can also use a specialized color-map to color land and ocean (asymeetric, diverging).

And also, you can download the high definition coastline to overlap to your topo/bathy data. I am sure you might find this link interesting:

> **[Tutorial resources — User Portal](https://www.dkrz.de/up/services/analysis/visualization/sw/paraview/tutorial/tutorial-resources-1)**

Good luck.  
Marco

---

<div class="post-metadata">

### Author: ![Coti](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/35a633/32.png) [@Coti](https://discourse.paraview.org/u/Coti)
#### Post date: [October 10, 2022, 6:40am UTC](https://discourse.paraview.org/t/create-3d-topography-from-netcdf/6261/15 "2022-10-10T06:40:29Z")

</div>

@_Marco  
Hi Marco, I’m trying to upload elevation into Paraview. I’ve downloaded the data from gebco and was able to open the netcdf file on Paraview but it appears as a 2D map. is there an easy way see the elevation? Somehow converting each cell to the elevation within Paraview?  
I really appreciate your help as I’m super stuck.

Thanks, Coti

---

<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: [October 10, 2022, 7:21am UTC](https://discourse.paraview.org/t/create-3d-topography-from-netcdf/6261/16 "2022-10-10T07:21:26Z")

</div>

Hi Coti.

There is a very convenient filter called wrap as scalar. That takes the elevation contained in gebco netcdf and uses that as vertical coordinate.

I can’t remember if it works with both sperical and planar coordinates, you’ll have to try yourself. But I’m sure it works with planar.

You can control the z scaling factor to exaggerate the vertical extrusion. Play a bit around with it. Also, once happy with vertical scaling, apply the right colormap: I suggest diverging asymmetric blue/green/brown. I’m sure you’ll be impressed by the result.

If you want a quick preview, you can see it here. I have used that to overlap my model data to high res topography and posted it on kitware blog.

[https://www.kitware.com/scientific-visualization-of-weather-research-and-forecasting-model-output-in-paraview/](https://www.kitware.com/scientific-visualization-of-weather-research-and-forecasting-model-output-in-paraview/)

Let me know if you need more guidance or support. Bye bye  
m.

---

<div class="post-metadata">

### Author: ![Coti](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/35a633/32.png) [@Coti](https://discourse.paraview.org/u/Coti)
#### Post date: [October 10, 2022, 11:06pm UTC](https://discourse.paraview.org/t/create-3d-topography-from-netcdf/6261/17 "2022-10-10T23:06:51Z")

</div>

It works great! Thank you so so much Marco, I really appreciate it!

---

<div class="post-metadata">

### Author: ![Coti](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/35a633/32.png) [@Coti](https://discourse.paraview.org/u/Coti)
#### Post date: [October 10, 2022, 11:33pm UTC](https://discourse.paraview.org/t/create-3d-topography-from-netcdf/6261/18 "2022-10-10T23:33:11Z")

</div>

Just a follow up question, in case you know, is there a way to smooth out the topography so it doesn’t look like point spikes? Thanks, Coti

---

<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: [October 14, 2022, 11:22am UTC](https://discourse.paraview.org/t/create-3d-topography-from-netcdf/6261/19 "2022-10-14T11:22:44Z")

</div>

Hi.

I do that in Python, using xarray. I am using rolling average filtering, along either dimension.  
By modulating the window width, I can get the results I want and most like.

![map](https://discourse.paraview.org/uploads/default/original/2X/2/22589f5f30f7b62f03f44e53cda19a6973dcce82.png)  
 ![Section](https://discourse.paraview.org/uploads/default/original/2X/a/a4df6a5772c91919e36f9fc53b92404453fdc0dc.png)
