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
, optionalIf
True
, read thewindow_flist.fits
file.rescore :
bool
, optionalIf
flist
isTrue
, look forwindow_flist_rescore.fits
, and runwindow_score()
if it is not found.blist :
bool
, optionalIf
True
, read thewindow_blist.fits
file.bcaps :
bool
, optionalIf
True
, read thewindow_bcaps.fits
file.balkans :
bool
, optionalIf
True
, construct the balkans from thewindow_blist.fits
andwindow_bcaps.fits
files.findx :
bool
, optionalIf
True
, read thewindow_findx.fits
file.bindx :
bool
, optionalIf
True
, read thewindow_bindx.fits
file.- 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
.