sublib
From DavinciWiki
Contents: Description, Arguments, Usage, Examples, Sub-Functions, Related Functions, Source Supported Under Version: > 1.19
Description Uses the subset() function to subset every element of a structure, specifically a spectral library. NOTE: This currently only works for 2D data. 3D data are semi-supported and may not have the expected behavior.
Arguments and Return Values Arguments: a spectral library structure and a subset string Return Value: the subsetted data structure
Usage
Examples dv> lib struct, 5 elements data: 61x1x92 array of float, bsq format [22,448 bytes] group: Text Buffer with 61 lines of text 1: Feldspar 2: Feldspar 3: Feldspar 4: Feldspar 5: Feldspar 6: Feldspar 7: Feldspar 8: HCP 9: HCP 10: HCP label: Text Buffer with 61 lines of text 1: Albite (Cleavelandite) WAR-0612 26 2: Oligoclase WAR-0234 22 3: Oligoclase BUR-3680 48 4: Labradorite WAR-4524 63 5: Labradorite BUR-3080A 176 6: Labradorite WAR-RGAND01 222 7: Bytownite WAR-1384 177 8: Augite HS-119.4B 56 9: Augite BUR-620 71 10: Augite NMNH-9780 157 xaxis: 1x1x92 array of float, bsq format [368 bytes] data2: 1x61x92 array of float, bsq format [22,448 bytes] dv> out=sublib(lib,":2//4//5:9") struct, 5 elements data: 8x1x92 array of float, bsq format [2,944 bytes] group: Text Buffer with 8 lines of text 1: Feldspar 2: Feldspar 3: Feldspar 4: Feldspar 5: Feldspar 6: Feldspar 7: HCP 8: HCP label: Text Buffer with 8 lines of text 1: Albite (Cleavelandite) WAR-0612 26 2: Oligoclase WAR-0234 22 3: Labradorite WAR-4524 63 4: Labradorite BUR-3080A 176 5: Labradorite WAR-RGAND01 222 6: Bytownite WAR-1384 177 7: Augite HS-119.4B 56 8: Augite BUR-620 71 xaxis: 1x1x92 array of float, bsq format [368 bytes] data2: 1x8x92 array of float, bsq format [2,944 bytes] |
DavinciWiki Mini-Nav Bar Contents
Contact Developers
All other topics
Related Functions
Recent Library Changes Created On: 04-08-2011 |