Skip to content
ch07_simulation.rst 1.42 KiB
Newer Older
BO ZHANG's avatar
BO ZHANG committed
Using Simulation Data
BO ZHANG's avatar
BO ZHANG committed
=====================

Versions
--------
BO ZHANG's avatar
BO ZHANG committed
The current available CSST simulation data products are not versioned.
Therefore, in pipeline system, we use ``ver_sim`` keyword in code (e.g., ``CsstMsDataManager``).
The ``ver_sim`` uses a ``C{X}.{Y}`` format string, where
BO ZHANG's avatar
BO ZHANG committed
``X`` denotes the Cycle during which the simulation is released,
and ``Y`` denotes the serial number.
For example, ``C5.2`` represents for the second released version of simulation in Cycle 5.
BO ZHANG's avatar
BO ZHANG committed

BO ZHANG's avatar
BO ZHANG committed

Server details
--------------

Server
   ``dandelion``.
   The ``IP``, ``Username`` and ``Password`` are available via request to ``csst_das@nao.cas.cn``.
Simulation data path
   - ``C5.2``: ``/nfsdata/share/csst_simulation_data/Cycle-5-SimuData``
   - ``C3``: ``/nfsdata/share/csst_simulation_data/Cycle-3-SimuData``

.. note::
    Presently, the ``CsstMsDataManager`` only supports ``C5.2`` simulation.
BO ZHANG's avatar
BO ZHANG committed


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())