Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-pipeline
csst_proto
Commits
8ef59edf
Commit
8ef59edf
authored
Oct 28, 2022
by
BO ZHANG
🏀
Browse files
added dm.query_rc to doc
parent
ac4ac4d3
Pipeline
#239
passed with stages
in 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
doc/source/ch08_csst_common.rst
View file @
8ef59edf
...
@@ -65,39 +65,55 @@ You will get the outputs:
...
@@ -65,39 +65,55 @@ You will get the outputs:
In your local development environment, you have to use
In your local development environment, you have to use
``CsstMsDataManager.from_dir(...)`` to initialize it.
``CsstMsDataManager.from_dir(...)`` to initialize it.
Attributes
^^^^^^^^^^
Some attributes can be accessed as below.
Some attributes can be accessed as below.
.. code-block:: python
.. code-block:: python
# access L0 directory
# access L0 directory
dm
_mbi
.dir_l0
dm.dir_l0
# access L1 directory
# access L1 directory
dm
_mbi
.dir_l1
dm.dir_l1
# access dir_pcref
# access dir_pcref
dm
_mbi
.dir_pcref
dm.dir_pcref
# access path_aux
# access path_aux
dm
_mbi
.path_aux
dm.path_aux
# access ver_sim
# access ver_sim
dm
_mbi
.ver_sim
dm.ver_sim
# access target detectors
# access target detectors
dm
_mbi
.target_detectors
dm.target_detectors
# access available detectors
# access available detectors
dm
_mbi
.available_detectors
dm.available_detectors
# define an L1 file (detector-specified)
# define an L1 file (detector-specified)
dm
_mbi
.l1_detector(detector=6)
dm.l1_detector(detector=6)
# define an L1 file (non-detector-specified)
# define an L1 file (non-detector-specified)
dm
_mbi
.l1_file("flipped_image.fits")
dm.l1_file("flipped_image.fits")
To get master files:
To get master files:
.. code-block:: python
.. code-block:: python
# to get bias
# to get bias
dm
_mbi
.get_bias()
dm.get_bias()
# to get dark
# to get dark
dm
_mbi
.get_dark()
dm.get_dark()
# to get flat
# to get flat
dm_mbi.get_flat()
dm.get_flat()
Query Reference Catalog
^^^^^^^^^^^^^^^^^^^^^^^
``CsstMsDataManager`` provides a method ``query_rc`` to query reference catalog from ``DFS``.
.. code-block:: python
cat = dm.query_rc(ra=180, dec=0, radius=2, min_mag=0, max_mag=30)
if cat is None:
print("The query failed!")
else:
print("The query succeeded!")
Access code to data products
Access code to data products
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment