A set of special functions has been written for user convenience. They are provided
as methods of the modules pysic, pygreg, ... if SIC is launched from
Python, and also in every case as methods of an instance called Sic in
the Python __main__ (see subsection ):
SIC | Python |
|
"abc" |
"ABC$DEF" | "abc_def" |
"ABC%DEF" | "abc.def" |
>>> exa(pi) PI is a REAL*8, 0D (GLOBAL,RO) -> pi |
>>> define('real a') A is a REAL*4, 0D (GLOBAL,RW) -> a >>> define('double b c[2] d[2,3]') B is a REAL*8, 0D (GLOBAL,RW) -> b C is a REAL*8, 1D (2x0x0x0) (GLOBAL,RW) -> c D is a REAL*8, 2D (2x3x0x0) (GLOBAL,RW) -> d >>> define('structure e') E is a <structure>, 0D (GLOBAL,RW) -> e >>> define('character e%f e%g*6[2,3]') E%F is a CHARACTER*1, 0D (GLOBAL,RW) -> e.f E%G is a CHARACTER*6, 2D (2x3x0x0) (GLOBAL,RW) -> e.g >>> define('image h centaurus.gdf read') H is a (image)REAL*4, 2D (512x512x1x1) (GLOBAL,RO) -> h |