Skip to content

Commit

Permalink
update ddpd scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
nicHoch committed Nov 18, 2024
1 parent b9aed57 commit 50d6a00
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
2 changes: 1 addition & 1 deletion stixcore/products/ANC/aspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ class Ephemeris(GenericProduct, L2Mixin):
"""Ephemeris data, including spacecraft attitude and coordinates as well as STIX
pointing with respect to Sun center as derived from the STIX aspect system.
In level 2 format.
In ANC product format.
"""
PRODUCT_PROCESSING_VERSION = 2

Expand Down
1 change: 1 addition & 0 deletions stixcore/products/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from stixcore.products.product import Product # noqa
from stixcore.products.ANC.aspect import *
from stixcore.products.level0.housekeepingL0 import *
from stixcore.products.level0.quicklookL0 import *
from stixcore.products.level0.scienceL0 import *
Expand Down
31 changes: 17 additions & 14 deletions stixcore/util/scripts/ddpd.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def product(file_in):
typenames = {"sci": "Science Data",
"hk": "Housekeeping Data",
"ql": "Quicklook Data",
"aux": "Auxilary Data",
"asp": "Ancillary Aspect Data",
"cal": "Calibration"}

collector = defaultdict(lambda: defaultdict(list))
Expand All @@ -294,16 +294,16 @@ def product(file_in):
"L0/21/6/42/solo_L0_stix-sci-aspect-burst_0687412111-0687419343_V02_2110130059.fits", # noqa
"L0/21/6/24/solo_L0_stix-sci-xray-spec_0689786926-0689801914_V02_2111090002-50819.fits", # noqa
# QL
"L0/21/6/31/solo_L0_stix-ql-background_0668822400_V02U.fits",
"L0/21/6/34/solo_L0_stix-ql-flareflag_0684547200_V02U.fits",
"L0/21/6/30/solo_L0_stix-ql-lightcurve_0684892800_V02U.fits",
"L0/21/6/33/solo_L0_stix-ql-variance_0687484800_V02U.fits",
"L0/21/6/32/solo_L0_stix-ql-spectra_0680400000_V02U.fits",
"L0/21/6/31/solo_L0_stix-ql-background_0668822400_V02.fits",
"L0/21/6/34/solo_L0_stix-ql-flareflag_0684547200_V02.fits",
"L0/21/6/30/solo_L0_stix-ql-lightcurve_0684892800_V02.fits",
"L0/21/6/33/solo_L0_stix-ql-variance_0687484800_V02.fits",
"L0/21/6/32/solo_L0_stix-ql-spectra_0680400000_V02.fits",
# HK
"L0/3/25/2/solo_L0_stix-hk-maxi_0647913600_V02U.fits",
"L0/3/25/1/solo_L0_stix-hk-mini_0643507200_V02U.fits",
"L0/3/25/2/solo_L0_stix-hk-maxi_0647913600_V02.fits",
"L0/3/25/1/solo_L0_stix-hk-mini_0643507200_V02.fits",
# CAL
"L0/21/6/41/solo_L0_stix-cal-energy_0640137600_V02U.fits",
"L0/21/6/41/solo_L0_stix-cal-energy_0640137600_V02.fits",

# L1
# science
Expand All @@ -320,19 +320,22 @@ def product(file_in):
"L1/2020/06/16/QL/solo_L1_stix-ql-variance_20200616_V02.fits",
"L1/2021/11/16/QL/solo_L1_stix-ql-spectra_20211116_V02.fits",
# HK
"L1/2020/06/16/HK/solo_L1_stix-hk-maxi_20200616_V02U.fits",
"L1/2021/09/20/HK/solo_L1_stix-hk-mini_20210920_V02U.fits",
"L1/2020/06/16/HK/solo_L1_stix-hk-maxi_20200616_V02.fits",
"L1/2021/09/20/HK/solo_L1_stix-hk-mini_20210920_V02.fits",
# CAL
"L1/2023/02/13/CAL/solo_L1_stix-cal-energy_20230213_V02U.fits",
"L1/2023/02/13/CAL/solo_L1_stix-cal-energy_20230213_V02.fits",

# L2
"L2/2023/06/06/AUX/solo_L2_stix-aux-ephemeris_20230606_V02U.fits"
# ANC
# "ANC/2023/06/06/AUX/solo_L2_stix-aux-ephemeris_20230606_V02U.fits"
]

remote = ["https://pub099.cs.technik.fhnw.ch/data/fits/" + x for x in files]
# files = ["/home/shane/fits_test/" + x for x in files]
files = [("/data/stix/out/fits_v1.2.0/" + x, remote[i]) for i, x in enumerate(files)]

files.append(("/data/stix/out/test/fits_ANC/ANC/2024/04/11/ASP/solo_ANC_stix-asp-ephemeris_20240411_V02U.fits", # noqa
"https://pub099.cs.technik.fhnw.ch/data/fits/ANC/2024/04/11/ASP/solo_ANC_stix-asp-ephemeris_20240411_V02U.fits")) # noqa

with tempfile.TemporaryDirectory() as tempdir:
temppath = Path(tempdir)
for f in files:
Expand Down

0 comments on commit 50d6a00

Please sign in to comment.