sdss_name

pydl.photoop.sdssio.sdss_name(ftype, run, camcol, field, rerun='', thisfilter='r', no_path=False)[source]

Return the name of an SDSS data file including path.

Parameters:
ftypestr

The general type of the file, for example 'reObj'

runint

The run number.

camcolint

The camcol number.

fieldint

The field number

rerunstr, optional

If necessary, set the rerun name using this argument.

thisfilterint or str, optional

If necessary, set the filter using this argument.

no_pathbool, optional

Normally, sdss_name returns the full path. If no_path is True, only the basename of the file is returned.

Returns:
str

The full file name, normally including the full path.

Raises:
KeyError

If the file type is unknown.