filternum

pydl.photoop.sdssio.filternum(filt='foo')[source]

Return index number for SDSS filters either from a number or name.

Parameters
filtstr

The filter name.

Returns
int

The corresponding filter number

Raises
KeyError

If filt is not a valid filter name.

Examples

>>> filternum('g')
1