Projections and subfigures#

Project several layers onto a two-dimensional map, apply a different aggregation method to each variable, and combine the results in one figure.

Select the projected layers#

Use plopm -s with the range 1:22 to project the first 22 layers of the Norne model. Repeat the spatial selection once for each plotted variable:

plopm -i NORNE_ATW2013 -v 'index_k,permx,poro' -s ',,1:22 ,,1:22 ,,1:22' -agg 'first,arithmetic,max' -sg 1,3 -rot 65 -tr '[6456335.5,-3476500]' -x '[0,5600]' -y '[0,8800]' -fs 24,10 -c 'PuOr,vanimo,jet' -cbf '.0f,.0f,.2f' -cbn '2,4,8' -st 0 -t 'Top k values using first  Averaged permx using arithmetic  Values of porosity using max' -fz 18
Norne layer index, permeability, and porosity projected across layers 1 through 22

Layer index, x-direction permeability, and porosity projected across the first 22 layers with three different aggregation methods.#

Apply different aggregation methods#

Use plopm -agg to select how values from several cells are combined at each projected map location. The methods are applied in the same order as the variables:

first

Selects the first value encountered along the projection direction. Here it displays the top index_k value.

arithmetic

Calculates the arithmetic mean. Here it averages permx across the selected layers.

max

Selects the maximum value. Here it displays the largest poro value across the selected layers.

The command therefore applies:

index_k -> first
permx   -> arithmetic
poro    -> max

If plopm -agg is omitted, plopm selects an aggregation method based on the variable type. Providing it explicitly is useful when comparing projection methods or when the scientific interpretation requires a specific calculation.

Arrange and format the subfigures#

The remaining options control the combined figure:

  • plopm -sg arranges the three maps in one row and three columns.

  • plopm -rot rotates the Norne grid by 65 degrees.

  • plopm -tr translates the rotated coordinates.

  • plopm -x and plopm -y crop the displayed region.

  • plopm -c assigns a different colormap to each variable.

  • plopm -cbf applies separate colorbar number formats.

  • plopm -cbn uses 2, 4, and 8 colorbar ticks for the three maps.

  • plopm -st removes the common figure title.

  • plopm -t assigns one title to each subplot. Two spaces separate consecutive titles.

The lists supplied to plopm -agg, plopm -c, plopm -cbf, and plopm -cbn correspond to the variables in the order supplied through plopm -v.

Reproduce this example#

Run the complete workflow from the repository root:

. ./tests/scripts/docs_projections_subfigures.sh

Back to the examples gallery