Alex Dvornikov added begin_verbatim_def_extract_lists_for__.tex  over 8 years ago

Commit id: 5221c43c8489d3a8140fc87c1cc752a249198ef4

deletions | additions      

         

\begin{verbatim}  def extract_lists():  for i, fname in enumerate(fnames):  hdu = pyfits.open(fname)  header = hdu[0].header    if header['IMAGETYP'] == 'Bias' or header['IMAGETYP'] == 'bias':  biaslist.append('pro_'+header['IRAFNAME'])   if (header['IMAGETYP'] == 'Twilight' or header['IMAGETYP'] == 'twilight') and header['FILTER'] == 'R_JOHN':  flatlist_r.append('pro_'+header['IRAFNAME'])   if (header['IMAGETYP'] == 'Twilight' or header['IMAGETYP'] == 'twilight') and header['FILTER'] == 'H_alpha':  flatlist_h_al.append('pro_'+header['IRAFNAME'])   if (header['IMAGETYP'] == 'Other' or header['IMAGETYP'] == 'other') and header['FILTER'] == 'H_alpha':  flatlist_h_al.append('pro_'+header['IRAFNAME'])  return  \end{verbatim}