reform speclib
Contents: Description, Arguments, Usage, Examples, Sub-Functions, Related Functions, Source Supported Under Version: > 1.07
Description Reform a library from the ASU Spectral Library Tool output for use with sma()
Arguments and Return Values
Usage Syntax: reform_spec(struct [,tes73=BOOL] [,from=STRING] [,to=STRING] ) struct is the spectral library structure from the ASU Spectral Library Tool tes73 - used to crop to TES surface sensing channels only (Standard 73-point spectrum if the original is a 143 point spectrum ONLY) Default is 0 from - direction to translate from (Default is "y") to - direction to translate to (Default is "x") This function changes the axis of all data from y to x, adds a .group from .category, and adds a .label from .sample_name+.sample_id
Examples dv> lib=read("lib_v1.hdf") struct, 37 elements analysis_date: Text Buffer with 32 lines of text 1: 2000-12-08 2: 2000-12-08 3: 2000-12-08 4: 2000-12-08 5: 2000-12-08 6: 2000-12-08 7: 2000-12-08 8: 2000-12-08 9: 2000-12-08 10: 2000-12-08 category: Text Buffer with 32 lines of text 1: Amphibole 2: Feldspar (Plagioclase) 3: Feldspar (Plagioclase) 4: Sulfate 5: Feldspar (Plagioclase) 6: Pyroxene 7: Pyroxene 8: Sheet Silicate 9: Pyroxene 10: Feldspar (Plagioclase) chamber_temperature: 1x32x1 array of int, bsq format [128 bytes] chemical_formula: Text Buffer with 32 lines of text 1: Ca2(Mg,Fe2+)5[Si8O22](OH,F)2 2: NaAlSi3O8 3: Ab70An30-Ab50An50 4: CaSO4 5: CaAl2Si2O8 6: (Ca,Mg,Fe2+,Fe3+,Ti,Al)2(Si,Al)2O6 7: (Ca,Mg,Fe2+,Fe3+,Ti,Al)2(Si,Al)2O6 8: K2(Mg,Fe2+)6-4(Fe3+,AlTi)0-2[Si6-5Al2-3O20](OH,F)4 9: (Mg,Fe2+)SiO3 10: Ab30An70-Ab10An90 citation: Text Buffer with 32 lines of text 1: Christensen et al., 2000 2: Christensen et al., 2000 3: Christensen et al., 2000 4: Christensen et al., 2000 5: Christensen et al., 2000 6: Christensen et al., 2000 7: Christensen et al., 2000 8: Christensen et al., 2000 9: Christensen et al., 2000 10: Christensen et al., 2000 collection_locality: Text Buffer with 32 lines of text 1: San Bernardino, CA 2: Keystone, SD 3: Big Tujunga Canyon, L.A. Co. CA 4: near Carson City, Nevada 5: Grass Valley, CA 6: Eureka, Ducktown, Tennesee 7: France OR Navajo Co., AZ 8: Silver Crater, Ontario Canada 9: Stillwater Complex, MT 10: Crystal Bay, MN dana_class_description: Text Buffer with 32 lines of text 1: Class 66 - Double-Width Unbranched Chains, W=2 2: Class 76 - Al-Si Framework 3: Class 76 - Al-Si Framework 4: Class 28 - Anhydrous Acid and Sulfates 5: Class 76 - Al-Si Framework 6: Class 65 - Single-Width Unbranched Chains, W=1 7: Class 65 - Single-Width Unbranched Chains, W=1 8: Class 71 - Sheets of 6-membered rings 9: Class 65x Inosilicates Without Dana's New Classification Number 10: Class 76 - Al-Si Framework dana_mineral_number: Text Buffer with 32 lines of text 1: 66.1.3a.2 2: 76.1.3.1 3: 76.1.3.3 4: 28.3.2.1 5: 76.1.3.6 6: 65.1.3a.3 7: 65.1.3a.3 8: 71.2.2b.2 9: 65.0.0.0 10: 76.1.3.5 data: 1x32x143 array of float, bsq format [18,304 bytes] field_of_view: 1x32x1 array of int, bsq format [128 bytes] group: Text Buffer with 32 lines of text 1: Mineral/Phase 2: Mineral/Phase 3: Mineral/Phase 4: Mineral/Phase 5: Mineral/Phase 6: Mineral/Phase 7: Mineral/Phase 8: Mineral/Phase 9: Mineral/Phase 10: Mineral/Phase hbb: 1x32x1 array of double, bsq format [256 bytes] hotbb_temperature: 1x32x1 array of int, bsq format [128 bytes] instrument: Text Buffer with 32 lines of text 1: Nicolet Nexus 670 FTIR 2: Nicolet Nexus 670 FTIR 3: Nicolet Nexus 670 FTIR 4: Nicolet Nexus 670 FTIR 5: Nicolet Nexus 670 FTIR 6: Nicolet Nexus 670 FTIR 7: Nicolet Nexus 670 FTIR 8: Nicolet Nexus 670 FTIR 9: Nicolet Nexus 670 FTIR 10: Nicolet Nexus 670 FTIR latitude: 1x32x1 array of double, bsq format [256 bytes] longitude: 1x32x1 array of double, bsq format [256 bytes] owner: Text Buffer with 32 lines of text 1: asu 2: asu 3: asu 4: asu 5: asu 6: asu 7: asu 8: asu 9: asu 10: asu particle_size: Text Buffer with 32 lines of text 1: Coarse particulate 2: Coarse particulate 3: Coarse particulate 4: Hand Sample 5: Coarse particulate 6: Coarse particulate 7: Coarse particulate 8: Coarse particulate 9: Coarse particulate 10: Coarse particulate quality: Text Buffer with 32 lines of text 1: [1] Well characterized, pure 2: [1] Well characterized, pure 3: [1] Well characterized, pure 4: [1] Well characterized, pure 5: [1] Well characterized, pure 6: [1] Well characterized, pure 7: [1] Well characterized, pure 8: [1] Well characterized, pure 9: [1] Well characterized, pure 10: [1] Well characterized, pure radiance: 1x32x1 array of double, bsq format [256 bytes] raw: 1x32x1 array of double, bsq format [256 bytes] resolution: 1x32x1 array of int, bsq format [128 bytes] response: 1x32x1 array of double, bsq format [256 bytes] sample_id: Text Buffer with 32 lines of text 1: HS-116.4B 2: WAR-0244 3: BUR-240 4: S9 5: BUR-340 6: NMNH-119197 7: DSM-AUG01 8: BUR-840 9: BUR-1920 10: WAR-1384 sample_location: Text Buffer with 32 lines of text 1: - 2: - 3: - 4: - 5: - 6: - 7: - 8: - 9: - 10: - sample_name: Text Buffer with 32 lines of text 1: Actinolite 2: Albite 3: Andesine 4: Anhydrite 5: Anorthite 6: Augite 7: Augite 8: Biotite 9: Bronzite 10: Bytownite sample_temperature: 1x32x1 array of double, bsq format [256 bytes] source: Text Buffer with 32 lines of text 1: Roger Clark USGS Denver, CO 2: Ward's Natural Science Est. 3: Burminco 4: Burminco 5: Burminco 6: National Museum of Natural History, Smithsonian Institution 7: David Shannon Minerals, AZ 8: Burminco 9: Burminco 10: Ward's Natural Science Est. source_lab: Text Buffer with 32 lines of text 1: Arizona State University 2: Arizona State University 3: Arizona State University 4: Arizona State University 5: Arizona State University 6: Arizona State University 7: Arizona State University 8: Arizona State University 9: Arizona State University 10: Arizona State University spec_id: 1x32x1 array of int, bsq format [128 bytes] spectral_analysis_person: Text Buffer with 32 lines of text 1: Rogers 2: Rogers 3: Rogers 4: Rogers 5: Rogers 6: Rogers 7: Rogers 8: Rogers 9: Rogers 10: Rogers type_subgroup: Text Buffer with 32 lines of text 1: VIII - Silicates - Inosilicates (e.g. Pyroxene, Amphibole) 2: VIII - Silicates - Tektosilicates (e.g. Quartz, Feldspars, Zeolites) 3: VIII - Silicates - Tektosilicates (e.g. Quartz, Feldspars, Zeolites) 4: VI - Sulfates, Chromates, Molybdates 5: VIII - Silicates - Tektosilicates (e.g. Quartz, Feldspars, Zeolites) 6: VIII - Silicates - Inosilicates (e.g. Pyroxene, Amphibole) 7: VIII - Silicates - Inosilicates (e.g. Pyroxene, Amphibole) 8: VIII - Silicates - Phyllosilicates (e.g. Micas, Clays) 9: VIII - Silicates - Inosilicates (e.g. Pyroxene, Amphibole) 10: VIII - Silicates - Tektosilicates (e.g. Quartz, Feldspars, Zeolites) warmbb_temperature: 1x32x1 array of int, bsq format [128 bytes] wavenum_range_high: 1x32x1 array of int, bsq format [128 bytes] wavenum_range_low: 1x32x1 array of int, bsq format [128 bytes] wbb: 1x32x1 array of double, bsq format [256 bytes] xaxis: 1x1x143 array of float, bsq format [572 bytes] dv> lib2=reform_speclib(lib,tes73=1) struct, 38 elements analysis_date: Text Buffer with 32 lines of text 1: 2000-12-08 2: 2000-12-08 3: 2000-12-08 4: 2000-12-08 5: 2000-12-08 6: 2000-12-08 7: 2000-12-08 8: 2000-12-08 9: 2000-12-08 10: 2000-12-08 category: Text Buffer with 32 lines of text 1: Amphibole 2: Feldspar (Plagioclase) 3: Feldspar (Plagioclase) 4: Sulfate 5: Feldspar (Plagioclase) 6: Pyroxene 7: Pyroxene 8: Sheet Silicate 9: Pyroxene 10: Feldspar (Plagioclase) chamber_temperature: 32x1x1 array of int, bsq format [128 bytes] chemical_formula: Text Buffer with 32 lines of text 1: Ca2(Mg,Fe2+)5[Si8O22](OH,F)2 2: NaAlSi3O8 3: Ab70An30-Ab50An50 4: CaSO4 5: CaAl2Si2O8 6: (Ca,Mg,Fe2+,Fe3+,Ti,Al)2(Si,Al)2O6 7: (Ca,Mg,Fe2+,Fe3+,Ti,Al)2(Si,Al)2O6 8: K2(Mg,Fe2+)6-4(Fe3+,AlTi)0-2[Si6-5Al2-3O20](OH,F)4 9: (Mg,Fe2+)SiO3 10: Ab30An70-Ab10An90 citation: Text Buffer with 32 lines of text 1: Christensen et al., 2000 2: Christensen et al., 2000 3: Christensen et al., 2000 4: Christensen et al., 2000 5: Christensen et al., 2000 6: Christensen et al., 2000 7: Christensen et al., 2000 8: Christensen et al., 2000 9: Christensen et al., 2000 10: Christensen et al., 2000 collection_locality: Text Buffer with 32 lines of text 1: San Bernardino, CA 2: Keystone, SD 3: Big Tujunga Canyon, L.A. Co. CA 4: near Carson City, Nevada 5: Grass Valley, CA 6: Eureka, Ducktown, Tennesee 7: France OR Navajo Co., AZ 8: Silver Crater, Ontario Canada 9: Stillwater Complex, MT 10: Crystal Bay, MN dana_class_description: Text Buffer with 32 lines of text 1: Class 66 - Double-Width Unbranched Chains, W=2 2: Class 76 - Al-Si Framework 3: Class 76 - Al-Si Framework 4: Class 28 - Anhydrous Acid and Sulfates 5: Class 76 - Al-Si Framework 6: Class 65 - Single-Width Unbranched Chains, W=1 7: Class 65 - Single-Width Unbranched Chains, W=1 8: Class 71 - Sheets of 6-membered rings 9: Class 65x Inosilicates Without Dana's New Classification Number 10: Class 76 - Al-Si Framework dana_mineral_number: Text Buffer with 32 lines of text 1: 66.1.3a.2 2: 76.1.3.1 3: 76.1.3.3 4: 28.3.2.1 5: 76.1.3.6 6: 65.1.3a.3 7: 65.1.3a.3 8: 71.2.2b.2 9: 65.0.0.0 10: 76.1.3.5 data: 32x1x73 array of float, bsq format [9,344 bytes] field_of_view: 32x1x1 array of int, bsq format [128 bytes] group: Text Buffer with 32 lines of text 1: Amphibole 2: Feldspar (Plagioclase) 3: Feldspar (Plagioclase) 4: Sulfate 5: Feldspar (Plagioclase) 6: Pyroxene 7: Pyroxene 8: Sheet Silicate 9: Pyroxene 10: Feldspar (Plagioclase) hbb: 32x1x1 array of double, bsq format [256 bytes] hotbb_temperature: 32x1x1 array of int, bsq format [128 bytes] instrument: Text Buffer with 32 lines of text 1: Nicolet Nexus 670 FTIR 2: Nicolet Nexus 670 FTIR 3: Nicolet Nexus 670 FTIR 4: Nicolet Nexus 670 FTIR 5: Nicolet Nexus 670 FTIR 6: Nicolet Nexus 670 FTIR 7: Nicolet Nexus 670 FTIR 8: Nicolet Nexus 670 FTIR 9: Nicolet Nexus 670 FTIR 10: Nicolet Nexus 670 FTIR latitude: 32x1x1 array of double, bsq format [256 bytes] longitude: 32x1x1 array of double, bsq format [256 bytes] owner: Text Buffer with 32 lines of text 1: asu 2: asu 3: asu 4: asu 5: asu 6: asu 7: asu 8: asu 9: asu 10: asu particle_size: Text Buffer with 32 lines of text 1: Coarse particulate 2: Coarse particulate 3: Coarse particulate 4: Hand Sample 5: Coarse particulate 6: Coarse particulate 7: Coarse particulate 8: Coarse particulate 9: Coarse particulate 10: Coarse particulate quality: Text Buffer with 32 lines of text 1: [1] Well characterized, pure 2: [1] Well characterized, pure 3: [1] Well characterized, pure 4: [1] Well characterized, pure 5: [1] Well characterized, pure 6: [1] Well characterized, pure 7: [1] Well characterized, pure 8: [1] Well characterized, pure 9: [1] Well characterized, pure 10: [1] Well characterized, pure radiance: 32x1x1 array of double, bsq format [256 bytes] raw: 32x1x1 array of double, bsq format [256 bytes] resolution: 32x1x1 array of int, bsq format [128 bytes] response: 32x1x1 array of double, bsq format [256 bytes] sample_id: Text Buffer with 32 lines of text 1: HS-116.4B 2: WAR-0244 3: BUR-240 4: S9 5: BUR-340 6: NMNH-119197 7: DSM-AUG01 8: BUR-840 9: BUR-1920 10: WAR-1384 sample_location: Text Buffer with 32 lines of text 1: - 2: - 3: - 4: - 5: - 6: - 7: - 8: - 9: - 10: - sample_name: Text Buffer with 32 lines of text 1: Actinolite 2: Albite 3: Andesine 4: Anhydrite 5: Anorthite 6: Augite 7: Augite 8: Biotite 9: Bronzite 10: Bytownite sample_temperature: 32x1x1 array of double, bsq format [256 bytes] source: Text Buffer with 32 lines of text 1: Roger Clark USGS Denver, CO 2: Ward's Natural Science Est. 3: Burminco 4: Burminco 5: Burminco 6: National Museum of Natural History, Smithsonian Institution 7: David Shannon Minerals, AZ 8: Burminco 9: Burminco 10: Ward's Natural Science Est. source_lab: Text Buffer with 32 lines of text 1: Arizona State University 2: Arizona State University 3: Arizona State University 4: Arizona State University 5: Arizona State University 6: Arizona State University 7: Arizona State University 8: Arizona State University 9: Arizona State University 10: Arizona State University spec_id: 32x1x1 array of int, bsq format [128 bytes] spectral_analysis_person: Text Buffer with 32 lines of text 1: Rogers 2: Rogers 3: Rogers 4: Rogers 5: Rogers 6: Rogers 7: Rogers 8: Rogers 9: Rogers 10: Rogers type_subgroup: Text Buffer with 32 lines of text 1: VIII - Silicates - Inosilicates (e.g. Pyroxene, Amphibole) 2: VIII - Silicates - Tektosilicates (e.g. Quartz, Feldspars, Zeolites) 3: VIII - Silicates - Tektosilicates (e.g. Quartz, Feldspars, Zeolites) 4: VI - Sulfates, Chromates, Molybdates 5: VIII - Silicates - Tektosilicates (e.g. Quartz, Feldspars, Zeolites) 6: VIII - Silicates - Inosilicates (e.g. Pyroxene, Amphibole) 7: VIII - Silicates - Inosilicates (e.g. Pyroxene, Amphibole) 8: VIII - Silicates - Phyllosilicates (e.g. Micas, Clays) 9: VIII - Silicates - Inosilicates (e.g. Pyroxene, Amphibole) 10: VIII - Silicates - Tektosilicates (e.g. Quartz, Feldspars, Zeolites) warmbb_temperature: 32x1x1 array of int, bsq format [128 bytes] wavenum_range_high: 32x1x1 array of int, bsq format [128 bytes] wavenum_range_low: 32x1x1 array of int, bsq format [128 bytes] wbb: 32x1x1 array of double, bsq format [256 bytes] xaxis: 1x1x73 array of float, bsq format [292 bytes] label: Text Buffer with 32 lines of text 1: Actinolite HS-116.4B 2: Albite WAR-0244 3: Andesine BUR-240 4: Anhydrite S9 5: Anorthite BUR-340 6: Augite NMNH-119197 7: Augite DSM-AUG01 8: Biotite BUR-840 9: Bronzite BUR-1920 10: Bytownite WAR-1384 |
DavinciWiki Mini-Nav Bar Contents
Contact Developers
All other topics
Recent Library Changes Created On: 08-06-2010 |