This document is part of a series teaching how to :ref:`create-palmod-combined`.
:ref:`save-colormap-preset`
Export the color map
.. image:: export-veget.png
:download:`Download the raw color map here<vrm-green-for-edit.json>`
Open the color map in the text editor. In the head edit as indicated, **but don't leave the comments indicated with #**::
[
...
...
@@ -20,13 +32,29 @@ Open the color map in the text editor. In the head edit as indicated, **but don'
0.5,
0.0
],
"RGBPoints" :
[
0.0, # Minimum value, leave as is.
1.0, # Red value for lowest point ; set this to 1.0
1.0, # Green value for lowest point ; set this to 1.0
0.67, # Blue value for lowest point ; set this to 0.67
0.050000000000000044, # data value for next point, leave as is
In the lower part, you will find quads with (data value, R, G, B). To change the maximum of the color map in accordance with the change in the header, edit at the bottom::
In the lower part, you will find quads with (data value, R, G, B). To change the maximum of the color map in accordance with the change in the header, edit at the bottom (basically matching the previous value)::
0.67, # NEW MAXIMUM VALUE
0.054901999999999999, # RED (if you want to change)
0.109804, # GREEN (if you want to change)
0.121569 # BLUE (if you want to change)
0.118, # RED (if you want to change)
0.5, # GREEN (if you want to change)
0.25 # BLUE (if you want to change)
]
}
:download:`Download the edited color map here<vrm-edited.json>`
Save the file, and import the color map again (same menu as exporting, just one above).
You can find a video recording covering this material at https://youtu.be/TCmnBme0OWA?t=2144, and the material at https://github.com/ESiWACE/hpda-vis-training (run the make file of the Training2021/Session2 folder).
Whatever you do with paraview, keep saving state files (``File -> Save State``) (see :ref:`save-state`) at regular intervals. You can additionally :ref:`make-paraview-save-on-quit-or-crash`.
In this example we assume a very basic level of familiarity with Paraview. If you feel lost in between, consider looking at :ref:`create-image-sea-surface-speeds`. This multi-variable visualization requires a substantial amount of :ref:`paraview-palmod-pre-processing`.
In this example we assume a very basic level of familiarity with Paraview. If you feel lost in between, consider looking at :ref:`create-image-sea-surface-speeds`. This multi-variable visualization requires a substantial amount of :ref:`Pre-processing<paraview-palmod-pre-processing>`. We will skip these steps for now, as they are different for any two data sets.
.. toctree::
:maxdepth: 2
:caption: Steps:
:glob:
pre-processing
vegetation-data
load-icebergs
load-rivers
load-ice-sheets
* Repeat the same exercise including :ref:`convert-cell-to-point` for ``vilma_ss_777.nc`` (variable ``topg`` for the topography and ``delta_topg`` for the isolines - copy and paste as appropriate). That should get you isolines on land.
* Also apply the contour to the pure Cell Data to Point Data filter, to get isolines on the ocean.
:download:`Download a complete pvsm state file here.<ice_sheet_complete.pvsm>`
This document is part of a series teaching how to :ref:`create-palmod-combined`
* Load the ice sheet data from `pism_NH_777.nc <https://swiftbrowser.dkrz.de/public/dkrz_8656c91ce0734327b6dc867fc5b6b068/ESiWACE2-Public/Paraview%20Sample%20Data/PalMod_example/>`_
* For random reasons, this file already is in point data. Attach a calculator and in the pipeline view select the calculator of the vegetation, copy it, and paste it to the newly created calculator (i.e. copy the settings to the calculator of the ice sheet). Change ``topg`` to ``ice_surf`` in the equation of the calculator.
This file already is in point data (there are no bounds associated with the coordinates), so we don't need a CellData2PointData filter.
* Attach a calculator
* select the calculator of the vegetation in the pipeline view, copy it, and paste it to the newly created calculator (i.e. copy the settings to the calculator of the ice sheet).
* Change ``topg`` to ``ice_surf`` in the equation of the calculator.
.. image:: copy-calculator.png
...
...
@@ -14,3 +23,6 @@ Load the ice sheets
Feel free to repeat the exercise for Antarctica. You might need to :ref:`convert-cell-to-point` before adding the calculator (for whatever reason). Now the isolines are added on the ice, but end at the coast.
This document is part of a series teaching how to :ref:`create-palmod-combined`
* Load the river runoff data from `friv_777.nc <https://swiftbrowser.dkrz.de/public/dkrz_8656c91ce0734327b6dc867fc5b6b068/ESiWACE2-Public/Paraview%20Sample%20Data/PalMod_example/>`_
* :ref:`convert-cell-to-point` and :ref:`extrude-land-surface` with the slightly modified equation::
This document is part of a series teaching how to :ref:`create-palmod-combined`.
* Open `veg_ratio_max_nn_777.nc <https://swiftbrowser.dkrz.de/public/dkrz_8656c91ce0734327b6dc867fc5b6b068/ESiWACE2-Public/Paraview%20Sample%20Data/PalMod_example/>`_ ( see :ref:`open-with-cf-reader` for instructions).
* Use the variable ``veg_ratio_max``
* Load the colormap ``Linear Green (GR4l)`` (see :ref:`chose-BuGn`).
...
...
@@ -10,9 +14,9 @@ Load the vegetation data
* For the exact colormap of this example:
* Remove the last points from the colormap (see :ref:`colormap-transparent-clouds` for hints on manipulating a color map).
* Remove all points above 0.65 from the colormap (see :ref:`colormap-transparent-clouds` for hints on manipulating a color map).
* Save the colormap, open it in the text editor, :ref:`hack-colormap` to reset the maximum to .67, save it, and import it again.
* Then set the color values for the minimum and maximum value to 1/1/.67 and .118/.5/.25 respectively (see cloud example). (yes, that's tedious, but it can be done, and this is `a way`).
Your data should look roughly like this:
...
...
@@ -23,3 +27,5 @@ Your data should look roughly like this:
@@ -19,7 +19,7 @@ Remap your data to the resolution of the topography. Something along the lines o
Make sure the ``Attribute Type`` Setting in your calculator is on ``Point Data``, select ``Coordinate Results``, give your resulting coordinates a reasonable name, and use the equation (assuming your topography variable is called topg and in m, this yields a vertical exaggeration of 100) ::
Where the first paren scales the topography to a strong extrusion around a unit sphere, and the second part is the vector from the origin to the current grid point's position. Your topography variable should appear in the ``Scalars`` dropdown menu. If not, go back to :ref:`cell-or-point`.
...
...
@@ -34,3 +34,6 @@ Where the first paren scales the topography to a strong extrusion around a unit
For plane projections (Mercator, Mollweide / ...) use something along the lines of::