diff --git a/stixcore/io/product_processors/fits/processors.py b/stixcore/io/product_processors/fits/processors.py index dedf8634..03dd8a5c 100644 --- a/stixcore/io/product_processors/fits/processors.py +++ b/stixcore/io/product_processors/fits/processors.py @@ -763,7 +763,11 @@ def generate_filename(cls, product, *, version=0, status="", header=True): f"{product.utc_timerange.center.strftime('%Y%m%dT000000')}-" + f"{product.utc_timerange.center.strftime('%Y%m%dT235959')}" ) - elif product.type not in ["sci", "flarelist", "cal"] or product.name == "burst-aspect": + elif ( + product.type not in ["sci", "flarelist"] + or (product.name == "burst-aspect") + or (product.type == "cal" and product.level == "CAL") + ): date_range = product.utc_timerange.center.strftime("%Y%m%d") return FitsProcessor.generate_filename( diff --git a/stixcore/products/level1/quicklookL1.py b/stixcore/products/level1/quicklookL1.py index 2288326c..6265c506 100644 --- a/stixcore/products/level1/quicklookL1.py +++ b/stixcore/products/level1/quicklookL1.py @@ -225,6 +225,10 @@ def __init__( def is_datasource_for(cls, *, service_type, service_subtype, ssid, **kwargs): return kwargs["level"] == EnergyCalibration.LEVEL and service_type == 21 and service_subtype == 6 and ssid == 41 + @property + def fits_daily_file(self): + return True + @classmethod def from_level0(cls, l0product, parent=""): l1 = cls(