Loading doc/source/ch07_simulation.rst +22 −0 Original line number Diff line number Diff line Loading @@ -23,3 +23,25 @@ Simulation data path .. note:: Presently, the ``CsstMsDataManager`` only supports ``C5.2`` simulation. Naming conventions ------------------ .. code-block:: python import re pattern = re.compile( r"CSST_" r"(?P<facility>[A-Z]+)_" r"(?P<project>[A-Z]+)_" r"(?P<data_type>[A-Z]+)_" r"(?P<t_start>[0-9]{14})_" r"(?P<t_stop>[0-9]{14})_" r"(?P<obs_id>[0-9]{9})_" r"(?P<detector>[0-9]{2})_" r"L(?P<level>[0-9]+)_" r"(?P<version>[A-Z0-9]+).fits" ) mo = re.search(pattern, r"CSST_MSC_MS_SCI_20270626203558_20270626203828_100000066_01_L0_1.fits") print(mo.groupdict()) Loading
doc/source/ch07_simulation.rst +22 −0 Original line number Diff line number Diff line Loading @@ -23,3 +23,25 @@ Simulation data path .. note:: Presently, the ``CsstMsDataManager`` only supports ``C5.2`` simulation. Naming conventions ------------------ .. code-block:: python import re pattern = re.compile( r"CSST_" r"(?P<facility>[A-Z]+)_" r"(?P<project>[A-Z]+)_" r"(?P<data_type>[A-Z]+)_" r"(?P<t_start>[0-9]{14})_" r"(?P<t_stop>[0-9]{14})_" r"(?P<obs_id>[0-9]{9})_" r"(?P<detector>[0-9]{2})_" r"L(?P<level>[0-9]+)_" r"(?P<version>[A-Z0-9]+).fits" ) mo = re.search(pattern, r"CSST_MSC_MS_SCI_20270626203558_20270626203828_100000066_01_L0_1.fits") print(mo.groupdict())