list

From DavinciWiki
(Difference between revisions)
Jump to: navigation, search
 
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{DavinciWiki_Function}}
+
{{DavinciWiki_Function|
[[category:C_Programs]]
+
Prints all defined variables and modules to the screen.
 +
 +
Identical to [[ls]]
 +
|
 +
Arguments: None
 +
 +
Return Value: None
 +
|
 +
[[Syntax]]: list([ufunc = BOOL][,sfunc = BOOL] )
 +
 
 +
ufunc - return an array of strings with all the loaded [[:Category:User Defined Functions|User Defined Functions]]
 +
 
 +
sfunc - return an array of strings with all the [[:Category:Davinci Core| Davinci Core]] Functions
 +
|
 +
dv> list()
 +
tmp: 2x2x2 array of float, bsq format [32 bytes]
 +
0.00000 1.00000
 +
2.00000 3.00000
 +
 +
4.00000 5.00000
 +
6.00000 7.00000
 +
 +
a: 4x3x2 array of float, bsq format [96 bytes]
 +
0.00000 1.00000 2.00000 3.00000
 +
4.00000 5.00000 6.00000 7.00000
 +
8.00000 9.00000 10.0000 11.0000
 +
 +
0.871736        0.252256        0.855913        0.793858
 +
0.540481        0.816743        0.604638        0.125098
 +
0.651419        0.322488        0.0191050      0.786868
 +
 +
$0: "davinci"
 +
 
 +
after loading the davinci library (source("/path/to/library.dvrc")) you can see all the modules,
 +
functions and variables it defines
 +
 +
dv> list()
 +
hn_pre: "sea"
 +
Module thm:
 +
version:
 +
full path: /mars/common/davinci/lib/davinci/thm.la
 +
0 dependencies:
 +
18 functions:
 +
column_fill
 +
convolve
 +
corners
 +
deplaid
 +
emiss2rad
 +
kfill
 +
ipi
 +
rad2tb
 +
radcorr
 +
ramp
 +
reconstitute
 +
rectify
 +
sstretch
 +
supersample
 +
themis_emissivity
 +
unscale
 +
white_noise_remove1
 +
white_noise_remove2
 +
thm: eps2: 2.22045e-16
 +
eps: 1.19209e-07
 +
intmax: 2147483647
 +
math_version: 1.29000
 +
msff_version: 1.08000
 +
v_mosaic_version: 1.02000
 +
field_spectrometer_version: 1.00000
 +
spectral_tools_version: 1.25000
 +
mosaic_tools_version: 1.04000
 +
general_science_version: 1.02000
 +
misc_version: 1.11000
 +
thermal_model_version: 1.01000
 +
aviris_science_version: 1.00000
 +
master_science_version: 1.00000
 +
aster_science_version: 1.01000
 +
crism_science_version: 1.16000
 +
tes_science_version: 1.01000
 +
themis_science_version: 1.06000
 +
data_manipulation_version: 1.03000
 +
plot_tools_version: 1.13000
 +
map_projection_version: 1.06000
 +
image_stretch_version: 1.04000
 +
time_version: 1.18000
 +
ignore: -32768
 +
pi: 3.14159
 +
constants_version: 1.06000
 +
dshadow_version: 1.00000
 +
class_examples_version: 1.00000
 +
browser: "/usr/bin/firefox"
 +
os: "linux"
 +
utils_version: 1.12000
 +
tmp: 2x2x2 array of float, bsq format [32 bytes]
 +
0.00000 1.00000
 +
2.00000 3.00000
 +
 +
4.00000 5.00000
 +
6.00000 7.00000
 +
 +
a: 4x3x2 array of float, bsq format [96 bytes]
 +
0.00000 1.00000 2.00000 3.00000
 +
4.00000 5.00000 6.00000 7.00000
 +
8.00000 9.00000 10.0000 11.0000
 +
 +
0.180716 0.176266 0.683637 0.479969
 +
0.551458 0.124633 0.680642 0.686693
 +
0.443737 0.568022 0.676752 0.382351
 +
 +
$0: "davinci"
 +
 +
dv> list(1)
 +
Text Buffer with 460 lines of text
 +
    1: restore_session
 +
    2: getos
 +
    3: getbrowser
 +
    4: wiki
 +
    5: library_version
 +
    6: install_check
 +
    7: library
 +
    8: library_update
 +
    9: gdal_version
 +
    10: isis3_version
 +
dv> list(0,1)
 +
Text Buffer with 249 lines of text
 +
    1: nop
 +
    2: exit
 +
    3: echo
 +
    4: cos
 +
    5: sin
 +
    6: tan
 +
    7: acos
 +
    8: asin
 +
    9: atan
 +
    10: cosd
 +
dv> list(1,1)
 +
Text Buffer with 709 lines of text
 +
    1: restore_session
 +
    2: getos
 +
    3: getbrowser
 +
    4: wiki
 +
    5: library_version
 +
    6: install_check
 +
    7: library
 +
    8: library_update
 +
    9: gdal_version
 +
    10: isis3_version
 +
|
 +
|
 +
|
 +
*[[ls]]
 +
|
 +
|
 +
}}
 
