Commit 1f233449 authored by Fang Yuedong's avatar Fang Yuedong
Browse files

add entry points in setup.py to make executables

parent 72c543f5
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@
* This step removes all the instrumental related effects as well as cosmoic rays
* modify the corresponding ```config_detrending.yaml``` file to configure all running options
```
    python ./measurement_pipeline/run_csst_msc_instrument.py /path/to/config_detrending.yaml
    run_csst_detrending /path/to/config_detrending.yaml
```
* Products:
    * L1 calibrated images (detrended + cosmic rays removed)
@@ -25,7 +25,7 @@
* Modify the corresponding ```config_injection.yaml``` file to configure all running options
* An object catalog class which inherits from ```observation_sim.mock_objects.CatalogBase``` needs to be implemented and imported in ```injection.injection_pipeline.py```. This is to construct a list of to be injected ```observation_sim.mock_objects.MockObject```.
```
    python ./injection_pipeline/injection_pipeline.py /path/to/config_injection.yaml
    run_csst_injection /path/to/config_injection.yaml
```
* Products:
    * L1 calibrated images with synthetic sources injected
@@ -37,7 +37,7 @@
    * Re-detect and redo photometry measurements on the injected images
* modify the corresponding ```config_photometry.yaml``` file to configure all running options
```
    python ./measurement_pipeline/run_csst_msc_mbi_photometry.py /path/to/config_photometry.yaml
    run_csst_photometry /path/to/config_photometry.yaml
```
* Products:
    * Detection catalogs with photometric information
+1 −0
Original line number Diff line number Diff line
input_dir: "/public/share/yangxuliu/CSSOSDataProductsSims/outputs_50sqDeg/50sqDeg_Photo_W2/"
output_dir: "/public/home/fangyuedong/project/demo_csst_injection/50sqDeg_Photo_W2/"
calib_data_path: "/public/home/fangyuedong/project/calib_data/"
pointing_label_list: ["MSC_0000000"]
chip_label_list: ["07"]
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ pos_sampling:
  # object_density: 37 # arcmin^-2

input_dir: "/public/home/fangyuedong/project/50sqDeg_L1_outputs/50sqDeg_Photo_W2/"
output_dir: "/public/home/fangyuedong/project/demo_csst_injection/50sqDeg_Photo_W2/"
output_dir: "/public/home/fangyuedong/project/demo_csst_injection/test/"
pointing_label_list: ["MSC_0000000"]
chip_label_list: ["07"]

+3 −2
Original line number Diff line number Diff line
input_dir: "/public/home/fangyuedong/project/demo_csst_injection/50sqDeg_Photo_W2/"
# input_dir: "/public/home/fangyuedong/project/demo_csst_injection/50sqDeg_Photo_W2/"
input_dir: "/public/home/fangyuedong/project/demo_csst_injection/test/"
flag_weight_dir: "/public/home/fangyuedong/project/demo_csst_injection/L1_products/50sqDeg_Photo_W2/"
output_dir: "/public/home/fangyuedong/project/demo_csst_injection/50sqDeg_Photo_W2/"
output_dir: "/public/home/fangyuedong/project/demo_csst_injection/test/"
pointing_label_list: ["MSC_0000000"]
chip_label_list: ["07"]
calib_data_path: "/public/home/fangyuedong/project/calib_data/"
 No newline at end of file
+10 −10
Original line number Diff line number Diff line
@@ -2,8 +2,8 @@
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 24,
   "id": "dc2c5d8e",
   "execution_count": 31,
   "id": "809b5d07",
   "metadata": {},
   "outputs": [],
   "source": [
@@ -28,8 +28,8 @@
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "92d0ff48",
   "execution_count": 32,
   "id": "212a642a",
   "metadata": {},
   "outputs": [],
   "source": [
@@ -46,7 +46,7 @@
  },
  {
   "cell_type": "markdown",
   "id": "1d59e962",
   "id": "45201a01",
   "metadata": {},
   "source": [
    "# Visualize the injection\n",
@@ -56,7 +56,7 @@
  {
   "cell_type": "code",
   "execution_count": 25,
   "id": "74f801a0",
   "id": "230134ea",
   "metadata": {},
   "outputs": [
    {
@@ -105,7 +105,7 @@
  },
  {
   "cell_type": "markdown",
   "id": "1202b0bb",
   "id": "a97854f7",
   "metadata": {},
   "source": [
    "# Matching catalogs and check detection completeness\n",
@@ -117,7 +117,7 @@
  {
   "cell_type": "code",
   "execution_count": 27,
   "id": "6ebebcef",
   "id": "508205b5",
   "metadata": {},
   "outputs": [
    {
@@ -207,7 +207,7 @@
  },
  {
   "cell_type": "markdown",
   "id": "13b2c150",
   "id": "0eb991ca",
   "metadata": {},
   "source": [
    "# Evaluate recovered photometry\n",
@@ -217,7 +217,7 @@
  {
   "cell_type": "code",
   "execution_count": 30,
   "id": "d4738454",
   "id": "2c5648aa",
   "metadata": {},
   "outputs": [
    {
Loading