PyDL:docs

- Index
- Modules

### Navigation

- next »
- pydl v1.0.1 »

# PyDL

## Introduction

This package consists of Python replacements for functions that are part of the IDL® built-in library or part of astronomical IDL® libraries. The emphasis is on reproducing results of the astronomical library functions. Only the bare minimum of IDL® built-in functions are implemented to support this.

There are four astronomical libraries targeted:

- idlutils : a general suite of tools heavily used by SDSS.

- Goddard utilities : The IDL® Astronomy User’s Libary, maintained by Wayne Landsman and distributed with idlutils.

- idlspec2d : tools for working with SDSS, BOSS and eBOSS spectroscopic data.

- photoop : tools for working with SDSS imaging data.

This package affiliated with the astropy project and is registered with PyPI.

IDL® is a registered trademark of NV5 Geospatial.

## Components

Most of the functionality of PyDL is in sub-packages.

- SDSS Utilities (`pydl.pydlutils`)
- Goddard Utilities (`pydl.goddard`)
- SDSS Spectroscopic Data (`pydl.pydlspec2d`)
- SDSS Imaging Data (`pydl.photoop`)

## Other Notes

- SDSS Spectroscopic Templates with PyDL
- The SDSS Photometric Window Function
- PyDL Changelog
- TODO
- Authors and Credits
- Licenses

## Base API

### pydl Package

Python replacements for functions that are part of the IDL® built-in library, or part of astronomical IDL® libraries. The emphasis is on reproducing results of the astronomical library functions. Only the bare minimum of IDL® built-in functions are implemented to support this.

#### Functions

`file_lines`(path[, compress]) | Replicates the IDL `FILE_LINES()` function.
`median`(array[, width, axis, even]) | Replicate the IDL `MEDIAN()` function.
`rebin`(x, d[, sample]) | Resize `x` to new dimensions given by `d`.
`smooth`(signal, owidth[, edge_truncate]) | Replicates the IDL `SMOOTH()` function.
`uniq`(x[, index]) | Replicates the IDL `UNIQ()` function.

#### Classes

`pcomp`(x[, standardize, covariance]) | Replicates the IDL `PCOMP()` function.
`PydlException` | Base class for exceptions raised in PyDL functions.