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
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:
firstSelects the first value encountered along the projection direction. Here it displays the top
index_kvalue.arithmeticCalculates the arithmetic mean. Here it averages
permxacross the selected layers.maxSelects the maximum value. Here it displays the largest
porovalue 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 -sgarranges the three maps in one row and three columns.plopm -rotrotates the Norne grid by 65 degrees.plopm -trtranslates the rotated coordinates.plopm -cassigns a different colormap to each variable.plopm -cbfapplies separate colorbar number formats.plopm -cbnuses 2, 4, and 8 colorbar ticks for the three maps.plopm -stremoves the common figure title.plopm -tassigns 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