Commit 361055bf authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

get aux files from file path format

parent 03bc833a
import glob
# from abc import ABC # from abc import ABC
from collections import OrderedDict from collections import OrderedDict
import astropy.io.fits as fits import astropy.io.fits as fits
...@@ -43,14 +44,17 @@ class CsstMscImgData(CsstData): ...@@ -43,14 +44,17 @@ class CsstMscImgData(CsstData):
def get_flat(self, fp): def get_flat(self, fp):
""" get flat """ """ get flat """
fp = glob.glob(fp)[0]
return fits.getdata(fp) return fits.getdata(fp)
def get_bias(self, fp): def get_bias(self, fp):
""" get bias """ """ get bias """
fp = glob.glob(fp)[0]
return fits.getdata(fp) return fits.getdata(fp)
def get_dark(self, fp): def get_dark(self, fp):
""" get dark """ """ get dark """
fp = glob.glob(fp)[0]
return fits.getdata(fp) return fits.getdata(fp)
def get_l1data(self): def get_l1data(self):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment