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
Bo Zhang
csst
Commits
32b7fdec
Commit
32b7fdec
authored
Apr 30, 2022
by
BO ZHANG
🏀
Browse files
tweaks - fixed path
parent
ea79711f
Changes
1
Show whitespace changes
Inline
Side-by-side
csst/msc/calib_pos.py
View file @
32b7fdec
...
@@ -15,7 +15,7 @@ from astropy.wcs import WCS
...
@@ -15,7 +15,7 @@ from astropy.wcs import WCS
from
..
import
PACKAGE_PATH
from
..
import
PACKAGE_PATH
from
..core.processor
import
CsstProcessor
from
..core.processor
import
CsstProcessor
path_config
=
PACKAGE_PATH
+
"/msc/
astrometry
_config/"
CONFIG_PATH
=
PACKAGE_PATH
+
"/msc/
pos_calib
_config/"
class
CsstProcMscPositionCalibration
(
CsstProcessor
):
class
CsstProcMscPositionCalibration
(
CsstProcessor
):
...
@@ -88,10 +88,10 @@ class CsstProcMscPositionCalibration(CsstProcessor):
...
@@ -88,10 +88,10 @@ class CsstProcMscPositionCalibration(CsstProcessor):
The photometric catalog, with position and flux, e.g.,MSC_210304093000_0000000_06_img.acat
The photometric catalog, with position and flux, e.g.,MSC_210304093000_0000000_06_img.acat
"""
"""
fn
=
fn_list
fn
=
fn_list
config_sextractor
=
path_config
+
"new_csst_realtime.no.weight.sex"
config_sextractor
=
CONFIG_PATH
+
"new_csst_realtime.no.weight.sex"
sex_comd1
=
'sex -c '
+
config_sextractor
+
' '
sex_comd1
=
'sex -c '
+
config_sextractor
+
' '
sex_comd2
=
fn
+
' -CATALOG_NAME '
+
fn
[
0
:
-
5
]
+
'.acat'
sex_comd2
=
fn
+
' -CATALOG_NAME '
+
fn
[
0
:
-
5
]
+
'.acat'
sex_comd3
=
' -PARAMETERS_NAME '
+
path_config
+
'csst_realtime.param'
+
' -FILTER_NAME '
+
path_config
+
'csst_realtime.conv'
+
' -STARNNW_NAME '
+
path_config
+
'csst_realtime.nnw'
sex_comd3
=
' -PARAMETERS_NAME '
+
CONFIG_PATH
+
'csst_realtime.param'
+
' -FILTER_NAME '
+
CONFIG_PATH
+
'csst_realtime.conv'
+
' -STARNNW_NAME '
+
CONFIG_PATH
+
'csst_realtime.nnw'
sex_comd
=
sex_comd1
+
sex_comd2
+
sex_comd3
sex_comd
=
sex_comd1
+
sex_comd2
+
sex_comd3
print
(
sex_comd
)
print
(
sex_comd
)
p
=
Popen
(
sex_comd
,
shell
=
True
)
p
=
Popen
(
sex_comd
,
shell
=
True
)
...
@@ -143,7 +143,7 @@ class CsstProcMscPositionCalibration(CsstProcessor):
...
@@ -143,7 +143,7 @@ class CsstProcMscPositionCalibration(CsstProcessor):
Image header updated with WCS keywords, MSC_210304093000_0000000.acat.head.
Image header updated with WCS keywords, MSC_210304093000_0000000.acat.head.
"""
"""
image_prefix
=
(
img_list
[
0
][
0
].
header
)[
'FILENAME'
][
0
:
-
7
]
image_prefix
=
(
img_list
[
0
][
0
].
header
)[
'FILENAME'
][
0
:
-
7
]
config_scamp
=
path_config
+
"default2.scamp"
config_scamp
=
CONFIG_PATH
+
"default2.scamp"
scamp_comd
=
'scamp '
+
image_prefix
+
'.acat.fits -ASTREFCAT_NAME= '
+
'ref.cat
\
scamp_comd
=
'scamp '
+
image_prefix
+
'.acat.fits -ASTREFCAT_NAME= '
+
'ref.cat
\
-MERGEDOUTCAT_NAME '
+
'merged.cat -FULLOUTCAT_NAME '
+
'full.cat
\
-MERGEDOUTCAT_NAME '
+
'merged.cat -FULLOUTCAT_NAME '
+
'full.cat
\
-c '
+
config_scamp
-c '
+
config_scamp
...
...
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