File: variables.rst

package info (click to toggle)
harp 1.5%2Bdata-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 54,032 kB
  • sloc: xml: 286,510; ansic: 143,710; yacc: 1,910; python: 913; makefile: 600; lex: 574; sh: 69
file content (11 lines) | stat: -rw-r--r-- 747 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
Variables
=========
A HARP variable is a named multi-dimensional array with associated attributes
(see section :doc:`Variable attributes <variable_attributes>`).
The base type of a variable can be any of the data types supported by HARP (see section :doc:`Data types <datatypes>`).
A variable can have zero or more dimensions. A variable with zero dimensions is a *scalar*.
The maximum number of dimensions is 8. Each dimension of a variable has a type that refers to one of the dimension types
supported by HARP (see section :doc:`Dimensions <dimensions>`).
Dimensions of the same type should have the same length, *except* independent dimensions.

Variables have a name that should follow the :doc:`Variable naming convention <variable_names>`.