File: cmor_const.py

package info (click to toggle)
cmor 3.13.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 16,960 kB
  • sloc: ansic: 28,094; f90: 13,872; python: 12,423; sh: 3,738; makefile: 111
file content (41 lines) | stat: -rw-r--r-- 727 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import cmor._cmor
atts = """
CMOR_MAX_STRING
CMOR_MAX_ELEMENTS
CMOR_MAX_AXES
CMOR_MAX_VARIABLES
CMOR_MAX_GRIDS
CMOR_MAX_DIMENSIONS
CMOR_MAX_ATTRIBUTES
CMOR_MAX_ERRORS
CMOR_MAX_TABLES
CMOR_MAX_GRID_ATTRIBUTES
CMOR_QUIET
CMOR_EXIT_ON_MAJOR
CMOR_EXIT
CMOR_EXIT_ON_WARNING
CMOR_VERSION_MAJOR
CMOR_VERSION_MINOR
CMOR_VERSION_PATCH
CMOR_CF_VERSION_MAJOR
CMOR_CF_VERSION_MINOR
CMOR_WARNING
CMOR_NORMAL
CMOR_CRITICAL
CMOR_N_VALID_CALS
CMOR_PRESERVE
CMOR_APPEND
CMOR_REPLACE
CMOR_PRESERVE_3
CMOR_APPEND_3
CMOR_REPLACE_3
CMOR_PRESERVE_4
CMOR_APPEND_4
CMOR_REPLACE_4
GLOBAL_ATT_HISTORYTMPL
CMOR_DEFAULT_HISTORY_TEMPLATE
"""

for att in atts.split():
    attnm = att
    exec("%s = cmor._cmor.getCMOR_defaults_include('%s')" % (att, att))