@@ -10,10 +10,10 @@ Set the background of the curret plot
To set the background of your current project go to properties of any object, type ``backg`` into the text field, and chose a background of your liking. Chosing pink might help looking for holes in your data - or making your plot a bit *special*.
.. image:: background/set-background.png
.. image:: set-background.png
.. image:: background/pink-background.png
.. image:: pink-background.png
.. _set-default-background:
...
...
@@ -23,4 +23,4 @@ Set the default background
To set the default background :ref:`open-settings` and adjust it in the ``Color Palette`` tab
@@ -10,11 +10,11 @@ In the top left part of the paraview window, there is a color ar with a small gr
In the Color Map Editor window (View-> Color Map Editor Window) it's on the right hand side of the color map preview
.. image:: chose-BuGn/06-chose-colormap.png
.. image:: 06-chose-colormap.png
..
image:: chose-BuGn/07-colormap-overview.png
.. image:: 07-colormap-overview.png
In the color map chooser window, you can select a color map from a wide range of options. By default, only a few of them are displayed. With the dropdown menu on the right [Default] you can chose from a couple groups or display all of them.
...
...
@@ -22,13 +22,13 @@ In the text field in the top, you can start typing letters that should appear in
You can chose to import a color map with its ``preset range`` (top right) - this can be useful if you e.g. customize a color map for display of annual mean temperatures and save it with that preset range for later use.
Choose the gear at the top right of the menu (activates the display of less *important* aspects like the top/bottom value labels), insert a more precise label text in the ``Title`` field, e.g. "Ocean surface speed (m/s)" and set the format for the range labels (top/bottom values) to ``%.0f`` (floating-point with zero digits behind the ``.``). Use ``Apply`` to check your results and finally leave the menu with ``OK``.
* Load the ice sheet data from `pism_NH_777.nc <https://swiftbrowser.dkrz.de/public/dkrz_8656c91ce0734327b6dc867fc5b6b068/ESiWACE2-Public/Paraview%20Sample%20Data/PalMod_example/>`_
n
* 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.
.. image::
copy-calculator.png
.. image:: copy-calculator.png
* Color by ``velsurf_mag``, chose ``Use log scale when mapping data to colors``, load the colormap of your choice.
@@ -16,12 +16,12 @@ It has proven useful to export to a sequence of png files that can then be conca
Chose ``File->Export Animation``, enter a base file name (will be expanded by _0123/..., see the ``Suffix format`` field in the following dialogue), and ensure the correct image size in the following dialogue.
(If you change the size of the saved animation, you might want to toggle the gear in the top left and change the font scaling option, but really -- :ref:`set-view-size` beforehand!)
This will generate a sequence of .png files. For a quick impression you can run through them using ``eog FILENAME*.png`` on linux, or preview on a mac.
@@ -16,7 +16,7 @@ Now we want to apply a "Calculator" filter to compute the absolute speed from th
Choose Filters->Common->Calculator, or use the calculator symbol just above the pipeline.
.. image:: calculator-uv-speed/04-pipeline.png
.. image:: 04-pipeline.png
In the calculator, you can chose the data type to operate on ("cell data" is correct here), give your result variable a sensible name -- we chose ``vel`` here -- ``speed`` would have been correct...
...
...
@@ -29,11 +29,11 @@ In the next field, you can define the equation that is computed. We want to use:
You can also use the drop-down menus at the bottom to get access to the variables available (sorted by scalars and vector quantities).
@@ -12,7 +12,7 @@ Some filters are picky with regard to their input data type and require cell dat
Use the dropdown for choosing the object color to check which variables of which types are available.
In this example topo exists as cell and as point data (because we just converted it). The topo with a dot in front of it is point data. That with a box is cell data.
.. image:: cell2point/cell-or-point.png
.. image:: cell-or-point.png
If neccessary you can
...
...
@@ -28,10 +28,10 @@ Convert cell data to point data
To convert cell data to point data, do ``Filters->Search`` and enter ``cell da``, use ``Enter`` to cofirm.
.. image::
cell2point/cell2point.png
cell2point.png
In the settings of the calculator activate passing of cell data.
If you have many arrays in your input data, you might only want to process the data of relevance for this use.
@@ -6,21 +6,21 @@ Use the contour filter to display isolines
Add a contour filter
.. image::
contour-isolines/add-contour.png
add-contour.png
Chose the variable, you want to contour by, use the red x to get rid of the default contour level, use the *scale* icon (below + and -) to create a number series, (see below), finally select the levels ``100`` and the ``0`` and use the ``+`` to add ``-50`` and ``50`` levels below them.
.. image::
contour-isolines/contour-levels.png
contour-levels.png
.. image::
contour-isolines/number-series.png
number-series.png
Adjust the line width to ``5`` by searching for ``line`` in the search box in the top and then adjusting it.
.. image::
contour-isolines/line-width.png
line-width.png
Select ``BrBG`` as colormap, invert it, and set the value range to ``-100`` to ``100``.
As a first step, we figure out the size of *Earth* in paraview. For this we need the ``Information View`` (View-> Information). There we look for the section ``Bounds`` and note the extreme values. The x-range is from roughly -300 to 300, the y-range is from roughly -131 to 150. The lower bound of the y-range is a bit weird, because Antarctica is cut off, because the oceans don't reach 90 deg S. Now we know our plane needs to be -300 to 300 by -150 to 150, and just below z=0.
We can get a plane from the ``Sources`` menu, e.g. from ``Geometric Shapes``.
.. image:: texture-map-to-plane/00b-get-plane.png
.. image:: 00b-get-plane.png
Here we adjust the x coordinates to +/- 300 and the y coordinates to +/- 150, keeping the signs as they were. As z-coordinate we use -0.1 to put this plane just below the ocean.
After clicking ``Apply``, we should have all land areas filled with white.
Now we can add the texture itself. Chose ``Filters->Search...`` and type ``texture``. You will be presented with the three different texture filters. Chose ``Texture Map to Plane`` and hit ``Enter``
Pick the small blue marble from the directory with the sample data (or use any one of NASA's Blue Marble images, e.g. `the low-res version of the February image <https://eoimages.gsfc.nasa.gov/images/imagerecords/74000/74268/world.topo.200402.3x5400x2700.jpg>`_. (Thanks, NASA for that great service!).
@@ -7,12 +7,12 @@ Create a sphere and follow the steps for mapping a texture to a plane in :ref:`t
Some adjustments are necessary. If you use a custom-created sphere, increase the resolution in teta and phi in the properties of the sphere (not the texture mapping).
By default, Paraview creates a couple of light sources in positions that are fixed relative to the viewer. This light sources allow for shadows and depth perception. However this comes at the cost of brilliance of colors.
@@ -12,12 +12,12 @@ For loading ICON data, we need to activate the CDI reader plugin (on Mistral it'
Chose Tools-> Manage Plugins
.. image:: cdi-reader-plugin/00a-load-plugin.png
.. image:: 00a-load-plugin.png
Select the CDIReader plugin, open the detailed view, activate ``Auto Load``, and Chose ``Load selected`` at the bottom. The ``Status`` should now be ``Loaded``, and ``Load Selected`` should be greyed out.
@@ -10,18 +10,18 @@ You might need to :ref:`activate_the_cdi_reader_plugin`
Use File-> Open.., or use the top-left icon to open the file choser.
.. image:: load-2d-icon/01-load-file.png
.. image:: 01-load-file.png
Chose uv.nc (get it from ....)
.. image:: load-2d-icon/02-chose-file.png
.. image:: 02-chose-file.png
Chose the CDI reader for ICON files -- Models with a regular (lat/lon, or stretched) grid usually go via "NetCDF Reader". If CDIReader does not appear in the menu, you need to :ref:`activate_the_cdi_reader_plugin`.
.. image:: load-2d-icon/02a-chose-reader.png
.. image:: 02a-chose-reader.png
uv.nc now appears in the top of the pipeline (top left).
...
...
@@ -35,20 +35,20 @@ Some ICON Ocean data comes with zeros on land points. Then a wet_c variable can
With "Vertical levels" you can chose which vertical level you want to see if there's more than one in the source file (not in uv.nc).
.. image:: load-2d-icon/03-viever-properties.png
.. image:: 03-viever-properties.png
The result should look like this:
.. image:: load-2d-icon/02b-ocean-loaded.png
.. image:: 02b-ocean-loaded.png
From the dropdown menu in the top you can chose to color by any variable, e.g. ``v``
There are two possible formats for saving the state (recipe) of your paraview session: ``.pvsm``, the paraview-native XML format, and ``.py`` -- python executables that can be executed using ``pvbatch``. The python export is not as stable as ``.pvsm``, so it might be a good idea to **first save your state to ``.pvsm``** and save an additional ``.py`` copy after this.
.. image:: save-state/file-save-state.png
.. image:: file-save-state.png
**It has proved very useful to have older states at hand.** Paraview has the *feature* of grouping files that end on a number, so _a _b _c naming has proved useful. Using a version control system is even better. :)