window_read¶
- pydl.photoop.window.window_read(flist=False, rescore=False, blist=False, bcaps=False, balkans=False, findx=False, bindx=False)[source]¶
Read window files in
PHOTO_RESOLVE
.- Parameters:
- flist
bool
, optional If
True
, read thewindow_flist.fits
file.- rescore
bool
, optional If
flist
isTrue
, look forwindow_flist_rescore.fits
, and runwindow_score()
if it is not found.- blist
bool
, optional If
True
, read thewindow_blist.fits
file.- bcaps
bool
, optional If
True
, read thewindow_bcaps.fits
file.- balkans
bool
, optional If
True
, construct the balkans from thewindow_blist.fits
andwindow_bcaps.fits
files.- findx
bool
, optional If
True
, read thewindow_findx.fits
file.- bindx
bool
, optional If
True
, read thewindow_bindx.fits
file.
- flist
- Returns:
dict
A dictionary containing the requested window data.
Notes
If
balkans
isTrue
, the balkans data will be in the form of aFITS_polygon
object, to facilitate interoperability withpydl.pydlutils.mangle
. In this object, the keywordIFIELD
is equivalent toIPRIMARY
andPIXEL
is eqivalent toIBINDX
.