reverse spectrum

From DavinciWiki
Jump to: navigation, search

Description

Reverse the z dimension of an array

Arguments and Return Values

Arguments: Any numeric array

Return Value: Input array flipped in the z-direction

Usage

Syntax: reverse_spectrum(data)

data can be an array either in wavenumbers or microns

Examples

dv> spectrum
1x1x143 array of float, bsq format [572 bytes]
dv> out=reverse_spectrum(spectrum)
1x1x143 array of float, bsq format [572 bytes]
dv> spectrum[,,:10]//out[,,:10]
2x1x10 array of float, bsq format [80 bytes]
148.1322937     1650.617554

158.7131958     1640.036743

169.2940979     1629.455811

179.8750000     1618.875000

190.4557953     1608.294067

201.0366974     1597.713257

211.6175995     1587.132324

222.1985016     1576.551392

232.7794037     1565.970581

243.3603058     1555.389648

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

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

All other topics

  • See navigation on the left

Major Sub-Functions

Related Functions

Recent Library Changes

Created On: 07-29-2010
Modified On: 07-30-2010

Personal tools