[[category:Functions]]
 
[[category:Functions]]
 +
[[category:Davinci Core]]
 
[[category:Input/Output]]
 
[[category:Input/Output]]

Latest revision as of 12:03, 14 April 2016



Description

Prints all defined variables and modules to the screen.

Identical to ls

Arguments and Return Values

Arguments: None

Return Value: None

Usage

Syntax: list([ufunc = BOOL][,sfunc = BOOL] )

ufunc - return an array of strings with all the loaded User Defined Functions

sfunc - return an array of strings with all the Davinci Core Functions

Examples

dv> list()
tmp: 2x2x2 array of float, bsq format [32 bytes]
0.00000 1.00000
2.00000 3.00000

4.00000 5.00000
6.00000 7.00000

a: 4x3x2 array of float, bsq format [96 bytes]
0.00000 1.00000 2.00000 3.00000
4.00000 5.00000 6.00000 7.00000
8.00000 9.00000 10.0000 11.0000

0.871736        0.252256        0.855913        0.793858
0.540481        0.816743        0.604638        0.125098
0.651419        0.322488        0.0191050       0.786868

$0: "davinci"
after loading the davinci library (source("/path/to/library.dvrc")) you can see all the modules,
functions and variables it defines

dv> list()
hn_pre: "sea"
Module thm:
version: 
full path: /mars/common/davinci/lib/davinci/thm.la
0 dependencies:
18 functions:
column_fill
convolve
corners
deplaid
emiss2rad
kfill
ipi
rad2tb
radcorr
ramp
reconstitute
rectify
sstretch
supersample
themis_emissivity
unscale
white_noise_remove1
white_noise_remove2
thm: eps2: 2.22045e-16	
eps: 1.19209e-07	
intmax: 2147483647	
math_version: 1.29000	
msff_version: 1.08000	
v_mosaic_version: 1.02000	
field_spectrometer_version: 1.00000	
spectral_tools_version: 1.25000	
mosaic_tools_version: 1.04000	
general_science_version: 1.02000	
misc_version: 1.11000	
thermal_model_version: 1.01000	
aviris_science_version: 1.00000	
master_science_version: 1.00000	
aster_science_version: 1.01000	
crism_science_version: 1.16000	
tes_science_version: 1.01000	
themis_science_version: 1.06000	
data_manipulation_version: 1.03000	
plot_tools_version: 1.13000	
map_projection_version: 1.06000	
image_stretch_version: 1.04000	
time_version: 1.18000	
ignore: -32768	
pi: 3.14159	
constants_version: 1.06000	
dshadow_version: 1.00000	
class_examples_version: 1.00000	
browser: "/usr/bin/firefox"
os: "linux"
utils_version: 1.12000	
tmp: 2x2x2 array of float, bsq format [32 bytes]
0.00000	1.00000	
2.00000	3.00000	

4.00000	5.00000	
6.00000	7.00000	

a: 4x3x2 array of float, bsq format [96 bytes]
0.00000	1.00000	2.00000	3.00000	
4.00000	5.00000	6.00000	7.00000	
8.00000	9.00000	10.0000	11.0000	

0.180716	0.176266	0.683637	0.479969	
0.551458	0.124633	0.680642	0.686693	
0.443737	0.568022	0.676752	0.382351	

$0: "davinci"

dv> list(1)
Text Buffer with 460 lines of text
    1: restore_session
    2: getos
    3: getbrowser
    4: wiki
    5: library_version
    6: install_check
    7: library
    8: library_update
    9: gdal_version
    10: isis3_version
dv> list(0,1)
Text Buffer with 249 lines of text
    1: nop
    2: exit
    3: echo
    4: cos
    5: sin
    6: tan
    7: acos
    8: asin
    9: atan
    10: cosd
dv> list(1,1)
Text Buffer with 709 lines of text
    1: restore_session
    2: getos
    3: getbrowser
    4: wiki
    5: library_version
    6: install_check
    7: library
    8: library_update
    9: gdal_version
    10: isis3_version

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Related Functions

Recent Core Changes

Modified On: 04-14-2016

Personal tools