# nest2ring

Convert MEALPix pixel numbers from nest to ring indexing

## Contents

- Syntax
- Input Arguments
- Return Arguments
- Example
- See also

## Syntax

    rPix = nest2ring(nSide,nPix)

## Input Arguments

    nSide     HEALPix resolution parameters
    nPix      numeric array of MEALPix nest indexed pixel numbers

## Return Arguments

    rPix      size(nPix) numeric array of ring indexed pixel numbers

## Example

    nPix = 1:10;
    rPix = nest2ring(2,nPix)
    nPix = ring2nest(2,rPix)

    rPix =

        14     6     5     1    16     8     7     2    18    10

    nPix =

         1     2     3     4     5     6     7     8     9    10

## See also

ring2nest

Copyright 2010-2011 Lee Samuel Finn. Terms of Use.