ch07_simulation.rst 1.66 KB
Newer Older
BO ZHANG's avatar
BO ZHANG committed
1
Using Simulation Data
BO ZHANG's avatar
BO ZHANG committed
2
3
4
5
=====================

Versions
--------
BO ZHANG's avatar
tweaks    
BO ZHANG committed
6
7
8
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
9
10
11
``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
tweaks    
BO ZHANG committed
12

BO ZHANG's avatar
BO ZHANG committed
13
14
15
16
17
18
19
20
21
22
23
24
25

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
26
27
28
29
30
31
32


Naming conventions
------------------

.. code-block:: python

BO ZHANG's avatar
BO ZHANG committed
33
34
35
36
37
38
39
40
41
42
43
44
45
    >>> 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"
    >>> )
BO ZHANG's avatar
BO ZHANG committed
46
    >>> mo = re.fullmatch(pattern, r"CSST_MSC_MS_SCI_20270626203558_20270626203828_100000066_01_L0_1.fits")
BO ZHANG's avatar
BO ZHANG committed
47
48
    >>> print(mo.groupdict())
    {'facility': 'MSC', 'project': 'MS', 'data_type': 'SCI', 't_start': '20260612100759', 't_stop': '20260612101029', 'obs_id': '100000036', 'detector': '16', 'level': '0', 'version': '1'}