sort cube

From DavinciWiki
Jump to: navigation, search

Description

Sort each pixel in a cube, in the z-direction.

This is an option in sma

Located in spectral_tools.dvrc

Accepts individual spectra or spectral cubes.

Arguments and Return Values

arg1=input spectrum or spectra

Returns index values of input values, sorted in order of decreasing value, for each pixel.

Usage

Syntax: sort_cube(input spectrum(s))

Examples

dv> a.conc

360x140x19 array of float, bsq format [3,830,400 bytes]

dv> b=sort_cube(a.conc)

360x140x19 array of byte, bsq format [957,600 bytes]

dv > a.conc[100,100]

1x1x19 array of float, bsq format [76 bytes]

0.00000

0.00000

0.00000

0.593310

0.00000

0.0908370

0.0938414

0.0487717

0.00000

0.0546035

0.00000

0.0297310

0.00000

0.374353

0.0952810

0.0353476

0.0102421

0.0113577

0.321322

dv> b[100,100]

1x1x19 array of byte, bsq format [19 bytes]

4

14

19

15

7

6

10

8

16

12

18

17

0

0

0

0

0

0

0


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: 01-29-2008
Modified On: 02-06-2008

Personal tools