Skip to content

Commit 912e6f1

Browse files
committed
Update phyvars API ref
1 parent 42fa10f commit 912e6f1

File tree

1 file changed

+29
-6
lines changed

1 file changed

+29
-6
lines changed

docs/sources/apiref/phyvars.rst

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@ phyvars
1010

1111
- **description** (*str* or *func*): short description of the variable if
1212
it is output by StagYY, function to compute it otherwise.
13-
- **shortname** (*str*): used to label axis on plot.
14-
- **popts** (*dict*): keyword arguments fed to
15-
:meth:`matplotlib.axes.Axes.pcolormesh` in
16-
:func:`stagpy.field.plot_scalar`.
13+
- **dim** (*str*): dimension used to
14+
:func:`~stagpy.stagyydata.StagyyData.scale` to dimensional values.
1715

1816
.. data:: FIELD
1917
:annotation: = {fieldvar: Varf()}
@@ -27,14 +25,23 @@ phyvars
2725
Dictionary of scalar fields that StagPy can compute. Keys are the
2826
variable names, values are :class:`Varf` instances.
2927

28+
.. data:: SFIELD
29+
:annotation: = {fieldvar: Varf()}
30+
31+
Dictionary of surface scalar fields output by StagYY. Keys are the
32+
variable names, values are :class:`Varf` instances.
33+
3034
.. class:: Varr
3135

3236
:class:`collections.namedtuple` whose instances hold metadata of
3337
radial profiles. It defines the following fields:
3438

3539
- **description** (*str* or *func*): short description of the variable if
3640
it is output by StagYY, function to compute it otherwise.
37-
- **shortname** (*str*): used to label axis on plot.
41+
- **kind** (*str*): shorter description to group similar variables under
42+
the same label.
43+
- **dim** (*str*): dimension used to
44+
:func:`~stagpy.stagyydata.StagyyData.scale` to dimensional values.
3845

3946
.. data:: RPROF
4047
:annotation: = {rprofvar: Varr()}
@@ -48,14 +55,23 @@ phyvars
4855
Dictionary of radial profiles that StagPy can compute. Keys are the
4956
variable names, values are :class:`Vart` instances.
5057

58+
.. data:: REFSTATE
59+
:annotation: = {refstatevar: Varr()}
60+
61+
Dictionary of radial profiles of the reference state. Keys are the
62+
variable names, values are :class:`Varr` instances.
63+
5164
.. class:: Vart
5265

5366
:class:`collections.namedtuple` whose instances hold metadata of
5467
time series. It defines the following fields:
5568

5669
- **description** (*str* or *func*): short description of the variable if
5770
it is output by StagYY, function to compute it otherwise.
58-
- **shortname** (*str*): used to label axis on plot.
71+
- **kind** (*str*): shorter description to group similar variables under
72+
the same label.
73+
- **dim** (*str*): dimension used to
74+
:func:`~stagpy.stagyydata.StagyyData.scale` to dimensional values.
5975

6076
.. data:: TIME
6177
:annotation: = {timevar: Vart()}
@@ -81,3 +97,10 @@ phyvars
8197

8298
Dictionary of plate variables output by StagYY. Keys are the variable
8399
names, values are :class:`Varp` instances.
100+
101+
.. data:: SCALES
102+
:annotation: = {dimstr: func}
103+
104+
Dictionary mapping dimension strings (**dim** fields in ``Var*``) to
105+
functions which are themselves mapping from
106+
:class:`~stagpy.stagyydata.StagyyData` to the scale for that dimension.

0 commit comments

Comments
 (0)